/* ==========================================================================
   Phoenix Pool Resurface — design system
   Palette: lagoon teal, limestone, sun-baked clay. Type: Fraunces + Source Sans 3.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/sourcesans3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lagoon-900: #0a333d;
  --lagoon-800: #0f4c5c;
  --lagoon-700: #176577;
  --lagoon-100: #dcebed;
  --lagoon-50:  #eef5f5;
  --clay-600:   #b4552f;
  --clay-700:   #97431f;
  --clay-100:   #f6e3d6;
  --sand-50:    #fbf8f3;
  --sand-100:   #f5efe5;
  --sand-200:   #e9dfd0;
  --ink:        #1c2624;
  --ink-soft:   #46524f;
  --line:       #ddd3c3;
  --white:      #ffffff;
  --warn-bg:    #fff4d6;
  --warn-line:  #e2b84b;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(28, 38, 36, .06), 0 2px 8px rgba(28, 38, 36, .05);
  --shadow: 0 6px 24px rgba(10, 51, 61, .10);

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  padding-bottom: 4.5rem; /* room for mobile sticky bar */
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--lagoon-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--lagoon-800); text-underline-offset: .15em; }
a:hover { color: var(--clay-700); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
:focus-visible { outline: 3px solid var(--clay-600); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Header ------------------------------------------------------------------ */
.site-header {
  background: rgba(251, 248, 243, .96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--lagoon-900); min-width: 0; flex: 1 1 auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.brand__tag {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #5c6663;
  margin-top: .2rem;
  line-height: 1.3;
  max-width: 21rem;
}

.nav { margin-left: auto; display: none; }
.nav__list { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.nav__list a {
  display: inline-block; padding: .5rem .55rem; border-radius: var(--radius-s);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; white-space: nowrap;
}
.nav__list a:hover { background: var(--sand-100); }
.nav__list a[aria-current="page"] { color: var(--lagoon-800); box-shadow: inset 0 -2px 0 var(--clay-600); border-radius: 0; }

.btn--header { display: none; white-space: nowrap; }
.btn--header .ph-num { font-size: .82em; }

/* Mobile menu (details/summary, no JS) */
.menu { margin-left: auto; position: relative; }
.menu__btn {
  list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); display: grid; place-content: center; gap: 5px; background: var(--white);
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn span { display: block; width: 22px; height: 2px; background: var(--lagoon-900); border-radius: 2px; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(88vw, 320px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem;
}
.menu__panel ul { list-style: none; margin: 0; padding: 0; }
.menu__panel a { display: block; padding: .75rem .8rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--radius-s); }
.menu__panel a:hover, .menu__panel a[aria-current="page"] { background: var(--sand-100); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  font-family: var(--font-body);
  transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--clay-600); color: var(--white); }
.btn--primary:hover { background: var(--clay-700); color: var(--white); }
.btn--call { background: var(--lagoon-800); color: var(--white); }
.btn--call:hover { background: var(--lagoon-900); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--lagoon-800); border-color: var(--lagoon-800); }
.btn--secondary:hover { background: var(--lagoon-50); color: var(--lagoon-900); }
.btn--light { background: var(--white); color: var(--lagoon-900); }
.btn--light:hover { background: var(--sand-100); color: var(--lagoon-900); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* Placeholder markers (tracking number, license slot, form endpoint) ------ */
.ph-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.placeholder-box {
  border: 2px dashed var(--warn-line); background: var(--warn-bg);
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.placeholder-box__tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #5a4300; background: #ffe7a3; border-radius: 999px; padding: .15rem .6rem; margin-bottom: .5rem;
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%); }
.hero__grid { display: grid; gap: 2rem; padding-block: clamp(2.2rem, 6vw, 4.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lagoon-800); background: var(--lagoon-100); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--ink-soft); max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 1rem; }
.hero__note { font-size: .95rem; color: var(--ink-soft); }

.hero__art { display: none; }
.hero__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: 1.4rem;
}
.hero__card h2 { font-size: 1.3rem; }

/* Trust row under the hero and on how-it-works -------------------------------- */
.trust-row {
  list-style: none;
  margin: 0;
  padding: 1.15rem 0 0;
  display: grid;
  gap: .85rem 1.5rem;
  border-top: 1px solid var(--line);
}
.hero .trust-row { padding: 1rem 0 0; margin-top: 0; border-top: 0; }
.hero__copy { order: 1; }
.hero .trust-row { order: 2; }
.hero__card { order: 3; }
@media (min-width: 960px) {
  .hero__copy, .hero__card, .hero .trust-row { order: 0; }
  .hero .trust-row { padding: 0; border-top: 1px solid var(--line); padding-top: 1.15rem; }
}
.trust-row--page { margin-top: 1.4rem; padding-top: 1.2rem; }
.trust-row li {
  position: relative;
  margin: 0;
  padding-left: 1.7rem;
  font-size: .98rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}
