/* ═══════════════════════════════════════════════════════════════════
   DERMAKEY — DRA. KEILY MOROS | styles.css
   Design system: Warm Editorial Minimal
   Fonts: Cormorant Garamond (headings) · Montserrat (body)
   Strategy: Mobile-first · CSS custom properties · BEM-lite
   ═══════════════════════════════════════════════════════════════════

   Table of contents
   ─────────────────
   1.  Design tokens
   2.  Reset & base
   3.  Typography utilities
   4.  Layout utilities
   5.  Accessibility
   6.  Buttons
   7.  Navigation
   8.  Hero
   9.  Stats bar
   10. Services grid
   11. Before / After
   12. Testimonials
   13. About doctor
   14. Contact form
   15. Footer
   16. Scroll-reveal animations
   17. AI Concierge Widget
   18. Responsive overrides (640 / 768 / 1024 / 1280)
   19. Reduced-motion
   ═══════════════════════════════════════════════════════════════════ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. DESIGN TOKENS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --color-bg:              #F8F5EE;
  --color-surface:         #FFFFFF;
  --color-muted:           #E6DCCF;
  --color-muted-deep:      #D4C9B8;
  --color-text:            #3A3A3A;
  --color-text-secondary:  #7A6E65;
  --color-text-tertiary:   #B5A898;
  --color-primary:         #3A3A3A;
  --color-primary-hover:   #222222;
  --color-accent:          #C4A882;
  --color-accent-subtle:   #F0E8DC;
  --color-whatsapp:        #25D366;
  --color-whatsapp-hover:  #1da851;
  --color-destructive:     #B91C1C;
  --color-focus-ring:      rgba(196, 168, 130, 0.45);

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Montserrat', system-ui, -apple-system, sans-serif;

  /* Fluid type scale — clamp(min, fluid, max) */
  --text-xs:    clamp(0.625rem,  1.5vw, 0.6875rem);  /* 10–11px */
  --text-sm:    clamp(0.75rem,   2vw,   0.8125rem);  /* 12–13px */
  --text-base:  clamp(0.9375rem, 2.5vw, 1rem);       /* 15–16px */
  --text-lg:    clamp(1rem,      2.8vw, 1.125rem);   /* 16–18px */
  --text-xl:    clamp(1.1rem,    3vw,   1.25rem);    /* 17–20px */
  --text-2xl:   clamp(1.25rem,   3.5vw, 1.5rem);    /* 20–24px */
  --text-3xl:   clamp(1.5rem,    4vw,   1.875rem);  /* 24–30px */
  --text-4xl:   clamp(1.75rem,   5vw,   2.25rem);   /* 28–36px */
  --text-5xl:   clamp(2.25rem,   6vw,   3rem);      /* 36–48px */
  --text-6xl:   clamp(2.75rem,   7vw,   3.75rem);   /* 44–60px */
  --text-hero:  clamp(2.5rem,    8vw,   4.5rem);    /* 40–72px */

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px  rgba(58,58,58,0.07);
  --shadow-md:  0 4px 12px rgba(58,58,58,0.09);
  --shadow-lg:  0 8px 32px rgba(58,58,58,0.12);
  --shadow-xl:  0 16px 48px rgba(58,58,58,0.15);

  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 340ms cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height:     88px;
  --container-pad:  var(--space-4);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. RESET & BASE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* fallback: iOS Safari < 16 & legacy browsers */
  overflow-x: clip;   /* preferred: clips without creating a scroll container,
                         so position:sticky on .site-header keeps working */
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* preferred */
  position: relative;
  width: 100%;
}

body.nav-open { overflow: hidden; }

img,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input,textarea,select { font-family: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. TYPOGRAPHY UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.overline {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.overline--light { color: var(--color-accent); opacity: 0.9; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}
.section-header--dark { margin-bottom: var(--space-10); }

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--color-text);
}
.section-heading--light { color: #FFFFFF; }

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-top: var(--space-4);
  max-width: 520px;
  margin-inline: auto;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. LAYOUT UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. ACCESSIBILITY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-text);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; outline: 3px solid var(--color-accent); outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ── Touch-action: remove 300ms tap delay on all interactive elements ── */
