/* ==========================================================================
   Clínica Dental Smile
   Design system: "Pino, Porcelana y Coral"
   Display: Cabinet Grotesk (Fontshare, ITF FFL) · Body: General Sans (Fontshare)
   Radius rule: buttons = pill, cards/media = 20px, large panels = 28px,
                icon tiles = 12px. Nothing else.
   ========================================================================== */

@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Color: neutrals */
  --porcelain: #F4F7F5;      /* page background, cool porcelain with a hint of mint */
  --surface: #FBFCFB;        /* cards */
  --mist: #E7EFEB;           /* tinted section / icon tiles */
  --mist-strong: #D5E3DD;
  --line: rgb(14 42 43 / 0.12);

  /* Color: ink (text) */
  --ink: #0E2A2B;            /* headings, 14.9:1 on porcelain */
  --ink-soft: #3D5553;       /* body, 7.4:1 on porcelain */
  --ink-muted: #5E7371;      /* captions, 4.6:1 on porcelain */

  /* Color: brand */
  --pine: #1D4E4B;           /* primary brand, buttons (white text 9.4:1) */
  --pine-deep: #143A38;      /* hover / dark panels */
  --sea: #8DB8AC;            /* soft brand tint for graphics */

  /* Color: the single accent */
  --coral: #EB7A5A;          /* accent fill, ink text on it 5.4:1 */
  --coral-deep: #D95F3B;     /* stars and small marks on light bg */

  /* Type */
  --font-display: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius */
  --r-tile: 12px;
  --r-card: 20px;
  --r-panel: 28px;
  --r-pill: 999px;

  /* Elevation (tinted to ink, never pure black) */
  --shadow-sm: 0 1px 2px rgb(14 42 43 / 0.05), 0 6px 16px -8px rgb(14 42 43 / 0.14);
  --shadow-md: 0 1px 2px rgb(14 42 43 / 0.05), 0 18px 40px -20px rgb(14 42 43 / 0.28);

  /* Motion */
  --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);

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --header-h: 76px;
  --section-y: clamp(80px, 10vw, 144px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--coral); color: var(--ink); }

.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--porcelain); border-radius: var(--r-pill); transition: top 200ms var(--ease-out); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 20px;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.section-sub { margin-top: 20px; max-width: 52ch; font-size: 1.125rem; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); max-width: 34ch; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: #FBFCFB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 10px 24px -14px rgb(29 78 75 / 0.9); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-light { --btn-bg: var(--coral); --btn-fg: var(--ink); font-weight: 600; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.icon-shift { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { --btn-bg: var(--pine-deep); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn-light:hover { --btn-bg: #F08D70; }
  .btn:hover .icon-shift { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.scroll-sentinel { position: absolute; top: 0; height: 24px; width: 1px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(244 247 245 / 0);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.site-header.is-scrolled {
  background: rgb(244 247 245 / 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgb(14 42 43 / 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 260ms var(--ease-out);
}
.site-header.is-scrolled .header-inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; transition: transform 260ms var(--ease-out); }
.site-header.is-scrolled .brand-mark { transform: scale(0.9); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); margin-top: 3px; }

.nav { display: none; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { background: var(--mist); }
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-actions .btn { width: 44px; padding: 0; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle .icon { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-45deg) scale(0.8); }
.menu-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(45deg) scale(0.8); }
.menu-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: none; }

.mobile-menu {
  position: absolute;
  inset: 100% 0 auto 0;
  padding: 8px var(--gutter) 28px;
  background: var(--porcelain);
  box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgb(14 42 43 / 0.35);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 260ms var(--ease-drawer);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-meta { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-muted); }

@media (min-width: 560px) {
  .header-actions .btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .header-actions .btn { width: auto; padding: 0 18px; }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: var(--section-y); }
.hero-grid { display: grid; gap: 28px; }
.hero-title {
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-title span { display: block; }
.t-strong { font-weight: 800; }
.t-light { font-weight: 300; color: var(--pine); }

.hero-copy { display: grid; gap: 28px; align-content: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stat dt { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-muted); }
.stat dd {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-unit { color: var(--coral-deep); font-weight: 500; }
.stat-star { width: 0.6em; height: 0.6em; fill: var(--coral-deep); margin-left: 4px; align-self: center; }

.hero-media {
  border-radius: var(--r-panel);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 35%; }

@media (min-width: 960px) {
  /* Split hero: copy on the left 6 columns, image fills the right 6 columns
     from the top of the headline to the bottom of the stats. */
  .hero { padding-top: 28px; }
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    row-gap: 28px;
  }
  .hero-head { grid-column: 1 / span 6; grid-row: 1; padding-top: 8px; }
  .hero-title { font-size: clamp(2.75rem, 1.1rem + 4.4vw, 5rem); }
  .hero-copy { grid-column: 1 / span 5; grid-row: 2; display: flex; flex-direction: column; gap: 28px; }
  .hero-copy .stats { margin-top: auto; }
  .hero-media {
    grid-column: 7 / -1;
    grid-row: 1 / span 2;
    aspect-ratio: auto;
    height: clamp(440px, calc(100svh - 124px), 580px);
  }
  .hero-media img { object-position: 52% 30%; }
  .stats { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}
@media (min-width: 960px) and (max-height: 700px) {
  .hero { padding-top: 16px; }
  .hero-title { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.25rem); }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-grid { row-gap: 20px; }
  .hero-copy { gap: 20px; }
  .hero-copy .stats { padding-top: 16px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head-row { max-width: none; display: grid; gap: 24px; align-items: end; }
@media (min-width: 960px) {
  .section-head-row { grid-template-columns: 1fr auto; }
}

/* ---------- Services (bento) ---------- */
.services { padding-top: 0; }
/* consecutive sections on the same background share one gap, not two */
.testimonials, .location { padding-top: 0; }
.bento { display: grid; gap: 16px; }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 300ms ease;
}
.sc-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.sc-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; flex: 1; }
.sc-body h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sc-body p { font-size: 1rem; line-height: 1.55; max-width: 44ch; }
.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}
.price { font-size: 0.9375rem; color: var(--ink-muted); }
.price strong { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.01em; margin-left: 2px; }
.sc-go {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--pine);
  transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease-out);
}
.sc-go .icon { width: 18px; height: 18px; }

