/* ============================================================
   男性女乳症治療中心 — Shared Layout CSS
   Modern, professional medical aesthetic · low color noise
   Adapted from vein design for 10manb (Gynecomastic Centre HK)
   ============================================================ */

:root {
  --primary: #03639f;
  --primary-dark: #024b79;
  --primary-light: #e3eff7;
  --accent-whatsapp: #25d366;
  --accent-whatsapp-dark: #128c7e;
  --text: #263238;
  --text-muted: #5b6f7c;
  --border: #cdd8e0;
  --border-light: #e8eef3;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
  --max-w: 1100px;
  /* Luxury motion curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft JhengHei", "PingFang TC", "PingFang HK", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Reserve scrollbar gutter so body scroll-lock (overflow:hidden) never
   shifts the layout — keeps the hamburger/X perfectly stationary. */
html { scrollbar-gutter: stable; }

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============ Sticky Header + Nav Wrapper ============ */
.sticky-header-group {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.site-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.header-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.header-logo img {
  display: block;
  height: auto;
}

.header-contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--transition);
}
.contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: fill var(--transition);
  flex-shrink: 0;
}
.contact-item:hover { color: var(--primary); }
.contact-item:hover svg { fill: var(--primary); }
.contact-item.whatsapp-item svg { fill: var(--accent-whatsapp); }
.contact-item.whatsapp-item:hover svg { fill: var(--accent-whatsapp-dark); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--text-muted);
}
.lang-switch a {
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a.active {
  color: #fff;
  background: var(--primary);
}
.lang-switch .lang-sep {
  color: var(--border);
  user-select: none;
}

/* ============ Mobile language switcher (overlay + pulldown) ============ */
/* Subtle segmented control: quiet pill, muted thumb, low visual weight */
.lang-switch-ov {
  position: relative;
  display: flex;
  background: #f2f5f8;
  border-radius: 999px;
  padding: 2px;
}
.lang-switch-ov::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  width: calc(50% - 2px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s var(--ease-out-expo);
}
.lang-switch-ov[data-active="en"]::before {
  transform: translateX(100%);
}
.lang-switch-ov a {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-in-out);
}
.lang-switch-ov a.active {
  color: var(--primary);
  font-weight: 700;
}

/* CTA button */
.cta-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary) !important;
  background: transparent;
  padding: 8px 18px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cta-link:hover,
.cta-link.active {
  color: #fff !important;
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}
.cta-link:active { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ============ Nav ============ */
#topmenu {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  gap: 6px;
}
#topmenu a {
  display: block;
  padding: 9px 20px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: color var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}
#topmenu a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
#topmenu a:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
#topmenu a.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* ============ Hero Carousel ============ */
.hero {
  position: relative;
  max-width: var(--max-w);
  max-height: 285px;
  margin: 0 auto;
  overflow: hidden;
  background: #eceff1;
}
.hero-slides { position: relative; }
.hero-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { display: block; opacity: 1; }
.hero-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.4s var(--ease-out-expo), width 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.hero-dot.active { background: #fff; width: 36px; }
.hero-dot:hover { background: rgba(255, 255, 255, 0.85); }

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 24px 0;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); margin: 0 4px; user-select: none; }
.breadcrumb-current { color: var(--text-muted); }

.breadcrumb-location {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.breadcrumb-location svg {
  width: 13px;
  height: 13px;
  fill: var(--text-muted);
  transition: fill var(--transition);
  flex-shrink: 0;
}
.breadcrumb-location:hover { color: var(--primary); }
.breadcrumb-location:hover svg { fill: var(--primary); }

/* ============ Main Content ============ */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: box-shadow var(--transition);
}
.content-card:hover { box-shadow: var(--shadow-md); }

.content-card h1 {
  font-size: 26px;
  color: var(--primary-dark);
  margin: 0 0 18px;
  line-height: 1.35;
}
.content-card h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin: 32px 0 18px;
  line-height: 1.4;
}
.content-card h2:first-child { margin-top: 0; }
.content-card p { margin: 0 0 14px; }
.content-card p:last-child { margin-bottom: 0; }

.lead {
  font-size: 17px;
  color: var(--primary-dark);
}

.section-alt { background: var(--bg-alt); }

/* Highlight strip (replaces old "no knife" image header) */
.highlight-strip {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.highlight-strip h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--primary-dark);
}
.highlight-strip p { margin: 0; color: var(--text); }