a, button, [role="button"],
.btn, .nav-link, .nav-toggle, .nav-logo,
.filmstrip-arrow, .ig-cta, .reel-tile,
.service-card, .ba-tab, .social-link,
.ai-toggle, .ai-chip {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition:
    background-color 0.4s ease-in-out,
    border-color     0.4s ease-in-out,
    box-shadow       0.4s ease-in-out,
    transform        0.15s ease-out;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); opacity: 0.88; }

.btn-primary:active {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn-secondary:active {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
  border: 1.5px solid var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
}

.btn-lg { min-height: 52px; padding: 0.875rem 2.25rem; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-muted);
  transition: box-shadow var(--transition-base);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  gap: 12px;
}
.nav-logo-img {
  height: 68px;
  width: auto;
  display: block;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  filter: sepia(0.12) brightness(0.88);
}
.nav-logo-img--footer {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: sepia(0.12) brightness(0.88);
}
.nav-logo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-text);
  line-height: 1;
}
.nav-logo-title {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 5px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.nav-toggle:hover { background: var(--color-accent-subtle); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 9998 !important;
  overflow-y: auto;
  border-top: 1px solid var(--color-muted);
}
.nav-menu.is-open { transform: translateX(0); }

.nav-links { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-link {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-muted);
  transition: color 0.4s ease-in-out, padding-left 0.4s ease-in-out;
}
.nav-link:hover { color: var(--color-accent); padding-left: var(--space-4); }
.nav-cta { width: 100%; justify-content: center; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  background: var(--color-bg);
  padding-block: var(--space-16) var(--space-12);
  overflow: hidden;
  position: relative;
}
/* ── Liquid Glow / Skin Radiance — slow warm light reflection ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 68% 32%, rgba(196,168,130,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 22% 78%, rgba(240,232,218,0.25) 0%, transparent 55%);
  animation: skin-radiance 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes skin-radiance {
  0%,100% { opacity: 0.65; transform: scale(1)    translate(0,    0   ); }
  33%      { opacity: 1;    transform: scale(1.05) translate(-2.5%, 2%  ); }
  66%      { opacity: 0.8;  transform: scale(1.02) translate(2%,  -1.5%); }
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 560px; text-align: center; }

.hero-heading {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.hero-heading em {
  font-style: italic;
  font-weight: 400;
  display: block;
}

.hero-body {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 440px;
  margin: 0 auto var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  will-change: transform;
}
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--color-muted) 0%, var(--color-muted-deep) 100%);
  box-shadow: var(--shadow-xl);
}
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -12px;
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 120px;
}
.hero-badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
}
.hero-badge-text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  line-height: 1.4;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8b. HERO 3D FLOATING PLANES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  overflow: hidden;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  background-image:
    linear-gradient(rgba(196,168,130,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,168,130,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(196,168,130,0.14) 0%, transparent 70%);
  pointer-events: none !important;
}

.hero-plane {
  position: absolute;
  border: 1.5px solid rgba(196,168,130,0.3);
  border-radius: 14px;
  background: rgba(196,168,130,0.04);
  will-change: transform;
  transition: transform 0.06s linear;
  pointer-events: none !important;
}

.hero-plane--1 {
  width: 380px;
  height: 260px;
  top: -60px;
  right: -80px;
  rotate: -9deg;
}

.hero-plane--2 {
  width: 200px;
  height: 150px;
  bottom: 40px;
  left: -40px;
  rotate: 7deg;
}

.hero-plane--3 {
  width: 90px;
  height: 90px;
  top: 45%;
  right: 28%;
  rotate: -4deg;
}

.hero-plane--4 {
  width: 44px;
  height: 44px;
  top: 38%;
  left: 35%;
  rotate: 14deg;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. STATS BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stats {
  background: var(--color-surface);
  border-block: 1px solid var(--color-muted);
  padding-block: var(--space-8);
}
.stats-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.stat-divider { width: 48px; height: 1px; background: var(--color-muted); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. SERVICES GRID
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.services {
  background: var(--color-bg);
  padding-block: var(--space-20);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.service-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg, var(--color-muted) 0%, var(--color-muted-deep) 100%);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.service-card:hover,
.service-card:active {
  transform: scale(1.04);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}
/* Override .fade-up.is-visible transform so hover/tap scale always works */
.service-card.is-visible:hover,
.service-card.is-visible:active { transform: scale(1.04); }
.service-card:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.service-img-wrap { position: absolute; inset: 0; }
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-img { transform: scale(1.06); }

.service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3) var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(25,20,15,0.88) 0%, rgba(25,20,15,0.32) 45%, transparent 100%);
  transition: background var(--transition-base);
}
.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(15,12,8,0.93) 0%, rgba(15,12,8,0.58) 55%, rgba(15,12,8,0.08) 100%);
}

