/* Southern Pool Designs satellite sites
   Tokens: SPD navy and brass, Nanum Myeongjo + Work Sans (the main site's faces). */
:root {
  --ink: #172033;
  --ink-2: #3A4458;
  --muted: #5B6578;
  --paper: #FFFFFF;
  --mist: #F2F5F7;
  --line: #D8DEE6;
  --brass: #B08D45;
  --brass-soft: #E8DCC0;
  --link: #1F5E99;
  --sea: #2C6E74;
  --sand: #E9E2D2;
  --water: #CFE3E4;
  --serif: "Nanum Myeongjo", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 40px);
}
.theme-staug {
  --sea: #3D5F56;      /* Matanzas marsh */
  --sand: #E6DED0;     /* coquina */
  --water: #D3E1DC;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.18; margin: 0 0 .6em; }
h3 { font-size: 1.35rem; line-height: 1.3; margin: 1.6em 0 .5em; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 40em; }

/* Buttons */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); padding: 15px 22px; border-radius: 2px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #24304A; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* Masthead */
.masthead { background: var(--ink); color: #fff; }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand img { width: 96px; height: auto; }
.brand__place { font-family: var(--serif); font-size: 1.2rem; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35); line-height: 1.2; }
.masthead__actions { display: flex; align-items: center; gap: 20px; }
.masthead__phone { color: #fff; text-decoration: none; font-weight: 500; }
.masthead__nav { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 4px; padding-bottom: 14px; }
.masthead__nav a { color: rgba(255,255,255,.86); text-decoration: none; font-size: .95rem; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }
.menu { display: none; }
@media (max-width: 900px) {
  .masthead__nav, .masthead__actions { display: none; }
  .brand img { width: 78px; }
  .brand__place { font-size: 1rem; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 24px; height: 2px; background: #fff; }
  .menu__panel { position: absolute; right: 0; top: 52px; background: var(--ink); width: min(86vw, 320px); padding: 12px 20px 20px; z-index: 40; box-shadow: 0 18px 40px rgba(10,14,24,.35); display: flex; flex-direction: column; }
  .menu__panel a { color: #fff; text-decoration: none; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu__panel a[aria-current="page"] { color: var(--brass-soft); }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Home hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 13em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero__proof { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; font-size: .92rem; color: var(--ink-2); }
.hero__proof strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.hero .photo img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero .photo { order: -1; margin: 0 calc(var(--gut) * -1); }
  .hero .photo img { aspect-ratio: 3 / 2; }
  .hero .photo figcaption { padding: 0 var(--gut); }
  .hero__proof { grid-template-columns: 1fr 1fr; }
}

/* Photos */
.photo { margin: 0; }
.photo img { width: 100%; background: var(--mist); }
.photo figcaption { font-size: .85rem; color: var(--muted); padding-top: 8px; }
.photo--wide { margin: 40px 0; }

/* Page head (inner pages) */
.page-head { padding: clamp(24px, 4vw, 44px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head__grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.page-head--photo .page-head__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; }
.page-head__photo img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .page-head--photo .page-head__grid { grid-template-columns: minmax(0, 1fr); } }

/* Long-form content */
.prose { max-width: 44rem; }
.body { padding: clamp(36px, 5vw, 64px) 0; }
.body__grid { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.body__aside { position: sticky; top: 24px; border-top: 3px solid var(--ink); padding-top: 16px; font-size: .95rem; }
.body__aside h2 { font-size: 1.2rem; margin-bottom: .5em; }
.body__aside ul { padding-left: 1.1em; margin: 0 0 1em; }
@media (max-width: 960px) { .body__grid { grid-template-columns: minmax(0, 1fr); } .body__aside { position: static; } }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .photo { margin: 32px 0; }
.note { border-left: 3px solid var(--brass); padding: 4px 0 4px 18px; color: var(--ink-2); margin: 24px 0; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--mist { background: var(--mist); }
.section__head { max-width: 44rem; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 8px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid var(--ink); }
tbody th { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.table-note { font-size: .92rem; color: var(--muted); }

/* Coastline transect */
.coast { background: var(--mist); padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); }
.coast__intro { max-width: 44rem; color: var(--ink-2); }
.coast__figure { margin-top: 12px; }
.transect { width: 100%; height: auto; color: var(--sea); overflow: visible; }
.transect .zone-hl rect { fill: var(--sea); opacity: 0; transition: opacity .25s ease; }
.transect .zone-hl rect.is-active { opacity: .07; }
.transect .zone-hl rect { rx: 2; }
.transect .t-water { fill: var(--water); }
.transect .t-ground { fill: var(--sand); stroke: var(--ink); stroke-width: 1.2; }
.transect .t-river { fill: var(--water); stroke: var(--ink); stroke-width: 1.2; }
.transect .t-line, .transect .t-house { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.transect .t-house { fill: #fff; }
.transect .t-pool rect, .transect .t-pool path { fill: var(--water); stroke: var(--ink); stroke-width: 1.4; }
.transect .t-waterline { stroke: var(--sea); }
.transect .t-road { fill: var(--ink-2); }
.transect .t-cccl { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 7 6; }
.transect .t-label { font: 500 14px var(--sans); fill: var(--ink-2); }
.transect .t-label--cccl { fill: #8A6A2A; font-weight: 600; }

.coast__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; border-bottom: 1px solid var(--line); }
.coast__tabs button { font: 600 .98rem/1 var(--sans); color: var(--ink-2); background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 14px 6px 12px; margin-right: 14px; cursor: pointer; }
.coast__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sea); }
.coast__tabs button:hover { color: var(--ink); }
.coast__panel { padding: 22px 0 0; max-width: 54rem; }
.coast__panel h3 { margin-top: 0; }
.coast__panel[hidden] { display: none; }
.no-js .coast__panel[hidden] { display: block; }
.facts { display: grid; grid-template-columns: 11rem 1fr; gap: 12px 24px; margin: 0 0 18px; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 4px; } .facts dd { margin-bottom: 12px; } }

/* Current builds */
.builds td:first-child { font-weight: 600; }

/* Steps (true sequences only) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 4px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--brass); grid-row: span 2; }
.steps h3 { margin: 0; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* Reviews */
.reviews { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--line); }
.reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 860px) { .reviews__list { grid-template-columns: minmax(0, 1fr); } }
.review { margin: 0; border-top: 3px solid var(--ink); padding-top: 16px; }
.review p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; }
.review footer { font-size: .9rem; color: var(--muted); }
.reviews__more { margin-top: 24px; font-size: .95rem; color: var(--ink-2); }

/* Awards */
.awards { display: grid; grid-template-columns: auto auto auto 1fr; gap: 18px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 32px 0; }
.awards img { width: 78px; height: 78px; object-fit: contain; }
.awards p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .awards { grid-template-columns: repeat(3, 78px); } .awards p { grid-column: 1 / -1; } }