.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--lagoon-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230f4c5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}
@media (min-width: 960px) {
  .trust-row { grid-template-columns: repeat(3, 1fr); }
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--lagoon-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230f4c5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* Sections ---------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--sand-100); }
.section--white { background: var(--white); }
.section--lagoon { background: var(--lagoon-800); color: #eef5f5; }
.section--lagoon h2, .section--lagoon h3 { color: var(--white); }
.section__head { max-width: 44rem; margin-bottom: 1.8rem; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

.page-hero { background: var(--sand-100); border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-block: clamp(2rem, 5vw, 3.5rem); }
.breadcrumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; color: #9a8f7e; }
.breadcrumbs a { color: var(--ink-soft); }

/* Cards & grids ----------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.1rem; box-shadow: var(--shadow-s);
}
.card h3 { margin-bottom: .4rem; }
.card h3 a { text-decoration: none; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lagoon-100); color: var(--lagoon-800); margin-bottom: .9rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__link { font-weight: 700; text-decoration: none; }
.card__link::after { content: " →"; }

/* Steps ------------------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: step; position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem 4.2rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.15rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--clay-600); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-display);
}
.steps h3 { margin-bottom: .3rem; }

/* Prose ------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose--wide { max-width: 60rem; }
.split { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
code { overflow-wrap: anywhere; word-break: break-word; font-size: .9em; }
.callout {
  border-left: 4px solid var(--lagoon-700); background: var(--lagoon-50);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 1.4rem 0;
}
.callout--clay { border-left-color: var(--clay-600); background: #fbf1ea; }
.callout p:last-child { margin-bottom: 0; }

/* Tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
caption { text-align: left; padding: .9rem 1rem .2rem; font-weight: 700; color: var(--lagoon-900); font-family: var(--font-display); font-size: 1.15rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--lagoon-50); color: var(--lagoon-900); font-size: .92rem; letter-spacing: .02em; }
tbody th { font-weight: 700; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sources { font-size: .95rem; color: var(--ink-soft); }
.sources ol { padding-left: 1.3rem; }

/* FAQ --------------------------------------------------------------------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.1rem; margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 1rem 2rem 1rem 0; position: relative; list-style: none;
  color: var(--lagoon-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--clay-600); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: .6rem; color: var(--ink-soft); }

/* Forms ------------------------------------------------------------------- */
.form-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem);
}
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; color: var(--lagoon-900); }
.field .hint { font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font: inherit; color: var(--ink); background: var(--sand-50);
  border: 1.5px solid #cdbfa9; border-radius: 10px; padding: .75rem .85rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--lagoon-700); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }
.checks { border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 700; color: var(--lagoon-900); margin-bottom: .4rem; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .45rem .85rem; border-radius: 999px; border: 1.5px solid #cdbfa9;
  background: var(--sand-50); font-weight: 600; font-size: .98rem;
}
.chip input:checked + span { background: var(--lagoon-800); border-color: var(--lagoon-800); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--clay-600); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.consent input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--lagoon-800); }
.form-note { margin: .75rem 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
.form-success { outline: none; }
.form-success h3 { margin: 0 0 .6rem; }
.form-error { margin: .85rem 0 0; color: #8a1f11; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contractor slot --------------------------------------------------------- */
.contractor-slot dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1rem; margin: .4rem 0 0; }
.slot-empty { overflow-wrap: anywhere; }
.contractor-slot dt { font-weight: 700; color: var(--lagoon-900); }
.contractor-slot dd { margin: 0; }
.slot-empty { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #5a4300; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: var(--lagoon-900); color: #eef5f5; }
.cta-band h2 { color: var(--white); }
.cta-band__inner { display: grid; gap: 1.4rem; padding-block: clamp(2.2rem, 5vw, 3.4rem); align-items: center; }
.cta-band p { color: #cfe0e2; margin: 0; max-width: 38rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--sand-100); border-top: 1px solid var(--line); padding-block: 2.6rem 2rem; color: var(--ink-soft); }
.site-footer__grid { display: grid; gap: 1.8rem; }
.site-footer__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--lagoon-900); margin-bottom: .4rem; }
.site-footer__heading { font-weight: 700; color: var(--lagoon-900); margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--ink); }
.site-footer__small { font-size: .88rem; margin-top: .6rem; }
.site-footer__disclaimer {
  margin-top: 1.8rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46rem;
}
.site-footer__disclaimer p { margin: 0 0 .55rem; }
.site-footer__disclaimer p:last-child { margin-bottom: 0; }
.site-footer__disclaimer strong { font-weight: 600; color: var(--ink-soft); }
.site-footer__copy { font-size: .88rem; margin: 1.4rem 0 0; }