.service-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 2px;
}
.service-desc {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-slow), margin var(--transition-slow);
  margin-bottom: 0;
}
.service-card:hover .service-desc { max-height: 80px; opacity: 1; margin-bottom: var(--space-2); }

.service-cta {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-slow);
  pointer-events: none;
}
.service-card:hover .service-cta { max-height: 24px; opacity: 1; }

.service-link-cover { position: absolute; inset: 0; z-index: 1; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. BEFORE / AFTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.before-after {
  background: var(--color-surface);
  padding-block: var(--space-20);
}
.ba-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }

.ba-card {
  background: var(--color-bg);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ba-pair { display: flex; position: relative; }
.ba-side {
  flex: 1;
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-muted) 0%, var(--color-muted-deep) 100%);
}
.ba-img-wrap { position: relative; width: 100%; height: 100%; }
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.ba-side:hover .ba-img { transform: scale(1.06); }
.ba-divider {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-surface);
  transform: translateX(-50%);
  z-index: 2;
}
.ba-badge {
  position: absolute;
  top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
}
.ba-badge--antes  { left: var(--space-3);  background: rgba(248,245,238,0.92); color: var(--color-text-secondary); }
.ba-badge--despues{ right: var(--space-3); background: var(--color-text); color: #FFFFFF; }

.ba-caption {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-muted);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.ba-treatment {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}
.ba-note {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. TESTIMONIALS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.testimonials {
  background: var(--color-text);
  padding-block: var(--space-20);
}
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.testimonial-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(196,168,130,0.3); }

.quote-icon { color: var(--color-accent); margin-bottom: var(--space-5); opacity: 0.7; }

.testimonial-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: #FFFFFF;
  line-height: 1.55;
  margin-bottom: var(--space-6);
}
.testimonial-footer { display: flex; flex-direction: column; gap: var(--space-1); }
.testimonial-author   { font-size: var(--text-sm);  font-weight: 600; color: #FFFFFF; }
.testimonial-treatment{ font-size: var(--text-xs);  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. ABOUT DOCTOR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about {
  background: var(--color-bg);
  padding-block: var(--space-20);
}
.about-inner { display: flex; flex-direction: column; gap: var(--space-10); align-items: center; }

.about-media { width: 100%; max-width: 360px; }
.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/6;
  background: linear-gradient(145deg, var(--color-muted) 0%, var(--color-muted-deep) 100%);
  box-shadow: var(--shadow-xl);
}
.about-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.about-content { max-width: 520px; text-align: center; }
.about-heading {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.about-rule {
  width: 48px;
  height: 1.5px;
  background: var(--color-accent);
  margin: 0 auto var(--space-6);
  border-radius: 2px;
}
.about-body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.credentials { display: flex; flex-direction: column; gap: var(--space-3); text-align: left; max-width: 340px; margin: var(--space-6) auto; }
.credential { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.credential-icon { flex-shrink: 0; color: var(--color-accent); }
.about-cta { margin-top: var(--space-6); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13b. FILMSTRIP — Experiencia DermaKey
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.filmstrip-section {
  background: #1E1610;
  padding: var(--space-16) 0 var(--space-20);
  position: relative;
  overflow: hidden;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #C4A882, transparent) 1;
}

.filmstrip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.filmstrip-header-left { flex: 1; }

.filmstrip-heading {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 300;
  color: #C4A882;
  line-height: 1.1;
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.filmstrip-heading em {
  font-style: italic;
  color: #F8F5EE;
}

.filmstrip-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(248,245,238,0.45);
  text-transform: uppercase;
}

.filmstrip-nav-btns {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: var(--space-1);
}

.filmstrip-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(196,168,130,0.4);
  border-radius: 50%;
  color: #C4A882;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.filmstrip-arrow:hover,
.filmstrip-arrow:active {
  background: rgba(196,168,130,0.15);
  border-color: #C4A882;
}
.filmstrip-arrow:active { transform: scale(0.93); }

.filmstrip-track-wrap {
  position: relative;
}
.filmstrip-track-wrap::before,
.filmstrip-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.filmstrip-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #1E1610, transparent);
}
.filmstrip-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, #1E1610, transparent);
}

.filmstrip-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-4) var(--space-6) var(--space-6);
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.filmstrip-track::-webkit-scrollbar { display: none; }
.filmstrip-track.is-dragging { cursor: grabbing; user-select: none; }

.reel-tile {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #2A2018;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.reel-tile:hover,
.reel-tile:active {
  transform: scale(1.04) translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.6);
}
.reel-tile--featured {
  width: 240px;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,14,8,0.88) 0%,
    rgba(20,14,8,0.18) 50%,
    transparent 100%
  );
}

