/* ==========================================================================
   BlueCross Veterinary Clinic — Design System & Styles
   ========================================================================== */

:root {
  /* Brand colors — extracted/inspired from the physical clinic signage */
  --color-blue: #14539a;
  --color-blue-dark: #0d3d75;
  --color-blue-soft: #eaf2fb;
  --color-blue-softer: #f4f8fc;

  --color-white: #ffffff;
  --color-warm-white: #faf9f7;
  --color-grey-light: #f1f2f4;
  --color-grey-medium: #6b7280;
  --color-charcoal: #1f2430;

  --color-success: #1a7a4c;
  --color-error: #b3261e;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1280px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(31, 36, 48, 0.06), 0 1px 2px rgba(31, 36, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 36, 48, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 36, 48, 0.12);

  --header-height: 84px;
  --header-height-scrolled: 68px;

  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;

  /* Motion curves — named, not approximated. See animate skill for source. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
}
.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-charcoal);
}
.section-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-grey-medium);
  max-width: 640px;
}
.section-header {
  margin-bottom: 48px;
}
.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header .section-lead { margin-top: 14px; }
.section-header.center .section-lead { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.bg-warm { background: var(--color-warm-white); }
.bg-soft-blue { background: var(--color-blue-softer); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background 160ms ease, color 160ms ease;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--color-blue-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .btn-outline:hover { background: var(--color-blue-soft); transform: translateY(-1px); }
  .btn-outline.on-dark:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
  .btn-ghost:hover { background: #e6e8eb; transform: translateY(-1px); }
}
.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.btn-outline.on-dark { border-color: rgba(255,255,255,0.6); color: var(--color-white); }
.btn-ghost {
  background: var(--color-grey-light);
  color: var(--color-charcoal);
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
/* Press feedback comes after the hover rules so it wins the cascade while a button is both hovered and held. */
.btn:active { transform: scale(0.97); box-shadow: var(--shadow-sm); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-blue);
  text-transform: uppercase;
}
.logo-subtext {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-grey-medium);
}
.logo.on-dark .logo-wordmark { color: var(--color-white); }
.logo.on-dark .logo-subtext { color: rgba(255,255,255,0.7); }
.logo-placeholder-note {
  display: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(31,36,48,0.08);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height var(--transition-base);
}
.site-header.is-scrolled .header-inner { height: var(--header-height-scrolled); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  position: relative;
  padding: 6px 0;
  transition: color 160ms ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.main-nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--color-blue); }
  .main-nav a:hover::after { transform: scaleX(1); }
}

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

/* Fallback nav shown before lang-flags.js enhances it into a dropdown. */
.lang-switch { display: flex; align-items: center; gap: 10px; }
.lang-switch a { font-size: 0.85rem; font-weight: 700; color: var(--color-grey-medium); }
.lang-switch a.is-on { color: var(--color-blue); }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-charcoal);
  font-size: 0.9rem;
}
.header-call:hover { color: var(--color-blue); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  color: var(--color-charcoal);
}
.nav-toggle .icon { width: 28px; height: 28px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-white);
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav-links a {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-grey-light);
  transition: color 160ms ease, padding-left 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mobile-nav-links a:hover { color: var(--color-blue); padding-left: 8px; }
}
.mobile-nav-footer { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 900px) {
  .main-nav, .header-actions .btn-outline, .header-call { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--color-blue-softer) 0%, var(--color-white) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--color-blue); }
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-grey-medium);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hero-rating-text { font-size: 0.9rem; color: var(--color-charcoal); }
.hero-rating-text strong { font-weight: 800; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(31,36,48,0.06);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { aspect-ratio: 16 / 10; order: -1; }
}

/* Hero entrance — plays once on load, orchestrated top to bottom. */
.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 600ms var(--ease-out) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0ms; }
.hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.hero-copy > *:nth-child(4) { animation-delay: 240ms; }
.hero-copy > *:nth-child(5) { animation-delay: 320ms; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-media .img-placeholder {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  animation: heroMediaIn 800ms var(--ease-in-out) 220ms forwards;
}
@keyframes heroMediaIn { to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- Image placeholders (photography to be supplied by the clinic) ---------- */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-blue-soft) 0%, var(--color-grey-light) 100%);
  color: var(--color-blue);
  border-radius: inherit;
  overflow: hidden;
}
.img-placeholder .icon { width: 42px; height: 42px; opacity: 0.55; transition: transform 500ms var(--ease-out); }

