:root {
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --accent-soft: #ccfbf1;
  --ink: #0a0a0a;
  --ink-soft: #404040;
  --muted: #737373;
  --border: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-warm: #f5f5f4;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 50;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  display: inline-block;
}
.site-logo {
  display: block;
  width: auto;
}
.site-logo-header {
  height: 44px;
}
.site-logo-footer {
  height: 34px;
}
.logo .accent { color: var(--accent); }
.logo .dark { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: #1f1f1f; transform: translateY(-1px); }

.btn-ghost { background: white; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

/* ---------- HERO ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 18px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero .sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 0 32px;
}
.hero-image-inner {
  aspect-ratio: 16 / 7.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-image-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
}

/* ---------- BRAND BADGE ---------- */
.brand-section {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 32px;
  text-align: center;
}
.brand-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 56px 24px;
  position: relative;
  min-width: min(100%, 460px);
  min-height: 210px;
}
.brand-brush {
  position: absolute;
  inset: 0;
  background: #b8d8d4;
  border-radius: 50% 60% 55% 45% / 60% 40% 60% 40%;
  opacity: 0.6;
  transform: rotate(-2deg);
  z-index: -1;
}
.brand-logo {
  width: min(420px, 100%);
  height: 150px;
  display: block;
  background: url('/static/img/Galamat.svg') center center / contain no-repeat;
}
.brand-name {
  font-family: var(--font-script);
  font-size: 44px;
  font-weight: 500;
  color: #334155;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: #64748b;
  font-weight: 500;
}
.brand-part {
  margin-top: 10px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
}

/* ---------- FEATURE ROWS ---------- */
.feature {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.feature-text p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 12px;
}
.feature-text ul {
  list-style: none;
  margin: 14px 0 28px;
}
.feature-text li {
  padding: 4px 0 4px 22px;
  position: relative;
  color: var(--ink-soft);
}
.feature-text li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.feature-visual-flag {
  background: #f8fafc url('/static/img/flag.jpg') center center / cover no-repeat;
  box-shadow: var(--shadow-md);
}
.feature-visual.surgery {
  background: radial-gradient(ellipse at 50% 40%, #cbd5e1 0%, #94a3b8 40%, #475569 100%);
}
.feature-visual.surgery::before {
  content: '🏥';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  opacity: 0.3;
}
.feature-visual.gradient-pink {
  background: radial-gradient(ellipse at 50% 50%, #fce7f3 0%, #fbcfe8 30%, #e0e7ff 70%, #c7d2fe 100%);
}

/* ---------- VALUES ---------- */
.values {
  max-width: 1200px;
  margin: 120px auto 0;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--border);
}
.value-bar {
  width: 40px;
  height: 3px;
  background: var(--ink);
  margin-bottom: 18px;
}
.value-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.value-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 60px 32px 40px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--ink); }

/* ---------- PAGE HEADER ---------- */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-header p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- INDUSTRIES GRID ---------- */
.industries {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.industry-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 0;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.industry-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.industry-visual.anesth {
  background: linear-gradient(135deg, #a5f3fc 0%, #67e8f9 50%, #22d3ee 100%);
}
.industry-visual.surgery {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 50%, #f87171 100%);
}
.industry-visual.ophth {
  background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 50%, #a78bfa 100%);
}
.industry-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}
.industry-info { padding: 24px 24px 28px; }
.industry-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.industry-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.industry-info .count {
  font-size: 13px;
  color: var(--accent-hover);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- PRODUCTS GRID ---------- */
.products-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.back-btn {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.back-btn:hover { border-color: var(--ink); color: var(--ink); }
.products-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.products-grid {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 32px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.product-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-img .placeholder { font-size: 48px; opacity: 0.3; }

.product-info { padding: 18px 20px 22px; flex: 1; }
.product-company {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  font-weight: 700;
  margin-bottom: 6px;
}
.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 700;
}

/* ---------- CONTACTS ---------- */
.contacts-grid {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 32px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contact-card h4 {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 40px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #dc2626; }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.35);
  z-index: 120;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.42);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse { direction: ltr; }
  .industries { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 32px;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .menu-toggle { display: block; }
  .site-logo-header { height: 36px; }
  .site-logo-footer { height: 30px; }
  .hero { padding: 44px 20px 18px; }
  .hero-image { padding: 0 20px; margin-top: 16px; }
  .hero-image-inner { aspect-ratio: auto; }
  .hero-image-photo { aspect-ratio: 16 / 8.4; }
  .brand-section { margin-top: 28px; padding: 0 20px; }
  .brand-badge { min-height: 156px; min-width: 100%; padding: 24px 28px 18px; }
  .brand-logo {
    width: min(320px, 100%);
    height: 108px;
  }
  .brand-part { font-size: 18px; margin-top: 8px; }
  .feature { padding: 0 20px; margin-top: 60px; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-header { padding: 50px 20px 30px; }
  .industries { padding: 0 20px; }
  .products-header, .products-grid { padding-left: 20px; padding-right: 20px; }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
}