.reel-mute-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.reel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
}

.reel-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C4A882;
  background: rgba(196,168,130,0.12);
  border: 1px solid rgba(196,168,130,0.3);
  border-radius: 20px;
  padding: 2px 8px;
  margin-bottom: var(--space-2);
}

.reel-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: #F8F5EE;
  line-height: 1.3;
  display: block;
}

.filmstrip-footer {
  margin-top: var(--space-8);
  text-align: center;
}

.ig-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C4A882;
  border: 1px solid rgba(196,168,130,0.4);
  border-radius: 40px;
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.ig-cta:hover,
.ig-cta:active {
  background: rgba(196,168,130,0.1);
  border-color: #C4A882;
  color: #F8F5EE;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. CONTACT FORM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact {
  background: var(--color-surface);
  border-top: 1px solid var(--color-muted);
  padding-block: var(--space-20);
}
.contact-inner { max-width: 700px; }

.contact-form  { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row      { display: flex; flex-direction: column; gap: var(--space-5); }
.form-group    { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
}
.form-required { color: var(--color-accent); margin-left: 2px; }

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-muted);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--color-text-tertiary); }
.form-input:hover  { border-color: var(--color-muted-deep); }
.form-input:focus  { outline: none; border-color: var(--color-text); background: var(--color-surface); box-shadow: 0 0 0 3px var(--color-focus-ring); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6E65' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-footer {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-2);
}
.form-note { font-size: var(--text-xs); color: var(--color-text-secondary); text-align: center; line-height: 1.6; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer { background: var(--color-bg); border-top: 1px solid var(--color-muted); }

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
  padding-block: var(--space-12);
}
.footer-brand  { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-tagline { font-size: var(--text-sm); font-style: italic; color: var(--color-text-secondary); font-family: var(--font-heading); }

.footer-nav ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-link   {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  transition: color 0.4s ease-in-out;
  padding-block: var(--space-1);
}
.footer-link:hover { color: var(--color-text); }

.footer-social-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-secondary); margin-bottom: var(--space-3); }
.social-links { display: flex; gap: var(--space-3); }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: color 0.4s ease-in-out, border-color 0.4s ease-in-out, background 0.4s ease-in-out;
}
.social-link:hover { color: var(--color-text); border-color: var(--color-text); background: var(--color-accent-subtle); }

