/* ============================================================
   Larkspur & Vane Plumbing — Warm & Friendly design system
   One stylesheet. Design tokens first, then components.
   ============================================================ */

:root {
  /* Color — warm, friendly palette. Teal (water/larkspur) + terracotta accent on cream. */
  --brand:        #1f6f6b;   /* deep warm teal — headings, brand */
  --brand-dark:   #14524f;   /* hover/active */
  --brand-soft:   #e3efec;   /* tinted teal surface */
  --accent:       #c0531e;   /* terracotta — CTAs only (AA on white when bold/large) */
  --accent-dark:  #a2441795; /* kept for reference */
  --accent-hover: #9f4418;
  --ink:          #2a2522;   /* warm near-black body text */
  --muted:        #6b625b;   /* secondary text */
  --bg:           #fffaf3;   /* warm cream page */
  --surface:      #f6ece0;   /* warm card / alt section */
  --surface-2:    #fff4e8;   /* soft peach panel */
  --border:       #ece0d2;   /* warm hairline */

  /* Type — Fraunces (warm soft serif) headings + Nunito Sans (rounded) body */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --h1: clamp(2.25rem, 5.5vw, 3.75rem);
  --h2: clamp(1.6rem, 3.6vw, 2.5rem);
  --h3: clamp(1.15rem, 2vw, 1.4rem);
  --body: clamp(1rem, 1.1vw, 1.1rem);

  /* Spacing & shape — rounded, soft, generous */
  --space: 1rem;
  --section-y: clamp(3.25rem, 8vw, 6rem);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(31, 111, 107, .10);
  --shadow-soft: 0 4px 16px rgba(42, 37, 34, .07);
  --maxw: 1140px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--brand); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: var(--h1); letter-spacing: -.01em; }
h2 { font-size: var(--h2); letter-spacing: -.01em; }
h3 { font-size: var(--h3); color: var(--ink); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--brand { background: var(--brand-soft); }
.measure { max-width: 65ch; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(192, 83, 30, .28); }
.btn-cta:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--brand); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; color: var(--brand); }
.logo-text span { font-family: var(--font-body); font-weight: 700; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-top: .22rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); background: #fff;
  border-radius: 12px; font-size: 1.3rem; color: var(--brand); cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) {
  font-weight: 700; color: var(--ink); text-decoration: none; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch;
    gap: .25rem; padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .7rem .2rem; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: .6rem; justify-content: center; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(192,83,30,.10), transparent 60%),
    radial-gradient(55% 60% at 10% 90%, rgba(31,111,107,.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.75rem, 7vw, 5rem);
}
.hero h1 { color: var(--brand-dark); }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-assurances { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.hero-assurances li { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--brand-dark); }
.hero-assurances svg { flex: 0 0 auto; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Image placeholders (no stock photos; owner supplies real photos) ---------- */
.ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(31,111,107,.05) 0 14px, rgba(31,111,107,.09) 14px 28px),
    var(--surface);
  border: 2px dashed rgba(31,111,107,.35);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1.25rem;
}
.ph__inner { max-width: 32ch; }
.ph__icon { width: 40px; height: 40px; margin: 0 auto .6rem; color: var(--brand); }
.ph__label { font-weight: 800; font-size: .95rem; margin: 0 0 .2rem; }
.ph__hint { font-size: .8rem; color: var(--muted); margin: 0; font-weight: 600; }
.hero-media { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon-badge { margin-bottom: 1rem; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand);
}
.card h3 { margin-bottom: .35rem; color: var(--brand-dark); }
.card p { margin: 0; color: var(--muted); }
.card--emergency { background: var(--surface-2); border-color: #f0c9ac; }
.card--emergency .icon-badge { background: #f6d8c3; color: var(--accent); }

/* ---------- Feature / split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--rev .split__media { order: -1; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { flex: 0 0 auto; margin-top: .2rem; color: var(--brand); }
.checklist b { color: var(--brand-dark); }

/* ---------- Service area pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.pills li {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: .5rem 1.1rem; font-weight: 700; color: var(--brand-dark);
}

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours th, .hours td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.hours th { font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.hours td { color: var(--muted); font-weight: 600; text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--accent); }
.hours-note { margin-top: 1rem; font-weight: 700; color: var(--brand-dark); display: flex; align-items: center; gap: .5rem; }

/* ---------- Big call band ---------- */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 50ch; margin-inline: auto; }
.cta-band .btn-cta { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cta-phone { display: inline-block; margin-top: .4rem; font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; text-decoration: none; font-weight: 600; }
.cta-phone:hover { color: #fff; text-decoration: underline; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .icon-badge { width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto; }
.info-list b { display: block; color: var(--brand-dark); }
.info-list a { font-weight: 700; }

.lead-form { display: grid; gap: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-soft); }
.lead-form label { display: grid; gap: .35rem; font-weight: 700; color: var(--ink); font-size: .95rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; font-weight: 600; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,107,.15);
}
.lead-form textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 0; }
.form-status { font-weight: 800; padding: .25rem 0; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.82); padding-block: clamp(2.5rem, 6vw, 3.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-brand .logo-text b { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.72); max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.66); }
.footer-bottom a { font-weight: 600; }

/* ---------- Demo ribbon (fixed, unobtrusive, every page) ---------- */
.demo-ribbon {
  position: fixed; left: 12px; bottom: 12px; z-index: 100;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(20, 82, 79, .94); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: .72rem;
  padding: .4rem .8rem; border-radius: var(--radius-pill);
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.22);
  backdrop-filter: blur(4px); max-width: calc(100vw - 24px);
}
.demo-ribbon:hover { color: #fff; background: rgba(20, 82, 79, 1); }
.demo-ribbon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0; z-index: 200; }
.skip:focus { left: 0; color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}