/* Feature grid (home quick links) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.feature-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.feature-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--primary-dark);
}
.feature-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Contact CTA band */
.contact-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 8px 0 24px;
  font-size: 16px;
}
.contact-band .contact-item { font-size: 17px; font-weight: 600; }
.contact-band .contact-item svg { width: 20px; height: 20px; }

/* Figure / inline image */
.figure-right {
  float: right;
  margin: 0 0 16px 24px;
  max-width: 45%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 24px;
  line-height: 1.7;
}

/* Section label bar */
.section-label {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 28px 0 16px;
  font-size: 17px;
}

/* Symptom list */
.symptom-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.symptom-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
}
.symptom-list li .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Centered content image */
.figure-center {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Clinical stage grid */
.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.stage-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.stage-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.stage-item .stage-body strong {
  display: block;
  color: var(--primary-dark);
  font-size: 15px;
  margin-bottom: 2px;
}
.stage-item .stage-body span { font-size: 14px; color: var(--text-muted); }

/* Media row: image left, text right */
.media-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
  margin: 6px 0 8px;
}
.media-row .media-img {
  flex: 0 0 220px;
}
.media-row .media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
}
.media-row .media-body { flex: 1; min-width: 0; }
.media-row .media-body h2:first-child { margin-top: 0; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info-list { list-style: none; margin: 18px 0; padding: 0; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list svg {
  width: 22px; height: 22px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-info-list .ci-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-info-list .ci-value { font-size: 16px; color: var(--text); }
.contact-info-list .ci-value a { color: var(--primary); font-weight: 600; }
.map-wrap {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.map-wrap iframe { display: block; width: 100%; height: 280px; border: 0; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { height: 130px; resize: vertical; }
.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

/* Form status message */
.form-msg { display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.5; }
.form-msg.show { display: block; }
.form-msg.success { background: var(--primary-light); border-left: 4px solid var(--primary); color: var(--primary-dark); }
.form-msg.error { background: #fdecea; border-left: 4px solid #c62828; color: #b71c1c; }
.form-group input.invalid, .form-group textarea.invalid { border-color: #c62828; }

/* Sent confirmation panel */
.sent-panel { display: none; text-align: center; padding: 36px 24px; }
.sent-panel.show { display: block; }
.sent-panel .sent-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sent-panel .sent-icon svg { width: 38px; height: 38px; fill: #fff; }
.sent-panel h2 { margin: 0 0 10px; font-size: 24px; color: var(--primary-dark); }
.sent-panel p { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.sent-panel .sent-note { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.sent-panel .sent-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 15px; }
.sent-panel .sent-contacts .contact-item { font-weight: 600; }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q .q-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-q .q-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}
.faq-q .q-chevron path { fill: var(--text-muted); }
.faq-item.open .faq-q .q-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a .faq-a-inner {
  padding: 0 18px 18px 56px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}
.faq-a .faq-a-inner p { margin: 0 0 10px; }
.faq-a .faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a .faq-a-inner a { font-weight: 600; }

/* Symptom chips */
.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
  list-style: none;
  padding: 0;
}
.chip-grid li {
  background: var(--primary-light);
  border: 1px solid rgba(3, 99, 159, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--primary-dark);
  text-align: center;
  line-height: 1.5;
}

/* Numbered diagnostic criteria */
.criteria-list { margin: 14px 0; padding-left: 0; list-style: none; counter-reset: crit; }
.criteria-list li {
  counter-increment: crit;
  position: relative;
  padding: 10px 0 10px 40px;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.criteria-list li:last-child { border-bottom: none; }
.criteria-list li::before {
  content: counter(crit);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 26px;
}

/* Treatment cards */
.treatment-card {
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 18px 22px;
  margin-bottom: 16px;
  transition: box-shadow var(--transition);
}
.treatment-card:hover { box-shadow: var(--shadow-sm); }
.treatment-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--primary-dark);
}
.treatment-card p { margin: 0; font-size: 15px; }

/* Check list */
.check-list {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  background: var(--primary-light);
  border-radius: 50%;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  width: 5px;
  height: 9px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============ Sidebar sub-nav (for inner pages) ============ */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.subnav a {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: color var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}
.subnav a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.subnav a:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.subnav a.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* ============ Footer ============ */
#bottommenu {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 24px;
  font-size: 14px;
}
#bottommenu .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 32px;
}
#bottommenu h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--primary-dark);
}
#bottommenu ul { list-style: none; margin: 0; padding: 0; }
#bottommenu li { margin-bottom: 4px; }
#bottommenu a { color: var(--text-muted); }
#bottommenu a:hover { color: var(--primary); }

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 28px 24px;
  font-size: 13px;
  line-height: 2;
  text-align: center;
}
.site-footer .health-links { margin-bottom: 12px; }
.site-footer .health-links a {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 6px;
}
.site-footer .health-links a:hover { border-bottom-color: #fff; }
.site-footer .copyright { color: rgba(255, 255, 255, 0.5); }

/* ============ MOBILE (<=576px): hamburger overlay + pull-down nav ============ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
}
.hamburger-line {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out-expo), background 0.3s ease;
}
.hamburger-btn.open .hamburger-line { background: var(--primary-dark); }
.hamburger-btn.open .hamburger-line:nth-child(1) { transform: translateY(5px) rotate(-45deg); }
.hamburger-btn.open .hamburger-line:nth-child(2) { transform: translateY(-5px) rotate(45deg); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  padding: 0;
  transition: opacity 0.45s var(--ease-in-out), visibility 0.45s var(--ease-in-out);
}
.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-overlay .ov-brand-bar {
  height: 4px;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-overlay .ov-brand-glow {
  position: sticky;
  top: 4px;
  height: 40px;
  margin-top: -4px;
  background: linear-gradient(180deg, rgba(3, 99, 159, 0.10) 0%, rgba(3, 99, 159, 0) 100%);
  pointer-events: none;
}
.mobile-overlay .ov-nav { margin-top: 40px; padding: 0 24px; }
.mobile-overlay .ov-nav > a {
  position: relative;
  display: block;
  padding: 10px 8px;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), color 0.3s ease, padding-left 0.3s var(--ease-out-expo), background 0.3s ease;
}
.mobile-overlay .ov-nav > a::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.4s var(--ease-out-expo);
}
.mobile-overlay .ov-nav > a:hover {
  color: var(--primary);
  padding-left: 16px;
  background: var(--primary-light);
}
.mobile-overlay .ov-nav > a:hover::after { width: 28px; }
.mobile-overlay.open .ov-nav > a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-overlay.open .ov-nav > a:nth-child(1) { transition-delay: 0.08s; }
.mobile-overlay.open .ov-nav > a:nth-child(2) { transition-delay: 0.13s; }
.mobile-overlay.open .ov-nav > a:nth-child(3) { transition-delay: 0.18s; }
.mobile-overlay.open .ov-nav > a:nth-child(4) { transition-delay: 0.23s; }
.mobile-overlay.open .ov-nav > a:nth-child(5) { transition-delay: 0.28s; }
.mobile-overlay.open .ov-nav > a:nth-child(6) { transition-delay: 0.33s; }
.mobile-overlay.open .ov-nav > a:nth-child(7) { transition-delay: 0.38s; }
.mobile-overlay .ov-nav > a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}
.mobile-overlay .ov-nav > a.active::after { width: 0; }
.mobile-overlay .ov-cta {
  margin: 15px 24px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out-expo) 0.40s, transform 0.5s var(--ease-out-expo) 0.40s;
}
.mobile-overlay.open .ov-cta {
  opacity: 1;
  transform: translateY(0);
}
.mobile-overlay .ov-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--primary);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out-expo);
}
.mobile-overlay .ov-cta a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.mobile-overlay .ov-cta a:active { transform: scale(0.98); }
.mobile-overlay .ov-lang {
  margin: 16px 24px 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out-expo) 0.52s, transform 0.5s var(--ease-out-expo) 0.52s;
}
.mobile-overlay.open .ov-lang {
  opacity: 1;
  transform: translateY(0);
}
.mobile-overlay .ov-actions {
  margin: 13px 24px 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: row;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out-expo) 0.46s, transform 0.5s var(--ease-out-expo) 0.46s;
}
.mobile-overlay.open .ov-actions {
  opacity: 1;
  transform: translateY(0);
}
.mobile-overlay .ov-actions .ov-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}
.mobile-overlay .ov-actions .ov-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(3, 99, 159, 0.15);
}
.mobile-overlay .ov-actions .ov-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.mobile-overlay .ov-actions .ov-btn--phone svg { fill: var(--primary); }
.mobile-overlay .ov-actions .ov-btn--wa svg { fill: #25D366; }
.mobile-overlay .ov-actions .ov-btn .ov-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.2;
}
.mobile-overlay .ov-actions .ov-btn .ov-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.mobile-overlay .ov-actions .ov-btn--phone .ov-number { color: var(--primary); }
.mobile-overlay .ov-actions .ov-btn--wa .ov-number { color: #25D366; }
.mobile-overlay .ov-actions .ov-btn:active { transform: scale(0.98); }

/* Pull-down breadcrumb (mobile) */
.nav-pulldown { display: none; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .site-header { padding: 8px 20px; }
  .header-logo img { width: 220px; }
  .header-contacts { font-size: 13px; gap: 4px 14px; }

  /* Hide phone/WA numbers below 768px, show icons only */
  .contact-item.phone-item span,
  .contact-item.whatsapp-item span { display: none; }
  .contact-item svg { width: 18px; height: 18px; }

  #topmenu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  #topmenu a {
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
  }

  main { padding: 20px 20px 40px; }
  .content-card { padding: 22px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .symptom-list { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr; }
  .media-row { flex-direction: column; }
  .media-row .media-img { flex: none; max-width: 260px; }
  .media-row .media-img img { height: auto; }
  .chip-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .figure-right { float: none; display: block; margin: 0 auto 16px; max-width: 100%; }
  #bottommenu .inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .site-header { padding: 6px 16px; gap: 4px 12px; flex-wrap: nowrap; }
  .header-logo img { width: 180px; }
  .sticky-header-group { z-index: 450; }

  /* Mobile header: hide contacts, show hamburger only */
  .header-contacts { display: none; }
  .hamburger-btn { display: flex; margin-left: auto; }
  .breadcrumbs { display: none; }
  #topmenu { display: none !important; }

  /* Pull-down breadcrumb */
  .nav-pulldown {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    z-index: 150;
    background: #045c85;
  }
  .nav-pulldown__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 5%;
    background: #045c85;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: left;
  }
  .nav-pulldown__toggle .crumb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-pulldown__arrow { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.5s ease; }
  .nav-pulldown__toggle.open .nav-pulldown__arrow { transform: rotate(180deg); }
  .nav-pulldown__list {
    display: block;
    height: 0;
    overflow: hidden;
    background: #fff;
    transition: height 0.5s ease;
  }
  .nav-pulldown__list > a {
    display: block;
    padding: 11px 5%;
    line-height: 1.35;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.5s ease, background-color 0.5s ease;
  }
  .nav-pulldown__list > a:hover { background: #045c85; color: #fff; }
  .nav-pulldown__list > a.active { background: #045c85; color: #fff; font-weight: 700; }
  .nav-pulldown__cta-btn-wrap {
    padding: 12px 5%;
    border-top: 1px solid #244d5f;
  }
  .nav-pulldown__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out-expo);
  }
  .nav-pulldown__cta-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
  }
  .nav-pulldown__cta-btn:active { transform: scale(0.98); }
  .nav-pulldown__lang {
    padding: 12px 5%;
    border-top: 1px solid var(--border-light);
  }
  .nav-pulldown__contact {
    display: flex;
    gap: 10px;
    padding: 12px 5%;
    border-top: 1px solid #244d5f;
  }
  .nav-pulldown__cta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    text-decoration: none;
    color: var(--text);
  }
  .nav-pulldown__cta svg { width: 20px; height: 20px; flex-shrink: 0; }
  .nav-pulldown__cta--phone svg { fill: var(--primary); }
  .nav-pulldown__cta--wa svg { fill: #25D366; }
  .nav-pulldown__cta .ov-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1px;
  }
  .nav-pulldown__cta .ov-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }
  .nav-pulldown__cta--phone .ov-number { color: var(--primary); }
  .nav-pulldown__cta--wa .ov-number { color: #25D366; }

  .hero-dots { bottom: 10px; }
  .content-card h1 { font-size: 22px; }
  .content-card h2 { font-size: 18px; }
  .contact-band { font-size: 14px; gap: 8px 18px; }
  #bottommenu .inner { grid-template-columns: 1fr 1fr; }
}