/* Mobile sticky bar ------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, .97); border-top: 1px solid var(--line);
}
.mobile-bar .btn { padding: .75rem .6rem; font-size: .98rem; }

/* Utilities --------------------------------------------------------------- */
.stack-lg > * + * { margin-top: 1.5rem; }
.text-soft { color: var(--ink-soft); }
.small { font-size: .93rem; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 520px) {
  .site-header .btn--header { display: none !important; }
  .brand { max-width: calc(100% - 3.4rem); }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.05rem; white-space: nowrap; }
  .brand__tag { font-size: .72rem; max-width: none; }
  .menu__btn { width: 44px; height: 44px; flex: none; }
}
@media (min-width: 521px) and (max-width: 959px) {
  .site-header .btn--header { display: inline-flex; margin-left: auto; }
  .menu { margin-left: 0; }
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .menu { display: none; }
  .hero__grid { grid-template-columns: 1.25fr .9fr; align-items: center; gap: 3rem; }
  .hero .trust-row { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4.2rem 1.3rem 1.1rem; }
  .steps li::before { top: 1.1rem; }
  .split { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { grid-template-columns: 1.4fr auto; }
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (min-width: 521px) and (max-width: 1179px) {
  .site-header .btn--header { display: inline-flex; margin-left: auto; }
  .menu { margin-left: 0; }
}
@media (min-width: 1180px) {
  .nav { display: block; }
  .btn--header { display: inline-flex; }
  .menu { display: none; }
  .brand { flex: 0 0 auto; min-width: auto; }
  .brand__tag { max-width: 22rem; }
}

/* Mobile: stack table rows as labeled cards so prices are never cut off */
@media (max-width: 700px) {
  .table-wrap { overflow-x: visible; border: 0; background: transparent; }
  table, thead, tbody, tr, th, td, caption { display: block; width: 100%; }
  table { min-width: 0; }
  caption { padding: 0 0 .6rem; }
  thead { position: absolute; left: -9999px; }
  tbody tr {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .4rem 0; margin-bottom: .8rem; box-shadow: var(--shadow-s);
  }
  tbody th, tbody td { border-bottom: 0; padding: .45rem 1rem; }
  tbody td::before, tbody th[scope="row"] + td::before {
    content: attr(data-label); display: block; font-size: .8rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .1rem;
  }
  tbody th[scope="row"] { font-family: var(--font-display); font-size: 1.15rem; color: var(--lagoon-900); padding-bottom: .2rem; }
  .num { white-space: normal; }
}

/* Photos ------------------------------------------------------------------ */
.photo { margin: 0; }
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--sand-100);
}
.photo figcaption {
  margin-top: .55rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.photo-note {
  margin-top: .85rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.photo-frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-100);
}
.photo--cover .photo-frame { aspect-ratio: 4 / 3; }
.photo--cover .photo-frame img,
.photo--hero .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.photo--hero .photo-frame { aspect-ratio: 3 / 2; }
.hero__media img { box-shadow: var(--shadow); }

.hero__media { order: 2; margin: 0; }
@media (min-width: 960px) {
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__media { grid-column: 2; grid-row: 1 / 3; align-self: stretch; order: 0; }
  .hero__card { grid-column: 1; grid-row: 2; }
  .hero .trust-row { grid-column: 1 / -1; grid-row: 3; }
  .page-hero__inner--photo {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2rem 2.4rem;
    align-items: center;
  }
}

.example-pair, .example-grid {
  display: grid;
  gap: 1.1rem;
  margin: 1.4rem 0 .4rem;
}
@media (min-width: 700px) {
  .example-pair, .example-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Horizontal example rows on the resurfacing guide.
   Desktop/tablet: one equal-width row. Mobile: swipeable row with the next card peeking.
   Overflow stays on the row, not the page. */
.photo-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: start;
  gap: .85rem;
  margin: 1.4rem 0 .4rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.photo-row > .photo {
  flex: 0 0 78%;
  width: 78%;
  min-width: 0;
  max-width: 78%;
  scroll-snap-align: start;
}
.photo-row > .photo .photo-frame {
  width: 100%;
  position: relative;
}
.photo-row > .photo .photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
@media (min-width: 700px) {
  .photo-row {
    gap: 1.1rem;
    overflow: visible;
    scroll-snap-type: none;
  }
  .photo-row > .photo {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
}

.example-cards { margin-top: 2.2rem; }
.example-cards + .wrap { margin-top: 2.5rem; }
.example-cards .grid { margin: 1.4rem 0 .4rem; }

.card { overflow: hidden; }
.card__media {
  margin: -1.3rem -1.3rem 1rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-100);
}
.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__credit, .card__media figcaption {
  margin: .45rem 1.3rem 0;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.card__media figcaption { margin: .45rem 0 0; }
.partner-gallery[hidden] { display: none !important; }

/* City links -------------------------------------------------------------- */
.city-link-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .85rem;
  padding: 0; margin: .45rem 0 0;
}
.city-link-row a { font-weight: 600; }
.city-link-row [aria-current="page"] { font-weight: 700; color: var(--lagoon-800); }
.site-footer__cities { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.city-cards h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
@media (min-width: 1180px) and (max-width: 1339px) {
  .nav__list a { padding: .5rem .4rem; font-size: .92rem; }
}