.footer-bottom          { border-top: 1px solid var(--color-muted); padding-block: var(--space-5); }
.footer-bottom-inner    { display: flex; flex-direction: column; gap: var(--space-1); }
.footer-copy            { font-size: var(--text-xs); color: var(--color-text-secondary); line-height: 1.5; }
.footer-legal           { opacity: 0.75; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. SCROLL-REVEAL — .fade-up
       opacity:0 is the DEFAULT CSS state.
       IntersectionObserver adds .is-visible.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity   0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. AI CONCIERGE WIDGET
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Container — fixed bottom-right */
.ai-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

/* Notification dot */
.ai-notif {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}
.ai-notif.is-visible { opacity: 1; transform: scale(1); }

/* Toggle FAB button */
.ai-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--color-text);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--transition-fast),
    box-shadow  var(--transition-fast),
    transform   var(--transition-fast);
}
.ai-toggle:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}
.ai-toggle:active { transform: scale(0.96); }

/* Icon visibility */
.ai-icon { position: absolute; transition: opacity var(--transition-base), transform var(--transition-base); }
.ai-icon--chat  { opacity: 1; transform: rotate(0deg) scale(1); }
.ai-icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.ai-toggle.is-open .ai-icon--chat  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.ai-toggle.is-open .ai-icon--close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Chat panel */
.ai-panel {
  width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Closed state */
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition:
    opacity   0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}
.ai-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Panel header */
.ai-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-text);
  color: #FFFFFF;
  flex-shrink: 0;
}
.ai-avatar {
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  color: #FFFFFF;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.ai-header-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ai-header-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}
.ai-header-status {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.ai-status-dot {
  width: 7px;
  height: 7px;
  background: var(--color-whatsapp);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* Messages area */
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 140px;
  max-height: 220px;
  background: var(--color-bg);
  scroll-behavior: smooth;
}

/* Individual message bubble */
.ai-msg {
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-md) var(--radius-lg) var(--radius-lg) var(--radius-md);
  padding: var(--space-3) var(--space-4);
  max-width: 92%;
  align-self: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}
.ai-msg strong { font-weight: 600; color: var(--color-text); }

/* Typing indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-md) var(--radius-lg) var(--radius-lg) var(--radius-md);
  width: fit-content;
  min-width: 52px;
  box-shadow: var(--shadow-sm);
}
.ai-typing span {
  width: 7px;
  height: 7px;
  background: var(--color-muted-deep);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: typing-bounce 1.2s ease infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Action buttons */
.ai-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-muted);
  flex-shrink: 0;
  background: var(--color-surface);
}

.ai-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  transition:
    background var(--transition-fast),
    box-shadow  var(--transition-fast),
    transform   var(--transition-fast);
}
.ai-action-btn:active { transform: scale(0.98); }

/* Calendar / Calendly */
.ai-action-btn--calendar {
  background: var(--color-text);
  color: #FFFFFF;
}
.ai-action-btn--calendar:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

/* WhatsApp */
.ai-action-btn--whatsapp {
  background: var(--color-whatsapp);
  color: #FFFFFF;
}
.ai-action-btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
  box-shadow: var(--shadow-md);
}

/* Quick-reply chips */
.ai-quick-replies {
  padding: var(--space-3) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-top: 1px solid var(--color-muted);
  background: var(--color-bg);
}
.ai-chip {
  padding: 5px var(--space-3);
  border: 1px solid var(--color-muted-deep);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: var(--color-surface);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.ai-chip:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
  color: var(--color-text);
}