/* Photography reveal on scroll + subtle hover zoom — applies once real photos replace the placeholders too. */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease-in-out);
}
.img-reveal.is-visible { clip-path: inset(0 0 0 0); }
.hero-media, .split-media, .pet-media, .team-card-media, .map-placeholder { overflow: hidden; }
.hero-media img, .split-media img, .pet-media img, .team-card-media img, .map-placeholder img,
.hero-media .img-placeholder, .split-media .img-placeholder, .pet-media .img-placeholder,
.team-card-media .img-placeholder, .map-placeholder .img-placeholder {
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-media:hover img, .split-media:hover img, .pet-media:hover img, .team-card-media:hover img, .map-placeholder:hover img,
  .hero-media:hover .img-placeholder, .split-media:hover .img-placeholder, .pet-media:hover .img-placeholder,
  .team-card-media:hover .img-placeholder, .map-placeholder:hover .img-placeholder {
    transform: scale(1.045);
  }
  .hero-media:hover .icon, .split-media:hover .icon, .pet-media:hover .icon { transform: scale(1.08); }
}
.img-placeholder-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,0.85);
  color: var(--color-grey-medium);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--color-grey-light);
  border-bottom: 1px solid var(--color-grey-light);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item .icon { width: 32px; height: 32px; color: var(--color-blue); }
.trust-value { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.trust-label { font-size: 0.85rem; color: var(--color-grey-medium); font-weight: 600; }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- About / editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split-content p { margin-top: 18px; line-height: 1.75; color: var(--color-grey-medium); font-size: 1.02rem; }
.split-content .btn { margin-top: 28px; }

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
}

/* ---------- Cards grid (Why Blue Cross) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; line-height: 1.6; color: var(--color-grey-medium); }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--color-warm-white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 1px solid var(--color-grey-light);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.service-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.87rem; line-height: 1.55; color: var(--color-grey-medium); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
}
.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-grey-light);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
}
.team-card-media { aspect-ratio: 4 / 5; }
.team-card-body { padding: 22px 24px 26px; }
.team-card h3 { font-size: 1.15rem; font-weight: 800; }
.team-card .role { font-size: 0.85rem; color: var(--color-blue); font-weight: 700; margin-top: 4px; }
.team-card p.bio { margin-top: 12px; font-size: 0.9rem; color: var(--color-grey-medium); line-height: 1.6; }

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* ---------- Pet section ---------- */
.pet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}
.pet-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3/4; }
.pet-copy { display: flex; flex-direction: column; justify-content: center; padding-left: 12px; }
.pet-copy p { margin-top: 16px; color: var(--color-grey-medium); line-height: 1.7; }

@media (max-width: 900px) {
  .pet-grid { grid-template-columns: 1fr 1fr; }
  .pet-copy { grid-column: 1 / -1; padding-left: 0; order: -1; }
}

/* ---------- Reviews ---------- */
.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.reviews-controls { display: flex; gap: 10px; }
.reviews-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-grey-light);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  transition: background 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.reviews-controls button:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .reviews-controls button:hover { background: var(--color-blue); color: var(--color-white); }
}

.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.review-card .stars { color: #f5a623; }
.review-card p.text { font-size: 0.95rem; line-height: 1.65; color: var(--color-charcoal); flex-grow: 1; }
.review-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.review-card .name { font-weight: 700; font-size: 0.92rem; }
.review-card .source { font-size: 0.75rem; color: var(--color-grey-medium); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1024px) {
  .review-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .review-card { flex: 0 0 88%; }
}

.reviews-cta { text-align: center; margin-top: 40px; }
.reviews-cta .hint { display: block; margin-top: 10px; font-size: 0.78rem; color: var(--color-grey-medium); }

/* ---------- Review highlights ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight-item {
  text-align: center;
  padding: 28px 16px;
}
.highlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.highlight-item h3 { font-size: 1rem; font-weight: 700; }
.highlights-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-grey-medium);
}

@media (max-width: 768px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr; }
}

/* ---------- Featured / editorial testimonial ---------- */
.featured-review {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--color-blue-soft);
  line-height: 1;
  margin-bottom: 8px;
}
.featured-review blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}
.featured-review footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.featured-review .name { font-weight: 700; }
.featured-review .source { font-size: 0.85rem; color: var(--color-grey-medium); }

