/* Pontchartrain Pools & Spas — shared styles
   Layout concept: clean coastal pages; a pool waterline tile band is the one signature motif. */

:root {
  --bg: #F5F9FA;
  --surface: #FFFFFF;
  --ink: #0F2B3A;
  --muted: #4E6A78;
  --line: #D4E2E7;
  --aqua: #1E9FB3;
  --aqua-ink: #0A6A7B;
  --deep: #0F2B3A;
  --on-deep: #EAF4F6;
  --on-deep-muted: #A9C4CE;
  --btn-bg: #0A6A7B;
  --btn-fg: #FFFFFF;
  --btn-hover: #08596A;
  --tile-a: #1E9FB3;
  --tile-b: #8FD5DE;
  --tile-c: #0D5F70;
  --grout: #F5F9FA;
  --water-1: #9FE0E8;
  --water-2: #38B2C5;
  --water-3: #12748A;
  --star: #D99A1B;
  --ph-bg: #FFF2C2;
  --ph-line: #B98A0C;
  --ok: #1D7A4E;
  --logo-plate: transparent;
  --logo-plate-pad: 0;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.8rem, 3.2vw, 2.4rem);
  --step-4: clamp(2.3rem, 5.2vw, 3.8rem);

  --radius: 10px;
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1B24;
    --surface: #112732;
    --ink: #E3EEF2;
    --muted: #96B1BC;
    --line: #234350;
    --aqua: #3BC0D2;
    --aqua-ink: #72D5E2;
    --deep: #06141A;
    --on-deep: #E3EEF2;
    --on-deep-muted: #8EAAB5;
    --btn-bg: #3BC0D2;
    --btn-fg: #06222B;
    --btn-hover: #5ACDDC;
    --tile-a: #2BAEC1;
    --tile-b: #176B7C;
    --tile-c: #7CD3DE;
    --grout: #0B1B24;
    --water-1: #2A8FA0;
    --water-2: #135F70;
    --water-3: #0A3542;
    --star: #E7B23F;
    --ph-bg: #3A3010;
    --ph-line: #E2B634;
    --ok: #5CC791;
    --logo-plate: #FFFFFF;
    --logo-plate-pad: 4px 10px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1B24;
  --surface: #112732;
  --ink: #E3EEF2;
  --muted: #96B1BC;
  --line: #234350;
  --aqua: #3BC0D2;
  --aqua-ink: #72D5E2;
  --deep: #06141A;
  --on-deep: #E3EEF2;
  --on-deep-muted: #8EAAB5;
  --btn-bg: #3BC0D2;
  --btn-fg: #06222B;
  --btn-hover: #5ACDDC;
  --tile-a: #2BAEC1;
  --tile-b: #176B7C;
  --tile-c: #7CD3DE;
  --grout: #0B1B24;
  --water-1: #2A8FA0;
  --water-2: #135F70;
  --water-3: #0A3542;
  --star: #E7B23F;
  --ph-bg: #3A3010;
  --ph-line: #E2B634;
  --ok: #5CC791;
  --logo-plate: #FFFFFF;
  --logo-plate-pad: 4px 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua-ink);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.stack { display: grid; gap: 16px; }

/* Waterline tile band — the signature motif */
.tileline {
  height: 14px;
  border-block: 2px solid var(--grout);
  background-image: repeating-linear-gradient(90deg,
    var(--tile-a) 0 22px, var(--grout) 22px 24px,
    var(--tile-c) 24px 46px, var(--grout) 46px 48px,
    var(--tile-a) 48px 70px, var(--grout) 70px 72px,
    var(--tile-b) 72px 94px, var(--grout) 94px 96px);
}

/* Draft bar — remove before launch */
.draft-bar {
  background: var(--ph-bg);
  border-bottom: 1px solid var(--ph-line);
  color: var(--ink);
  font-size: var(--step--1);
}
.draft-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 8px; }
.draft-bar p { min-width: 0; }
.draft-bar button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ph-line); border-radius: 999px; padding: 4px 12px;
}
.ph {
  background: var(--ph-bg);
  box-shadow: inset 0 -2px 0 var(--ph-line);
  border-radius: 3px;
  padding: 0 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.btn .ph, .contact-card .ph, .site-footer .ph { background: transparent; color: inherit; box-shadow: inset 0 -2px 0 var(--ph-line); border-radius: 0; padding: 0; }
html.clean .ph { background: none; box-shadow: none; padding: 0; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { flex: none; width: 34px; height: 34px; }
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--font-display); font-variation-settings: "wdth" 118; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua-ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: color-mix(in srgb, var(--aqua) 12%, transparent); }
.nav a[aria-current="page"] { color: var(--aqua-ink); box-shadow: inset 0 -2px 0 var(--aqua); border-radius: 0; }