/* User message bubble */
.ai-msg--user {
  align-self: flex-end;
  background: var(--color-accent-subtle);
  border-color: var(--color-muted-deep);
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-md) var(--radius-lg);
}

/* Disclaimer footer */
.ai-footer-note {
  padding: var(--space-2) var(--space-5) var(--space-3);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  text-align: center;
  border-top: 1px solid var(--color-muted);
  background: var(--color-surface);
  text-transform: uppercase;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. RESPONSIVE OVERRIDES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── 640px ───────────────────────────────── */
@media (min-width: 640px) {
  :root { --container-pad: var(--space-8); }

  .stats-grid { flex-direction: row; justify-content: center; gap: var(--space-10); }
  .stat-divider { width: 1px; height: 48px; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

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

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

  .form-row { flex-direction: row; }
  .form-row .form-group { flex: 1; }
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-note { text-align: left; }

  .footer-top { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }

  .ai-panel { width: 340px; }
}

/* ── 768px ───────────────────────────────── */
@media (min-width: 768px) {
  :root { --container-pad: var(--space-10); --nav-height: 88px; }

  /* Nav: inline mode */
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
    overflow: visible;
  }
  .nav-links { flex-direction: row; gap: 0; }
  .nav-link {
    padding: var(--space-2) var(--space-3);
    border-bottom: none;
    font-size: 0.6875rem;
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-3);
    right: var(--space-3);
    height: 1.5px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease-in-out;
  }
  .nav-link:hover { color: var(--color-text); padding-left: var(--space-3); }
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-cta { width: auto; }

  /* Hero: side-by-side */
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-12); }
  .hero-content { text-align: left; flex: 1; }
  .hero-body { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-media { flex-shrink: 0; max-width: 340px; margin: 0; }

  /* About: side-by-side */
  .about-inner { flex-direction: row; align-items: flex-start; gap: var(--space-16); }
  .about-media { flex-shrink: 0; max-width: 300px; }
  .about-content { text-align: left; flex: 1; }
  .about-rule { margin-left: 0; }
  .credentials { margin-inline: 0; }

  /* Testimonials: 3-col */
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .section-heading { font-size: var(--text-5xl); }
}

/* ── 1024px ──────────────────────────────── */
@media (min-width: 1024px) {
  :root { --container-pad: var(--space-12); }

  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .service-name  { font-size: var(--text-2xl); }
  .service-desc  { font-size: var(--text-sm); }

  .hero-media    { max-width: 400px; }
  .about-media   { max-width: 380px; }
  .ba-grid       { gap: var(--space-10); }
}

