/* ==========================================================================
   BRIGHTHAVEN DEVELOPMENTAL CENTER — STYLESHEET
   Design tokens: warm cream/beige base, deep sage green primary, richer
   teal accent, warm gold + clay highlights. Display face: Fraunces (warm
   humanist serif). Body/utility face: Inter.
   Signature motif: an organic "growth arc" divider + leaf-in-circle
   markers, used consistently at section transitions and as icon
   containers. 3D depth: perspective tilt on hero/photo/card elements,
   used sparingly and only on hover/pointer-move (see 3D INTERACTIONS).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-cream: #FBF7F0;
  --color-beige: #F2E9D8;
  --color-beige-dark: #E6D8BE;
  --color-sage: #5C8264;
  --color-sage-dark: #3F6146;
  --color-sage-tint: #E3EEE2;
  --color-teal: #24404E;
  --color-teal-light: #34534C;
  --color-navy: #1B2528;
  --color-text-muted: #5B6763;
  --color-gold: #C08F44;
  --color-gold-tint: #F3E4C6;
  --color-clay: #A8674A;
  --color-clay-tint: #F1DFD4;
  --color-white: #FFFFFF;
  --color-line: #E1D5BC;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(27, 37, 40, 0.07);
  --shadow-md: 0 12px 32px rgba(27, 37, 40, 0.10);
  --shadow-lg: 0 24px 56px rgba(27, 37, 40, 0.16);
  --shadow-3d: 0 30px 60px -10px rgba(27, 37, 40, 0.25), 0 10px 20px -8px rgba(27, 37, 40, 0.15);

  --container: 1180px;
  --header-h: 84px;
  --header-h-scrolled: 66px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--color-navy);
  background-color: var(--color-cream);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(92, 130, 100, 0.05) 0, transparent 32%),
    radial-gradient(circle at 96% 14%, rgba(192, 143, 68, 0.06) 0, transparent 30%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); }

p { color: var(--color-text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
  border-radius: 2px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 64px 0; }
.section--beige { background: var(--color-beige); }
.section--teal {
  background: var(--color-teal);
  color: var(--color-cream);
}
.section--teal h2, .section--teal h3 { color: var(--color-cream); }
.section--teal p { color: rgba(251, 248, 242, 0.78); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-sage);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-cream); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(251, 248, 242, 0.5);
  color: var(--color-cream);
}
.btn-outline-light:hover { background: var(--color-cream); color: var(--color-teal); }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn-gold:hover { background: #b78a48; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-scrolled .container { height: var(--header-h-scrolled); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--color-teal);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-sage-tint);
  transition: transform 0.3s var(--ease);
}
.site-header.is-scrolled .logo-mark { width: 34px; height: 34px; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-sage);
  border-radius: 2px;
  transition: right 0.28s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--color-sage-dark); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-white);
}
.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--color-navy);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--color-cream);
  padding: calc(var(--header-h) + 24px) 24px 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-navy);
}
.mobile-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border-bottom: none;
  box-sizing: border-box;
}
.mobile-nav-info { margin-top: 32px; font-size: 0.9rem; color: var(--color-text-muted); }
.mobile-nav-info a { display: inline; font-family: var(--font-body); font-size: 0.9rem; border: none; padding: 0; color: var(--color-sage-dark); }

body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy p { font-size: 1.1rem; max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; perspective: 1200px; }
.hero-blob {
  position: absolute;
  z-index: 0;
  border-radius: 45% 55% 60% 40% / 55% 40% 60% 45%;
  background: var(--color-sage-tint);
}
.hero-blob--1 { width: 92%; height: 92%; top: -6%; left: 4%; }
.hero-blob--2 {
  width: 40%; height: 40%; bottom: -8%; right: -6%;
  background: var(--color-gold-tint);
  border-radius: 60% 40% 45% 55% / 45% 55% 40% 60%;
}
.hero-image-frame {
  position: relative;
  z-index: 1;
  border-radius: 45% 55% 60% 40% / 55% 40% 60% 45%;
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow-lg);
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-note {
  position: absolute;
  z-index: 2;
  right: 6%;
  top: 8%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-sage); flex-shrink: 0; }

/* Simple in-view float for hero media */
.hero-media { animation: floatIn 1s var(--ease) both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { animation: riseIn 0.8s var(--ease) both; }
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.15s; }
.hero-copy p { animation-delay: 0.25s; }
.hero-copy .hero-actions { animation-delay: 0.35s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Growth-arc divider (signature motif) ---------- */
.arc-divider {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: -1px;
}
.arc-divider path { fill: var(--color-beige); }
.arc-divider--to-cream path { fill: var(--color-cream); }
.arc-divider--to-teal path { fill: var(--color-teal); }

/* ---------- Image placeholders ----------
   Styled to read as an actual photo tile (soft duotone scene + gentle
   figure motif) rather than an empty block, so layouts look finished
   even before real photography is dropped in. Swap for a plain <img>
   using the filename shown in the label — see images/README.md.
---------------------------------------------------------------------- */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(155deg, var(--color-sage-tint) 0%, var(--color-beige-dark) 100%);
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 22%, rgba(107,143,113,0.22) 0, transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(199,154,86,0.22) 0, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(47,72,88,0.06) 0, transparent 60%);
}
.img-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 62%;
  height: 58%;
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cg fill='none' stroke='%232F4858' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='60' cy='34' r='14'/%3E%3Cpath d='M34 100c0-22 12-38 26-38s26 16 26 38'/%3E%3Ccircle cx='140' cy='44' r='10'/%3E%3Cpath d='M118 100c0-18 10-32 22-32s22 14 22 32'/%3E%3C/g%3E%3C/svg%3E");
}
.img-placeholder__label {
  position: relative;
  z-index: 1;
  margin: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.02em;
}
.img-placeholder--banner { min-height: 280px; align-items: center; justify-content: center; }
.img-placeholder--banner::after { width: 38%; height: 70%; opacity: 0.3; }
.img-placeholder--compact { min-height: 160px; }

