/* ============================================================
   Larkspur & Vane Plumbing — Clean & Modern
   Design tokens
   ============================================================ */
:root {
  /* Color — larkspur-indigo brand, copper accent, airy neutrals */
  --brand:        #2e4f7a;   /* larkspur indigo — primary */
  --brand-dark:   #203a5c;   /* hover / headers */
  --brand-tint:   #eaf0f7;   /* soft brand wash */
  --accent:       #a85d2b;   /* copper — small accents, detail rules */
  --accent-soft:  #f3e7dc;

  --ink:          #15232e;   /* body text (near-black) */
  --muted:        #5c6b78;   /* secondary text */
  --bg:           #ffffff;
  --surface:      #f5f8fb;   /* alternating sections, cards */
  --border:       #e4ebf2;

  /* Type — elegant serif heads + clean sans body */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --h1: clamp(2.3rem, 5.2vw, 3.9rem);
  --h2: clamp(1.7rem, 3.4vw, 2.6rem);
  --h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --body: clamp(1rem, 1.05vw, 1.1rem);

  /* Spacing & shape */
  --space: 1rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(21, 35, 46, .08);
  --shadow-sm: 0 2px 14px rgba(21, 35, 46, .06);
  --maxw: 1140px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
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 { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 600; }
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); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .9rem;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); }

/* thin copper rule */
.rule {
  width: 54px; height: 3px; border: 0; border-radius: 3px;
  background: var(--accent); margin: 0 0 1.4rem;
}
.center .rule { margin-inline: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  line-height: 1; text-align: center;
}
.btn-cta {
  background: var(--brand); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-cta:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--brand); border-color: var(--border);
}
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand-tint); }
.btn-light {
  background: #fff; color: var(--brand); border-color: #fff;
}
.btn-light:hover { background: #f1f1f1; color: var(--brand-dark); transform: translateY(-2px); }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-text { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-text b { color: var(--accent); font-weight: 600; } /* ampersand */

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) {
  color: var(--ink); font-weight: 500; font-size: .98rem;
  position: relative; padding-block: .3rem;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px; color: var(--ink);
}
.nav-toggle svg { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; gap: .35rem;
    background: #fff; padding: 5rem 1.4rem 2rem;
    box-shadow: -10px 0 40px rgba(21,35,46,.14);
    transform: translateX(100%); transition: transform .25s ease;
    border-left: 1px solid var(--border);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a:not(.btn) { padding: .75rem .4rem; border-bottom: 1px solid var(--border); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: .8rem; justify-content: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--brand-tint), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 1.8rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-trust {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
  color: var(--muted); font-size: .92rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* hero visual — framed placeholder + floating emergency card */
.hero-visual { position: relative; }
.hero-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; background: var(--brand-tint);
}
.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; text-align: center; padding: 1.5rem;
  color: var(--brand-dark);
  background:
    repeating-linear-gradient(45deg, rgba(46,79,122,.05) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--brand-tint), #dce7f3);
  border: 1px dashed rgba(46,79,122,.35);
}
.ph svg { width: 46px; height: 46px; color: var(--brand); opacity: .8; }
.ph small { font-size: .78rem; color: var(--muted); max-width: 30ch; line-height: 1.5; }
.ph b { font-weight: 600; font-size: .9rem; }

.emergency-chip {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .75rem; max-width: 260px;
}
.emergency-chip .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #2fa36b; flex: none;
  box-shadow: 0 0 0 4px rgba(47,163,107,.18);
}
.emergency-chip strong { display: block; font-size: .95rem; }
.emergency-chip span { font-size: .8rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .emergency-chip { left: auto; right: 12px; }
}

/* ============================================================
   Service cards
   ============================================================ */
.grid { display: grid; gap: 1.3rem; }
.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: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4deea; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--brand-tint); color: var(--brand);
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* section heading block */
.section-head { max-width: 58ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; }

/* ============================================================
   Split / about
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .ph-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.2; background: var(--brand-tint);
}

/* promise / value list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ticks li { display: flex; gap: .8rem; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: .95rem; }

/* ============================================================
   Emergency banner
   ============================================================ */
.band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; box-shadow: var(--shadow);
}
.band h2, .band p { color: #fff; }
.band p { margin: 0; color: rgba(255,255,255,.82); max-width: 46ch; }
.band .band-copy { flex: 1 1 320px; }
.band h2 { margin-bottom: .3rem; }

/* ============================================================
   Hours / info
   ============================================================ */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--border);
  font-size: .98rem;
}
.hours-table th { font-weight: 500; color: var(--ink); }
.hours-table td { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.closed td { color: #9aa6b1; }
.hours-table .em td { color: var(--accent); font-weight: 600; }

.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.info-card h3 { margin-bottom: 1rem; }

.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-lines li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-lines svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.contact-lines a { font-weight: 500; }
.contact-lines small { display: block; color: var(--muted); }

/* ============================================================
   Forms
   ============================================================ */
.lead-form { display: grid; gap: 1.1rem; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .lead-form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { font-size: .95rem; font-weight: 500; margin: 0; }
.form-status.ok { color: #2fa36b; }
.form-status.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* map */
.map {
  width: 100%; height: 360px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); display: block;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--brand-dark); color: rgba(255,255,255,.75);
  padding-block: clamp(2.8rem, 5vw, 4rem) 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem;
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text b { color: #d79a6a; }
.footer-brand p { color: rgba(255,255,255,.65); max-width: 34ch; font-size: .95rem; margin-top: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  padding-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  color: rgba(255,255,255,.75);
}
.footer-badge svg { width: 16px; height: 16px; }

/* ============================================================
   Demo ribbon (fixed, unobtrusive)
   ============================================================ */
.demo-ribbon {
  position: fixed; left: 14px; bottom: 14px; z-index: 80;
  background: rgba(21,35,46,.9); color: #fff; backdrop-filter: blur(6px);
  font-size: .72rem; line-height: 1.3; letter-spacing: .01em;
  padding: .5rem .8rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  display: inline-flex; align-items: center; gap: .45rem;
  max-width: calc(100vw - 28px);
}
.demo-ribbon:hover { color: #fff; background: rgba(21,35,46,1); }
.demo-ribbon .dot { width: 7px; height: 7px; border-radius: 50%; background: #d79a6a; flex: none; }
.demo-ribbon span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .demo-ribbon { font-size: .68rem; left: 8px; bottom: 8px; } }

/* ============================================================
   Utilities & motion
   ============================================================ */
.stack-sm > * + * { margin-top: .6rem; }
.mt-2 { margin-top: 2rem; }
.hide { display: none; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