/* ── 1280px ──────────────────────────────── */
@media (min-width: 1280px) {
  :root { --container-pad: var(--space-16); }

  .hero { padding-block: var(--space-24) var(--space-20); }
  .hero-media   { max-width: 440px; }
  .about-media  { max-width: 440px; }
  .about-heading{ font-size: var(--text-6xl); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19b. MOBILE LAYOUT (≤767px)
   Clean standard mobile fallback.
   All JS-based mousemove / scroll-parallax is
   disabled at this breakpoint (see JS guard).
   CSS keyframes provide the depth feel only.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Keyframes — defined globally so reduced-motion can override them */
@keyframes plane-float-a {
  0%,100% { transform: translate(0px,  0px); }
  40%      { transform: translate(5px, -10px); }
  70%      { transform: translate(-4px, 6px); }
}
@keyframes plane-float-b {
  0%,100% { transform: translate(0px,   0px); }
  35%      { transform: translate(-6px, -8px); }
  65%      { transform: translate(5px,  5px); }
}
@keyframes plane-float-c {
  0%,100% { transform: translate(0px, 0px); }
  50%      { transform: translate(4px, -6px); }
}
@keyframes plane-float-d {
  0%,100% { transform: translate(0px,  0px); }
  45%      { transform: translate(-3px, 5px); }
}

@media (max-width: 767px) {

  /* ── 1. Overflow prevention ───────────────────────── */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip; /* preferred if supported — preserves position:sticky */
  }

  /* ── 2. Navigation ────────────────────────────────── */
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: auto;
  }

  /* Allow logo to shrink so hamburger is never pushed off-screen */
  .nav-logo {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
  .nav-logo-info { min-width: 0; }
  .nav-logo-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hamburger: explicit top-level stack + always clickable */
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    position: relative;
    z-index: 10000;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* ── 3. Hero — disable JS-driven transforms ───────── */
  .hero-media {
    will-change: auto;
    transform: none !important;
  }

  /* Clamp plane sizes to viewport width so they never cause overflow */
  .hero-plane { will-change: auto; }
  .hero-plane--1 {
    width: min(280px, 80vw);
    right: -30px;
    animation: plane-float-a 11s ease-in-out infinite;
  }
  .hero-plane--2 {
    width: min(160px, 45vw);
    left: -20px;
    animation: plane-float-b  8s ease-in-out infinite -2s;
  }
  .hero-plane--3 { animation: plane-float-c  6s ease-in-out infinite -1s; }
  .hero-plane--4 { animation: plane-float-d  5s ease-in-out infinite -3s; }

  /* ── 4. AI Concierge Widget — bottom-right, clear of nav ── */
  .ai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: auto;
  }

  .ai-toggle {
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  /* Panel: full-width on small screens, max-height so it doesn't cover nav */
  .ai-panel {
    width: calc(100vw - 40px);
    max-width: 340px;
    max-height: 70vh;   /* leave room at top so panel never covers the nav */
    max-height: 70dvh;
  }

  /* ── 5. Filmstrip — native touch swipe ─────────────── */
  /* touch-action: pan-x lets the browser handle horizontal panning natively;
     the track's overflow-x: auto + scroll-snap-type handle the rest         */
  .filmstrip-track {
    touch-action: pan-x;
    cursor: default; /* remove grab cursor — touch devices don't need it */
  }
  .filmstrip-track.is-dragging { cursor: default; }

  /* ── 6. Dead buttons & links — force clickability ─── */
  /* Some stacking-context or transparent-overlay issue was swallowing clicks.
     Promote all interactive elements to their own stacking contexts.         */
  a,
  button,
  .btn,
  .nav-link,
  .footer-link,
  .social-link,
  .ig-cta,
  .service-link-cover,
  .ai-chip,
  .ai-action-btn,
  .filmstrip-arrow {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  /* ── 7. Scroll-reveal CSS fallback ─────────────────── */
  /* If IntersectionObserver fires too late or misses elements on mobile,
     this ensures .fade-up content is never stuck invisible              */
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. REDUCED-MOTION — must come last
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@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, .fade-up { opacity: 1; transform: none; }
  .fade-up.is-visible { opacity: 1; transform: none; }
  .service-img { transition: none; }
  .ba-img { transition: none; }
  .service-card { transition: none; }
  .hero::before { animation: none; }
  .hero-media { will-change: auto; transform: none !important; }
  .hero-plane { will-change: auto; transform: none !important; transition: none; }
  .ai-status-dot { animation: none; }
  .ai-typing span { animation: none; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   21. ANIMATION DEFINITIONS — canonical pinned copy
   (hero glow · scroll-reveal · card hover)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Hero background warm glow */
@keyframes skin-radiance {
  0%,100% { opacity: 0.65; transform: scale(1)    translate(0,     0    ); }
  33%      { opacity: 1;    transform: scale(1.05) translate(-2.5%, 2%   ); }
  66%      { opacity: 0.8;  transform: scale(1.02) translate(2%,   -1.5%); }
}

/* Scroll-reveal — opacity: 0 is the CSS default; JS adds .is-visible */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity   0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service card hover scale */
.service-card {
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.service-card:hover,
.service-card.is-visible:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}
