/* ============================================================
   DAB HEALTH INNOVATIONS — STYLE SYSTEM v4
   Built by Encoded Noire · April 2026
   APPROACH: Content-first. Solid backgrounds. Text always visible.
   Images as accents, not section backgrounds.
   Ref sites: spabatonrouge.com, acadianapractitioners.com,
   theantiagingclinics.com
   ============================================================ */

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- BRAND TOKENS --- */
:root {
  --deep-navy: #112240;
  --deep-navy-rgb: 17, 34, 64;
  --navy: #1e3a6e;
  --navy-rgb: 30, 58, 110;
  --blue: #3a6b9f;
  --blue-rgb: 58, 107, 159;
  --blue-light: #5a8dbf;
  --blue-light-rgb: 90, 141, 191;
  --peach: #e8a87c;
  --peach-rgb: 232, 168, 124;
  --peach-light: #f2c4a0;
  --peach-light-rgb: 242, 196, 160;
  --blush: #fdf0e6;
  --blush-rgb: 253, 240, 230;
  --gold: #c9943a;
  --gold-rgb: 201, 148, 58;
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --charcoal: #2D2D2D;
  --charcoal-rgb: 45, 45, 45;
  --gray: #7a7a7a;
  --gray-light: #b8b8b8;
  --warm-gray: #f5f0eb;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Inter', Helvetica, sans-serif;
  --font-logo: 'Big Shoulders Text', sans-serif;

  --nav-height: 80px;
  --nav-height-mobile: 64px;
  --section-pad: clamp(64px, 8vw, 120px);
  --section-pad-sm: clamp(40px, 5vw, 64px);
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 780px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
}

/* --- LOADER --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--deep-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__bar { width: 160px; height: 2px; background: rgba(var(--peach-rgb), 0.2); border-radius: 2px; overflow: hidden; }
.loader__fill { height: 100%; width: 0%; background: var(--peach); border-radius: 2px; transition: width 0.2s ease; }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s;
}
.nav--transparent { background: transparent; }
.nav--solid {
  background: rgba(var(--deep-navy-rgb), 0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(12px);
}
.nav__brand { display: flex; align-items: center; }

/* LOGO — PROMINENT STACKED */
.nav__logo-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--blush);
  line-height: 0.95;
}
.nav__logo-text span {
  display: block;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--peach);
  margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2rem); }
.nav__link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush);
  transition: color 0.3s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--peach);
  transition: width 0.3s var(--ease-out-expo);
}
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__link:hover { color: var(--peach); }
.nav__cta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-navy);
  background: var(--peach);
  padding: 0.6rem 1.6rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}
.nav__cta:hover { background: var(--peach-light); transform: translateY(-1px); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px; width: 28px;
  z-index: 1001;
}
.nav__toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--blush); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.nav__mobile {
  position: fixed; inset: 0;
  background: rgba(var(--deep-navy-rgb), 0.98);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.8rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: 999;
}
.nav__mobile.open { transform: translateX(0); }
.nav__mobile .nav__link { font-size: 1.2rem; letter-spacing: 0.12em; }
.nav__mobile .nav__cta { font-size: 0.9rem; padding: 0.9rem 2.2rem; margin-top: 0.5rem; }

/* --- HERO — 16:9 to fit full video frame, no crop --- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: 0; z-index: 0;
}
.hero__bg img, .hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--deep-navy-rgb), 0.45) 0%,
    rgba(var(--deep-navy-rgb), 0.2) 40%,
    rgba(var(--deep-navy-rgb), 0.65) 100%);
  z-index: 1;
}
.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 2rem;
}
.hero__content .eyebrow { color: var(--peach); margin-bottom: 1rem; }
.hero__content h1 { color: var(--blush); margin-bottom: 1rem; font-weight: 500; }
.hero__content .lead {
  color: rgba(var(--blush-rgb), 0.85);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* Mobile-only logo inside hero — hidden on desktop, shown on mobile */
.hero__mobile-logo {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--blush);
  line-height: 0.95;
  text-align: left;
}
.hero__mobile-logo span {
  display: block;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--peach);
  margin-top: 3px;
}

/* Sub-page hero — 16:9 to fit full video frame */
.hero--short {
  aspect-ratio: 16 / 9;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}