/* ---------- Trust / value cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.icon-badge {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--color-sage-tint);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--color-sage-dark); }
.value-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.value-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Two-column feature (about preview) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media .img-placeholder,
.split-media img { border-radius: var(--radius-lg); aspect-ratio: 4/3.4; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { margin-bottom: 16px; }
.split-copy .btn { margin-top: 10px; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }

.check-list { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: var(--color-navy); }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--color-sage-dark); margin-top: 2px; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 0 24px 32px;
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card-media {
  margin: 0 -24px 20px;
  overflow: hidden;
}
.service-card-media .img-placeholder { min-height: 150px; border-radius: 0; }
.service-card-media .img-placeholder,
.service-card-media img { transition: transform 0.5s var(--ease); }
.service-card:hover .service-card-media .img-placeholder,
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card .icon-badge { margin-top: 4px; }
.service-card h3 { margin: 4px 0 10px; }
.service-card p { font-size: 0.94rem; margin-bottom: 20px; flex-grow: 1; }
.service-card .link-arrow { font-weight: 600; font-size: 0.9rem; color: var(--color-sage-dark); display: inline-flex; align-items: center; gap: 6px; }
.service-card .link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.service-card:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.why-item { display: flex; gap: 18px; }
.why-item .icon-badge { background: rgba(251,248,242,0.14); flex-shrink: 0; }
.why-item .icon-badge svg { stroke: var(--color-gold); }
.why-item h3 { margin-bottom: 6px; }
.section--teal .why-item p { font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.form-card--on-beige { background: var(--color-white); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--color-navy); }
.field .req { color: var(--color-sage-dark); }
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--color-cream);
  color: var(--color-navy);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  background: var(--color-white);
}
.field textarea { resize: vertical; min-height: 100px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C0554B; background: #FCF3F1; }
.field-error {
  font-size: 0.78rem;
  color: #C0554B;
  min-height: 16px;
  display: none;
}
.field.has-error .field-error { display: block; }
.form-foot { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); }

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  background: var(--color-sage-tint);
  border: 1px solid var(--color-sage);
  color: var(--color-sage-dark);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 18px;
}
.form-success.is-visible { display: flex; }
.form-success svg { flex-shrink: 0; width: 22px; height: 22px; }

.form-error {
  display: none;
  align-items: center;
  gap: 14px;
  background: #FCF3F1;
  border: 1px solid #C0554B;
  color: #a5443b;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 18px;
}
.form-error.is-visible { display: flex; }
.form-error svg { flex-shrink: 0; width: 22px; height: 22px; }

.contact-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info-card {
  background: var(--color-teal);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-info-card h3 { color: var(--color-cream); margin-bottom: 4px; }
.contact-info-card .tagline { color: var(--color-gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 26px; }
.info-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.info-row .icon-badge { width: 42px; height: 42px; background: rgba(251,248,242,0.12); flex-shrink: 0; }
.info-row .icon-badge svg { width: 20px; height: 20px; stroke: var(--color-gold); }
.info-row h4 { color: var(--color-cream); font-size: 0.95rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.info-row p, .info-row a { color: rgba(251,248,242,0.82); font-size: 0.93rem; }
.info-row a:hover { color: var(--color-gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(251, 248, 242, 0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(251, 248, 242, 0.12);
}
.footer-brand .logo { color: var(--color-cream); }
.footer-brand .logo-mark { background: rgba(251,248,242,0.1); }
.footer-brand .logo-mark svg { stroke: var(--color-gold); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 280px; color: rgba(251,248,242,0.6); }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--color-cream);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span, .footer-col p { font-size: 0.92rem; color: rgba(251,248,242,0.68); }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 0.82rem;
  color: rgba(251,248,242,0.55);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: var(--color-gold); }
.footer-credit {
  display: inline-block;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(251, 248, 242, 0.25);
  color: rgba(251, 248, 242, 0.45);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 72px;
  background: var(--color-beige);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { max-width: 760px; margin: 0 auto 16px; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--color-sage-dark); font-weight: 600; }

.page-hero-image {
  margin-top: 40px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.page-hero-image .img-placeholder {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/7;
  min-height: 260px;
}

/* Small supporting image used beside short copy blocks (Why Choose Us, forms) */
.support-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.support-media .img-placeholder { aspect-ratio: 4/3.2; min-height: 200px; }