.menu-btn {
  display: none; font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 12px 20px; border-radius: 8px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--aqua); }
.btn--small { padding: 8px 14px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .header-call .label-long { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 12px 24px -12px rgba(0,0,0,.25);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 12px 8px; border-radius: 6px; }
  .nav a[aria-current="page"] { box-shadow: none; background: color-mix(in srgb, var(--aqua) 12%, transparent); }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 28px; height: 28px; }
  .header-row { gap: 10px; }
  .header-call { padding: 8px 10px; }
}

/* Water placeholder for photos */
.photo-ph {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--water-2);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='2'%3E%3Cpath d='M0 30c20-14 40 14 60 0s40-14 60 0 30 10 40 4'/%3E%3Cpath d='M0 80c25-12 45 12 70 0s45-14 65 0 20 8 25 4'/%3E%3Cpath d='M0 130c18-10 38 12 58 0s42-14 62 0 30 10 40 6'/%3E%3Cpath d='M30 0c-10 22 12 38 0 60s-14 40 0 60 8 30 2 40'/%3E%3Cpath d='M110 0c-12 20 10 42 0 62s-12 38 0 58 6 30 0 40'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, #ffffff 35%, transparent), transparent 55%),
    linear-gradient(160deg, var(--water-1), var(--water-2) 55%, var(--water-3));
  display: flex; align-items: flex-end;
}
.photo-ph figcaption, .photo-ph .ph-label {
  margin: 12px; padding: 6px 10px; border-radius: 6px;
  background: color-mix(in srgb, #06222B 72%, transparent); color: #F1FAFB;
  font-size: 0.82rem; line-height: 1.35; font-weight: 600;
}
.photo-ph .ph-label b { color: #FFE58A; font-weight: 700; }
.photo-ph--tall { aspect-ratio: 1 / 1; }
.photo-ph--wide { aspect-ratio: 16 / 10; }

/* Home hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--aqua-ink); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { padding: 18px 20px; display: grid; gap: 2px; border-left: 1px solid var(--line); min-width: 0; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-k { font-family: var(--font-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.35rem; }
.trust-v { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Service cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0;
}
.card-icon { width: 40px; height: 40px; color: var(--aqua-ink); }
.card p { color: var(--muted); }
.card .more { font-weight: 700; text-decoration: none; margin-top: 4px; }

/* Process steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--aqua); min-width: 0; }
.steps li::before {
  counter-increment: step; content: "Step " counter(step);
  font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aqua-ink);
}
.steps p { color: var(--muted); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; margin: 0; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review figcaption { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.reviews--wall { display: block; columns: 3 300px; column-gap: 20px; }
.reviews--wall .review { break-inside: avoid; margin: 0 0 20px; background: var(--bg); }
.review blockquote p { margin: 0; }

/* Chips (parishes, pool types) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.95rem; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Deep CTA band */
.band { background: var(--deep); color: var(--on-deep); }
.band .wrap { padding-block: clamp(48px, 7vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { max-width: 20ch; }
.band p { color: var(--on-deep-muted); margin-top: 10px; max-width: 52ch; }
.band .btn--ghost { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 35%, transparent); }
.band .btn--ghost:hover { background: color-mix(in srgb, var(--on-deep) 10%, transparent); }
.band .btn { background: var(--aqua); color: #06222B; }
.band .btn:hover { filter: brightness(1.08); }
.band .btn.btn--ghost { background: transparent; color: var(--on-deep); }

/* Page header for inner pages */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px); display: grid; gap: 14px; }

/* Services detail */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.service-block:nth-of-type(even) .service-media { order: -1; }
.service-block > * { min-width: 0; }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-of-type(even) .service-media { order: 0; }
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px;
  border-left: 3px solid var(--aqua); border-bottom: 3px solid var(--aqua); transform: rotate(-45deg) scale(.8);
}

/* Water chemistry table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chem { width: 100%; border-collapse: collapse; min-width: 520px; }
.chem th, .chem td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.chem tr:last-child td { border-bottom: 0; }
.chem th { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.chem .reading { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--aqua-ink); white-space: nowrap; }
.chem td:last-child { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--aqua-ink); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ba { grid-template-columns: 1fr; } }
.ba-tag { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua-ink); margin-bottom: 8px; display: block; }

/* About */
.creds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .creds { grid-template-columns: 1fr; } }
.creds li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 2px; }
.creds strong { font-family: var(--font-display); font-variation-settings: "wdth" 112; font-size: 1.15rem; }
.creds span { color: var(--muted); font-size: .95rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.values > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 3px solid var(--aqua); }
.values p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 28px; display: grid; gap: 22px; }
.contact-card h2 { font-size: var(--step-2); }
.contact-line { display: grid; gap: 2px; }
.contact-line .k { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); }
.contact-line .v { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card a { color: var(--on-deep); }
.contact-card .btn { background: var(--aqua); color: #06222B; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row > * { min-width: 0; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.field .hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aqua); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; background: var(--bg); }
.radios input { width: auto; accent-color: var(--aqua-ink); }
.form-status { font-weight: 600; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--aqua) 12%, transparent); }
.form-status.ok { color: var(--ok); }

