/* ==========================================================================
   Larkspur & Vane Plumbing — Bold & Industrial
   One stylesheet. Design tokens first, then components.
   ========================================================================== */

:root {
  /* Color — pushed-saturation industrial palette for a trades business */
  --brand:        #1f46e0;   /* larkspur cobalt — primary brand */
  --brand-dark:   #1533ab;   /* hover / deeper blocks */
  --brand-tint:   #e9edff;   /* pale wash for light sections */
  --accent:       #ff7a15;   /* safety amber — CTAs only */
  --accent-dark:  #e46700;

  --ink:          #14161c;   /* near-black body text */
  --charcoal:     #171a21;   /* dark hero / footer */
  --charcoal-2:   #1f232d;   /* raised dark surface */
  --muted:        #58616f;   /* secondary text on light */
  --muted-dark:   #9aa3b2;   /* secondary text on dark */

  --bg:           #ffffff;
  --surface:      #f3f5f9;   /* alternating sections, cards */
  --border:       #e0e5ee;
  --border-dark:  #2d323d;

  /* Type */
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --h1: clamp(2.6rem, 7vw, 5rem);
  --h2: clamp(1.9rem, 4.5vw, 3rem);
  --h3: clamp(1.2rem, 2.2vw, 1.5rem);
  --body: clamp(1rem, 1.1vw, 1.125rem);

  /* Spacing & shape — chunky, blocky */
  --space: 1rem;
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 4px;           /* industrial = sharp corners, minimal radius */
  --radius-lg: 8px;
  --shadow: 0 10px 30px rgba(14, 18, 30, .10);
  --shadow-hard: 6px 6px 0 var(--ink);
  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  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 { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .01em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--charcoal); color: #fff; }
.section--brand { background: var(--brand); color: #fff; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--brand);
  display: inline-block;
  margin-bottom: .9rem;
}
.section--dark .eyebrow,
.section--brand .eyebrow { color: var(--accent); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--h2); }
.section-head p { color: var(--muted); margin-top: .75rem; font-size: 1.05rem; }
.section--dark .section-head p { color: var(--muted-dark); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; }

