/* =========================================================
   Soma Wellness Prime — Luxury Aesthetic Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Noto+Serif+Thai:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600&display=swap');

:root {
  --bg: #f8fafc;
  --bg-alt: #eff6ff;
  --champagne: #dbeafe;
  --gold: #1e3a8a;
  --gold-deep: #1e2f6b;
  --gold-light: #3b82f6;
  --charcoal: #0f172a;
  --charcoal-soft: #475569;
  --ivory: #ffffff;
  --line: #cbd5e1;

  --serif-en: 'Cormorant Garamond', 'Noto Serif Thai', serif;
  --serif-th: 'Noto Serif Thai', 'Cormorant Garamond', serif;
  --sans-en: 'Inter', 'Prompt', sans-serif;
  --sans-th: 'Prompt', 'Inter', sans-serif;

  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 19px;
}
body {
  font-family: var(--sans-en);
  color: var(--charcoal);
  background: var(--bg);
  font-size: 1.06rem;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Accessibility — skip to main content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--charcoal);
  color: var(--gold-light);
  padding: 0.8rem 1.4rem;
  z-index: 999;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
}

/* Focus rings for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Language is now URL-based (TH at root, EN at /en/) — no in-page toggling.
   The .th and .en class tokens remain on elements as semantic markers but
   no longer drive visibility. */

/* =========================================================
   Top Bar / Header
   ========================================================= */
