/* Brantley & Sons Plumbers LLC - site styles
   Palette: trade navy + safety orange, warm paper off-white
   Written for lead gen: fast, readable, phone-forward. */

:root {
  --navy-900: #071a31;
  --navy-800: #0b2a4a;
  --navy-700: #133a61;
  --orange-600: #e24a1f;
  --orange-500: #f04e23;
  --orange-50:  #fff2ec;
  --ink: #0a1628;
  --muted: #46566b;
  --paper: #fbfaf6;
  --line: #e6e3d9;
  --success: #1f7a3f;
  --warning: #b26a00;
  --shadow: 0 6px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 18px 44px rgba(10, 22, 40, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.18rem; margin-top: 1.4em; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.small { font-size: .92rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Top call strip ---------- */
.top-strip {
  background: var(--navy-900);
  color: #f5f7fb;
  font-size: .92rem;
}
.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.top-strip a { color: #fff; text-decoration: none; font-weight: 600; }
.top-strip .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 3px 9px; border-radius: 999px;
  font-weight: 600;
}
.star { color: #ffc844; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 1.08rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-tag { font-size: .78rem; color: var(--muted); font-weight: 500; }

.nav-toggle {
  appearance: none; background: var(--navy-900); color: #fff; border: 0;
  padding: 10px 14px; border-radius: 8px; font-weight: 600; cursor: pointer;
  display: none;
}
.nav {
  display: flex; align-items: center; gap: 22px;
}
.nav a {
  color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 6px 0;
}
.nav a:hover { color: var(--orange-600); }
.nav .btn-call { margin-left: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange-500); color: #fff !important;
  padding: 13px 20px; border-radius: 10px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--orange-600);
  box-shadow: 0 4px 0 rgba(210, 60, 20, 0.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--orange-600); transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(210, 60, 20, 0.35); }
.btn.btn-ghost {
  background: transparent; color: var(--navy-900) !important;
  border-color: var(--navy-800);
  box-shadow: none;
}
.btn.btn-ghost:hover { background: var(--navy-800); color: #fff !important; }
.btn.btn-lg { font-size: 1.08rem; padding: 16px 24px; }
.btn .phone-icon { font-size: 1.1em; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(240, 78, 35, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(19, 58, 97, 0.4), transparent 40%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fbfaf6;
  padding: 56px 0 66px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 28px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.15rem, 4.6vw, 3.2rem); margin-bottom: .35em; }
.hero h1 span { color: #ffc844; }
.hero .lede { color: #e7edf5; font-size: 1.12rem; max-width: 580px; margin-bottom: 1.2em; }
.hero-proof {
  display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 22px;
  font-size: .92rem; color: #d9e3f1;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; margin-top: 0; font-size: 1.1rem; }
.hero-card ul { margin: 0; padding-left: 18px; }
.hero-card li { margin: 6px 0; color: #e7edf5; }

/* ---------- Trust badge strip (below hero) ---------- */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: .01em;
}
.trust-item .trust-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--orange-600);
}
.trust-item strong { color: var(--navy-900); font-weight: 800; }
.trust-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  display: inline-block;
}
@media (max-width: 720px) {
  .trust-strip .container { gap: 10px 18px; }
  .trust-sep { display: none; }
  .trust-item { font-size: .86rem; }
}

/* ---------- Urgency ribbon (dispatch now banner) ---------- */
.urgency-ribbon {
  background: linear-gradient(90deg, var(--orange-600), var(--orange-500));
  color: #fff;
  padding: 10px 0;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  letter-spacing: .01em;
}
.urgency-ribbon a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 800;
}
.urgency-ribbon a:hover { color: #ffe4d7; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section.tight { padding: 36px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--navy-900); color: #e7edf5; }
section.dark h2, section.dark h3 { color: #fff; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange-600);
  margin-bottom: 8px;
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 0; font-size: 1.12rem; }
.card p { margin-bottom: .6em; color: var(--muted); }
.card a.more { font-weight: 700; text-decoration: none; color: var(--navy-800); }
.card a.more::after { content: " \2192"; }
.card a.more:hover { color: var(--orange-600); }

.chip {
  display: inline-block; background: var(--orange-50); color: var(--orange-600);
  padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 16px 0 0; font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: " / "; color: var(--line); padding: 0 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-600); }
.crumbs [aria-current="page"] { color: var(--navy-900); font-weight: 600; }

/* ---------- Article (long-form) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article p, .article li { font-size: 1.06rem; }
.article h2, .article h3 { scroll-margin-top: 90px; }
.article ul, .article ol { padding-left: 22px; }
.article blockquote {
  border-left: 4px solid var(--orange-500);
  margin: 1.2em 0; padding: .2em 0 .2em 18px;
  color: var(--navy-900); font-style: italic;
}
.article table {
  width: 100%; border-collapse: collapse; margin: 1.2em 0;
  font-size: .98rem;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article th, .article td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.article th { background: var(--navy-900); color: #fff; font-weight: 700; font-size: .88rem; letter-spacing: .02em; text-transform: uppercase; }
.article tr:last-child td { border-bottom: 0; }
.article .callout {
  background: var(--orange-50);
  border: 1px solid #ffd9c7;
  border-left: 5px solid var(--orange-500);
  padding: 16px 18px; border-radius: var(--radius-sm);
  margin: 1.3em 0;
}
.article .tldr {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy-800);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 1em 0 2em;
  font-size: 1.02rem;
}
.article .tldr strong { color: var(--navy-900); }

/* ---------- FAQ (details/summary) ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  font-weight: 700; color: var(--navy-900); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--orange-600); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] { border-color: var(--orange-500); }
.faq p { margin-top: 10px; color: var(--ink); }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-900);
  padding: 10px 14px;
  z-index: 60;
  border-top: 2px solid var(--orange-500);
  box-shadow: 0 -8px 24px rgba(0,0,0,.2);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: var(--orange-500); color: #fff;
  border-radius: 10px;
  font-weight: 800; font-size: 1.06rem;
  text-decoration: none;
  letter-spacing: .02em;
}
.mobile-cta small { display: block; font-size: .74rem; color: #cfd8e6; font-weight: 500; margin-top: 2px; text-align: center; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #cfd8e6; padding: 48px 0 20px; margin-top: 48px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .96rem; margin: 0 0 12px; letter-spacing: .02em; text-transform: uppercase; font-weight: 800; }
.site-footer a { color: #cfd8e6; text-decoration: none; }
.site-footer a:hover { color: #ffc844; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 28px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #a7b2c2; font-size: .86rem;
}
.credits { color: #8692a6; font-size: .8rem; margin-top: 8px; }

/* ---------- Media (figures, hero image, in-article) ---------- */
.hero-media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fbfaf6;
  aspect-ratio: 640 / 440;
}
.hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero .hero-media { max-width: 520px; margin-left: auto; }

.page-media {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.page-media img { width: 100%; height: auto; display: block; }
.page-media figcaption {
  padding: 10px 16px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  font-style: italic;
}

.card-media {
  margin: -22px -22px 14px;
  background: #f2efe4;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; padding-bottom: 82px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .nav { display: none; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; padding: 14px 0 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .mobile-cta { display: block; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 38px 0; }
}
@media (min-width: 721px) {
  .mobile-cta-spacer { display: none; }
}