/* ---------- Buttons (chunky, blocky) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-cta {                       /* primary action — safety amber */
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-brand {                     /* secondary action */
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-ghost {                     /* outline on dark */
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-ghost-ink {                 /* outline on light */
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-ink:hover { background: var(--ink); color: #fff; }

.btn-lg { font-size: 1.2rem; padding: 1.2rem 2.3rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* Wordmark (no real logo exists — typographic monogram) */
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo .mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  border-radius: var(--radius);
  flex: none;
}
.logo .wordmark {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.logo .wordmark b { display: block; font-weight: 700; font-size: 1.18rem; letter-spacing: .04em; }
.logo .wordmark span { display: block; font-weight: 400; font-size: .64rem; letter-spacing: .32em; color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  font-size: .98rem;
  color: #e9ecf2;
}
.site-nav a:not(.btn):hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.site-nav .btn { padding: .7rem 1.25rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  color: #fff;
  width: 46px; height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
}
/* industrial diagonal brand block behind the headline */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, var(--brand) 0 38%, transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(255,122,21,.14), transparent 45%);
  opacity: .22;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 {
  font-size: var(--h1);
  letter-spacing: .005em;
}
.hero h1 .hl { color: var(--accent); }
.hero .lede { color: var(--muted-dark); margin-top: 1.4rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-trust {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-dark);
}
.hero-trust li {
  list-style: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .92rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-trust svg { flex: none; }

/* hero visual — labelled image placeholder */
.hero-media { position: relative; }

/* ==========================================================================
   Image placeholders (no real photos exist yet)
   ========================================================================== */
.ph {
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .5rem;
  background:
    repeating-linear-gradient(45deg, rgba(31,70,224,.05) 0 14px, rgba(31,70,224,.0) 14px 28px),
    var(--brand-tint);
  border: 2px dashed #b9c3e8;
  border-radius: var(--radius-lg);
  color: var(--brand-dark);
  padding: 2rem 1.5rem;
  min-height: 240px;
  aspect-ratio: 4 / 3;
}
.ph .ph-icon { opacity: .8; }
.ph .ph-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .92rem; }
.ph .ph-note { font-size: .82rem; color: var(--muted); max-width: 32ch; margin-inline: auto; }
.ph--dark {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px),
    var(--charcoal-2);
  border-color: var(--border-dark);
  color: #fff;
}
.ph--dark .ph-note { color: var(--muted-dark); }
.ph--wide { aspect-ratio: 16 / 9; }

/* ==========================================================================
   Emergency band
   ========================================================================== */
.emergency {
  background: var(--accent);
  color: var(--ink);
}
.emergency .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.3rem;
}
.emergency .em-text {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.emergency .btn-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.emergency .btn-cta:hover { background: #000; border-color: #000; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.5rem;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section--surface .svc-card { background: #fff; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.svc-card .svc-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.svc-card h3 { font-size: var(--h3); margin-bottom: .5rem; }
.svc-card p { color: var(--muted); font-size: 1rem; }

/* numbered list variant (services page detail) */
.svc-list { display: grid; gap: 1.2rem; }
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}
.svc-row .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand);
  line-height: 1;
}
.svc-row h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.svc-row p { color: var(--muted); font-size: 1rem; }

/* ==========================================================================
   "Why us" / promise blocks
   ========================================================================== */
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.promise {
  border-left: 4px solid var(--accent);
  padding: .4rem 0 .4rem 1.4rem;
}
.promise h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.promise p { color: var(--muted); font-size: 1rem; }
.section--dark .promise p { color: var(--muted-dark); }

/* stat / fact strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--charcoal); padding: 1.8rem 1.4rem; text-align: center; }
.fact .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); color: var(--accent); line-height: 1; }
.fact .lbl { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .08em; }

/* ==========================================================================
   Split / about
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split .prose p + p { margin-top: 1rem; }
.prose p { color: var(--muted); }
.prose h2 { font-size: var(--h2); margin-bottom: 1rem; }
.section--dark .prose p { color: var(--muted-dark); }

.area-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; list-style: none; }
.area-list li {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .9rem;
  background: var(--brand-tint);
  color: var(--brand-dark);
  padding: .5rem 1rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   Hours / contact
   ========================================================================== */
.hours { list-style: none; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.hours li:last-child { border-bottom: 0; }
.hours li:nth-child(odd) { background: var(--surface); }
.hours .day { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.hours .time { color: var(--muted); }
.hours .closed { color: var(--muted); }
.hours .em { color: var(--accent-dark); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }

.contact-block { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ci-icon {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; border-radius: var(--radius);
}
.contact-item h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.contact-item a { font-weight: 600; }
.contact-item p, .contact-item address { color: var(--muted); font-style: normal; }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 1.1rem; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.lead-form label {
  display: grid;
  gap: .4rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .15s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { outline: none; border-color: var(--brand); }
.lead-form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { font-weight: 600; padding: .4rem 0; }
.form-status.ok { color: #1a7f45; }
.form-status.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; }

/* map link card */
.map-card {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}
.map-card .addr { color: var(--muted-dark); font-style: normal; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { text-align: center; }
.cta-banner h2 { font-size: var(--h2); }
.cta-banner p { margin: .8rem auto 1.8rem; max-width: 50ch; color: rgba(255,255,255,.85); }
.cta-banner .btns { display: inline-flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--charcoal); color: var(--muted-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: var(--muted-dark); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-links { list-style: none; display: grid; gap: .6rem; }
.footer-contact { list-style: none; display: grid; gap: .6rem; }
.footer-contact strong { color: #fff; }
.footer-about p { max-width: 38ch; font-size: .95rem; }
.footer-badge {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  color: #fff;
  border: 2px solid var(--border-dark);
  padding: .4rem .8rem;
  border-radius: var(--radius);
}
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  font-size: .85rem;
}

/* ==========================================================================
   Demo ribbon (required — fixed, unobtrusive, on every page)
   ========================================================================== */
.demo-ribbon {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 100;
  background: rgba(20, 22, 28, .92);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .02em;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  text-decoration: none;
  max-width: calc(100vw - 24px);
}
.demo-ribbon:hover { text-decoration: none; background: #000; }
.demo-ribbon b { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 3px solid var(--accent);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--border-dark); }
  .site-nav .btn { margin-top: .9rem; justify-content: center; }
}

@media (max-width: 560px) {
  .lead-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: .8rem 1.2rem; }
  .btn { width: 100%; justify-content: center; }
  .emergency .btn { width: auto; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