.sc-urgent { background: var(--pine-deep); }
.sc-urgent .sc-body h3 { color: #F4F7F5; }
.sc-urgent .sc-body p { color: #C9DAD4; }
.sc-urgent .price { color: #A9C2BA; }
.sc-urgent .price strong { color: #F4F7F5; }
.sc-urgent .sc-go { background: var(--coral); color: var(--ink); }
.sc-urgent .sc-body p.sc-tag {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--coral);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover { box-shadow: var(--shadow-md); }
  .service-card:hover .sc-media img { transform: scale(1.04); }
  .service-card:hover .sc-go { background: var(--pine); color: #F4F7F5; transform: rotate(45deg); }
  .sc-urgent:hover .sc-go { background: #F08D70; color: var(--ink); }
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .sc-urgent { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .sc-wide { grid-column: span 7; }
  .sc-narrow { grid-column: span 5; }
  .sc-wide .sc-media, .sc-narrow .sc-media { aspect-ratio: auto; height: 340px; }
  .sc-third { grid-column: span 4; }
  .sc-urgent { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; }
  .sc-urgent .sc-media { aspect-ratio: auto; min-height: 400px; }
  .sc-urgent .sc-media img { position: absolute; inset: 0; object-position: 50% 30% !important; }
  .sc-urgent .sc-body { padding: clamp(28px, 3.5vw, 48px); justify-content: center; }
  .sc-urgent .sc-body h3 { font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); }
  .sc-urgent .sc-foot { margin-top: 20px; }
}

/* ---------- Why ---------- */
.why { background: var(--mist); }
.why-grid { display: grid; gap: 48px; }
.why-intro .section-sub { color: var(--ink-soft); }
.why-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid rgb(14 42 43 / 0.14);
}
.why-item:first-child { border-top: 0; padding-top: 0; }
.why-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-tile);
  background: var(--surface);
  color: var(--pine);
  box-shadow: var(--shadow-sm);
}
.why-icon .icon { width: 26px; height: 26px; }
.why-item h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.why-item p { max-width: 46ch; }

@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .why-intro { grid-column: 1 / span 5; position: sticky; top: 120px; align-self: start; }
  .why-list { grid-column: 7 / -1; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; }
.about-frame { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-media figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--ink-muted); }
.about-copy { display: grid; gap: 20px; align-content: center; }
.about-copy > p { max-width: 58ch; }
.about-copy .h2 { margin-bottom: 8px; }

.values { display: grid; gap: 0; margin-top: 12px; }
.values li { padding: 16px 0; border-top: 1px solid var(--line); max-width: 58ch; }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values strong { color: var(--ink); font-weight: 600; }

.signature {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.signature span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; color: var(--ink-muted); letter-spacing: 0; margin-top: 2px; }

@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .about-media { grid-column: 1 / span 5; }
  .about-copy { grid-column: 7 / -1; }
}