/* Full-width welcome/CTA banner with overlay text */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner .img-placeholder { aspect-ratio: 16/6; min-height: 260px; }
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: linear-gradient(180deg, rgba(31,43,46,0.12) 0%, rgba(31,43,46,0.62) 100%);
}
.cta-banner-overlay h2, .cta-banner-overlay p { color: var(--color-cream); }
.cta-banner-overlay p { color: rgba(251,248,242,0.85); margin: 12px 0 24px; max-width: 480px; }

/* ---------- Approach timeline (About) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}
.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-marker .icon-badge { background: var(--color-sage); margin-bottom: 0; }
.timeline-marker .icon-badge svg { stroke: var(--color-cream); }
.timeline-marker .line { flex-grow: 1; width: 2px; background: var(--color-line); margin: 6px 0; min-height: 40px; }
.timeline-step:last-child .timeline-marker .line { display: none; }
.timeline-content { padding-bottom: 44px; }
.timeline-content h3 { margin-bottom: 6px; }
.timeline-content p { margin: 0; }

/* ---------- Services page detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--color-line);
  perspective: 1000px;
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .service-detail-media { order: 2; }
.service-detail.reverse .service-detail-copy { order: 1; }
.service-detail-media .img-placeholder { border-radius: var(--radius-lg); aspect-ratio: 4/3.3; }
.service-detail-copy .eyebrow { margin-bottom: 10px; }
.service-detail-copy h2 { margin-bottom: 16px; }
.service-detail-copy > p { margin-bottom: 20px; }
.support-list { display: grid; gap: 10px; margin-bottom: 26px; }
.support-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--color-navy);
  background: var(--color-beige);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.support-list svg { width: 18px; height: 18px; stroke: var(--color-sage-dark); flex-shrink: 0; margin-top: 2px; }

.disclaimer-bar {
  background: var(--color-gold-tint);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-size: 0.88rem;
  color: var(--color-navy);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.disclaimer-bar svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--color-gold); margin-top: 1px; }

/* ---------- Facilities gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.span-2-2 { grid-column: span 2; grid-row: span 2; }
.gallery-item.span-2-1 { grid-column: span 2; }
.gallery-item.span-1-2 { grid-row: span 2; }
.gallery-item img,
.gallery-item .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img,
.gallery-item:hover .img-placeholder { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(31,43,46,0.75), transparent);
  color: var(--color-cream);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(31, 43, 46, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; }
.lightbox-frame { border-radius: var(--radius-md); overflow: hidden; }
.lightbox-frame .img-placeholder { min-height: 420px; }
.lightbox-caption { color: var(--color-cream); text-align: center; margin-top: 16px; font-size: 0.95rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(251,248,242,0.12);
  border: 1px solid rgba(251,248,242,0.3);
  color: var(--color-cream);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Facilities features ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/6.2;
  border: 1px solid var(--color-line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  background: var(--color-beige);
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.18s; }
.reveal-3 { transition-delay: 0.28s; }
.reveal-4 { transition-delay: 0.38s; }
.reveal-5 { transition-delay: 0.48s; }
.reveal-6 { transition-delay: 0.58s; }

/* Dedicated reveal for photography: a slower, slightly scaled fade-in
   that reads as an image settling into place rather than a card rising. */
