/* ==========================================================================
   Arcadia Plumber — shared stylesheet (mobile-first, no frameworks)
   Brand: deep navy + safety orange (trust + urgency). Built for calls.
   ========================================================================== */
:root {
  --navy: #0d2b45;
  --navy-dark: #081c2e;
  --orange: #f26522;
  --orange-dark: #d9531a;
  --blue: #1473c8;
  --light: #f4f7fb;
  --white: #ffffff;
  --text: #243342;
  --muted: #5b6b7c;
  --border: #dde5ee;
  --green: #1e9e5a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 43, 69, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--blue); }
.container { width: min(1120px, 92%); margin: 0 auto; }
section { padding: 3rem 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin-bottom: 0.75rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; margin-top: 0.5rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe0f0;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(13,43,69,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.logo-text { line-height: 1.15; }
.logo-text strong { display: block; color: var(--navy); font-size: 1.15rem; }
.logo-text span { font-size: 0.78rem; color: var(--muted); }
.main-nav ul { display: flex; list-style: none; margin: 0; gap: 1.25rem; align-items: center; }
.main-nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 8px; padding: 0.35rem 0.6rem; font-size: 1.1rem; color: var(--navy); cursor: pointer; }
.header-call { display: flex; align-items: center; gap: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  padding: 0.9rem 1.6rem; border-radius: var(--radius); border: none; cursor: pointer;
  font-size: 1.05rem; text-align: center; transition: transform 0.08s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-call { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(242,101,34,0.4); }
.btn-call:hover { background: var(--orange-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0f5ea6; color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { font-size: 1.2rem; padding: 1.05rem 2rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, #144a7c 100%);
  color: #fff; padding: 3.5rem 0;
}
.hero .container { display: grid; gap: 2rem; align-items: center; }
.hero h1 { color: #fff; font-size: 2.1rem; }
.hero p.lead { font-size: 1.12rem; color: #d7e6f5; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.badge {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.82rem; font-weight: 700; padding: 0.35rem 0.75rem; border-radius: 999px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1rem; }
.hero-note { font-size: 0.9rem; color: #bcd3e8; }
.hero-img img { box-shadow: var(--shadow); border: 4px solid rgba(255,255,255,0.15); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--light); padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; text-align: center; }
.trust-item strong { display: block; color: var(--navy); font-size: 1.35rem; }
.trust-item span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 2px 10px rgba(13,43,69,0.06);
}
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--orange); }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.75rem; }
.card .read-more { font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.service-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; text-align: center; padding: 2.75rem 0; }
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: #ffe9dc; font-size: 1.05rem; }
.cta-band .btn-call { background: #fff; color: var(--orange-dark); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.cta-band .btn-call:hover { background: var(--navy); color: #fff; }

/* ---------- Reviews ---------- */
.reviews { background: var(--light); }
.stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.review-card { background: #fff; }
.review-card .who { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-top: 0.75rem; }
.review-card .zip { color: var(--muted); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1rem 1.25rem; font-size: 1rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font);
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--orange); flex: 0 0 auto; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

/* ---------- Steps / why ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.step-num {
  counter-increment: step; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }

/* ---------- ZIP pills ---------- */
.zip-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.zip-pill {
  background: var(--navy); color: #fff; font-weight: 800; padding: 0.5rem 1.1rem;
  border-radius: 999px; text-decoration: none; font-size: 1rem;
}
.zip-pill:hover { background: var(--orange); color: #fff; }

/* ---------- Forms ---------- */
.quote-form { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
label { font-weight: 700; font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; font-family: var(--font); background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9cbdd; padding: 3rem 0 7rem; font-size: 0.92rem; }
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #d7e6f5; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-nap { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 1.25rem; }
.footer-nap strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; background: var(--white); border-top: 2px solid var(--border);
  box-shadow: 0 -4px 18px rgba(13,43,69,0.15); padding: 0.6rem;
  gap: 0.6rem;
}
.mobile-callbar a { flex: 1; text-align: center; padding: 0.85rem 0.5rem; border-radius: 8px; font-weight: 800; text-decoration: none; font-size: 1rem; }
.mobile-callbar .call-now { background: var(--orange); color: #fff; }
.mobile-callbar .get-quote { background: var(--navy); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }

/* ---------- Content helpers ---------- */
.lead { font-size: 1.1rem; color: var(--muted); }
.check-list { list-style: none; margin-left: 0; }
.check-list li { padding-left: 1.75rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.callout {
  background: #fff8f2; border-left: 5px solid var(--orange); border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.callout strong { color: var(--navy); }
.two-col { display: grid; gap: 2rem; align-items: start; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ---------- Services dropdown nav ---------- */
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown-caret { font-size: 0.75em; margin-left: 2px; }
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  padding: 8px;
  margin: 0;
  list-style: none;
  z-index: 200;
}
.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown:focus-within > .dropdown {
  display: block;
}
.main-nav .dropdown li { margin: 0; }
.main-nav .dropdown a {
  color: var(--navy);
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  border: none;
}
.main-nav .dropdown a:hover { background: var(--light); color: var(--orange); }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .mobile-callbar { display: none; }
  .site-footer { padding-bottom: 3rem; }
}
@media (max-width: 759px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem 4%; gap: 0; }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: 0.8rem 0; }
  .nav-toggle { display: block; }
  .header-call .btn { display: none; }
  body { padding-bottom: 0; }
  /* Dropdown renders as a nested, indented list on mobile */
  .main-nav .has-dropdown { border-top: 1px solid var(--border); }
  .main-nav .has-dropdown > .js-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-nav .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.5rem 1.1rem;
    min-width: 0;
  }
  .main-nav .has-dropdown.open > .dropdown { display: block; }
  .main-nav .dropdown li { border-top: none; }
  .main-nav .dropdown a { padding: 0.55rem 0; }
  .main-nav .dropdown-caret { display: inline-block; transition: transform 0.2s; }
  .main-nav .has-dropdown.open .dropdown-caret { transform: rotate(180deg); }
}
