/* ==========================================================================
   EYES ON LEX - REDESIGNED DESIGN SYSTEM (SOFT & COZY PREMIUM AESTHETIC)
   ========================================================================== */

/* --- Typography & Theme Tokens --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Soft, Down-to-Earth Color Palette */
  --color-bg-base: hsl(35, 30%, 97%);        /* Soft warm cream / linen (#FAF7F2) */
  --color-bg-surface: hsl(0, 0%, 100%);      /* Pure white */
  --color-bg-dark: hsl(24, 10%, 11%);        /* Deep cocoa off-black */
  --color-bg-glass: rgba(250, 247, 242, 0.85); /* Semi-transparent warm cream */
  
  --color-text-primary: hsl(24, 14%, 18%);   /* Deep warm cocoa-charcoal */
  --color-text-secondary: hsl(24, 8%, 38%);  /* Muted cocoa-gray */
  --color-text-light: hsl(0, 0%, 100%);      /* Pure white for dark sections */
  --color-text-muted: hsl(24, 6%, 56%);      /* Very soft warm gray */

  --color-accent-terracotta: hsl(18, 38%, 56%); /* Primary Accent: Warm Clay / Terracotta */
  --color-accent-terracotta-hover: hsl(18, 42%, 46%);
  --color-accent-sage: hsl(95, 12%, 40%);    /* Secondary Accent: Soft Sage Green */
  --color-accent-sage-light: hsla(95, 12%, 40%, 0.08);
  --color-accent-sand: hsl(32, 22%, 82%);    /* Neutral Accent: Warm Sand Banner */
  --color-border: rgba(45, 35, 30, 0.08);    /* Extremely subtle warm border */
  
  --color-success: hsl(135, 35%, 45%);
  --color-danger: hsl(0, 65%, 50%);
 
  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing & Layout */
  --header-height: 100px;
  --header-height-shrink: 75px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow-soft: 0 10px 40px -10px rgba(45, 35, 30, 0.06);
  --shadow-hover: 0 20px 50px -15px rgba(45, 35, 30, 0.12);
  --shadow-dark: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   2026 EDITORIAL UPGRADE
   ========================================================================== */
:root {
  --color-bg-base: #f4f0e8;
  --color-bg-dark: #171714;
  --color-text-primary: #1a1a17;
  --color-text-secondary: #5b5a54;
  --color-accent-terracotta: #ae6249;
  --color-accent-terracotta-hover: #8e4936;
  --radius-sm: 999px;
}

body { letter-spacing: -0.01em; }
.container { max-width: 1280px; }
.header { height: 88px; box-shadow: none; background: rgba(255,255,255,.96); }
.header-container { width: min(94%, 1380px); max-width: 1380px; }
.nav-menu { width: 100%; gap: 25px; }
.nav-menu .logo { margin-right: auto; }
.logo img { height: 58px; }
.nav-link { font-size: .72rem; letter-spacing: .11em; }
.nav-item:last-child .nav-link {
  display: inline-flex; padding: 11px 19px; border: 1px solid #1a1a17; border-radius: 999px;
}

