/* HAWC III — public website.
 * Tokens mirror the HAWC III portal theme (demos/home-improvement/public/themes/hawc.css)
 * so the site, the app, and the invoices all read as one brand. */

:root {
  --ink: #0E1D2A;            /* Hawk Ink: chrome, dark sections */
  --ink-2: #142533;
  --ink-3: #1B3043;
  --on-ink: #F2F5F7;
  --on-ink-soft: #A7B2BC;

  --accent: #EA740B;         /* Hawk Orange: CTAs only */
  --accent-hover: #C65303;   /* Rust */
  --accent-muted: #EA740B1A;

  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --muted-bg: #ECEFF2;

  --text: #16222E;
  --text-2: #5B6672;
  --text-3: #828C97;

  --line: #E4E7EA;
  --line-strong: #C9CFD4;

  --r-el: 8px;
  --r-ct: 12px;
  --r-pg: 20px;
  --sh-1: 0 1px 2px #0E1D2A0D, 0 2px 6px #0E1D2A12;
  --sh-2: 0 2px 4px #0E1D2A0D, 0 6px 16px #0E1D2A1A;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --topbar-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: -0.015em; color: var(--text); }
p { margin: 0; }
.muted { color: var(--text-2); }
.tiny { font-size: .85rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
       stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Small uppercase label, the portal's "OUTSTANDING" style */
.label { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.label-dark { color: var(--on-ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-el);
  font: inherit; font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost-dark { color: var(--on-ink); border-color: #FFFFFF2E; }
.btn-ghost-dark:hover { background: #FFFFFF14; }
.btn-outline-dark { color: var(--on-ink); border-color: #FFFFFF47; }
.btn-outline-dark:hover { background: #FFFFFF14; border-color: #FFFFFF80; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid #FFFFFF14; }
.topbar-in { height: var(--topbar-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-emblem { height: 40px; width: auto; }
.brand-word { height: 46px; width: auto; }
.topbar-cta { margin-left: auto; display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.hero::after { /* faint roofline divider, echoing the logo's house */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px;
  background: var(--bg); clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 112px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { color: var(--on-ink); font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
.lead { color: var(--on-ink-soft); font-size: 1.15rem; margin-top: 18px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--on-ink); font-weight: 600; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--accent); width: 18px; height: 18px; stroke-width: 2.4; }
.hero-art img { width: 100%; max-width: 480px; height: auto; margin-left: auto; filter: drop-shadow(0 18px 40px #00000059); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 8px 0 10px; }

.grid { display: grid; gap: 16px; }
.services { grid-template-columns: repeat(3, 1fr); }

/* Card = the portal's white tile */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ct); box-shadow: var(--sh-1); padding: 22px; }
.card .label { margin-bottom: 8px; }   /* small label above each card heading */
.svc h3 { font-size: 1.12rem; font-weight: 750; margin-bottom: 6px; }
.svc p:not(.label) { color: var(--text-2); font-size: .95rem; }
.svc { transition: box-shadow .15s, transform .15s; }
.svc:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }

.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px;
        border-radius: var(--r-ct); background: var(--surface); border: 1px dashed var(--line-strong); }
.note .ico { color: var(--accent); margin-top: 2px; }
.note p { color: var(--text-2); }
.note strong { color: var(--text); }


/* emergencies */
#services, #emergency { padding-bottom: 0; }   /* plain sections in a row: one gap between them, not two */
.emergency { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
             border-left: 4px solid var(--accent); padding: 26px 28px; }
.emergency h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 10px; }
.emergency-copy > p { color: var(--text-2); max-width: 46em; }
.emergency-copy > p + p { margin-top: 10px; }
.emergency .fee { color: var(--text); }
.emergency .safety { font-size: .9rem; }
.emergency-cta { display: grid; gap: 8px; justify-items: center; text-align: center; }

/* area + about */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.area h2, .about h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.towns { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.about-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 999px; background: var(--accent); color: #fff;
          display: grid; place-items: center; font-weight: 750; font-size: 1.05rem; flex: none; }
.about p + p { margin-top: 10px; }
.about > p { color: var(--text-2); }

/* quote */
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink h2 { color: var(--on-ink); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 8px 0 12px; }
.quote { align-items: center; gap: 40px; }
.quote-copy > p { color: var(--on-ink-soft); max-width: 30em; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact-list .ico { color: var(--accent); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.dim { color: var(--on-ink-soft); font-weight: 500; font-size: .9rem; }

.form { display: grid; gap: 14px; color: var(--text); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 650; color: var(--text); }
.form .opt { color: var(--text-3); font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fff; width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--r-el); padding: 11px 12px; min-height: 44px;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.form [aria-invalid="true"] { border-color: #B42318; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }  /* honeypot */
.form-msg { font-size: .92rem; padding: 10px 12px; border-radius: var(--r-el); background: #D7EFDD; color: #216E39; }
.form-msg.err { background: #F9DCD7; color: #B42318; }

/* footer */
.footer { background: #0A1620; color: var(--on-ink-soft); padding: 48px 0 0; }
.footer-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { width: 180px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols p:not(.label) { margin-top: 8px; color: var(--on-ink); line-height: 1.7; }
.footer-cols a { text-decoration: none; }
.footer-base { border-top: 1px solid #FFFFFF14; margin-top: 36px; padding-top: 18px; padding-bottom: 22px; font-size: .82rem; }

/* Texting: sms: links only work on phones (and Macs with Messages), so devices with
   a mouse/trackpad get "Call or text <number>" instead of Text buttons. */
.desk-only { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .sms-only { display: none !important; }
  .desk-only { display: inline-flex !important; }
  span.desk-only { display: inline !important; }
}

/* phone action bar */
.actionbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --topbar-h: 66px; }
  .topbar-cta { display: none; }
  .topbar-in { gap: 12px; }
  .brand { gap: 10px; }
  .brand-emblem { height: 30px; }
  .brand-word { height: 36px; }
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 84px; gap: 0; }
  .hero-art { order: -1; margin-bottom: 28px; }
  .hero-art img { max-width: 260px; margin: 0 auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 52px 0; }
  .services, .two-col { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .emergency { grid-template-columns: 1fr; padding: 22px; }
  .emergency-cta, .emergency-cta .btn { width: 100%; }
  .footer-cols { gap: 32px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .actionbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--ink); border-top: 1px solid #FFFFFF14;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .actionbar a { display: grid; justify-items: center; gap: 2px; color: var(--on-ink-soft);
                 text-decoration: none; font-size: .78rem; font-weight: 650; padding: 4px 0; }
  .actionbar a .ico { width: 24px; height: 24px; }
  .actionbar-main { color: var(--on-ink) !important; }
  .fab { width: 56px; height: 56px; margin-top: -30px; border-radius: 999px; background: var(--accent); color: #fff;
         display: grid; place-items: center; box-shadow: 0 6px 16px #00000059; border: 4px solid var(--ink); }
  .fab .ico { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc { transition: none; }
}