.topbar {
  background: var(--charcoal);
  color: var(--bg);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar span { opacity: 0.85; }
.topbar .gold { color: var(--gold-light); }

header.site-header {
  background: rgba(250, 248, 244, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-logo { height: 52px; width: auto; display: block; }
.brand .visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 768px) { .brand-logo { height: 42px; } }
.brand .mark-th {
  font-family: var(--serif-th);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.brand .mark-en {
  font-family: var(--serif-en);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav.primary ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
nav.primary a {
  font-family: var(--sans-en);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
nav.primary a:hover,
nav.primary a.active {
  color: var(--charcoal);
}
nav.primary a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.lang-toggle button,
.lang-toggle a,
.lang-toggle span {
  background: transparent;
  border: 0;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  color: var(--charcoal-soft);
  font-family: var(--sans-en);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle a:hover { color: var(--charcoal); }
.lang-toggle .active,
.lang-toggle button.active {
  background: var(--charcoal);
  color: var(--bg);
  cursor: default;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 0;
  font-family: var(--sans-en);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-deep);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--ivory);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #dbeafe 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(30, 58, 138, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  font-family: var(--sans-en);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.hero-tag::before { content: '— '; color: var(--gold); }
.hero h1 {
  font-family: var(--serif-en);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.hero h1.th { font-family: var(--serif-th); font-weight: 500; }
.hero h1 em {
  color: var(--gold-deep);
  font-style: italic;
}
.hero p.lede {
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  max-width: 520px;
  margin-bottom: 2.2rem;
  line-height: 1.8;
}
.hero p.lede.th { font-family: var(--sans-th); }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-aside {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #dbeafe 0%, #3b82f6 100%);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(15, 23, 42,0.55) 95%);
  z-index: 1;
  pointer-events: none;
}
.hero-aside::after {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 2;
}
.hero-aside-content { z-index: 3; }
.hero-aside-content {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  color: var(--ivory);
}
.hero-aside-content .label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.hero-aside-content h3 {
  font-family: var(--serif-en);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
}
.hero-aside-content h3.th { font-family: var(--serif-th); }

.gold-divider {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* =========================================================
   Section base
   ========================================================= */
section.section { padding: 6rem 2rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head .eyebrow {
  font-family: var(--sans-en);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
}
.section-head h2 {
  font-family: var(--serif-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-top: 0.8rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-head h2.th { font-family: var(--serif-th); font-weight: 500; }
.section-head p {
  max-width: 640px;
  margin: 1.2rem auto 0;
  color: var(--charcoal-soft);
  font-size: 1rem;
}
.section-head p.th { font-family: var(--sans-th); }

/* =========================================================
   Services grid
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--ivory);
  padding: 3rem 2.2rem;
  position: relative;
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}
.service-card .icon svg {
  width: 26px; height: 26px;
  stroke: var(--gold-deep);
  fill: none;
  stroke-width: 1.2;
}
.service-card h3 {
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.service-card h3.th { font-family: var(--serif-th); }
.service-card .subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin-bottom: 2rem;
  flex-grow: 1;
}
.service-card p.th { font-family: var(--sans-th); }
.service-card .learn {
  font-family: var(--sans-en);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
}
.service-card .learn:hover {
  gap: 0.8rem;
  color: var(--gold-deep);
}

/* =========================================================
   Split sections
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-image {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #dbeafe 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--ivory);
}
.split-image::after {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 2;
}
.split-content .eyebrow {
  font-family: var(--sans-en);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
}
.split-content .price-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 0.9rem;
  margin: 1.4rem 0 1.6rem;
  padding: 0.8rem 1.3rem;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
}
.split-content .price-tag-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.split-content .price-tag-amount {
  font-family: var(--serif-en);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--charcoal);
}
.split-content .price-tag-note {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
}
.split-content .price-list {
  margin: 1.4rem 0 1.8rem;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.4rem;
}
.split-content .price-list-title {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.9rem;
}
.split-content .price-list-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.18);
}
.split-content .price-list-row:last-of-type { border-bottom: 0; }
.split-content .price-list-name {
  font-size: 0.95rem;
  color: var(--charcoal);
}
.split-content .price-list-price {
  font-family: var(--serif-en);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
}
.split-content .price-list-foot {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}
.split-content .price-list-foot .discount {
  color: var(--gold-deep);
  font-weight: 500;
}
.split-content h2 {
  font-family: var(--serif-en);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin: 0.8rem 0 1.5rem;
  line-height: 1.2;
}
.split-content h2.th { font-family: var(--serif-th); font-weight: 500; }
.split-content p {
  color: var(--charcoal-soft);
  margin-bottom: 1rem;
}
.split-content p.th { font-family: var(--sans-th); }
.split-content ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.split-content ul li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}
.split-content ul li.th { font-family: var(--sans-th); }
.split-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* =========================================================
   Doctor card
   ========================================================= */
.doctor-section { background: var(--bg-alt); }
.doctor-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  background: var(--ivory);
  padding: 4rem;
  border: 1px solid var(--line);
}
.doctor-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #eff6ff 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.doctor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}
.doctor-photo::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255,255,255,0.55);
  z-index: 2;
  pointer-events: none;
}
.doctor-photo .photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 0;
}
.doctor-info .eyebrow {
  font-family: var(--sans-en);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}
.doctor-info h2 {
  font-family: var(--serif-en);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.doctor-info h2.th { font-family: var(--serif-th); font-weight: 500; }
.doctor-info .credential {
  font-size: 1rem;
  color: var(--charcoal-soft);
  margin-bottom: 1.5rem;
}
.doctor-info .credential.th { font-family: var(--sans-th); }
.timeline {
  list-style: none;
  margin: 2rem 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year {
  font-family: var(--serif-en);
  font-size: 1.4rem;
  color: var(--gold-deep);
  font-style: italic;
}
.timeline .detail { font-size: 0.95rem; color: var(--charcoal); }
.timeline .detail.th { font-family: var(--sans-th); }
.timeline .detail strong { display: block; font-weight: 500; margin-bottom: 0.2rem; }

/* =========================================================
   Inner page hero
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
}
.page-hero .eyebrow {
  font-family: var(--sans-en);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-deep);
}
.page-hero h1 {
  font-family: var(--serif-en);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  margin: 1rem 0;
}
.page-hero h1.th { font-family: var(--serif-th); font-weight: 500; }
.page-hero p {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--charcoal-soft);
}
.page-hero p.th { font-family: var(--sans-th); }
.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-top: 1.5rem;
}
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .sep { margin: 0 0.6rem; color: var(--gold); }

/* =========================================================
   Feature grid
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-tile {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
}
.feature-tile .num {
  font-family: var(--serif-en);
  font-size: 2rem;
  color: var(--gold-deep);
  font-style: italic;
  line-height: 1;
  flex-shrink: 0;
}
.feature-tile h4 {
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.feature-tile h4.th { font-family: var(--serif-th); }
.feature-tile p { font-size: 0.92rem; color: var(--charcoal-soft); }
.feature-tile p.th { font-family: var(--sans-th); }

/* =========================================================
   Pricing / package cards
   ========================================================= */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.package-grid.four-up {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.package {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2.5rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.package.featured {
  background: var(--charcoal);
  color: var(--bg);
  border-color: var(--charcoal);
  transform: scale(1.03);
}
.package.featured .package-tier { color: var(--gold-light); }
.package.featured ul li {
  border-color: rgba(255,255,255,0.15);
  color: rgba(250,248,244,0.95);
}
.package.featured ul li strong { color: var(--ivory); }
.package.featured .price { color: var(--bg); }
.package.featured .price-note,
.package.featured .price-original { color: rgba(250,248,244,0.72); }
.package.featured details summary { color: var(--gold-light); border-color: rgba(255,255,255,0.18); }
.package.featured details[open] summary { background: rgba(255,255,255,0.05); }
.package.featured .items-list li { color: rgba(250,248,244,0.85); border-color: rgba(255,255,255,0.12); }
.package.featured .btn-outline {
  color: var(--gold-light);
  border-color: var(--gold);
  background: transparent;
}
.package.featured .btn-outline:hover {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}
.package.featured .item-count {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.package .item-count {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.package.featured .item-count { border-color: var(--gold-light); color: var(--gold-light); }
.package .price-original {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  text-decoration: line-through;
  margin-top: 0.4rem;
  display: block;
}
.package details {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
}
.package details summary {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  cursor: pointer;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.package details summary::-webkit-details-marker { display: none; }
.package details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 400;
}
.package details[open] summary::after { content: '−'; }
.package .items-list {
  list-style: none;
  text-align: left;
  margin: 0.8rem 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}
.package .items-list li {
  padding: 0.4rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 1.2rem;
  color: var(--charcoal-soft);
  line-height: 1.4;
}
.package .items-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.package-image {
  margin: -2.5rem -1.6rem 1.5rem;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Small inline device thumbnail used in tier cards (portrait sources) */
.tier-device-thumb {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3/4;
  margin: 0 auto 1.6rem;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.tier-device-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.package-tier {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}
.package h3 {
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.package h3.th { font-family: var(--serif-th); }
.package .price {
  font-family: var(--serif-en);
  font-size: 2.4rem;
  margin: 1rem 0 0.2rem;
}
.package .price-note {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 1.5rem;
}
.package ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.package ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}
.package ul li.th { font-family: var(--sans-th); }
.package ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* =========================================================
   CTA strip
   ========================================================= */
.cta-strip {
  background: var(--charcoal);
  color: var(--bg);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--serif-en);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.cta-strip h2.th { font-family: var(--serif-th); }
.cta-strip p {
  color: rgba(250,248,244,0.75);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.cta-strip p.th { font-family: var(--sans-th); }
.cta-strip .btn-outline {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.cta-strip .btn-outline:hover {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { border-top: 1px solid var(--line); }
.contact-info .item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
}
.contact-info .label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 4px;
}
.contact-info .value {
  font-family: var(--serif-en);
  font-size: 1.05rem;
  color: var(--charcoal);
}
.contact-info .value.th { font-family: var(--serif-th); }

.contact-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--sans-en);
  font-size: 0.95rem;
  color: var(--charcoal);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =========================================================
   Social / Contact section (plastic surgery)
   ========================================================= */
.social-section { background: var(--bg-alt); }
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 920px;
  margin: 0 auto;
}
.social-tile {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.3s ease;
  color: var(--charcoal);
}
.social-tile:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  color: var(--gold-deep);
}
.social-tile .social-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
}
.social-tile .social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.social-tile .social-meta { min-width: 0; flex: 1; }
.social-tile .social-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}
.social-tile .social-handle {
  font-family: var(--serif-en);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  word-break: break-all;
  line-height: 1.3;
}
.social-tile:hover .social-handle { color: var(--gold-deep); }
@media (max-width: 700px) {
  .social-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Doctor portrait (plastic surgery page)
   ========================================================= */
.doctor-portrait {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.doctor-portrait img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.doctor-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.doctor-portrait-name {
  font-family: var(--serif-th);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.doctor-portrait-name.en { font-family: var(--serif-en); }
.doctor-portrait-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* =========================================================
   Knowledge / Learn page helpers
   ========================================================= */
.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}
.compare-pair .compare-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
}
.compare-pair .compare-card.featured {
  border: 2px solid var(--gold);
}
.compare-pair .compare-card .icon-large {
  font-family: var(--serif-en);
  font-size: 1.4rem;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.compare-pair .compare-card h3 {
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.compare-pair .compare-card h3.th { font-family: var(--serif-th); }
.compare-pair .compare-card p {
  color: var(--charcoal-soft);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ahi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.ahi-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 1.4rem 1rem;
  text-align: center;
}
.ahi-card.mild { border-top: 3px solid #4a7b8c; }
.ahi-card.moderate { border-top: 3px solid var(--gold); }
.ahi-card.severe { border-top: 3px solid #6b1f1a; }
.ahi-card .ahi-value {
  font-family: var(--serif-en);
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.ahi-card .ahi-label {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}
.ahi-card .ahi-label.th { font-family: var(--sans-th); }
.ahi-card.mild .ahi-value { color: #4a7b8c; }
.ahi-card.moderate .ahi-value { color: var(--gold-deep); }
.ahi-card.severe .ahi-value { color: #6b1f1a; }

.treatment-list { max-width: 820px; margin: 0 auto; }
.treatment-card {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
}
.treatment-card.first-line { border-left-color: var(--charcoal); }
.treatment-card .num-circle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-en);
  color: var(--gold-deep);
  font-style: italic;
  font-size: 0.95rem;
}
.treatment-card.first-line .num-circle {
  background: var(--charcoal);
  color: var(--gold-light);
  border-color: var(--charcoal);
}
.treatment-card h3 {
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.treatment-card h3.th { font-family: var(--serif-th); }
.treatment-card p {
  color: var(--charcoal-soft);
  font-size: 0.92rem;
  margin: 0 0 0.6rem;
  line-height: 1.55;
}
.treatment-card p.th { font-family: var(--sans-th); }
.treatment-card .for-whom {
  font-size: 0.85rem;
  color: var(--gold-deep);
  font-style: italic;
  margin-bottom: 0;
}
.treatment-card .for-whom strong {
  color: var(--charcoal);
  font-weight: 500;
  font-style: normal;
}
.treatment-card ul {
  margin: 0.6rem 0;
  padding-left: 1.2rem;
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  list-style: none;
}
.treatment-card ul li {
  padding: 0.25rem 0 0.25rem 0.9rem;
  position: relative;
}
.treatment-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.risk-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.4rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.risk-list li {
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.92rem;
  position: relative;
}
.risk-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--gold);
  font-weight: 700;
}
.risk-list li.th { font-family: var(--sans-th); }

@media (max-width: 760px) {
  .compare-pair { grid-template-columns: 1fr; }
  .ahi-grid { grid-template-columns: 1fr; }
  .risk-list { grid-template-columns: 1fr; }
  .treatment-card { padding: 1.3rem 1.4rem; }
}

/* =========================================================
   STOP-Bang interactive quiz
   ========================================================= */
.quiz-section { background: var(--bg-alt); }
.quiz {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2.5rem 2.2rem;
  box-shadow: var(--shadow-soft);
  max-width: 760px;
  margin: 0 auto;
}
.quiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.quiz-progress-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  white-space: nowrap;
}
.quiz-progress-bar {
  flex: 1;
  height: 2px;
  background: var(--bg-alt);
  margin: 0 1.2rem;
  overflow: hidden;
  min-width: 60px;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0;
  transition: width 0.4s ease;
}
.quiz-question { display: none; }
.quiz-question.active { display: block; animation: quizFadeIn 0.35s ease; }
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz-letter {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-deep);
  text-align: center;
  line-height: 36px;
  font-weight: 500;
  margin-right: 0.8rem;
  font-family: var(--serif-en);
  font-size: 1rem;
  vertical-align: middle;
}
.quiz-q-title {
  font-family: var(--serif-en);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.quiz-q-title.th { font-family: var(--serif-th); }
.quiz-q-help {
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  padding-left: 46px;
  line-height: 1.5;
}
.quiz-q-help.th { font-family: var(--sans-th); }
.quiz-options {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.quiz-option {
  flex: 1;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--charcoal);
  transition: all 0.2s ease;
  text-align: center;
  border-radius: 0;
}
.quiz-option:hover { border-color: var(--gold); background: var(--bg-alt); }
.quiz-option.selected { border-color: var(--charcoal); background: var(--charcoal); color: var(--gold-light); }
.quiz-input-row { display: flex; gap: 0.8rem; margin-bottom: 1rem; }
.quiz-input-group { flex: 1; }
.quiz-input-group label {
  display: block; font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--charcoal-soft);
  margin-bottom: 0.5rem; font-weight: 500;
}
.quiz-input-group input {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line);
  font-size: 0.95rem; font-family: inherit; background: var(--bg); color: var(--charcoal);
}
.quiz-input-group input:focus { outline: none; border-color: var(--gold); background: var(--ivory); }
.quiz-bmi-result { font-size: 0.95rem; color: var(--gold-deep); font-weight: 500; margin-top: 0.6rem; display: none; }
.quiz-bmi-result.show { display: block; }
.btn-bmi-continue, .btn-age-continue { margin-top: 1.2rem; width: 100%; opacity: 0.4; cursor: not-allowed; }
.btn-bmi-continue.enabled, .btn-age-continue.enabled { opacity: 1; cursor: pointer; }

.result {
  display: none; background: var(--ivory); padding: 2.8rem 2.4rem;
  box-shadow: var(--shadow-card); max-width: 760px; margin: 0 auto;
  text-align: center; border: 1px solid var(--line);
}
.result.show { display: block; animation: quizFadeIn 0.45s ease; }
.result-badge {
  display: inline-block; padding: 0.5rem 1.4rem; font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem;
}
.result-badge.low { background: var(--bg-alt); color: var(--gold-deep); border: 1px solid var(--gold); }
.result-badge.intermediate { background: var(--charcoal); color: var(--gold-light); }
.result-badge.high { background: #6b1f1a; color: #fff; }
.result-score { font-family: var(--serif-en); font-size: 3.4rem; font-weight: 400; color: var(--charcoal); line-height: 1; margin: 0.8rem 0 0.3rem; }
.result-score-label { color: var(--charcoal-soft); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1.5rem; }
.result-message { background: var(--bg-alt); border-left: 3px solid var(--gold); padding: 1.4rem 1.6rem; text-align: left; margin-bottom: 1.5rem; }
.result-message h3 { font-family: var(--serif-en); font-weight: 500; font-size: 1.2rem; color: var(--charcoal); margin-bottom: 0.5rem; }
.result-message p { color: var(--charcoal-soft); margin: 0; font-size: 0.95rem; line-height: 1.6; }
.result-recommendation { background: var(--bg-alt); padding: 1.6rem 1.8rem; text-align: left; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.result-recommendation h3 { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.9rem; }
.result-recommendation ul { margin: 0; padding: 0; list-style: none; }
.result-recommendation li { margin-bottom: 0.7rem; padding-left: 1.2rem; position: relative; line-height: 1.55; color: var(--charcoal); font-size: 0.92rem; }
.result-recommendation li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 8px; height: 1px; background: var(--gold); }
.result-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.result-cta .btn { flex: 1; min-width: 180px; max-width: 280px; }
.result-restart { display: block; margin: 1rem auto 0; background: transparent; border: 0; color: var(--charcoal-soft); font-size: 0.85rem; cursor: pointer; text-decoration: underline; font-family: inherit; padding: 0.4rem 0.8rem; }
.result-restart:hover { color: var(--gold-deep); }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--charcoal); color: rgba(250,248,244,0.75); padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-inner h4 { font-family: var(--serif-en); font-weight: 400; font-size: 1rem; color: var(--gold-light); margin-bottom: 1.2rem; letter-spacing: 0.05em; }
.footer-inner ul { list-style: none; }
.footer-inner ul li { padding: 0.35rem 0; font-size: 0.9rem; }
.footer-inner ul a:hover { color: var(--gold-light); }
.footer-brand .mark-th { font-family: var(--serif-th); font-size: 1.4rem; color: var(--bg); font-weight: 500; }
.footer-brand .mark-en { font-family: var(--serif-en); font-style: italic; color: var(--gold-light); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.95rem; margin-top: 4px; display: block; }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 320px; }
.footer-bottom { max-width: 1280px; margin: 2rem auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: rgba(250,248,244,0.5); }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .package-grid.four-up { grid-template-columns: repeat(2, 1fr); }
  .package.featured { transform: none; }
}
@media (max-width: 960px) {
  .nav-inner { padding: 1rem 1.2rem; }
  nav.primary {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 80%; max-width: 320px;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 5rem 2rem 2rem;
    box-shadow: -8px 0 30px rgba(15, 23, 42,0.18);
    z-index: 200;
    overflow-y: auto;
  }
  nav.primary.open { transform: translateX(0); }
  nav.primary ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .menu-toggle { display: block; z-index: 201; position: relative; }
  .nav-cta .btn { display: none; }

  .hero-inner, .split, .doctor-card, .services-grid, .feature-grid,
  .package-grid, .package-grid.four-up, .contact-grid, .footer-inner,
  .axis-grid, .tier-body, .contact-qr-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .doctor-card { padding: 2rem; }
  section.section { padding: 4rem 1.2rem; }
  .hero-inner { padding: 4rem 1.2rem; }
  .page-hero { padding: 4rem 1.2rem 3rem; }

  nav.primary a { padding: 0.6rem 0; font-size: 1rem; }
  .btn { padding: 0.95rem 1.6rem; }
  .lang-toggle button, .lang-toggle a, .lang-toggle span { padding: 0.55rem 1rem; }

  .topbar-inner { justify-content: center; text-align: center; font-size: 0.72rem; gap: 0.2rem; }
  .topbar-inner span { display: block; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .tier-card { padding: 1.8rem 1.4rem; }
  .tier-card .tier-badge { left: 1.4rem; font-size: 0.65rem; padding: 0.4rem 0.9rem; }
  .tier-name { font-size: 1.25rem; }
  .contact-info .item { grid-template-columns: 100px 1fr; gap: 0.6rem; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 1rem; }
  .timeline .year { font-size: 1.15rem; }
  .hero-aside { aspect-ratio: 3/4; }
  .footer-inner { gap: 2rem; }
}
@media (max-width: 600px) {
  .quiz { padding: 1.8rem 1.4rem; }
  .quiz-q-title { font-size: 1.1rem; }
  .quiz-q-help { padding-left: 0; margin-top: 0.4rem; }
  .quiz-options { flex-direction: column; }
  .quiz-input-row { flex-direction: column; gap: 0.8rem; margin-bottom: 0.6rem; }
  .result { padding: 2rem 1.4rem; }
  .result-score { font-size: 2.6rem; }
  .result-cta { flex-direction: column; }
  .result-cta .btn { flex: none; width: 100%; max-width: 100%; }
}
@media (max-width: 480px) {
  section.section { padding: 3rem 1rem; }
  .hero-inner { padding: 3rem 1rem; }
  .page-hero { padding: 3rem 1rem 2.5rem; }
  .topbar-inner { padding: 0 1rem; }
  .nav-inner { padding: 0.9rem 1rem; gap: 1rem; }
  .brand .mark-th { font-size: 1.2rem; }
  .brand .mark-en { font-size: 0.85rem; letter-spacing: 0.14em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .section-head { margin-bottom: 2.5rem; }
  .section-head h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .package { padding: 2rem 1.2rem; }
  .doctor-card { padding: 1.4rem; gap: 2rem; }
  .contact-form { padding: 1.6rem 1.2rem; }
  .service-card { padding: 2.2rem 1.4rem; }
  .feature-tile { padding: 1.4rem 1.2rem; gap: 0.9rem; }
  .social-tile { padding: 1.1rem 1.2rem; gap: 0.9rem; }
  .tier-card { padding: 1.6rem 1.1rem; }
  .axis-card { padding: 1.8rem 1.4rem; }
}

/* ===== Mobile menu — robust override (final) ===== */
@media (max-width: 960px) {
  nav.primary {
    display: block !important;
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 82%;
    max-width: 340px;
    background: var(--bg) !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 4.5rem 1.6rem 2rem;
    box-shadow: -10px 0 40px rgba(15, 23, 42,0.20);
    z-index: 200;
    overflow-y: auto;
  }
  nav.primary.open { transform: translateX(0); }
  nav.primary ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  nav.primary li {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  nav.primary li:last-child {
    border-bottom: 0;
  }
  nav.primary a {
    display: block !important;
    width: 100%;
    padding: 1rem 0 !important;
    font-size: 1rem !important;
    color: var(--charcoal) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
  }
  nav.primary a:hover { color: var(--gold-deep) !important; }

  .menu-toggle {
    display: block !important;
    position: relative;
    z-index: 201;
  }

  /* Backdrop when menu open */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42,0.4);
    z-index: 150;
    backdrop-filter: blur(2px);
  }
}

/* ===== Mobile menu — backdrop click-through fix ===== */
@media (max-width: 960px) {
  body.menu-open::before {
    pointer-events: none !important;
  }
  nav.primary,
  nav.primary * {
    pointer-events: auto;
  }
}

/* ===== Mobile menu — final stacking fix ===== */
@media (max-width: 960px) {
  /* Boost the entire header above everything else */
  header.site-header { z-index: 1000 !important; }
  /* Disable backdrop overlay — it was creating stacking-context conflicts */
  body.menu-open::before { display: none !important; }
  body::before { display: none !important; }
  /* Ensure menu-toggle is always tappable */
  .menu-toggle {
    display: block !important;
    position: relative;
    z-index: 10;
  }
}

/* ===== Tier 1 — description left, image right ===== */
.tier-card.tier-1 .tier-body {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.tier-card.tier-1 .tier-visual {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  position: relative;
  max-width: 100%;
}
.tier-card.tier-1 .tier-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tier-card.tier-1 .tier-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 760px) {
  .tier-card.tier-1 .tier-body {
    grid-template-columns: 1fr;
  }
  .tier-card.tier-1 .tier-visual {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* =========================================================
   CPAP store — product grid, product card, badges, CTA
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.product-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-light);
}

.product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
}
.product-img.has-photo { background: #f1f5f9; }
.product-img .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ivory);
}
.product-img svg { width: 60%; height: 60%; }

.product-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--gold);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.product-tag.gold { background: var(--gold-deep); }

.product-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.product-body h3 {
  font-family: var(--serif-en);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 0;
}
.product-body .price {
  font-size: 1.05rem;
  color: var(--gold-deep);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.product-body p {
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.product-body .btn,
.product-body a.btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Rental card layout: horizontal on wider viewports */
.product-card.product-card-rental {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
.product-card.product-card-rental .product-img { aspect-ratio: auto; }
@media (max-width: 640px) {
  .product-card.product-card-rental {
    grid-template-columns: 1fr;
  }
}

/* Freebie / payment / CTA blocks reused on cpap page */
.info-callout {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 1.4rem 1.8rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--gold-deep);
}
.info-callout strong { color: var(--gold-deep); }
.info-callout-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.info-callout-body {
  margin: 0;
  font-size: 0.97rem;
}

.payment-card {
  background: var(--ivory);
  border: 2px solid var(--champagne);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.payment-card h3 {
  font-family: var(--serif-en);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  color: var(--charcoal);
}
.payment-card .note {
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  margin: 0.6rem 0 1.4rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1rem;
}

.cta-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.cta-banner h2 {
  font-family: var(--serif-en);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}
.cta-banner p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--charcoal-soft);
}

/* Strikethrough MSRP / savings badge */
.price-msrp {
  text-decoration: line-through;
  color: var(--charcoal-soft);
  font-weight: 500;
  font-size: 0.95rem;
  margin-right: 0.4rem;
}
.price-now {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.35rem;
}
.price-save {
  display: inline-block;
  background: #c1272d;
  color: var(--ivory);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Rental sub-heading */
.subsection-head {
  max-width: 720px;
  margin: 4rem auto 1.3rem;
  text-align: center;
}
.subsection-head .eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.subsection-head h3 {
  margin-top: 0.5rem;
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--charcoal);
}

/* CPAP page section background variation */
.section.section-alt { background: var(--bg-alt); }

/* =========================================================
   Partner Clinics — region blocks, clinic cards, map embeds
   ========================================================= */

.region-block { margin-bottom: 4rem; }
.region-block:last-child { margin-bottom: 0; }

.region-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.region-head h2 {
  font-family: var(--serif-en);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--gold-deep);
  margin: 0;
}
.region-head h2.th { font-family: var(--serif-th); }
.region-head .region-count {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--charcoal-soft);
  text-transform: uppercase;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.clinic-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.clinic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-light);
}

.clinic-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.clinic-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.clinic-body {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.clinic-body h3 {
  font-family: var(--serif-en);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}
.clinic-body h3.th { font-family: var(--serif-th); }
.clinic-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--charcoal-soft);
  font-size: 0.97rem;
}
.clinic-meta a { color: var(--gold-deep); font-weight: 600; }
.clinic-meta a:hover { text-decoration: underline; }
.clinic-card .btn { margin-top: auto; align-self: flex-start; }

/* Sub-area grouping (provinces within a region) */
.subarea {
  margin-bottom: 1.8rem;
}
.subarea-name {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--charcoal);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.subarea-name::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

/* Placeholder / coming-soon clinic slot */
.clinic-placeholder {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1.3rem 1.5rem;
  background: var(--bg-alt);
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}
.coming-soon-badge {
  display: inline-block;
  background: var(--champagne);
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