.img-reveal {
  opacity: 0;
  transform: translateY(28px) scale(1.02);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.img-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Gentle text reveal for headings/eyebrows entering view */
.text-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.text-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Page load / page transition ----------
   .page-enter fades the whole document in on load; .page-exit fades it
   out briefly when navigating to another internal page, so moving
   between pages feels like a soft crossfade instead of an abrupt reload.
---------------------------------------------------------------------- */
body.page-enter {
  opacity: 0;
}
body.page-enter.is-ready {
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
body.page-exit {
  opacity: 0;
  transition: opacity 0.28s ease;
}
@media (prefers-reduced-motion: reduce) {
  body.page-enter, body.page-enter.is-ready, body.page-exit { opacity: 1 !important; transition: none !important; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-md > * + * { margin-top: 16px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Quick-contact strip (below hero) ---------- */
.quick-contact-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.quick-contact-copy { flex-shrink: 0; min-width: 180px; }
.quick-contact-copy h3 { margin-bottom: 2px; font-size: 1.15rem; }
.quick-contact-copy p { font-size: 0.9rem; margin: 0; }
.quick-contact-form {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-grow: 1;
  flex-wrap: wrap;
}
.quick-contact-form .field { flex: 1 1 160px; margin-bottom: 0; }
.quick-contact-form input {
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--color-cream);
  color: var(--color-navy);
  width: 100%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.quick-contact-form input:focus { outline: none; border-color: var(--color-sage); background: var(--color-white); }
.quick-contact-form .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 900px) {
  .quick-contact-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .quick-contact-form { flex-direction: column; }
  .quick-contact-form .btn { width: 100%; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .card-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .split-media, .split.reverse .split-media { order: -1; }
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail .service-detail-media, .service-detail.reverse .service-detail-media { order: -1; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .card-grid, .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.span-2-2 { grid-column: span 2; grid-row: span 2; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .lightbox { padding: 18px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .contact-info-card { padding: 30px 24px; }
  h1 { line-height: 1.2; }
}

@media (max-width: 420px) {
  .feature-strip { grid-template-columns: 1fr; }
  .hero-actions .btn, .form-foot .btn { width: 100%; }
}

/* ==========================================================================
   FLOATING WHATSAPP / CALL BUTTONS + QUICK ENQUIRY POPUP
   ========================================================================== */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: none;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 26px; height: 26px; }
.fab--whatsapp { background: #25D366; color: #fff; }
.fab--call { background: var(--color-clay); color: var(--color-cream); }
.fab--map { background: var(--color-gold); color: var(--color-navy); }
@media (max-width: 420px) {
  .floating-actions { right: 14px; bottom: 14px; }
}

/* ==========================================================================
   CONDITIONS WE SUPPORT
   ========================================================================== */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.condition-chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.condition-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.condition-chip .icon-badge { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }
.condition-chip .icon-badge svg { width: 20px; height: 20px; }
.condition-chip h3 { font-size: 1rem; margin-bottom: 4px; }
.condition-chip p { font-size: 0.88rem; margin: 0; }
@media (max-width: 900px) { .conditions-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .conditions-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FREE SCREENING CHECKLIST
   ========================================================================== */
.checklist-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.checklist-card .disclaimer-bar { margin-bottom: 24px; }
.checklist-questions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.checklist-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--color-beige);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  color: var(--color-navy);
}
.checklist-question-toggle { display: flex; gap: 8px; flex-shrink: 0; }
.checklist-question-toggle button {
  border: 1.5px solid var(--color-line);
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.checklist-question-toggle button.is-active-yes.is-selected { background: var(--color-sage); border-color: var(--color-sage); color: #fff; }
.checklist-question-toggle button.is-active-no.is-selected { background: var(--color-teal); border-color: var(--color-teal); color: #fff; }
.checklist-result {
  display: none;
  background: var(--color-sage-tint);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.checklist-result.is-visible { display: block; }
.checklist-result p { color: var(--color-navy); margin-bottom: 14px; }
.checklist-progress { font-size: 0.85rem; color: var(--color-text-muted); text-align: center; margin-top: 10px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--color-gold); stroke: none; }
.testimonial-quote { font-size: 0.95rem; color: var(--color-navy); margin-bottom: 20px; flex-grow: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-sage-tint);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-sage-dark);
  flex-shrink: 0;
}
.testimonial-author-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-author-meta { font-size: 0.8rem; color: var(--color-text-muted); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   THERAPIST BIO (About page)
   ========================================================================== */
.therapist-bio {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.therapist-photo .img-placeholder { border-radius: var(--radius-md); aspect-ratio: 4/4.6; }
.therapist-bio-copy h3 { font-size: 1.4rem; margin-bottom: 2px; }
.therapist-bio-copy .role { color: var(--color-sage-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 16px; }
.therapist-credentials { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.therapist-credentials span {
  background: var(--color-beige);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
}
.therapist-exp-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.therapist-exp-list li { font-size: 0.92rem; color: var(--color-text-muted); display: flex; gap: 10px; }
.therapist-exp-list li strong { color: var(--color-navy); font-weight: 600; }

/* Premium "owner entrance" — a slightly more elaborate settle-in for the
   therapist's real photo: scales and un-tilts into place with a soft
   glow ring behind it, distinct from the standard image reveal used
   elsewhere on the site. */
.therapist-photo {
  position: relative;
}
.therapist-photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: 0;
  border-radius: calc(var(--radius-md) + 14px);
  background: linear-gradient(155deg, var(--color-sage-tint) 0%, var(--color-gold-tint) 100%);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s var(--ease) 0.15s, transform 1s var(--ease) 0.15s;
}
.therapist-photo.is-visible::before {
  opacity: 1;
  transform: scale(1);
}
.therapist-entrance {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.88) rotate(-3deg) translateY(26px);
  transition: opacity 1s cubic-bezier(0.17, 0.84, 0.44, 1), transform 1s cubic-bezier(0.17, 0.84, 0.44, 1);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.therapist-entrance.is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg) translateY(0);
}
.therapist-entrance img { display: block; width: 100%; height: 100%; object-fit: cover; }
.therapist-badge {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%) translateY(10px);
  z-index: 2;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.7s, transform 0.7s var(--ease) 0.7s;
}
.therapist-photo.is-visible .therapist-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .therapist-photo::before, .therapist-entrance, .therapist-badge { transition: none !important; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 900px) {
  .therapist-bio { grid-template-columns: 1fr; padding: 28px; }
  .therapist-photo .img-placeholder,
  .therapist-entrance { aspect-ratio: 4/3.6; max-width: 320px; margin: 0 auto; }
}

/* ==========================================================================
   MAP DIRECTIONS OVERLAY
   ========================================================================== */
.map-wrap { position: relative; }
.map-directions-btn {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   3D INTERACTIONS
   Tasteful, restrained 3D depth — card flips on hover/tap, gentle
   pointer-based tilt on photos, and a slow idle float on icon badges.
   Everything here respects prefers-reduced-motion (rules at bottom).
   ========================================================================== */

/* ---- 3D flip cards (Trust section) ---- */
.flip-card {
  perspective: 1400px;
  height: 100%;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flip-card-front { position: relative; }
.flip-card-back {
  transform: rotateY(180deg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}
.flip-card-back-overlay {
  width: 100%;
  padding: 22px;
  background: linear-gradient(to top, rgba(27,37,40,0.88) 10%, rgba(27,37,40,0.15) 100%);
}
.flip-card-back-overlay h3 { color: var(--color-cream); font-size: 1.05rem; margin-bottom: 6px; }
.flip-card-back-overlay p { color: rgba(251,247,240,0.88); font-size: 0.88rem; margin: 0; }

/* ---- Pointer-based 3D tilt (hero photo + service photos) ---- */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.tilt-3d:hover { box-shadow: var(--shadow-3d); }

/* ---- Slow idle 3D float for icon badges ---- */
.icon-badge {
  animation: iconFloat3d 5.5s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes iconFloat3d {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-4px) rotateY(10deg); }
}

/* ---- Slightly richer hero blob depth ---- */
.hero-blob {
  transform: translateZ(0);
  transition: transform 0.6s var(--ease);
}
.hero-media:hover .hero-blob--1 { transform: scale(1.03) rotate(2deg); }
.hero-media:hover .hero-blob--2 { transform: scale(1.05) rotate(-3deg); }

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none !important; }
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-within .flip-card-inner { transform: none !important; }
  .icon-badge { animation: none !important; }
  .tilt-3d { transition: none !important; transform: none !important; }
}

@media (hover: none) {
  /* Touch devices: tap-to-flip instead of relying on :hover */
  .flip-card-inner { transition-duration: 0.6s; }
}

@media (max-width: 640px) {
  .flip-card-inner { min-height: 220px; }
}