/* ---------- Testimonials ---------- */
.rating-summary { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.rating-summary strong { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--coral-deep); }

.quotes { display: grid; gap: 16px; }
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.quote-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 0.9375rem; color: var(--ink-muted); }
.quote-card figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.quote-card:nth-child(2) .avatar { background: var(--pine); color: #F4F7F5; }
.quote-card:nth-child(3) .avatar { background: #F6D9CF; color: #7A2E17; }

@media (min-width: 960px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
  .quote-card:nth-child(2) { margin-top: 56px; }
  .quote-card:nth-child(3) { margin-top: 20px; }
}

/* ---------- Location ---------- */
.location-grid { display: grid; gap: 48px; }
.info-list { display: grid; margin-top: 36px; }
.info-row { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row dt { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.info-row dt .icon { color: var(--pine); }
.info-row dd { padding-left: 30px; }
.info-row dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sea); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hours { display: flex; justify-content: space-between; gap: 16px; max-width: 340px; }
.hours span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.hours-note span:last-child { color: var(--pine); font-weight: 500; }
.location-copy .cta-row { margin-top: 32px; }

.location-media { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.location-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

@media (min-width: 960px) {
  .location-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
  .location-copy { grid-column: 1 / span 6; }
  .location-media { grid-column: 8 / -1; }
  .info-row { grid-template-columns: 180px 1fr; gap: 16px; }
  .info-row dd { padding-left: 0; }
}

/* ---------- CTA band ---------- */
.cta-band-wrap { padding-bottom: var(--section-y); }
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--pine-deep);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  min-height: 440px;
  display: flex;
  align-items: center;
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgb(14 42 43 / 0.94) 0%, rgb(20 58 56 / 0.86) 42%, rgb(29 78 75 / 0.45) 75%, rgb(29 78 75 / 0.2) 100%);
}
.cta-content { max-width: 560px; display: grid; gap: 20px; justify-items: start; }
.cta-content .h2 { color: #F4F7F5; }
.cta-content p { color: #D3E2DD; font-size: 1.125rem; max-width: 44ch; }
.cta-content .btn { margin-top: 8px; }

@media (max-width: 639px) {
  .cta-band::before { background: linear-gradient(180deg, rgb(14 42 43 / 0.9) 0%, rgb(20 58 56 / 0.88) 60%, rgb(29 78 75 / 0.7) 100%); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B4C7C1; padding-top: clamp(56px, 7vw, 88px); }
.site-footer .brand-name { color: #F4F7F5; }
.site-footer .brand-small { color: #93AAA4; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 18px; max-width: 340px; }
.footer-title { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #93AAA4; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; font-size: 0.9375rem; }
.footer-col a { transition: color 160ms ease; }
.social { display: flex !important; gap: 8px !important; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px rgb(244 247 245 / 0.18); }
.social .icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: #F4F7F5; }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  position: relative;
  margin-top: 56px;
  padding-block: 24px 32px;
  font-size: 0.875rem;
  color: #93AAA4;
}
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgb(244 247 245 / 0.1); }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 5fr 2fr 3fr 2fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Reveal motion (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out) calc(var(--i, 0) * 70ms),
    transform 800ms var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* The clip lives on the <img>, not the observed container: IntersectionObserver
   honours the target's own clip-path, so a fully clipped target never intersects. */
.js [data-reveal="clip"] { opacity: 1; transform: none; transition: none; }
.js [data-reveal="clip"] img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.08);
  transition:
    clip-path 1100ms var(--ease-in-out) calc(var(--i, 0) * 70ms),
    transform 1400ms var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js [data-reveal="clip"].is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* Service cards: keep the hover shadow transition alongside the reveal.
   The image zoom lives on the inner <img>, so it never fights the reveal. */
.js .service-card[data-reveal] {
  transition:
    opacity 700ms var(--ease-out) calc(var(--i, 0) * 70ms),
    transform 800ms var(--ease-out) calc(var(--i, 0) * 70ms),
    box-shadow 300ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal="clip"] {
    transform: none;
    clip-path: none;
    transition: opacity 300ms ease;
  }
  .js [data-reveal="clip"] img { clip-path: none; transform: none; opacity: 0; transition: opacity 300ms ease; }
  .js [data-reveal="clip"].is-in img { opacity: 1; }
  .sc-media img, .sc-go, .icon-shift, .brand-mark, .header-inner, .mobile-menu { transition: none !important; }
  .service-card:hover .sc-media img { transform: none; }
}