.hero-v2 {
  min-height: calc(100vh - 126px); display: flex; align-items: center;
  padding: clamp(70px, 8vw, 120px) 0; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(115deg, #f7f3ec 0%, #eee9df 100%);
}
.hero-v2::after {
  content: "EYES ON LEX"; position: absolute; right: -1vw; bottom: -5.3vw;
  font: 600 clamp(6rem, 14vw, 13rem)/1 var(--font-body); letter-spacing: -.08em;
  color: rgba(30,29,25,.035); white-space: nowrap; pointer-events: none;
}
.hero-v2 .hero-grid { grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr); gap: clamp(55px, 7vw, 110px); }
.hero-v2 .hero-content { max-width: 660px; position: relative; z-index: 2; }
.hero-v2 .hero-tagline, .section-kicker {
  display: inline-flex; align-items: center; gap: 12px; color: #8e4936; font-size: .74rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .17em; margin-bottom: 27px;
}
.hero-v2 .hero-tagline::before, .section-kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero-v2 .hero-title { font-size: clamp(4rem, 6.6vw, 7rem); line-height: .91; letter-spacing: -.055em; margin-bottom: 32px; font-weight: 500; }
.hero-v2 .hero-title em { color: #ae6249; font-weight: 400; }
.hero-v2 .hero-intro { max-width: 580px; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.65; color: #44433e; }
.hero-v2 .hero-highlight { border-left: 0; padding: 0; margin: 22px 0 0; max-width: 550px; font-size: .9rem; color: #66635d; }
.hero-v2 .hero-icons-row { margin-top: 29px; gap: 26px; border-top: 1px solid rgba(26,26,23,.12); padding-top: 22px; }
.hero-v2 .hero-icon-svg-box { display: none; }
.hero-v2 .hero-icon-item { flex-direction: row; gap: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: #3b3a35; }
.hero-v2 .hero-icon-item::before { content: "•"; color: #ae6249; font-size: 1.2rem; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.hero-actions .btn-primary { padding: 17px 27px; gap: 20px; font-size: .78rem; box-shadow: none; }
.hero-actions .btn-primary span { font-size: 1.1rem; }
.text-link { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid; padding-bottom: 4px; }

.hero-v2 .hero-visual-container { min-height: 610px; }
.hero-v2 .hero-dark-backdrop { inset: 7% -6% -4% 17%; border-radius: 220px 220px 28px 28px; background: #1b1b18; }
.hero-v2 .hero-image-block { inset: 0 5% 9% 0; border-radius: 220px 220px 26px 26px; overflow: hidden; box-shadow: 0 35px 75px rgba(20,20,18,.25); }
.hero-v2 .hero-fade-slider, .hero-v2 .hero-fade-slider img { border-radius: 0 !important; }
.hero-note { position: absolute; z-index: 5; right: -2%; bottom: 1%; padding: 20px 25px; background: #f8f4ec; font: 600 .76rem/1.45 var(--font-body); text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.hero-note span { display: block; color: #ae6249; margin-bottom: 4px; }

.trust-strip { background: #171714; color: #fff; padding: 30px 0; }
.trust-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.trust-strip-grid > * { min-height: 54px; padding: 0 48px; border-right: 1px solid rgba(255,255,255,.13); }
.trust-strip-grid > *:first-child { padding-left: 0; }
.trust-strip-grid > *:last-child { border: 0; padding-right: 0; }
.trust-strip p, .trust-strip a { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.trust-strip strong { font: 500 1.55rem/1.1 var(--font-display); color: #d89b85; }
.trust-strip span { font-size: .67rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.64); }
.trust-strip a strong { color: #fff; }
.trust-strip a span { color: #d89b85; }

.about-split-section { background: #fff; }
.about-split-grid { gap: clamp(60px, 8vw, 120px); }
.about-visual-box { min-height: 640px; border-radius: 4px !important; position: relative; }
.about-visual-box[data-image-tag]::after {
  content: attr(data-image-tag);
  position: absolute;
  left: 24px;
  bottom: 28px;
  max-width: calc(100% - 48px);
  color: white;
  background: #ae6249;
  padding: 13px 20px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.about-visual-box[data-image-tag-tone="sage"]::after {
  background: #667660;
}

.about-visual-box[data-image-tag-tone="dark"]::after {
  background: #171714;
}

.about-visual-box[data-image-tag-tone="light"]::after {
  color: #1a1a17;
  background: #f4f0e8;
}
.about-content-block h2 { font-size: clamp(3rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.045em; margin-bottom: 32px; }
.about-paragraph { font-size: 1.02rem; max-width: 590px; }

.care-section-v2 { background: #171714; }
.care-intro { display: grid; grid-template-columns: .7fr 1.35fr .8fr; gap: 50px; align-items: end; padding-bottom: 65px; border-bottom: 1px solid rgba(255,255,255,.15); }
.care-intro .section-kicker { align-self: start; color: #d89b85; }
.care-intro h2 { color: white; font-size: clamp(2.8rem, 4.7vw, 5rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.care-intro > p { color: rgba(255,255,255,.62); font-size: .95rem; }
.care-section-v2 .highlights-grid { margin-top: 0; gap: 0; }
.care-section-v2 .highlight-card { position: relative; background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.14); border-radius: 0; padding: 55px 45px 5px; min-height: 355px; }
.care-section-v2 .highlight-card:first-child { padding-left: 0; }
.care-section-v2 .highlight-card:last-child { border: 0; padding-right: 0; }
.care-section-v2 .highlight-icon-svg { display: none; }
.care-section-v2 .card-number { color: #d89b85; font-size: .7rem; letter-spacing: .14em; }
.care-section-v2 h3 { color: white; font-size: 1.9rem; margin: 50px 0 18px; }
.care-section-v2 .highlight-card p { color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.75; }
.care-section-v2 .highlight-card a { display: inline-block; margin-top: 30px; color: #d89b85; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.brands-section { background: #f4f0e8; }
.brands-headline { font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -.035em; }
.floating-appointment-btn { background: #ae6249; box-shadow: 0 12px 35px rgba(75,35,25,.25); }

@media (max-width: 900px) {
  .hero-v2 { padding: 55px 0 70px; }
  .hero-v2 .hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-v2 .hero-title { font-size: clamp(3.7rem, 14vw, 6rem); }
  .hero-v2 .hero-visual-container { min-height: 530px; }
  .trust-strip-grid { grid-template-columns: 1fr 1fr; gap: 25px 0; }
  .trust-strip-grid > *:nth-child(2) { border-right: 0; }
  .care-intro { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 600px) {
  .top-banner { font-size: .62rem; padding-right: 45px; }
  .hero-v2 .hero-title { font-size: 3.65rem; }
  .hero-v2 .hero-intro { font-size: 1rem; }
  .hero-v2 .hero-icons-row { flex-direction: column; gap: 5px; align-items: flex-start; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-v2 .hero-visual-container { min-height: 420px; }
  .hero-note { right: 0; }
  .trust-strip-grid { grid-template-columns: 1fr; }
  .trust-strip-grid > * { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); padding: 12px 0 20px; }
  .about-visual-box { min-height: 470px; }
  .about-content-block h2 { font-size: 3.15rem; }
  .care-section-v2 .highlights-grid { grid-template-columns: 1fr; }
  .care-section-v2 .highlight-card, .care-section-v2 .highlight-card:first-child { padding: 38px 0; min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .care-section-v2 h3 { margin-top: 22px; }
}

/* Compact appointment request */
.appointment-modal__dialog {
  width: min(100%, 700px);
  max-height: min(90vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 26px;
}

.appointment-modal__close {
  z-index: 5;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  transform: none !important;
}

.appointment-modal__close::before,
.appointment-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
}

.appointment-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.appointment-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.appointment-modal__close:hover,
.appointment-modal__close:focus-visible {
  background: #f1ebe2;
  color: var(--color-accent-terracotta-hover);
  border-color: rgba(142, 73, 54, .22);
}

.appointment-modal__intro {
  flex: 0 0 auto;
  max-width: none;
  margin: 0 52px 18px 0;
  padding: 0;
}

.appointment-modal__intro .badge { display: none; }
.appointment-modal__intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.08;
  margin-bottom: 7px;
}
.appointment-modal__intro p { font-size: .88rem; line-height: 1.5; }

.appointment-modal__form {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(174,98,73,.55) transparent;
}

.appointment-modal__form .form-row { gap: 12px; }
.appointment-modal__form .form-group { gap: 4px; }
.appointment-modal__form .form-group label {
  font-size: .66rem;
  letter-spacing: .07em;
}
.appointment-modal__form .form-group input,
.appointment-modal__form .form-group select,
.appointment-modal__form .form-group textarea {
  min-height: 40px;
  padding: 9px 13px;
  font-size: .82rem;
}
.appointment-modal__form .form-group textarea { min-height: 58px; }
.appointment-modal__form .checkbox-consent {
  align-items: center;
  margin-top: 0;
  font-size: .7rem;
  line-height: 1.35;
}
.appointment-modal__form .checkbox-consent input {
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  margin: 0;
}
.appointment-modal__submit {
  min-height: 44px;
  margin-top: 2px;
  font-size: .78rem;
}

/* 2026 Eye Care Journal */
.journal-grid--2026 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.journal-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 4vw, 42px);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.journal-card--featured {
  grid-column: 1 / -1;
  min-height: 340px;
  background: linear-gradient(120deg, rgba(109, 126, 97, .12), rgba(255, 255, 255, .82));
}

.journal-card__meta {
  color: var(--color-accent-sage);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.journal-card h3 {
  max-width: 820px;
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.journal-card p {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.journal-card .download-link-btn { margin-top: auto; }

/* Seasonal home-page popup */
.school-year-popup {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.school-year-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.school-year-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(24, 18, 15, .52);
  backdrop-filter: blur(6px);
  cursor: default;
}

.school-year-popup__card {
  position: relative;
  width: min(100%, 610px);
  padding: clamp(32px, 6vw, 58px);
  background: #f9f5ee;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 90px rgba(18, 12, 9, .34);
  transform: translateY(18px) scale(.98);
  transition: transform .28s ease;
}

.school-year-popup.active .school-year-popup__card { transform: none; }

.school-year-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: var(--color-text-primary);
  cursor: pointer;
}

.school-year-popup__close::before,
.school-year-popup__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1.5px;
  background: currentColor;
}
.school-year-popup__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.school-year-popup__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.school-year-popup__eyebrow {
  display: block;
  margin-bottom: 15px;
  color: var(--color-accent-terracotta);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.school-year-popup h2 {
  max-width: 470px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 7vw, 3.6rem);
  line-height: .98;
}

.school-year-popup p {
  max-width: 500px;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.school-year-popup__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.school-year-popup__later {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .journal-grid--2026 { grid-template-columns: 1fr; }
  .journal-card--featured { grid-column: auto; }
  .journal-card { min-height: 0; }
  .school-year-popup { padding: 12px; }
  .school-year-popup__card { padding: 56px 24px 28px; }
  .school-year-popup__actions { align-items: stretch; flex-direction: column; }
  .school-year-popup__actions .btn-primary { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .school-year-popup,
  .school-year-popup__card { transition: none; }
}

/* Journal article pages */
.article-hero {
  padding: clamp(70px, 10vw, 120px) 0 clamp(46px, 7vw, 78px);
  background: linear-gradient(135deg, #f4eee5, #fbf9f5);
  border-bottom: 1px solid var(--color-border);
}
.article-hero__inner { max-width: 930px; }
.article-hero__meta {
  display: block;
  margin-bottom: 18px;
  color: var(--color-accent-sage);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: .98;
}
.article-hero__deck {
  max-width: 760px;
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(250px, 330px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(42px, 7vw, 90px);
}
.article-body { color: var(--color-text-secondary); font-size: 1.02rem; line-height: 1.8; }
.article-body > p:first-child { color: var(--color-text-primary); font-size: 1.18rem; }
.article-body h2 { margin: 46px 0 16px; color: var(--color-text-primary); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.article-body h3 { margin: 30px 0 10px; color: var(--color-text-primary); font-family: var(--font-display); font-size: 1.45rem; }
.article-body ul { display: grid; gap: 10px; margin: 18px 0 24px 22px; }
.article-body li::marker { color: var(--color-accent-terracotta); }
.article-body a { color: var(--color-accent-terracotta-hover); text-decoration: underline; text-underline-offset: 3px; }
.article-callout {
  margin: 34px 0;
  padding: 26px 28px;
  background: rgba(109,126,97,.1);
  border-left: 3px solid var(--color-accent-sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-primary);
}
.article-sidebar {
  position: sticky;
  top: 145px;
  padding: 30px;
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  color: var(--color-text-light);
}
.article-sidebar h2 { margin-bottom: 14px; color: inherit; font-size: 2rem; line-height: 1.08; }
.article-sidebar p { margin-bottom: 22px; color: rgba(255,255,255,.72); line-height: 1.6; }
.article-sidebar .btn-primary { width: 100%; justify-content: center; text-align: center; }
.article-disclaimer { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--color-border); font-size: .82rem; line-height: 1.6; }
.article-back { display: inline-flex; margin-top: 38px; font-weight: 700; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 600px) {
  .appointment-modal { padding: 10px; align-items: center; }
  .appointment-modal__dialog { max-height: 94vh; padding: 22px 18px 18px; }
  .appointment-modal__intro { margin-right: 44px; margin-bottom: 14px; text-align: left; }
  .appointment-modal__intro h2 { font-size: 1.65rem; }
  .appointment-modal__form .form-row { grid-template-columns: 1fr; gap: 10px; }
}

/* Mobile UX hardening */
@media (max-width: 768px) {
  .top-banner { min-height: 44px; padding-left: 44px; padding-right: 44px; }
  .top-banner-close {
    top: 50%; right: 0; width: 44px; height: 44px; padding: 0;
    display: grid; place-items: center; transform: translateY(-50%);
  }

  .mobile-header-bar { min-height: var(--header-height); }
  .mobile-header-bar .logo { min-width: 44px; min-height: 44px; display: flex; align-items: center; }
  .mobile-menu-toggle {
    width: 48px; height: 48px; min-width: 48px; padding: 11px 8px;
    align-items: center; justify-content: center; gap: 6px;
  }
  .mobile-menu-toggle span { width: 30px; }

  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; bottom: auto;
    height: calc(100dvh - var(--header-height)); width: 100%; max-width: none;
    padding: 18px max(20px, 6vw) 30px; gap: 8px;
  }
  .nav-link { min-height: 50px; display: flex; align-items: center; }
  .dropdown-menu a { min-height: 44px; display: flex; align-items: center; }

  .floating-appointment-tab { display: none !important; }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .appointment-modal__form .form-group input,
  .appointment-modal__form .form-group select,
  .appointment-modal__form .form-group textarea { font-size: 16px; }

  .checkbox-consent input,
  .appointment-modal__form .checkbox-consent input { min-width: 22px; width: 22px; height: 22px; min-height: 22px; }
  .appointment-modal__close { width: 44px; height: 44px; top: 10px; right: 10px; }
}

@media (max-width: 600px) {
  .hero-v2 { min-height: 0; padding: 44px 0 58px; }
  .hero-v2 .hero-grid { gap: 42px; }
  .hero-v2 .hero-title { margin-bottom: 22px; }
  .hero-v2 .hero-intro { line-height: 1.55; }
  .hero-v2 .hero-highlight { margin-top: 18px; }
  .hero-v2 .hero-icons-row { display: none; }
  .hero-v2 .hero-actions { margin-top: 26px; }
  .hero-v2 .hero-actions .btn-primary { width: 100%; max-width: none; min-height: 52px; }
  .section-padding { padding: 56px 0; }
}

/* Editorial article and clinical feature photography */
.article-feature-media {
  width: min(92%, 1180px);
  margin: clamp(28px, 5vw, 58px) auto 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-soft);
}

.article-feature-media img,
.clinical-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-feature-media--school img { object-position: center 34%; }
.article-feature-media--exam img { object-position: center 45%; }
.article-feature-media--sunglasses img { object-position: center 58%; }

.clinical-feature-media {
  position: relative;
  max-width: 1100px;
  margin: 0 auto clamp(42px, 6vw, 72px);
  aspect-ratio: 16 / 6.5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-soft);
}

.clinical-feature-media figcaption {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 30px);
  max-width: min(78%, 520px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 22, 19, 0.82);
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .article-feature-media { width: calc(100% - 32px); aspect-ratio: 4 / 3; border-radius: 18px; }
  .clinical-feature-media { aspect-ratio: 4 / 3; margin-bottom: 42px; border-radius: 18px; }
  .clinical-feature-media figcaption { left: 14px; right: 14px; bottom: 14px; max-width: none; border-radius: 14px; line-height: 1.4; }
}

/* Keep the compact header authoritative through the tablet/small-laptop range. */
@media (min-width: 769px) and (max-width: 1200px) {
  .header-container {
    width: min(94%, calc(100% - 32px));
  }

  .nav-menu {
    width: 100%;
    gap: 8px;
  }

  .nav-item:last-child .nav-link {
    width: 100%;
    display: flex;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
}

/* The close icon is drawn once with the two pseudo-element strokes. */
.appointment-modal__close {
  font-size: 0;
  line-height: 0;
}

/* Clean anchor landings below the sticky navigation */
html { scroll-padding-top: 130px; }
[id] { scroll-margin-top: 130px; }

/* Modern clinical services */
.services-detail-list.services-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.services-modern-grid .service-detail-item {
  position: relative;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  min-height: 260px;
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(45,35,30,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: none;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.services-modern-grid .service-detail-item:hover {
  transform: translateY(-3px);
  border-color: rgba(174,98,73,.35);
  background: #fff;
  box-shadow: 0 18px 45px rgba(45,35,30,.07);
}
.services-modern-grid .service-icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(174,98,73,.09);
  color: #9c513d;
  font-size: 0;
}
.services-modern-grid .service-icon-box svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.services-modern-grid .service-detail-info h3 {
  margin: 3px 0 14px;
  font-size: 1.65rem;
  letter-spacing: -.025em;
}
.services-modern-grid .service-detail-info p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: .94rem;
  line-height: 1.7;
}
.service-text-link {
  display: inline-flex;
  margin-top: 22px;
  color: #9c513d;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(156,81,61,.35);
  padding-bottom: 3px;
}
.service-text-link:hover { color: #713828; border-color: currentColor; }

@media (max-width: 768px) {
  html { scroll-padding-top: 108px; }
  [id] { scroll-margin-top: 108px; }
  .services-detail-list.services-modern-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-modern-grid .service-detail-item {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 0;
    padding: 26px 22px;
    text-align: left;
  }
  .services-modern-grid .service-icon-box { width: 42px; height: 42px; margin: 0; }
  .services-modern-grid .service-detail-info h3 { font-size: 1.45rem; }
  .service-text-link { min-height: 44px; align-items: center; }
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-terracotta) var(--color-bg-base);
  overflow-x: clip;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #171714;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.netlify-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-submit-error { margin-top: 16px; color: var(--color-danger); font-weight: 600; }

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: var(--radius-md);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* --- Container & Utilities --- */
.container {
  width: min(90%, calc(100% - 32px));
  max-width: 1140px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-sage-light);
  border: 1px solid hsla(95, 12%, 40%, 0.18);
  color: var(--color-accent-sage);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.text-center {
  text-align: center;
}

.heading-section {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.heading-section h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.heading-section p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

/* --- Buttons & UI Controls --- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent-terracotta);
  color: var(--color-bg-surface);
  box-shadow: 0 4px 14px hsla(18, 38%, 56%, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(18, 38%, 56%, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: rgba(45, 35, 30, 0.04);
  transform: translateY(-2px);
}

/* --- Top Announcement Banner --- */
.top-banner {
  background-color: var(--color-accent-sand);
  color: var(--color-text-primary);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-banner-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.top-banner-link:hover,
.top-banner-link:focus-visible {
  color: var(--color-accent-terracotta-hover);
  border-bottom-color: currentColor;
}

.top-banner-close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.top-banner-close:hover {
  opacity: 1;
}

/* --- Sticky Glassmorphic Header & Nav --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.header.sticky {
  height: var(--header-height-shrink);
  background-color: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header.menu-open,
.header.sticky.menu-open {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-bg-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 52px;
  width: auto;
  transition: var(--transition-smooth);
}

.header.sticky .logo img {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent-terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:last-child .nav-link::after {
  display: none;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-item:hover > .nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover, .nav-link.active, .nav-item:hover > .nav-link {
  color: var(--color-accent-terracotta);
}

.nav-link .arrow {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  transition: var(--transition-smooth);
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown Menu Overlay */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 12px;
  width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
  background-color: var(--color-accent-sage-light);
  color: var(--color-accent-terracotta);
}

.search-icon-nav {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 6px;
}

.search-icon-nav:hover {
  color: var(--color-accent-terracotta);
}

/* Mobile Menu Controls */
.mobile-header-bar {
  display: none;
}

.mobile-menu-toggle {
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-bounce);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* --- Rebuilt Home Hero Section --- */
.hero-section {
  position: relative;
  padding: 80px 0 120px;
  background-color: var(--color-bg-base);
  background-image: linear-gradient(rgba(250, 247, 242, 0.72), rgba(250, 247, 242, 0.72)), url('assets/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-terracotta);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.hero-highlight {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 35px;
  border-left: 3px solid var(--color-accent-terracotta);
  padding-left: 18px;
}

/* Feature Icons Row */
.hero-icons-row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.hero-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

.hero-icon-svg-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-terracotta);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
}

.hero-icon-item:hover .hero-icon-svg-box {
  transform: scale(1.1);
  background-color: var(--color-accent-sage-light);
  color: var(--color-accent-sage);
}

.hero-icon-svg-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Quick Scheduler Box */
.hero-quick-scheduler {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 580px;
}

.hero-quick-input {
  flex: 1;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.hero-quick-input:focus {
  border-color: var(--color-accent-terracotta);
  background-color: var(--color-bg-surface);
}

/* Hero Right: Overlapping Visual Container */
.hero-visual-container {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dark-backdrop {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 90%;
  height: 90%;
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.hero-image-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 85%;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-fade-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Beautiful Custom CSS Image Placeholder */
.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(32, 22%, 82%), hsl(18, 38%, 76%), hsl(95, 12%, 70%));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  text-align: center;
  padding: 24px;
}

.image-placeholder-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  35% { left: 100%; }
  100% { left: 100%; }
}

.image-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.85;
}

.image-placeholder-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.9;
}

.image-placeholder-sub {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  opacity: 0.6;
}

/* --- What Makes Us Unique Section (Rebuilt About Grid) --- */
.about-split-section {
  background-color: var(--color-bg-surface);
}

.about-split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-visual-box {
  position: relative;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.about-content-block h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 24px;
}

.about-label-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.about-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-terracotta);
}

.about-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.about-paragraph {
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  margin-bottom: 20px;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

.about-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
}

/* --- Dark Highlights Section (Rebuilt Quality/Informed/Comfortable) --- */
.dark-highlights-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.dark-highlights-section h1, .dark-highlights-section h2, .dark-highlights-section h3, .dark-highlights-section h4 {
  color: var(--color-text-light);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.highlight-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(18, 38, 56, 0.15);
  box-shadow: var(--shadow-dark);
}

.highlight-icon-svg {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: var(--color-accent-sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon-svg svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.highlight-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

/* --- Brands Showcase Section (Rebuilt Grid) --- */
.brands-section {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brands-headline {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 45px;
}

.brands-typography-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 980px;
  margin: 0 auto;
}

.brand-placeholder-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
  user-select: none;
}

.brand-placeholder-logo:hover {
  background-color: var(--color-bg-surface);
  border-color: var(--color-accent-terracotta);
  color: var(--color-accent-terracotta);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

/* --- Subpages Layout & Banners --- */
.subpage-banner {
  position: relative;
  background-color: var(--color-accent-sage-light);
  background-image: linear-gradient(rgba(250, 247, 242, 0.88), rgba(250, 247, 242, 0.88)), url('assets/lexington_ky.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
  padding: 70px 0;
}

.subpage-banner-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subpage-banner h1 {
  font-size: 2.5rem;
}

.breadcrumbs {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.breadcrumbs a {
  color: var(--color-accent-terracotta);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.inner-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.inner-grid.reverse .inner-img-card {
  order: -1;
}

.inner-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.inner-content p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.highlight-box {
  background-color: var(--color-accent-sage-light);
  border-left: 3px solid var(--color-accent-sage);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-primary);
  margin: 30px 0;
}

.sage-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.sage-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.sage-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-sage);
  font-weight: 700;
}

/* --- Services Directory Redo --- */
.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.service-detail-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 35px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.service-detail-item:hover {
  border-color: var(--color-accent-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-sage-light);
  color: var(--color-accent-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
}

.service-detail-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-detail-info p {
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

/* --- Patient Resources Grid --- */
.resource-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.resource-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

.resource-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.download-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.download-link-btn:hover {
  background-color: var(--color-accent-terracotta);
  color: var(--color-bg-surface);
  border-color: var(--color-accent-terracotta);
  transform: translateY(-1px);
}

.journal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.journal-grid .service-card {
  height: 100%;
  padding: clamp(28px, 3vw, 42px);
  text-align: left;
}

.journal-grid .service-card > div {
  width: 100%;
}

.journal-grid .download-link-btn {
  align-self: center;
  margin-top: 28px;
  min-width: 150px;
  text-decoration: none;
}

/* --- Contact & Custom Vector Map --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  font-size: 1.85rem;
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.info-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .icon {
  font-size: 1.35rem;
  color: var(--color-accent-terracotta);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2px;
}

.info-row h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.info-row p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

/* Redesigned Map Vector Box */
.map-frame-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-surface);
}

.google-map-embed {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map-directions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--color-border);
}

.map-directions-bar div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.map-directions-bar strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.map-directions-bar span {
  color: var(--color-text-secondary);
  font-size: .8rem;
}

.map-directions-bar a {
  flex: 0 0 auto;
  color: var(--color-accent-terracotta);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

@media (max-width: 480px) {
  .google-map-embed {
    height: 280px;
  }

  .map-directions-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.map-placeholder-box {
  height: 300px;
  background-color: hsl(30, 20%, 93%);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.map-road-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 25px 25px;
  background-image: 
    linear-gradient(to right, rgba(45, 35, 30, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 35, 30, 0.03) 1px, transparent 1px);
}

.map-highway {
  position: absolute;
  background-color: #EAE3D9;
}

.highway-nicholasville {
  left: 60%;
  top: 0;
  width: 22px;
  height: 100%;
  transform: rotate(10deg);
  background-color: #DFD7CC;
  border-left: 1px dashed rgba(45, 35, 30, 0.1);
  border-right: 1px dashed rgba(45, 35, 30, 0.1);
}

.highway-crossroad {
  top: 48%;
  left: 0;
  width: 100%;
  height: 14px;
  transform: rotate(-4deg);
}

.map-label {
  position: absolute;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.map-pin-pulse {
  position: absolute;
  top: 55%;
  left: 71%;
  width: 32px;
  height: 32px;
  background-color: hsla(18, 38%, 56%, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mapPulse 2s ease-out infinite;
}

@keyframes mapPulse {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.map-pin {
  position: absolute;
  top: 55%;
  left: 71%;
  width: 16px;
  height: 16px;
  background-color: var(--color-accent-terracotta);
  border: 2.5px solid var(--color-bg-surface);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 3px 6px rgba(45, 35, 30, 0.2);
  cursor: pointer;
}

.map-pin-tooltip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg); /* Counteract parent rotation */
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: 160px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-pin-tooltip h5 {
  font-size: 0.8rem;
  color: var(--color-accent-terracotta);
}

/* Appointment Form Elements */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group textarea {
  min-height: 96px;
  resize: vertical;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-accent-terracotta);
  background-color: var(--color-bg-surface);
  box-shadow: 0 0 10px hsla(18, 38%, 56%, 0.12);
}

.form-group input:user-invalid, .form-group select:user-invalid {
  border-color: var(--color-danger);
}

.error-msg {
  display: none;
  color: var(--color-danger);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 2px;
}

.checkbox-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-top: 5px;
}

.checkbox-consent input {
  margin-top: 4px;
  accent-color: var(--color-accent-terracotta);
}

/* --- Floating Appointment CTA & Modal --- */
.floating-appointment-tab {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 950;
  display: grid;
  gap: 2px;
  min-width: 154px;
  padding: 14px 18px;
  border-radius: 999px;
  background-color: var(--color-accent-terracotta);
  color: var(--color-bg-surface);
  box-shadow: 0 16px 38px rgba(45, 35, 30, 0.22);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.floating-appointment-tab:hover,
.floating-appointment-tab:focus-visible {
  background-color: var(--color-accent-terracotta-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(45, 35, 30, 0.28);
}

.floating-appointment-tab__label {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.floating-appointment-tab__sub {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.86;
}

.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.appointment-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.appointment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 15, 0.54);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.appointment-modal__dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(250, 247, 242, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(12, 9, 7, 0.35);
  padding: 38px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
}

.appointment-modal.active .appointment-modal__dialog {
  transform: translateY(0) scale(1);
}

.appointment-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.appointment-modal__close:hover,
.appointment-modal__close:focus-visible {
  color: var(--color-accent-terracotta);
  transform: rotate(90deg);
}

.appointment-modal__intro {
  max-width: 620px;
  margin-bottom: 26px;
  padding-right: 44px;
}

.appointment-modal__intro .badge {
  margin-bottom: 14px;
}

.appointment-modal__intro h2 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  margin-bottom: 12px;
}

.appointment-modal__intro p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.appointment-modal__form {
  gap: 16px;
}

.appointment-modal__form .form-row {
  gap: 14px;
}

.appointment-modal__form .form-group input,
.appointment-modal__form .form-group select,
.appointment-modal__form .form-group textarea {
  background-color: rgba(255, 255, 255, 0.74);
  border-color: rgba(45, 35, 30, 0.12);
  min-height: 48px;
}

.appointment-modal__submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-size: 0.95rem;
}

.appointment-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
  padding: 24px;
}

.appointment-success__icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--color-accent-sage-light);
  border: 2px solid var(--color-accent-sage);
  color: var(--color-accent-sage);
  font-size: 2.4rem;
  font-weight: 700;
}

.appointment-success h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.appointment-success p {
  max-width: 520px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* Success State Overlay Box */
#form-success-box {
  min-height: 380px;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: 70px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-top: 18px;
  line-height: 1.6;
}

.footer-brand .logo img {
  height: 48px;
}

.footer-column h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.footer-column a:hover {
  color: var(--color-accent-terracotta);
  padding-left: 4px;
}

.footer-hours-list li {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.footer-hours-list li strong {
  color: var(--color-text-primary);
}

.footer-hours-list .closed {
  color: var(--color-accent-terracotta);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* --- Responsive Breakthrough Breakpoints --- */
@media (max-width: 992px) {
  .floating-appointment-tab {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-intro, .hero-highlight {
    max-width: 600px;
  }

  .hero-highlight {
    border-left: none;
    border-bottom: 2px solid var(--color-accent-terracotta);
    padding-left: 0;
    padding-bottom: 12px;
  }

  .hero-icons-row {
    justify-content: center;
  }

  .hero-visual-container {
    max-width: 440px;
    height: 420px;
    margin: 0 auto;
  }

  .about-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual-box {
    max-width: 440px;
    height: 380px;
    margin: 0 auto;
    order: 2;
  }

  .about-content-block {
    width: min(100%, 700px);
    text-align: left;
  }

  .about-label-row {
    justify-content: flex-start;
  }

  .about-paragraph {
    max-width: 680px;
    line-height: 1.72;
  }

  .about-actions {
    justify-content: flex-start;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
  }

  .brands-typography-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .inner-grid, .inner-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .inner-grid.reverse .inner-img-card {
    order: 0;
  }

  .inner-img-card {
    max-width: 440px;
    margin: 0 auto;
  }

  .sage-list {
    align-items: center;
  }

  .sage-list li {
    padding-left: 24px;
    text-align: left;
  }

  .resource-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-card {
    max-width: 540px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .section-padding {
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.15;
  }

  h2,
  .heading-section h2,
  .about-content-block h2,
  .inner-content h2,
  .subpage-banner h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.25rem);
    line-height: 1.18;
  }

  h3 {
    line-height: 1.25;
  }

  .top-banner {
    padding: 9px 42px 9px 16px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .header-container {
    width: min(90%, calc(100% - 24px));
  }

  .logo img {
    height: 44px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: auto;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    background-color: var(--color-bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 28px max(24px, 7vw);
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    font-size: 1.05rem;
  }

  /* Accordion styles for submenus on mobile */
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: var(--color-bg-base);
    padding: 0;
    max-height: 0;
    overflow: hidden;
  }

  .nav-item.active-submenu .dropdown-menu {
    max-height: 500px;
    padding: 8px 14px;
    margin-top: 6px;
    border-radius: var(--radius-sm);
  }

  .brands-typography-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    padding: 64px 0 80px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .hero-intro,
  .hero-highlight {
    font-size: 1rem;
  }

  .hero-icons-row {
    width: 100%;
    gap: 14px;
  }

  .hero-icon-item {
    flex: 1;
    min-width: 0;
  }

  .hero-visual-container {
    width: min(100%, 360px);
    height: 340px;
  }

  .hero-dark-backdrop {
    right: 0;
    width: 92%;
  }

  .hero-image-block {
    width: 92%;
  }

  .about-visual-box {
    width: 100%;
    max-width: 420px;
    height: 360px !important;
    margin-inline: auto;
  }

  .about-actions {
    justify-content: flex-start;
  }

  .highlight-card {
    padding: 28px 22px;
  }

  .highlight-card h3 {
    width: 100%;
  }

  .subpage-banner {
    padding: 52px 0;
  }

  .breadcrumbs {
    line-height: 1.45;
  }

  .inner-content {
    max-width: 620px;
    margin-inline: auto;
  }

  .inner-content h2 {
    margin-bottom: 16px;
  }

  .sage-list {
    align-items: stretch;
  }

  .service-detail-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-icon-box {
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-card {
    width: 100%;
    padding: 28px 24px;
  }

  .floating-appointment-tab {
    right: 16px;
    bottom: 16px;
    min-width: 138px;
    padding: 12px 16px;
  }

  .appointment-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .appointment-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px;
    padding: 30px 22px 24px;
  }

  .appointment-modal__intro {
    padding-right: 36px;
  }

  .appointment-modal__intro h2 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Switch to the compact navigation before desktop labels can wrap. */
@media (max-width: 1200px) {
  .header-container {
    width: min(94%, calc(100% - 32px));
  }

  .mobile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-header-bar .logo {
    display: flex;
    align-items: center;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 11px 8px;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .mobile-menu-toggle span {
    width: 30px;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: calc(100dvh - var(--header-height));
    padding: 18px max(24px, 6vw) 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--color-bg-surface);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link,
  .nav-item:last-child .nav-link {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 1rem;
    white-space: nowrap;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: var(--color-bg-base);
  }

  .nav-item.active-submenu .dropdown-menu {
    max-height: 500px;
    padding: 8px 14px;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .section-padding {
    padding: 56px 0;
  }

  .badge,
  .hero-tagline,
  .brands-headline,
  .breadcrumbs {
    letter-spacing: 0;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 340px;
    min-height: 48px;
    padding-inline: 18px;
    text-align: center;
  }

  .floating-appointment-tab {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .floating-appointment-tab__sub {
    display: none;
  }

  .appointment-modal {
    padding: 8px;
  }

  .appointment-modal__dialog {
    padding: 28px 18px 22px;
  }

  .appointment-modal__close {
    top: 12px;
    right: 12px;
  }

  .appointment-modal__intro {
    padding-right: 34px;
  }

  .appointment-modal__form .form-row {
    grid-template-columns: 1fr;
  }

  .appointment-modal__submit {
    max-width: none;
  }

  .hero-quick-scheduler {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-icons-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-icon-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-visual-container {
    height: 300px;
  }

  .brands-headline {
    font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
    line-height: 1.35;
  }

  .brands-image-container img {
    max-width: 100%;
  }

  .brands-typography-grid {
    grid-template-columns: 1fr;
  }

  .resource-cards-grid,
  .inner-grid {
    gap: 24px;
  }
}

/* Final cascade overrides for the editorial homepage */
@media (min-width: 993px) {
  .header { height: 88px; box-shadow: none; }
  .header-container { width: min(94%, 1380px); max-width: 1380px; }
  .nav-menu { width: 100%; gap: 25px; }
  .nav-menu .logo { margin-right: auto; }
  .nav-item:last-child .nav-link { display: inline-flex; padding: 11px 19px; border: 1px solid #1a1a17; border-radius: 999px; }
}

@media (max-width: 600px) {
  .floating-appointment-tab { display: none !important; }
  .hero-v2 .hero-content { text-align: center; }
  .hero-v2 .hero-tagline { justify-content: center; }
  .hero-v2 .hero-tagline::before { display: none; }
  .hero-v2 .hero-highlight { border-left: 0; border-bottom: 1px solid #ae6249; padding: 0 0 14px; }
  .hero-v2 .hero-actions { align-items: stretch; }
  .hero-v2 .text-link { align-self: center; }
}

/* Final mobile cascade */
@media (max-width: 768px) {
  .top-banner { min-height: 44px; padding-left: 44px; padding-right: 44px; }
  .top-banner-close { top: 50%; right: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); }
  .mobile-header-bar { min-height: var(--header-height); }
  .mobile-header-bar .logo { min-width: 44px; min-height: 44px; display: flex; align-items: center; }
  .mobile-menu-toggle { width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 11px 8px; align-items: center; justify-content: center; gap: 6px; }
  .mobile-menu-toggle span { width: 30px; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; bottom: auto; height: calc(100dvh - var(--header-height)); width: 100%; max-width: none; padding: 18px max(20px, 6vw) 30px; gap: 8px; }
  .nav-link { min-height: 50px; display: flex; align-items: center; }
  .dropdown-menu a { min-height: 44px; display: flex; align-items: center; }
  .floating-appointment-tab { display: none !important; }
  .form-group input, .form-group select, .form-group textarea,
  .appointment-modal__form .form-group input, .appointment-modal__form .form-group select, .appointment-modal__form .form-group textarea { font-size: 16px; }
  .checkbox-consent input, .appointment-modal__form .checkbox-consent input { min-width: 22px; width: 22px; height: 22px; min-height: 22px; }
  .appointment-modal__close { width: 44px; height: 44px; top: 10px; right: 10px; }
}

@media (max-width: 600px) {
  .hero-v2 { min-height: 0; padding: 44px 0 58px; }
  .hero-v2 .hero-grid { gap: 42px; }
  .hero-v2 .hero-title { margin-bottom: 22px; }
  .hero-v2 .hero-intro { line-height: 1.55; }
  .hero-v2 .hero-highlight { margin-top: 18px; }
  .hero-v2 .hero-icons-row { display: none; }
  .hero-v2 .hero-actions { margin-top: 26px; }
  .hero-v2 .hero-actions .btn-primary { width: 100%; max-width: none; min-height: 52px; }
  .section-padding { padding: 56px 0; }
}