/* Preview-only toast for phone/email links */
.toast {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px);
  background: var(--deep); color: var(--on-deep);
  border: 1px solid color-mix(in srgb, var(--on-deep) 20%, transparent);
  padding: 12px 18px; border-radius: 10px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.footer-grid > * { min-width: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-deep); }
.site-footer p { color: var(--on-deep-muted); max-width: 40ch; }
.footer-brand { font-family: var(--font-display); font-variation-settings: "wdth" 118; font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; color: var(--on-deep); }
.footer-base { border-top: 1px solid color-mix(in srgb, var(--on-deep) 15%, transparent); padding-block: 18px 28px; font-size: var(--step--1); color: var(--on-deep-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .tileline { border-color: var(--deep); }

/* Logo options page — panels are fixed "paper samples", so their colors don't follow the theme */
:root {
  --logo-navy: #0F2B3A;
  --logo-aqua: #1E9FB3;
  --logo-aqua-2: #8FD5DE;
  --logo-aqua-3: #12748A;
  --logo-paper: #FFFFFF;
  --logo-night: #0F2B3A;
  --icon-bg: #0F2B3A;
}
.logo-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.logo-opt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 20px; scroll-margin-top: 90px; }
.logo-meta { display: flex; gap: 14px; align-items: flex-start; }
.logo-meta p { color: var(--muted); max-width: 70ch; }
.logo-meta h2 { font-size: var(--step-2); }
.logo-letter { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.logo-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.logo-panels > * { min-width: 0; }
.panel { border-radius: 8px; padding: clamp(22px, 4vw, 40px) clamp(16px, 3vw, 32px); display: flex; align-items: center; justify-content: center; min-height: 150px; }
.panel--light { background: var(--logo-paper); color: var(--logo-navy); border: 1px solid var(--line); --sub: #0A6A7B; --icon-bg: var(--logo-navy); }
.panel--dark { background: var(--logo-night); color: #FFFFFF; border: 1px solid var(--line); --sub: #8FD5DE; --icon-bg: #1A4558; }
.panel--sizes { grid-column: 1 / -1; min-height: 0; padding-block: 18px; justify-content: flex-start; gap: 18px; flex-wrap: wrap; border: 1px dashed var(--line); color: var(--ink); }
.size-note { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 700px) { .logo-panels { grid-template-columns: 1fr; } }

.lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lk-icon { width: 64px; height: 64px; flex: none; }
.lk-text { display: grid; min-width: 0; }
.lk-name, .lk-sub { white-space: nowrap; }
.lockup--a .lk-name { font-family: var(--font-display); font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: .01em; line-height: 1; }
.lockup--a .lk-sub { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .34em; font-size: .72rem; color: var(--sub); margin-top: 6px; }
.lockup--b .lk-name { font-family: var(--font-display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; line-height: 1; }
.lockup--b .lk-sub { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--sub); margin-top: 2px; }
.lockup--c { gap: 10px; }
.lockup--c .lk-icon { width: 58px; height: 58px; }
.lockup--c .lk-name { font-family: "Barlow Condensed", "Arial Narrow", var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: .9; letter-spacing: .01em; }
.lockup--c .lk-sub { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: .7rem; color: var(--sub); margin-top: 6px; }
.lockup--c .lk-sub::after { content: ""; flex: 1; height: 2px; background: var(--sub); min-width: 16px; }
@media (max-width: 420px) {
  .lk-icon { width: 48px; height: 48px; }
  .lockup--c .lk-icon { width: 46px; height: 46px; }
  .lockup--a .lk-sub { letter-spacing: .22em; }
}
.logo-foot { color: var(--muted); max-width: 70ch; }

/* Real photos */
.photo { margin: 0; position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--water-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--hero { aspect-ratio: 5 / 4; }
.photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, #06222B 72%, transparent); color: #F1FAFB; font-size: .8rem; font-weight: 600; }
@media (min-width: 901px) {

}

/* Logo lockup in the header; gets a white plate in dark mode so the navy lettering stays readable */
.brand .brand-lockup { height: 128px; width: auto; max-width: 100%; flex: none; background: var(--logo-plate); padding: var(--logo-plate-pad); border-radius: 8px; box-sizing: content-box; }
.header-row { min-height: 148px; }
@media (max-width: 1180px) { .brand .brand-lockup { height: 112px; } }
@media (max-width: 600px) { .brand .brand-lockup { height: 70px; } .header-row { min-height: 88px; } }
@media (max-width: 420px) { .brand .brand-lockup { height: 62px; } }
@media (max-width: 380px) { .brand .brand-lockup { height: 52px; } }
.brand .brand-lockup { object-fit: contain; object-position: left center; }

/* Before & after pairs */
.ba-list { display: grid; gap: clamp(36px, 5vw, 56px); }
.ba-pair { display: grid; gap: 10px; }
.ba-pair > p { color: var(--muted); max-width: 65ch; margin-bottom: 6px; }
.link-more { font-weight: 700; text-decoration: none; justify-self: start; }
.link-more:hover { text-decoration: underline; }

/* Start-to-finish build slideshow */
.build { display: grid; gap: 14px; }
.build-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--deep); aspect-ratio: 4 / 3; max-width: 100%; touch-action: pan-y; }
@media (min-width: 900px) { .build-stage { aspect-ratio: 16 / 10; } }
.build-slide { margin: 0; position: absolute; inset: 0; }
.build-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.build-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px; padding-right: 90px;
  background: linear-gradient(to top, rgba(4,20,27,.85), rgba(4,20,27,0));
  color: #F1FAFB; font-weight: 500; line-height: 1.45;
}
.build-step { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 999px; background: #1E9FB3; color: #04232B; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.build-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); color: #0F2B3A; font-size: 2rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.build-nav:hover { background: #fff; }
.build-nav:disabled { opacity: .35; cursor: default; }
.build-prev { left: 12px; }
.build-next { right: 12px; }
.build-count { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(4,20,27,.72); color: #F1FAFB; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.build-progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.build-progress span { display: block; height: 100%; width: 0; background: var(--aqua); transition: width .25s ease; }
.build-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.build-chips button { font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.build-chips button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
@media (max-width: 560px) {
  .build-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .build-slide figcaption { font-size: .9rem; padding: 32px 14px 12px; }
}

/* Our Work: full, uncropped photos in a masonry layout */
.gallery[data-masonry] .photo { aspect-ratio: auto; }
.gallery[data-masonry] .photo img { height: auto; }
.gallery[data-masonry].is-masonry { display: flex; align-items: flex-start; gap: 16px; }
.gallery[data-masonry] .gcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Before & after and slideshow: show the whole photo */
.ba .photo { aspect-ratio: auto; }
.ba .photo img { height: auto; }
.build { max-width: 1000px; }
.build-stage { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .build-stage { aspect-ratio: 4 / 3; } }
.build-slide img { object-fit: contain; }

.photo--natural { aspect-ratio: auto; }
.photo--natural img { height: auto; }

.deck-group { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.deck-group > p { color: var(--muted); }
.deck-group .chips { margin-top: 4px; }

.review-widget { min-height: 120px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.review-widget-note { color: var(--muted); max-width: 52ch; }

/* Our Work lightbox */
.gallery[data-masonry] figure { cursor: zoom-in; }
.gallery[data-masonry] figure:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.gallery[data-masonry] figure img { transition: transform .25s ease, filter .25s ease; }
.gallery[data-masonry] figure:hover img { transform: scale(1.02); filter: brightness(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery[data-masonry] figure:hover img { transform: none; } }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 16, 21, .96);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  color: #F1FAFB;
}
.lightbox[hidden] { display: none !important; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-count { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .85; }
.lb-close, .lb-nav {
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; border-radius: 50%;
}
.lb-close { width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 3px solid #3BC0D2; outline-offset: 2px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb-stage img { max-width: calc(100% - 8px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
.lb-caption { text-align: center; padding-top: 12px; font-weight: 600; }
@media (max-width: 600px) { .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; background: rgba(0,0,0,.45); } }