.btn--peach { background: var(--peach); color: var(--deep-navy); }
.btn--peach:hover { background: var(--peach-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--peach-rgb), 0.3); }
.btn--outline { background: transparent; color: var(--blush); border: 1.5px solid rgba(var(--blush-rgb), 0.4); }
.btn--outline:hover { border-color: var(--peach); color: var(--peach); transform: translateY(-2px); }
.btn--navy { background: var(--deep-navy); color: var(--blush); }
.btn--navy:hover { background: var(--blue); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--deep-navy); }
.btn--white:hover { background: var(--blush); transform: translateY(-2px); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

/* --- SECTIONS (solid backgrounds, always visible) --- */
.section { padding: var(--section-pad) 0; }
.section--blush { background: var(--blush); }
.section--warm-gray { background: var(--warm-gray); }
.section--navy { background: var(--deep-navy); color: var(--blush); }
.section--navy .eyebrow { color: var(--peach); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue .eyebrow { color: var(--peach-light); }
.section--peach { background: var(--peach); }
.section--white { background: var(--white); }

.section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
}
.section__header h2 { margin-bottom: 0.75rem; }

/* --- SPLIT (2-col: image + text) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__img {
  position: relative;
  overflow: visible;
  border-radius: 4px;
}
.split__img img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5/4;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

/* ─── L-SHAPED PLACEHOLDER ACCENT ─── */
/* Single L-shaped block sits BEHIND the photo on two sides.
   Uses ::before as a full rectangle offset so two edges peek out,
   forming a clean L with no overlap at the corner.
   The photo (z-index:2) floats above; the accent (z-index:0) sits below.
   Default: bottom-right L. Reversed: bottom-left. Variants: top-left, top-right. */

.split__img::before {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--peach), var(--gold));
  opacity: 0.45;
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
/* Remove ::after — single element, no corner overlap */
.split__img::after { display: none; }

/* DEFAULT: accent peeks bottom + right */
.split__img::before {
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
}

/* REVERSED splits: accent peeks bottom + left */
.split--reverse .split__img::before {
  top: 14px;
  left: -14px;
  right: 14px;
  bottom: -14px;
}

/* VARIANT: top + left */
.l-accent--tl::before {
  top: -14px !important;
  left: -14px !important;
  right: 14px !important;
  bottom: 14px !important;
}

/* VARIANT: top + right */
.l-accent--tr::before {
  top: -14px !important;
  left: 14px !important;
  right: -14px !important;
  bottom: 14px !important;
}

/* Navy sections: blue-to-gold gradient */
.section--navy .split__img::before {
  background: linear-gradient(135deg, var(--blue-light), var(--gold));
}

/* Warm-gray sections: peach-to-gold */
.section--warm-gray .split__img::before {
  background: linear-gradient(135deg, var(--peach-light), var(--gold));
}

/* Hover: PHOTO rises further above the flat gradient */
.split:hover .split__img img {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.12);
}
.split:hover .split__img::before {
  opacity: 0.55;
}

/* Cards keep overflow hidden */
.card__img {
  overflow: hidden;
  border-radius: 4px;
}
.split__img--portrait img { aspect-ratio: 4/5; object-position: center 10%; object-fit: cover; }
.split__img--landscape img { aspect-ratio: 5/4; }
/* photo lift handled above in L-accent section */
.split__text h2 { margin-bottom: 0.75rem; }
.split__text p { margin-bottom: 1rem; line-height: 1.7; }
.split__text ul { margin: 1rem 0 1.5rem; }
.split__text li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}
.split__text li::before {
  content: ''; position: absolute;
  left: 0; top: 0.75rem;
  width: 6px; height: 6px;
  background: var(--peach);
  border-radius: 50%;
}
.section--navy .split__text li::before { background: var(--peach); }

/* --- TRUST STRIP --- */
.trust-strip {
  background: var(--deep-navy);
  padding: clamp(2rem, 3vw, 3rem) 0;
  border-top: 1px solid rgba(var(--peach-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--peach-rgb), 0.12);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-strip__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--peach);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.trust-strip__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(var(--blush-rgb), 0.6);
}

