/* Coastline Plumbing & Heating — trades concept
   Palette: harbour navy, signal yellow, sea glass, foam, slate.
   Type: Archivo, using its width axis — condensed for headlines, normal for reading. */
:root {
  --navy: #12324a;
  --navy-deep: #0c2436;
  --signal: #f2c230;
  --glass: #a9d3cb;
  --foam: #f5f7f6;
  --slate: #4f6068;
  --line: #d5dddc;
  --ink: #142028;
  --error: #b3261e;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

.display {
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-variation-settings: "wdth" 70; font-weight: 800; font-size: 21px; line-height: 1; }
.brand small { display: block; font-weight: 500; font-size: 12px; font-variation-settings: "wdth" 100; color: var(--glass); margin-top: 3px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: #fff; text-decoration: none; padding: 10px 12px; font-weight: 600; font-size: 15px; border-radius: 4px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav .call { background: var(--signal); color: var(--navy-deep); border-radius: 4px; margin-left: 8px; }
.site-header .menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 4px; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: rgba(255,255,255,.1); }
  .nav .call:hover { background: #ffd34d; }
  .btn-primary:hover { background: #ffd34d; }
  .btn-ghost:hover { background: rgba(255,255,255,.12); }
  .svc-link:hover { color: var(--navy-deep); }
}

@media (max-width: 760px) {
  .site-header .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-deep); flex-direction: column; align-items: stretch;
    padding: 8px 16px 16px; gap: 0;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--signal); padding-left: 14px; }
  .nav .call { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 17px; padding: 14px 22px; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--signal); color: var(--navy-deep); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-dark { background: var(--navy); color: #fff; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 56px 0 0; overflow: hidden; }
/* Headline runs the full width; the copy and the call-out card share the row under it */
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 48px; align-items: start; }
.hero h1 { grid-column: 1 / -1; font-size: clamp(56px, 9vw, 120px); }
.hero-copy { padding-bottom: 56px; }
.hero-card { margin-top: 28px; }
.hero h1 em { font-style: normal; color: var(--signal); display: block; }
.hero .lede { font-size: 19px; max-width: 34ch; color: #d9e6ea; margin: 24px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { background: var(--navy-deep); border-top: 4px solid var(--signal); padding: 24px; margin-bottom: 56px; }
.hero-card h2 { font-size: 15px; font-weight: 700; color: var(--glass); margin: 0 0 12px; }
.hero-card p { margin: 0 0 6px; }
.hero-card .big { font-variation-settings: "wdth" 70; font-size: 34px; font-weight: 800; color: #fff; text-decoration: none; display: block; }
.hero-card ul { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; font-size: 15px; color: #d9e6ea; }
.hero-card li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--glass); border-radius: 50%; margin-right: 10px; vertical-align: 1px; }

/* Coastline coverage band — the signature element */
.coast { background: var(--navy); padding: 8px 0 40px; color: #fff; }
.coast-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.coast-head h2 { font-size: 15px; font-weight: 700; color: var(--glass); margin: 0; }
.coast-head p { margin: 0; font-size: 14px; color: #b9cdd3; }
.coast-map { position: relative; }
.coast-map svg { width: 100%; height: auto; }
.coast-towns { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.coast-towns li { font-size: 14px; line-height: 1.25; }
.coast-towns strong { display: block; font-variation-settings: "wdth" 70; font-size: 20px; font-weight: 800; color: #fff; }
.coast-towns span { color: #b9cdd3; font-size: 13px; }
@media (max-width: 760px) {
  .coast-map svg { display: none; }
  .coast-towns { grid-template-columns: 1fr 1fr; gap: 14px 16px; padding-top: 16px; border-top: 2px dashed rgba(169,211,203,.4); }
}

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.section-intro { max-width: 58ch; color: var(--slate); margin: 0 0 40px; font-size: 18px; }

.jobs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--navy); }
.job { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.job + .job { padding-left: 28px; border-left: 1px solid var(--line); }
.job h3 { font-variation-settings: "wdth" 75; font-size: 26px; font-weight: 800; margin: 0 0 8px; line-height: 1.1; }
.job p { margin: 0 0 16px; color: var(--slate); }
.svc-link { font-weight: 700; color: var(--navy); }
@media (max-width: 860px) {
  .jobs { grid-template-columns: 1fr; }
  .job, .job + .job { padding: 24px 0; border-left: 0; }
}

.proof { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 44px; line-height: 1; color: var(--navy); }
.steps h3 { margin: 0 0 4px; font-size: 19px; }
.steps p { margin: 0; color: var(--slate); }
blockquote { margin: 0; padding: 28px; background: var(--foam); border-left: 4px solid var(--signal); }
blockquote p { font-size: 21px; line-height: 1.45; margin: 0 0 14px; }
blockquote footer { color: var(--slate); font-size: 15px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badges span { font-size: 14px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; gap: 40px; } }

.cta-band { background: var(--signal); color: var(--navy-deep); padding: 48px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(36px, 5vw, 56px); }
.cta-band p { margin: 8px 0 0; font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3d3d8; padding: 48px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 15px; color: #fff; margin: 0 0 10px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; color: #8fa7ae; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Services page */
.page-head { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-head h1 { font-size: clamp(52px, 9vw, 104px); }
.page-head p { color: #d9e6ea; max-width: 56ch; font-size: 19px; margin: 18px 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
@media (hover: hover) and (pointer: fine) { .jump a:hover { background: rgba(255,255,255,.1); } }

.service { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(38px, 5vw, 56px); }
.service .when { color: var(--slate); margin: 14px 0 0; }
.service .price { display: inline-block; margin-top: 18px; font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 4px; }
.service h3 { font-size: 17px; margin: 24px 0 8px; }
.service h3:first-child { margin-top: 0; }
.service p { margin: 0 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 10px; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(-45deg) scale(.8); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; } }

/* Contact / enquiry */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 32px; }
.form h2 { font-variation-settings: "wdth" 75; font-size: 30px; margin: 0 0 6px; }
.form > p { color: var(--slate); margin: 0 0 24px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--slate); font-size: 15px; margin-top: 2px; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; padding: 12px 14px; border: 2px solid #b5c2c4; border-radius: 4px; background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242,194,48,.6); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 600; font-size: 15px; margin: 6px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid #d5dddc; border-radius: 4px; font-weight: 500 !important; cursor: pointer; margin: 0 !important; }
.choice input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.choice:has(input:checked) { border-color: var(--navy); background: #eef4f4; }
.summary { background: #fdecea; color: var(--error); font-weight: 700; padding: 12px 16px; border-left: 4px solid var(--error); margin: 0 0 20px; }
.done { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--signal); padding: 32px; outline: none; }
.done h2 { font-variation-settings: "wdth" 75; font-size: 32px; margin: 0 0 10px; }
.side h2 { font-size: 15px; color: var(--slate); margin: 0 0 8px; }
.side .big { font-variation-settings: "wdth" 70; font-size: 40px; font-weight: 800; color: var(--navy); text-decoration: none; display: block; line-height: 1.1; }
.side section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .two, .choices { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-card { margin-bottom: 40px; } }

/* ---------- Motion ----------
   Hero (once per visit): headline rises, the yellow line wipes in, then the
   lede, buttons and call-out card follow in an overlapping wave.
   Coverage band (on scroll): the coastline draws left to right and each town
   pops in as the line reaches it. */
@keyframes c-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes c-rise-sm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes c-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes c-slide { from { opacity: 0; transform: translateX(32px); } }
@keyframes c-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes c-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

.hero .h-main { display: block; animation: c-rise 700ms var(--ease-out) both; }
.hero h1 em { animation: c-wipe 650ms var(--ease-in-out) 240ms both; }
.hero .lede { animation: c-rise-sm 500ms var(--ease-out) 420ms both; }
.hero-actions { animation: c-rise-sm 500ms var(--ease-out) 500ms both; }
.hero-card { animation: c-slide 650ms var(--ease-out) 320ms both; }

.js-reveal .coast [data-reveal] svg { clip-path: inset(0 100% 0 0); }
.js-reveal .coast [data-reveal] .town-dot,
.js-reveal .coast [data-reveal] .coast-towns li { opacity: 0; }
.coast [data-reveal].is-in svg { animation: c-draw 1400ms linear both; }
.coast .town-dot { transform-box: fill-box; transform-origin: center; }
.coast [data-reveal].is-in .town-dot { animation: c-pop 450ms var(--ease-out-back) calc(var(--i) * 200ms) both; }
.coast [data-reveal].is-in .coast-towns li { animation: c-rise-sm 450ms var(--ease-out) calc(var(--i) * 200ms + 80ms) both; }

.js-reveal .jobs[data-reveal] .job { opacity: 0; }
.jobs[data-reveal].is-in .job { animation: c-rise 600ms var(--ease-out) both; }
.jobs[data-reveal].is-in .job:nth-child(2) { animation-delay: 90ms; }
.jobs[data-reveal].is-in .job:nth-child(3) { animation-delay: 160ms; }

/* Example review: clearly marked as placeholder content */
.example-review { border-left-style: dashed; }
.example-tag { display: inline-block; font-size: 13px !important; font-weight: 700; line-height: 1.2 !important; color: var(--navy) !important; background: var(--signal); padding: 4px 10px; border-radius: 999px; margin: 0 0 14px !important; }
.example-review footer { font-size: 14px; line-height: 1.5; }