.secondary-featured {
  max-width: 720px;
  margin: 64px auto 0;
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid var(--color-grey-light);
}
.secondary-featured .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 14px;
}
.secondary-featured blockquote { font-size: 1.15rem; line-height: 1.65; color: var(--color-charcoal); margin: 0; }
.secondary-featured footer { margin-top: 18px; font-size: 0.9rem; color: var(--color-grey-medium); }

/* ---------- Clinic experience ---------- */
.experience-section .split-content .btn { margin-top: 24px; }

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.location-details p { color: var(--color-grey-medium); line-height: 1.7; margin-top: 4px; }
.location-list { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 16px; }
.location-list .row { display: flex; gap: 14px; align-items: flex-start; }
.location-list .icon { color: var(--color-blue); margin-top: 2px; }
.map-placeholder {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-grey-light);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-charcoal);
}
.faq-question .icon { color: var(--color-blue); transition: transform var(--transition-base); flex-shrink: 0; }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease;
}
.faq-answer-inner { padding: 0 4px 22px; color: var(--color-grey-medium); line-height: 1.7; font-size: 0.95rem; max-width: 660px; }

/* ---------- Appointment CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 72px 0;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 16px auto 32px; max-width: 560px; }
.cta-banner-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-banner .btn-primary { background: var(--color-white); color: var(--color-blue-dark); }
.cta-banner .btn-primary:hover { background: var(--color-warm-white); }

/* ---------- Contact / Appointment ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}
.contact-info p.lead { color: var(--color-grey-medium); line-height: 1.7; margin-top: 14px; margin-bottom: 28px; }
.contact-info .contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-info .contact-line .icon { color: var(--color-blue); margin-top: 2px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; max-width: 280px; }

.appointment-form {
  background: var(--color-warm-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--color-charcoal); }
.form-field label .req { color: var(--color-blue); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--color-grey-light);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-blue);
  outline: none;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--color-error); }
.form-error-text { font-size: 0.78rem; color: var(--color-error); display: none; }
.form-field.has-error .form-error-text { display: block; }
.form-disclaimer { font-size: 0.78rem; color: var(--color-grey-medium); margin-top: 16px; line-height: 1.5; }
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: #e8f5ee; color: var(--color-success); }
.form-status.error { background: #fbeceb; color: var(--color-error); }
.form-status.info { background: var(--color-blue-soft); color: var(--color-blue-dark); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .appointment-form { padding: 24px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-grey-light);
  box-shadow: 0 -4px 16px rgba(31,36,48,0.08);
  transform: translateY(100%);
  transition: transform 400ms var(--ease-drawer);
}
.mobile-sticky-cta.is-visible { transform: translateY(0); }
.mobile-sticky-cta a { flex: 1; text-align: center; }

@media (max-width: 768px) {
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 78px; }
}

/* ---------- Utility reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Grid entrances — children fade up in sequence, once, the first time the group scrolls into view. */
.stagger-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.stagger-group.is-visible > * { opacity: 1; transform: none; }
.stagger-group > *:nth-child(1) { transition-delay: 0ms; }
.stagger-group > *:nth-child(2) { transition-delay: 60ms; }
.stagger-group > *:nth-child(3) { transition-delay: 120ms; }
.stagger-group > *:nth-child(4) { transition-delay: 180ms; }
.stagger-group > *:nth-child(5) { transition-delay: 240ms; }
.stagger-group > *:nth-child(6) { transition-delay: 300ms; }
.stagger-group > *:nth-child(7) { transition-delay: 360ms; }
.stagger-group > *:nth-child(8) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-group > *, .img-reveal, .hero-copy > *, .hero-media .img-placeholder {
    opacity: 1; transform: none; clip-path: none; animation: none; transition: none;
  }
}
