/* =========================================================
   Microsite Blueprint — shared styles
   Implements wiki/components/component-library.md, including the
   corrections logged from the emergency-plumber-chicago build:
     - two-row header (navy top bar + brand nav) is the default
     - hero split on homepage, plain hero on inner pages, no dark overlay
     - buttons named by COLOR (.btn--red/navy/gold/teal), never primary/secondary
     - form fields are div.field (div.form-group is not in this CSS)
     - hero CTA container is .hero__cta (singular)
     - image bands use landscape images; portraits get object-position:center top
     - phone strip replaces the legacy solid .cta-band
   Plain CSS, no build step.
   ========================================================= */

:root {
  --brand:        #C0392B;   /* red — call/submit */
  --brand-dark:   #a93226;
  --navy:         #152244;
  --navy-dark:    #0e1830;
  --teal:         #2980B9;
  --teal-dark:    #2172a4;
  --gold:         #C8A040;
  --gold-dark:    #a8863a;
  --ink:          #1a1a2e;
  --ink-soft:     #4a5a6a;
  --line:         #e3e8ee;
  --bg:           #ffffff;
  --bg-alt:       #f5f7fa;
  --max:          1160px;
  --radius:       6px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: .6em; }
h3 { font-size: 1.22rem; margin-bottom: .35em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.muted { color: var(--ink-soft); font-size: .9rem; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

/* ---------- buttons (named by colour — never primary/secondary) ---------- */
.btn {
  display: inline-block; color: #fff; padding: 14px 28px;
  border-radius: var(--radius); font-weight: 600; font-family: var(--font-body);
  border: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--red   { background: var(--brand); }  .btn--red:hover   { background: var(--brand-dark); }
.btn--navy  { background: var(--navy); }   .btn--navy:hover  { background: var(--navy-dark); }
.btn--gold  { background: var(--gold); color: #1a1a2e; }  .btn--gold:hover { background: var(--gold-dark); }
.btn--teal  { background: var(--teal); }   .btn--teal:hover  { background: var(--teal-dark); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }

/* ---------- header: two-row ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.header-top { background: var(--navy); color: #fff; font-size: .88rem; }
.header-top__inner {
  max-width: var(--max); margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.nav__logo { color: #fff; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; }
.nav__logo:hover { text-decoration: none; color: #fff; }
.header-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.header-contact__item { color: rgba(255,255,255,.88); font-size: .86rem; }
.header-contact { align-items: center; }
.header-contact__item a { color: #fff; }
.header-call { background: var(--gold); color: #1a1a2e; padding: 7px 16px; border-radius: var(--radius); font-size: .98rem; white-space: nowrap; }
.header-call:hover { background: var(--gold-dark); color: #1a1a2e; text-decoration: none; }

.site-nav { background: var(--brand); }
.site-nav > .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 20px; list-style: none; margin-left: auto; }
.nav__links > li > a { color: #fff; font-weight: 600; font-size: .95rem; display: inline-block; padding: 13px 0; }
.nav__links > li > a:hover { text-decoration: underline; }
.nav__call { background: var(--gold); color: #1a1a2e !important; padding: 9px 18px; border-radius: var(--radius); font-weight: 700; }
.nav__call:hover { background: var(--gold-dark); text-decoration: none; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 260px; padding: 8px 0; box-shadow: 0 12px 30px rgba(0,0,0,.10); z-index: 60;
}
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; display: none; }
.has-dropdown:hover::after, .has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 9px 18px; font-size: .92rem; color: var(--ink); }
.dropdown a:hover { background: var(--bg-alt); text-decoration: none; }

.nav__toggle { display: none; background: none; border: 0; font-size: 1.55rem; cursor: pointer; color: #fff; padding: 8px 0; }
@media (max-width: 900px) {
  .site-nav > .wrap { justify-content: space-between; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--brand); padding: 6px 20px 14px; margin-left: 0; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 6px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 2px 0 2px 14px; min-width: 0; }
  .dropdown a { color: rgba(255,255,255,.92); padding: 6px 0; }
  .dropdown a:hover { background: transparent; text-decoration: underline; }
  .nav__toggle { display: block; }
}

/* ---------- hero (light gradient, navy text, no overlay) ---------- */
.hero { background: linear-gradient(160deg, #eef4fb 0%, #dbe7f5 100%); }
.hero__inner { padding: 74px 0 66px; }
.hero__split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; padding: 62px 0 56px; }
.hero__split .hero__inner { padding: 0; }
/* `.hero p` (0,0,1,1) outranks a bare `.hero__eyebrow` (0,0,1,0), so the eyebrow
   inherited body-copy colour on its dark badge — unreadable. Match specificity. */
.hero p.hero__eyebrow,
.hero__eyebrow {
  display: inline-block; background: var(--navy); color: #fff; text-transform: uppercase;
  letter-spacing: .08em; font-size: .76rem; font-weight: 700; padding: 6px 13px; border-radius: 3px; margin-bottom: 14px;
}
.hero h1 { color: var(--navy); text-transform: uppercase; margin: 0 0 16px; max-width: 20ch; }
.hero p { color: #33415c; font-size: 1.1rem; max-width: 52ch; }
.hero__checklist { list-style: none; margin: 18px 0 4px; }
.hero__checklist li { color: #33415c; font-weight: 600; margin-bottom: 8px; padding-left: 28px; position: relative; }
.hero__checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; font-size: 1.1rem; }
.hero__cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__photo img { border-radius: var(--radius); width: 100%; max-height: 380px; object-fit: cover; }
@media (max-width: 900px) { .hero__split { grid-template-columns: 1fr; gap: 28px; padding: 46px 0 40px; } .hero__photo { order: -1; } }

/* ---------- sections ---------- */
.section { padding: 62px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 65ch; }
.split { display: grid; grid-template-columns: 60fr 40fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 25px; }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .4em; color: var(--navy); }
.card p:last-child { margin-bottom: 0; }

.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a { display: block; padding: 13px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600; }
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.area-link { display: block; padding: 13px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.area-link:hover { border-color: var(--brand); text-decoration: none; }
.area-link__name { display: block; font-weight: 700; color: var(--ink); }
.area-link__city { display: block; font-size: .84rem; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.08rem; padding: 16px 0; list-style: none; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 16px; margin-bottom: 0; }

/* phone strip — preferred CTA band */
.phone-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0; text-align: center; }
.phone-strip h2 { color: var(--navy); margin-bottom: .3em; }
.phone-strip .sub { max-width: 60ch; margin: 0 auto 22px; }
.phone-strip .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* image band — landscape only */
.image-band { padding: 18px 0; }
.image-band img { border-radius: var(--radius); max-height: 320px; width: 100%; object-fit: cover; }

/* forms */
.form-card--teal { background: var(--teal); border-radius: var(--radius); padding: 28px; color: #fff; }
.form-card--teal h3 { color: #fff; }
.form-card--teal p { color: rgba(255,255,255,.92); }
.form-card--teal .italic { font-style: italic; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: .89rem; margin-bottom: 6px; }
.form-card--teal .field label { color: #fff; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 128px; resize: vertical; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 54px 0 26px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 38px; padding-top: 20px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .81rem; color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.55; }

/* ---------- floating tap-to-call (mobile only) ---------- */
.mobile-call { display: none; }
@media (max-width: 900px) {
  .header-call { display: none; }               /* the bottom bar replaces it on small screens */
  .header-contact { display: none; }            /* keep the sticky header to one short row */
  .mobile-call {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--brand); color: #fff; text-align: center;
    font-size: 1.15rem; font-weight: 700; letter-spacing: .01em;
    padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.22);
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .mobile-call:hover { color: #fff; text-decoration: none; background: var(--brand-dark); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }  /* keep footer clear of the bar */
}

/* WhatConverts dynamic-number hook */
.wc-phone { font-weight: 700; }


/* per-site palette override */
:root {
  --brand: #2f6d5b;
  --brand-dark: #255747;
  --navy: #1d4038;
  --navy-dark: #132b25;
  --gold: #c98a3c;
  --gold-dark: #a87030;
  --teal: #3d8f79;
  --ink: #16261f;
  --bg-alt: #f3f8f5;
  --line: #dde9e3;
}