/* FAQ */
.faq { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.faq h2 { max-width: 44rem; }
.faq__item { border-top: 1px solid var(--line); max-width: 52rem; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq__a { padding: 0 0 18px; color: var(--ink-2); max-width: 46rem; }

/* Lead form */
.lead { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.lead h2 { color: #fff; }
.lead a { color: #fff; }
.lead__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .lead__grid { grid-template-columns: minmax(0, 1fr); } }
.lead__copy p { color: rgba(255,255,255,.86); }
.lead__next { padding-left: 1.2em; color: rgba(255,255,255,.86); margin: 0 0 1.2em; }
.lead__next li { margin-bottom: .6em; }
.lead__call { font-weight: 500; }
.lead__form { background: #fff; color: var(--ink); padding: clamp(20px, 3vw, 32px); border-radius: 2px; display: grid; gap: 16px; }
.lead__form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.lead__form input[type=text], .lead__form input[type=tel], .lead__form input[type=email], .lead__form textarea {
  font: 400 1rem/1.4 var(--sans); padding: 12px 12px; border: 1px solid #B7C0CC; border-radius: 2px; width: 100%; background: #fff; color: var(--ink); }
.lead__form input:focus, .lead__form textarea:focus { border-color: var(--ink); outline: 2px solid var(--brass); outline-offset: 0; }
.lead__form input[type=file] { font-size: .9rem; }
.lead__form .req { color: #A33A2B; }
.checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.lead__form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.lead__form button { justify-self: start; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 520px) { .checks { grid-template-columns: minmax(0, 1fr); } .lead__form button { justify-self: stretch; } }

/* CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 28px; padding-bottom: 28px; margin-top: 24px; margin-bottom: 24px; border-top: 3px solid var(--ink); }
.cta p { margin: 0; font-family: var(--serif); font-size: 1.25rem; flex: 1 1 22rem; }
.cta__tel { font-weight: 500; }

/* Guide list */
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { border-top: 1px solid var(--line); }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: 4px; padding: 20px 0; text-decoration: none; color: var(--ink); }
.guide-list__t { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.guide-list a:hover .guide-list__t { text-decoration: underline; text-underline-offset: .18em; }
.guide-list__d { color: var(--ink-2); }
.byline { font-size: .95rem; color: var(--muted); }

/* Link list */
.links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.links li { break-inside: avoid; padding: 6px 0; }
@media (max-width: 640px) { .links { columns: 1; } }

/* Footer */
.footer { background: #0F1626; color: rgba(255,255,255,.82); padding: 56px 0 96px; font-size: .95rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__who img { width: 120px; margin-bottom: 14px; }
.footer__h { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #fff; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__small { font-size: .88rem; color: rgba(255,255,255,.65); margin-top: 10px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer__legal p { margin: 0; }
.footer__legal a { margin-left: 16px; }

/* Mobile dock */
.dock { display: none; }
@media (max-width: 900px) {
  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; box-shadow: 0 -6px 20px rgba(10,14,24,.18); }
  .dock a { text-align: center; padding: 16px 8px calc(16px + env(safe-area-inset-bottom)); font-weight: 600; text-decoration: none; }
  .dock__call { background: #fff; color: var(--ink); }
  .dock__start { background: var(--ink); color: #fff; }
}

/* Thank-you / 404 */
.center-msg { padding: clamp(56px, 10vw, 120px) 0; max-width: 40rem; }

/* Mobile: let the coastline drawing scroll sideways at a readable size */
@media (max-width: 760px) {
  .coast__figure { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .coast__figure .transect { min-width: 760px; }
  .transect .t-label { font-size: 15px; }
  .transect .t-label--cccl { display: inline; }
  .coast__figure::after { content: "Swipe to see the whole coast"; display: block; font-size: .82rem; color: var(--muted); padding-top: 6px; position: sticky; left: 0; }
}
@media (max-width: 640px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border-top: 1px solid var(--line); padding: 12px 0; }
  table.stack tr:last-child { border-bottom: 1px solid var(--line); }
  table.stack td, table.stack th { border: 0; padding: 3px 0; white-space: normal; }
  table.stack td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
  table.stack td:first-child::before, table.stack th:first-child::before { display: none; }
  table.stack td:first-child { font-weight: 600; font-size: 1.05rem; }
}
.steps h4 { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.prose .steps { padding-left: 0; }
.prose .steps > li { margin-bottom: 0; }