/* --- SERVICE CARDS --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(var(--deep-navy-rgb), 0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(var(--deep-navy-rgb), 0.08); }
.card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.card__body { padding: 1.5rem; }
.card__title {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.3rem;
}
.card__subtitle {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.card__text {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card__link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.card__link:hover { color: var(--peach); border-color: var(--peach); }

/* --- TESTIMONIALS --- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(var(--deep-navy-rgb), 0.06);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(var(--deep-navy-rgb), 0.1);
}
.testimonial__quote {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--peach);
  opacity: 0.35;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial__author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--deep-navy);
  letter-spacing: 0.02em;
}
.testimonial__role {
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.section--blush .testimonial {
  background: var(--white);
}

/* --- 5 DOORS (service lanes on homepage) --- */
.doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.door {
  position: relative;
  aspect-ratio: 9/16;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  cursor: pointer;
  transition: flex 0.4s var(--ease-out-expo);
}
.door__bg {
  position: absolute;
  inset: 0; z-index: 0;
}
.door__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.door:hover .door__bg img { transform: scale(1.05); }
.door__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(var(--deep-navy-rgb), 0.85) 100%);
  z-index: 1;
  transition: background 0.4s;
}
.door:hover .door__overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(var(--deep-navy-rgb), 0.9) 100%);
}
.door__content {
  position: relative; z-index: 2;
  color: var(--blush);
}
.door__number {
  font-family: var(--font-logo);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--peach);
  margin-bottom: 0.3rem;
}
.door__content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--white);
  margin-bottom: 0.4rem;
}
.door__content p {
  font-size: 0.8rem;
  color: rgba(var(--blush-rgb), 0.7);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), opacity 0.3s;
  opacity: 0;
}
.door:hover .door__content p { max-height: 120px; opacity: 1; }
.door__cta {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--peach);
  margin-top: 0.6rem;
  border-bottom: 1px solid var(--peach);
  padding-bottom: 2px;
}

/* --- CREDENTIAL TAGS --- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(var(--peach-rgb), 0.3);
  border-radius: 2px;
  color: var(--deep-navy);
  background: rgba(var(--peach-rgb), 0.08);
}
.section--navy .tag {
  border-color: rgba(var(--peach-rgb), 0.3);
  color: var(--blush);
  background: rgba(var(--peach-rgb), 0.1);
}

/* --- INFO BOX --- */
.info-box {
  background: rgba(var(--deep-navy-rgb), 0.04);
  border-left: 3px solid var(--peach);
  padding: 1.2rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
}
.section--navy .info-box {
  background: rgba(var(--blush-rgb), 0.06);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--peach);
  padding: clamp(3rem, 5vw, 5rem) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--deep-navy); margin-bottom: 0.75rem; }
.cta-banner p {
  color: rgba(var(--deep-navy-rgb), 0.75);
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 4vw, 4rem);
}
.contact-info__item { margin-bottom: 1.5rem; }
.contact-info__heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 0.35rem;
}
.contact-info__text { color: var(--charcoal); font-size: 0.95rem; line-height: 1.6; }
.contact-info__subtext { color: var(--gray); font-size: 0.85rem; }
.contact-info__link {
  color: var(--deep-navy);
  border-bottom: 1px solid rgba(var(--deep-navy-rgb), 0.15);
  transition: border-color 0.3s;
}
.contact-info__link:hover { border-color: var(--peach); }

/* Form */
.form__group { margin-bottom: 1rem; }
.form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-navy);
  margin-bottom: 0.35rem;
}
.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid rgba(var(--deep-navy-rgb), 0.1);
  border-radius: 3px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(var(--peach-rgb), 0.15);
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__honeypot { position: absolute; left: -9999px; }

/* --- FOOTER --- */
.footer {
  background: var(--deep-navy);
  color: var(--blush);
  padding: clamp(3rem, 5vw, 5rem) 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 2.5rem;
}
.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(var(--blush-rgb), 0.6);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1rem;
}
.footer__link {
  display: block;
  font-size: 0.85rem;
  color: rgba(var(--blush-rgb), 0.6);
  padding: 0.25rem 0;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--peach); }
