/* =========================================================
   Coquina Cloud: styles
   Palette: coquina sand + ocean teal + sunrise coral accent
   ========================================================= */
:root {
  --teal: #0F6E74;        /* primary: buttons, links, logo */
  --teal-dark: #0B575C;   /* hover */
  --teal-soft: #E3F2F0;   /* icon backgrounds */
  --sea: #2B9A9C;         /* decorative only */
  --ink: #123B45;         /* headings */
  --text: #384C52;        /* body copy */
  --muted: #56666B;
  --sand: #F8EEDD;        /* section background */
  --sand-deep: #EAD7B7;
  --line: #E6DCCB;
  --coral: #F2A97E;       /* decorative accent */
  --coral-text: #A9461F;  /* accessible coral for small text */
  --white: #FFFFFF;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(18, 59, 69, .06), 0 8px 24px rgba(18, 59, 69, .07);
  --shadow-lg: 0 20px 50px rgba(18, 59, 69, .14);
  --header-h: 72px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .75rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 8px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 8'%3E%3Cpath d='M1 4c2.5-3 5-3 7 0s4.5 3 7 0 4.5-3 6 0' fill='none' stroke='%23F2A97E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.eyebrow-light { color: #BFE3E0; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body);
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(15, 110, 116, .28); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(18, 59, 69, .25); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.5); }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--sand); color: var(--teal-dark); }
.btn-small { padding: .65rem 1.1rem; font-size: .92rem; background: var(--teal); color: #fff; }
.btn-small:hover { background: var(--teal-dark); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 246, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(18,59,69,.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--ink); letter-spacing: -.01em; }
.brand-text span { color: var(--teal); }

.site-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { border-bottom-color: var(--coral); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--teal-soft); cursor: pointer; position: relative;
}
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle .bar { top: 21px; }
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; left: 0; }
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(43,154,156,.12), transparent 70%),
    linear-gradient(180deg, #FFFCF6 0%, var(--sand) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.25rem; }
.call-line { color: var(--muted); font-size: .98rem; }
.call-line a { font-weight: 600; }
.hero-svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(18,59,69,.12)); }
.hero-svg .chip { filter: drop-shadow(0 8px 14px rgba(18,59,69,.12)); }

.wave-divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: 50px; }

/* placeholder highlighting (remove .placeholder-inline once real info is in) */
.placeholder-inline { background: #FFF3C4; padding: 0 .3em; border-radius: 4px; color: var(--ink); }
.todo-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: .15rem .45rem;
  border-radius: 6px; background: #FFE58F; color: #5A4300; margin-left: .4rem; vertical-align: middle;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-white { background: var(--white); }
.section-sand {
  background-color: var(--sand);
  /* faint coquina speckle texture */
  background-image:
    radial-gradient(rgba(201,170,120,.18) 1.2px, transparent 1.3px),
    radial-gradient(rgba(201,170,120,.12) 1px, transparent 1.1px);
  background-size: 26px 26px, 17px 17px;
  background-position: 0 0, 9px 13px;
}
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}

/* Services */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service { transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D5E8E6; }
.service p { margin: 0; font-size: 1rem; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-cta {
  background: linear-gradient(150deg, var(--teal) 0%, #0D5B61 100%);
  border-color: transparent; color: #E9F5F4;
  display: flex; flex-direction: column; align-items: flex-start;
}
.service-cta h3 { color: #fff; }
.service-cta p { margin-bottom: 1.25rem; }
.service-cta .btn { margin-top: auto; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 70%;
}
.checklist strong { color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; box-shadow: var(--shadow); text-align: left;
}
.stat:nth-child(1) { border-top: 4px solid var(--teal); }
.stat:nth-child(2) { border-top: 4px solid var(--coral); }
.stat:nth-child(3) { border-top: 4px solid var(--sea); }
.stat:nth-child(4) { border-top: 4px solid var(--sand-deep); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1.1; }
.stat-label { display: block; font-size: .95rem; color: var(--muted); margin-top: .3rem; }

/* How it works */
.steps {
  list-style: none; padding: 0; margin: 0; counter-reset: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 28px; left: calc(100% / 6); right: calc(100% / 6); height: 2px;
  background: repeating-linear-gradient(90deg, var(--sand-deep) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 .75rem; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--teal); color: #fff;
  font: 700 1.35rem/1 var(--font-head); box-shadow: 0 0 0 8px #fff, 0 8px 20px rgba(15,110,116,.25);
}
.step p { color: var(--muted); max-width: 22em; margin-inline: auto; }

/* Testimonials */
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial { margin: 0; position: relative; padding-top: 2.5rem; }
.testimonial::before {
  content: "\201C"; position: absolute; top: .4rem; left: 1.5rem;
  font: 700 3.5rem/1 var(--font-head); color: var(--coral);
}
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.05rem; color: var(--ink); }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { font-size: .92rem; font-weight: 600; color: var(--muted); }
.testimonial.is-placeholder { border: 2px dashed #D9C7A6; background: rgba(255,255,255,.75); box-shadow: none; }
.testimonial.is-placeholder blockquote { color: var(--muted); font-style: italic; }

/* Service area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.town-list { list-style: none; padding: 0; margin: 1.25rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.town-list li {
  background: var(--teal-soft); color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .45rem .95rem; border-radius: 999px;
}
.town-list li:first-child { background: var(--teal); color: #fff; }
.area-map { margin: 0; }
.area-map svg { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Contact */
.contact-wrap { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.contact-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(600px 300px at 0% 100%, rgba(242,169,126,.18), transparent 70%),
    linear-gradient(150deg, #134A52 0%, var(--ink) 100%);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); color: #DCEBEA;
  box-shadow: var(--shadow-lg);
}
.contact-info h2 { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.contact-label {
  width: 4.5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #9CCFCB;
}
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a.placeholder-inline { color: var(--ink); }
.contact-list .todo-tag { margin-left: 0; }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); color: var(--text);
}
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label, .contact-form legend { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .4rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid #D6CCBB; border-radius: 12px; background: #FFFDF9;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,110,116,.15);
}
.contact-form [aria-invalid="true"] { border-color: #B3261E; }
.radio-row { display: flex; gap: .75rem; }
.contact-form label.radio {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; margin: 0;
  padding: .55rem 1rem; border: 1.5px solid #D6CCBB; border-radius: 999px; cursor: pointer;
}
.contact-form label.radio:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.radio input { accent-color: var(--teal); }
.form-note { font-size: .88rem; color: var(--muted); margin: .85rem 0 0; text-align: center; }
.form-note.is-error { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #C9DCDD; padding: 5rem 0 1.5rem; }
.wave-top { top: -1px; bottom: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text span { color: #8FD0CB; }
.footer-brand p { margin-top: 1rem; max-width: 28em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #8FD0CB; text-decoration: underline; }
.footer-contact p { margin: 0 0 .5rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem; color: #A9C2C4;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .area-grid, .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #FFFCF6; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(18,59,69,.1);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav li a:not(.btn):hover { border-bottom-color: var(--line); color: var(--teal); }
  .site-nav .btn { margin-top: 1rem; width: 100%; padding: .9rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand-text { font-size: 1.25rem; }
  .brand img { width: 34px; height: 34px; }
  .lead { font-size: 1.08rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .stats { gap: .75rem; }
  .stat { padding: 1.1rem 1rem; }
  .stat-num { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .contact-list li { gap: .2rem .6rem; }
  .contact-label { width: 100%; }
  .card { padding: 1.4rem; }
  .hero-art { max-width: 420px; margin-inline: auto; }
}
