/* Dirty Whip Detail — Coastal Crest identity
   Layout: alternating navy / cream bands, crest + wave motif, photo-led once real photos arrive. */
:root {
  --navy: #0f2233;
  --navy-deep: #0a1826;
  --navy-line: #22384c;
  --sand: #e8cf9f;
  --sand-deep: #b88f4e;
  --cream: #f6f1e7;
  --cream-2: #ece3d2;
  --ink: #0f2233;
  --ink-muted: #4c5a68;
  --mist: #a9b8c6;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --nav-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 22px; letter-spacing: .03em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sand); color: var(--navy); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.band--navy { background: var(--navy); color: var(--cream); }
.band--cream { background: var(--cream); color: var(--ink); }

.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--navy { color: var(--sand-deep); }
.head { display: grid; gap: 0; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head__sub { margin-top: 16px; font-size: 19px; color: var(--ink-muted); max-width: 60ch; }
.band--navy .head__sub { color: var(--mist); }
.center { text-align: center; margin-top: 40px; }
.fine { margin-top: 20px; font-size: 14px; color: var(--ink-muted); }
.link { color: var(--sand); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* placeholder text: easy to spot, easy to replace */
.ph-text, .trust strong, [data-fill].is-empty, .review--ph p, .review--ph footer { background: rgba(232, 207, 159, .28); border-bottom: 1px dashed var(--sand-deep); padding: 0 3px; border-radius: 3px; }
.band--navy .ph-text { background: rgba(232, 207, 159, .14); border-color: var(--sand); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent; font: 600 15px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .chip input:focus-visible + span, a:focus-visible, summary:focus-visible { outline: 3px solid var(--sand-deep); outline-offset: 3px; }
.btn--sand { background: var(--sand); color: var(--navy); }
.btn--sand:hover { background: #f2dfba; }
.btn--ghost { border-color: rgba(246, 241, 231, .4); color: var(--cream); }
.btn--ghost:hover { border-color: var(--sand); color: var(--sand); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: #18324a; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(15, 34, 51, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--navy-line); }
.nav__inner { max-width: 1200px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sand); }
.brand__crest { width: 50px; height: 50px; flex: none; }
.brand__word { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; display: grid; gap: 4px; }
.brand__word small { font: 500 11px/1 var(--display); letter-spacing: .3em; color: var(--mist); }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--cream); text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.nav__links a:hover { opacity: 1; color: var(--sand); }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 420px) { .brand__word small { display: none; } .brand__crest { width: 42px; height: 42px; } }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(96px, 12vw, 160px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); font-weight: 700; color: var(--cream); }
.hero h1 span { color: var(--sand); }
.lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: #d2dbe3; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--mist); }
.trust strong { color: var(--cream); font-weight: 600; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: var(--cream); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C150,10 300,10 450,34 S750,62 900,34 S1100,8 1200,30 L1200,64 L0,64 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C150,10 300,10 450,34 S750,62 900,34 S1100,8 1200,30 L1200,64 L0,64 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- photo placeholders (swap for <img> when photos arrive) ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3; max-width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0,20 C15,10 30,10 45,20 S75,30 90,20 S110,12 120,18' fill='none' stroke='%23e8cf9f' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 30% 20%, #1d3a55 0%, var(--navy-deep) 70%);
  border: 1px solid var(--navy-line);
}
.ph::before {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -60%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e8cf9f' stroke-opacity='.35' stroke-linecap='round'%3E%3Ccircle cx='100' cy='100' r='96' stroke-width='3'/%3E%3Ccircle cx='100' cy='100' r='62' stroke-width='1.5'/%3E%3Cpath d='M74,100 C82,100 85,98 91,93 C97,88 108,87 116,90 C121,92 125,96 127,100 M70,100 L130,100' stroke-width='4'/%3E%3Cpath d='M71,110 C77,106 82,106 88,110 S100,114 106,110 S118,106 124,110' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; font-size: 14px; line-height: 1.4; color: var(--mist); }
.ph figcaption b { display: block; font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 6px; }
.ph--hero { aspect-ratio: 5 / 4; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc { grid-column: span 2; background: #fffdf8; border: 1px solid var(--cream-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.svc--lead { grid-column: span 3; background: var(--navy); color: var(--cream); border-color: var(--navy); }
.svc p { color: var(--ink-muted); }
.svc--lead p { color: #c9d3dc; }
.svc ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.svc ul li { padding-left: 22px; position: relative; }
.svc ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--sand); }
.svc .price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cream-2); font: 600 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.svc--lead .price { border-color: var(--navy-line); color: var(--sand); }
.tag { align-self: flex-start; font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); background: var(--sand); padding: 6px 10px; border-radius: 99px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .svc, .svc--lead { grid-column: span 1; } .svc--lead { grid-column: span 2; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .svc, .svc--lead { grid-column: span 1; } }

/* ---------- before / after ---------- */
.compare { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; --pos: 50%; user-select: none; }
@media (max-width: 600px) { .compare { aspect-ratio: 4 / 5; } }
.compare__layer { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); border-right: 0; }
.ph--before { background-color: #142a3e; background-image: repeating-radial-gradient(circle at 70% 30%, rgba(233, 240, 246, .07) 0 1px, transparent 1px 7px), radial-gradient(120% 90% at 30% 20%, #26384a 0%, #101d2a 70%); }
.compare__before figcaption { right: auto; max-width: 42%; }
.compare__after figcaption { left: auto; text-align: right; max-width: 42%; }
.compare__tag { position: absolute; top: 16px; font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; background: rgba(10, 24, 38, .7); color: var(--cream); padding: 8px 12px; border-radius: 99px; }
.compare__tag--l { left: 16px; } .compare__tag--r { right: 16px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--sand); transform: translateX(-1px); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sand); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; transform: translateY(-50%); }
.compare__handle span::before { left: 6px; border-right-color: var(--navy); }
.compare__handle span::after { right: 6px; border-left-color: var(--navy); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:focus-within .compare__handle span { outline: 3px solid var(--cream); outline-offset: 3px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- why / table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--cream-2); background: #fffdf8; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare-table th, .compare-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--cream-2); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { font: 600 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.compare-table tbody th { font-weight: 600; color: var(--ink-muted); }
.compare-table .hl { background: var(--navy); color: var(--cream); }
.compare-table thead .hl { color: var(--sand); }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--navy-line); }
.steps li { counter-increment: step; padding: 32px 28px 36px 0; border-bottom: 1px solid var(--navy-line); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 15px/1 var(--display); letter-spacing: .1em; color: var(--sand); }
.steps p { color: var(--mist); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; padding: 28px; background: #fffdf8; border: 1px solid var(--cream-2); border-radius: var(--radius); display: grid; gap: 18px; }
.review::before { content: "★★★★★"; color: var(--sand-deep); letter-spacing: .2em; }
.review p { font-size: 18px; }
.review footer { font-size: 14px; color: var(--ink-muted); font-weight: 600; justify-self: start; }

/* ---------- area + faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-grid h2 { margin-bottom: 8px; }
.towns { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 8px 14px; border: 1px solid var(--navy-line); border-radius: 99px; font-size: 15px; }
.faq { margin-top: 24px; border-top: 1px solid var(--navy-line); }
.faq details { border-bottom: 1px solid var(--navy-line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--body); color: var(--sand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--mist); max-width: 62ch; }

/* ---------- quote ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
.contact { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--cream-2); }
.contact li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cream-2); }
.contact span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); padding-top: 3px; }
.contact a, .contact b { font-weight: 600; text-decoration: none; justify-self: start; }
.contact a:hover { color: var(--sand-deep); }

.form { background: #fffdf8; border: 1px solid var(--cream-2); border-radius: 20px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; box-shadow: 0 30px 60px rgba(15, 34, 51, .08); min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > span { display: block; padding: 0; margin-bottom: 10px; font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chips--wrap { display: flex; flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--cream-2); border-radius: 10px; background: var(--cream); font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; text-align: center; }
.chip:hover span { border-color: var(--mist); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.field input, .field textarea { width: 100%; padding: 14px; border: 1.5px solid var(--cream-2); border-radius: 10px; background: var(--cream); color: var(--ink); font: 16px/1.4 var(--body); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field textarea { resize: vertical; }
.form__note { min-height: 1.5em; font-size: 15px; text-align: center; color: var(--ink-muted); }
.form__note.is-error { color: #b3261e; }
.form__note.is-ok { color: #1f6b3a; font-weight: 600; }

/* ---------- footer ---------- */
.footer { padding-block: 72px 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; gap: 20px; align-items: center; color: var(--sand); }
.footer__brand p { color: var(--mist); }
.footer__crest { width: 110px; height: 110px; flex: none; }
.footer h3 { font-size: 15px; letter-spacing: .14em; color: var(--sand); margin-bottom: 12px; }
.footer p { color: var(--mist); line-height: 1.9; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sand); }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: 14px; color: var(--mist); }

/* ---------- mobile action bar ---------- */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); border-top: 1px solid var(--navy-line); padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); gap: 8px; transform: translateY(110%); transition: transform .3s; }
  .actionbar.is-on { transform: none; }
  .actionbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; color: var(--cream); text-decoration: none; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; border: 1px solid var(--navy-line); }
  .actionbar .actionbar__main { background: var(--sand); color: var(--navy); border-color: var(--sand); }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* gentle reveal; content is visible by default and only animates when JS opts in */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