.footer__bottom {
  border-top: 1px solid rgba(var(--blush-rgb), 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer__copy { font-size: 0.75rem; color: rgba(var(--blush-rgb), 0.4); }
.footer__credit { font-size: 0.7rem; color: rgba(var(--blush-rgb), 0.35); display: flex; align-items: center; gap: 0.4rem; }
.footer__credit a { color: var(--peach); display: inline-flex; align-items: center; }
.footer__en-logo { height: 1.6rem; width: auto; display: inline-block; opacity: 1; transition: opacity 0.3s; vertical-align: middle; }
.footer__en-logo:hover { opacity: 0.8; }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a { color: rgba(var(--blush-rgb), 0.4); transition: color 0.3s; }
.footer__social a:hover { color: var(--peach); }
.footer__social svg { width: 18px; height: 18px; }

/* --- SCROLL REVEAL --- */
.reveal, .slide-left, .slide-right, .scale-in, .fade-in {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal { transform: translateY(30px); }
.slide-left { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }
.scale-in { transform: scale(0.92); }
.fade-in { transform: none; }
.reveal.visible, .slide-left.visible, .slide-right.visible,
.scale-in.visible, .fade-in.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay utilities for staggering individual elements */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* Section-level reveal — entire sections fade/slide in */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kinetic text */
.kinetic-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.kinetic-text.visible .word { opacity: 1; transform: translateY(0); }

/* Image zoom-in on reveal */
.img-reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.img-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* Counter section pulse */
.trust-strip .trust-strip__number {
  transition: transform 0.6s var(--ease-out-expo);
}
.trust-strip.visible .trust-strip__number {
  animation: countPulse 0.6s var(--ease-out-expo);
}
@keyframes countPulse {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* CTA banner entrance */
.cta-banner { overflow: hidden; }
.cta-banner .reveal {
  transform: translateY(30px);
}

/* --- GRAIN --- */
.grain-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- RESPONSIVE --- */

/* ── TABLET (1024px) ── */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse { direction: ltr; }
  .split__img img { aspect-ratio: 5/4; }
  .split__img--portrait img { aspect-ratio: 4/5; object-position: center 10%; object-fit: cover; }
  .contact-grid { grid-template-columns: 1fr; }
  .doors { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Scale down L-accent on tablet */
  .split__img::before {
    top: 10px; left: 10px; right: -10px; bottom: -10px;
  }
  .split--reverse .split__img::before {
    left: -10px; right: 10px;
  }
}

/* ── MOBILE (768px) ── */
@media (max-width: 768px) {
  :root { --nav-height: var(--nav-height-mobile); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  /* Hide nav logo on mobile — it moves to hero bottom-left */
  .nav__brand { display: none; }
  /* Show the relocated logo at hero bottom-left */
  .hero__mobile-logo { display: block; }

  /* Shrink hero buttons on mobile so they clear the DAB logo */
  .hero .btn { font-size: 0.65rem; padding: 0.6rem 1.4rem; }
  .hero .btn-group { gap: 0.6rem; }

  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__number { font-size: clamp(1.6rem, 3vw, 2.2rem); }

  .card-grid { grid-template-columns: 1fr; }

  /* Doors: override 9:16 to 3:4 to prevent massive height */
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 200px; aspect-ratio: 4/3; }
  .door__content p { max-height: 120px; opacity: 1; }

  .footer__grid { grid-template-columns: 1fr; }

  /* Hero: ensure enough height for text on mobile */
  .hero { aspect-ratio: 16 / 9; }
  .hero--short { aspect-ratio: 16 / 9; }

  /* Hide L-accent on mobile — no room */
  .split__img::before { display: none; }

  /* Split images: tighter on mobile */
  .split { gap: 1.5rem; }
  .split__img img {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

  /* Info box: reduce padding */
  .info-box { padding: 1rem 1.2rem; }

  /* Contact: hide the clinic photo on mobile to save scroll */
  .contact-split-img { display: none; }

  /* Testimonials: single column on mobile */
  .testimonials { grid-template-columns: 1fr; }
  .testimonial { padding: 1.5rem; }
}

/* ── SMALL MOBILE (480px) ── */
@media (max-width: 480px) {
  .trust-strip__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .trust-strip__label { font-size: 0.65rem; letter-spacing: 0.1em; }
  .btn-group { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .btn { text-align: center; }
  .hero .btn { font-size: 0.6rem; padding: 0.5rem 1.2rem; }
  .hero .btn-group { gap: 0.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: clamp(1.5rem, 5vw, 1.8rem); }
  .nav__logo-text { font-size: 1.3rem; }

  /* Doors: even more compact */
  .door { aspect-ratio: 16/9; min-height: 160px; }

  /* Hero: compact on small screens */
  .hero { aspect-ratio: 16 / 9; }
  .hero--short { aspect-ratio: 16 / 9; }
  .hero__content .lead { font-size: 0.9rem; }

  /* Tags: smaller on mobile */
  .tag { font-size: 0.6rem; padding: 0.3rem 0.6rem; }

  /* Section padding: tighter */
  .section { padding: clamp(40px, 6vw, 64px) 0; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .slide-left, .slide-right,
  .scale-in, .fade-in, .section-reveal, .img-reveal { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; transform: none; }
  .kinetic-text .word { opacity: 1; transform: none; }
  .door__content p { max-height: 120px; opacity: 1; }
}
