/*
Theme Name: Roof Leak Repair Pros (roof-leak-repair-pros-theme-v1)
Theme URI: https://roofleakrepairpinebluffar.com
Author: WP-Flash | SerpZenith
Author URI: https://wpflash.site
Description: Bespoke conversion theme for Roof Leak Repair Pros, Pine Bluff AR. Theme 8 layout + Theme 10 quick-picker. Navy #1B2A3A, safety orange #C2410C, warm paper #FFFCF7. Fraunces + Epilogue. No content hidden behind JavaScript.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private
Text Domain: roof-leak-repair-pros-theme-v1
*/

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
  --color-primary: #1B2A3A;
  --primary-rgb: 27, 42, 58;
  --color-secondary: #111C27;
  --color-accent: #C2410C;
  --accent-rgb: 194, 65, 12;
  --color-accent-dark: #9A3412;
  --color-accent-on-dark: #F6A86B;
  --color-bg: #FFFCF7;
  --color-surface: #F6F1E8;
  --color-border: #E6DED0;
  --color-text: #1F1B16;
  --color-text-muted: #5F5A51;
  --color-gold: #F2B01E;
  --color-success: #15803D;
  --color-white: #FFFFFF;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Epilogue', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 10px;
  --radius-btn: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(31, 27, 22, 0.06);
  --shadow-md: 0 6px 20px rgba(31, 27, 22, 0.10);
  --shadow-lg: 0 14px 40px rgba(27, 42, 58, 0.18);

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 88px;

  --container: 1200px;
  --container-sm: 780px;
  --header-h: 76px;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--color-accent-dark); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--color-accent-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-btn);
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  font-weight: 700;
}
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(21px, 2.4vw, 26px); }
h4 { font-size: 20px; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
h5 { font-size: 17px; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 800; }
small { font-size: 14px; }

/* Long-form content (service, neighborhood, guide pages) */
.prose { max-width: var(--container-sm); }
.prose h2 { margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--color-accent-dark); }
.prose blockquote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  padding: 18px 22px; margin: 1.4em 0; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose figure figcaption { font-size: 14px; color: var(--color-text-muted); margin-top: -0.8em; margin-bottom: 1.4em; }

/* Direct-answer box (AEO) */
.answer-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 1.6em;
  box-shadow: var(--shadow-sm);
}
.answer-box .answer-label {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 6px;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--color-border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--color-white); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { background: var(--color-primary); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: #FAF6EE; }

/* =========================================================
   4. LAYOUT
   ========================================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--spacing-xl) 0; }
.section-alt { background: var(--color-surface); }
.section-navy { background: var(--color-primary); color: #fff; }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy p { color: rgba(255, 255, 255, .88); }
.section-header { margin-bottom: var(--spacing-lg); max-width: 720px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-subtitle { color: var(--color-text-muted); font-size: 18px; margin-top: 10px; }
.section-navy .section-subtitle { color: rgba(255, 255, 255, .8); }
.kicker {
  display: inline-block;
  background: rgba(var(--accent-rgb), .12);
  color: var(--color-accent-dark);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-navy .kicker { background: rgba(255, 255, 255, .12); color: var(--color-accent-on-dark); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: center; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) {
  .split, .split.wide-left, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .split, .split.wide-left, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-sm { padding: 0 18px; }
}

/* Page with sidebar (service / neighborhood / guide) */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--spacing-lg); align-items: start; }
.page-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; min-height: 52px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 800; font-size: 18px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent, .btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-accent:hover, .btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.btn-navy { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-navy:hover { background: var(--color-secondary); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.section-navy .btn-outline, .cta-band .btn-outline, .hero .btn-outline, .page-hero .btn-outline, .cta-inline .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .7); }
.section-navy .btn-outline:hover, .cta-band .btn-outline:hover, .hero .btn-outline:hover, .page-hero .btn-outline:hover, .cta-inline .btn-outline:hover { background: #fff; color: var(--color-primary); }
.btn-sm { padding: 10px 18px; min-height: 44px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .icon { width: 20px; height: 20px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.phone-inline { font-weight: 800; white-space: nowrap; color: var(--color-accent-dark); text-decoration: none; font-variant-numeric: tabular-nums; }

/* =========================================================
   6. HEADER
   ========================================================= */
.topbar { background: var(--color-secondary); color: rgba(255, 255, 255, .9); font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar-items { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-items span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-items .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 3px rgba(21, 128, 61, .3); }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar-items a { color: var(--color-accent-on-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) { .topbar-items .hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 252, 247, .97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(160%) blur(8px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-primary); line-height: 1.1; }
.site-logo .logo-mark {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--color-primary); color: #fff;
  display: grid; place-items: center;
}
.site-logo .logo-mark svg { width: 24px; height: 24px; }
.site-logo .logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 19px; }
.site-logo .logo-text span { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-dark); }
.site-logo img { max-height: 52px; width: auto; }
/* Uploaded logo (WP wraps it in .custom-logo-link) */
.custom-logo-link { display: flex; align-items: center; flex-shrink: 1; min-width: 0; }
.custom-logo-link img, img.custom-logo { height: 54px; width: auto; max-width: 320px; object-fit: contain; }
@media (max-width: 900px) { .custom-logo-link img, img.custom-logo { height: 44px; max-width: 240px; } }
@media (max-width: 420px) { .custom-logo-link img, img.custom-logo { height: 36px; max-width: 190px; } }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--color-text); font-weight: 700; font-size: 16px; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.header-phone strong, .header-phone small { white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--color-accent-dark); }
.main-nav .sub-menu { display: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; text-align: right; }
.header-phone small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.header-phone strong { font-size: 20px; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--color-border); border-radius: var(--radius-btn);
  width: 46px; height: 46px; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--color-text); position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1280px) {
  .header-phone { display: none; }
  .main-nav ul { gap: 22px; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .custom-logo-link img, img.custom-logo { height: 44px; max-width: 250px; }
  .main-nav a { font-size: 15px; }
  .main-nav ul { gap: 16px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 14px 4px; }
  .header-cta .btn { padding: 10px 14px; min-height: 44px; font-size: 15px; }
}
@media (max-width: 420px) { .site-logo .logo-text { font-size: 16px; } .header-cta .btn-label { display: none; } }

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(246, 168, 107, .14), transparent 60%),
    linear-gradient(160deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(17, 28, 39, .94) 0%, rgba(27, 42, 58, .78) 55%, rgba(27, 42, 58, .45) 100%); }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--spacing-lg); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--color-accent-on-dark); }
.hero-lead { font-size: 19px; color: rgba(255, 255, 255, .9); max-width: 600px; margin-bottom: 26px; }
.hero .kicker { background: rgba(246, 168, 107, .16); color: #F6C3A6; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; font-size: 15px; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .92); }
.hero-trust svg { width: 18px; height: 18px; color: var(--color-accent-on-dark); flex-shrink: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 56px; } }

/* Inner-page hero (service / neighborhood / guide) */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff; padding: 44px 0 52px;
}
.page-hero h1 { color: #fff; max-width: 900px; margin-bottom: 14px; }
.page-hero .hero-lead { margin-bottom: 22px; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255, 255, 255, .78); }
.page-hero .breadcrumb [aria-current] { color: #fff; }

/* Lead form card */
.form-card {
  background: var(--color-white); color: var(--color-text);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--color-accent);
}
.form-card h2, .form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .form-note { font-size: 14px; color: var(--color-text-muted); margin-bottom: 16px; }
.quote-form { display: grid; gap: 12px; }
.quote-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--color-text);
  background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-btn);
  padding: 12px 14px; min-height: 48px;
}
.quote-form textarea { min-height: 90px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.quote-form .hp { position: absolute; left: -9999px; }
.form-success { background: #E7F8F1; border: 1px solid #A7E3CB; color: #0B5B3F; padding: 14px 16px; border-radius: var(--radius-btn); font-weight: 700; }
.form-error { background: #FDECEC; border: 1px solid #F5B5B5; color: #8A1F1F; padding: 14px 16px; border-radius: var(--radius-btn); font-weight: 700; }
@media (max-width: 480px) { .quote-form .row-2 { grid-template-columns: 1fr; } }

/* =========================================================
   8. BREADCRUMB
   ========================================================= */
.breadcrumb { font-size: 14px; margin-bottom: 18px; color: var(--color-text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .7; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* =========================================================
   9. TRUST ROW / BADGES
   ========================================================= */
.trust-strip { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; padding: 18px 0; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: var(--color-primary);
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 8px 16px; border-radius: 999px;
}
.trust-badge svg { width: 18px; height: 18px; color: var(--color-accent-dark); flex-shrink: 0; }
@media (max-width: 680px) {
  .trust-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; padding: 12px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .trust-row::-webkit-scrollbar { display: none; }
  .trust-badge { flex-shrink: 0; font-size: 13px; padding: 7px 12px; white-space: nowrap; }
}
.stars { color: var(--color-gold); letter-spacing: 2px; }

/* =========================================================
   10. CARDS & GRIDS
   ========================================================= */
.card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), .35); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--color-text-muted); font-size: 16px; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; color: var(--color-accent-dark); font-size: 15px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(var(--primary-rgb), .08); color: var(--color-primary);
  display: grid; place-items: center;
}
.card-icon svg { width: 26px; height: 26px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service-group { margin-bottom: 40px; }
.service-group > h3 { font-size: 22px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  font-weight: 700; font-size: 16px; color: var(--color-text); text-decoration: none; transition: border-color .2s, color .2s;
}
.link-grid a::after { content: "→"; color: var(--color-accent-dark); }
.link-grid a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Camera-first band (Theme 8 "diagnosis without guesswork") */
.band {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.band .band-icon { width: 72px; height: 72px; border-radius: 18px; background: var(--color-accent); color: #fff; display: grid; place-items: center; }
.band .band-icon svg { width: 38px; height: 38px; }
.band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.band p { color: var(--color-text-muted); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 28px; } }

/* Numbered process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; counter-reset: step; list-style: none; }
.step {
  position: relative; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px 24px 24px; counter-increment: step; overflow: hidden;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-heading); font-size: 52px; font-weight: 700; line-height: 1;
  color: rgba(var(--accent-rgb), .22); margin-bottom: 8px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { font-size: 16px; color: var(--color-text-muted); }
.prose .steps, .prose .check-list, .prose .link-grid, .prose .faq-list { margin-left: 0; }
.prose .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.4em; }
.prose .step { margin-bottom: 0; }
@media (max-width: 560px) { .prose .steps { grid-template-columns: 1fr; } }

/* Pricing (Theme 11 transparent pricing) */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); position: relative; }
.price-card .price-tag { position: absolute; top: -13px; left: 24px; background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .price { font-family: var(--font-body); font-size: 30px; font-weight: 800; color: var(--color-primary); margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.price-card .price small { font-size: 15px; font-weight: 700; color: var(--color-text-muted); }
.price-card ul { list-style: none; margin: 0 0 20px; flex: 1; }
.price-card li { padding: 8px 0 8px 26px; border-bottom: 1px solid var(--color-border); font-size: 16px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--color-success); font-weight: 800; }
.price-note { font-size: 14px; color: var(--color-text-muted); margin-top: 16px; text-align: center; }

/* Problems / checklist */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A3412' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section-navy .check-list li::before { background-color: rgba(255, 255, 255, .15); }
.warning-list li::before {
  background: rgba(154, 52, 18, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A3412' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Callouts */
.callout { border-radius: var(--radius); padding: 18px 22px; margin: 1.4em 0; background: var(--color-surface); border: 1px solid var(--color-border); }
.callout.tip { background: #EEF6FD; border-color: #CFE4F6; }
.callout.warning { background: #FFF3EC; border-color: #F8CDB6; }
.callout strong:first-child { display: block; margin-bottom: 4px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; }
.review-card blockquote { font-size: 17px; margin: 10px 0 16px; }
.review-card cite { font-style: normal; font-weight: 800; display: block; }
.review-card cite span { display: block; font-weight: 600; font-size: 14px; color: var(--color-text-muted); }

/* Service areas (Theme 11 neighborly block) */
.areas-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--spacing-lg); align-items: start; }
.area-list { list-style: none; columns: 2; column-gap: 24px; }
.area-list li { break-inside: avoid; padding: 7px 0; border-bottom: 1px dashed var(--color-border); }
.area-list a { font-weight: 700; text-decoration: none; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 800px) { .areas-block { grid-template-columns: 1fr; } .area-list { columns: 1; } }

/* =========================================================
   11. FAQ (details/summary, zero JS)
   ========================================================= */
.faq-list { max-width: var(--container-sm); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 800; font-size: 18px; cursor: pointer; list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(var(--primary-rgb), .08); color: var(--color-primary);
  display: grid; place-items: center; font-size: 20px; font-weight: 400; transition: transform .2s;
}
details[open] .faq-chevron { transform: rotate(45deg); background: var(--color-accent); color: #fff; }
.faq-answer { padding: 0 0 20px; color: var(--color-text-muted); }
.faq-answer p { margin-bottom: .8em; }

/* =========================================================
   12. CTA BAND
   ========================================================= */
.cta-band {
  background:
    radial-gradient(800px 300px at 10% 120%, rgba(194, 65, 12, .30), transparent 60%),
    var(--color-secondary);
  color: #fff; padding: 64px 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .88); font-size: 19px; max-width: 640px; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }
.cta-inline {
  background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); padding: 28px 30px; margin: 2em 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-inline h3, .cta-inline strong { color: #fff; font-size: 22px; }
.cta-inline p { color: rgba(255, 255, 255, .85); margin: 4px 0 0; }

/* =========================================================
   13. SIDEBAR WIDGETS
   ========================================================= */
.side-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.side-card h3 { font-size: 19px; margin-bottom: 12px; }
.side-card.navy { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.side-card.navy h3 { color: #fff; }
.side-card.navy p { color: rgba(255, 255, 255, .85); font-size: 16px; margin-bottom: 14px; }
.side-links { list-style: none; }
.side-links li { border-bottom: 1px solid var(--color-border); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: 10px 0; font-weight: 700; font-size: 15px; text-decoration: none; }

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer { background: var(--color-secondary); color: rgba(255, 255, 255, .8); padding: 64px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer h3, .site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-brand .site-logo { color: #fff; margin-bottom: 16px; }
.footer-brand .site-logo .logo-mark { background: var(--color-accent); }
.footer-brand .site-logo .logo-text span { color: var(--color-accent-on-dark); }
.footer-nap { font-style: normal; line-height: 1.8; }
.footer-nap .footer-phone { font-size: 22px; font-weight: 800; color: #fff; display: inline-block; margin: 6px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 14px; opacity: .75; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   16. MISC
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.muted { color: var(--color-text-muted); }
.badge-inline { display: inline-block; font-size: 13px; font-weight: 800; color: var(--color-primary); background: rgba(var(--primary-rgb), .08); padding: 3px 10px; border-radius: 999px; }
.related-block { margin-top: var(--spacing-lg); padding-top: var(--spacing-lg); border-top: 1px solid var(--color-border); }
.related-block h2 { font-size: 26px; margin-bottom: 18px; }
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .big { font-family: var(--font-heading); font-size: clamp(80px, 14vw, 160px); color: rgba(var(--primary-rgb), .12); line-height: 1; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin: 24px auto; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-btn); background: #fff; min-height: 50px; }
.schema-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .mobile-action-bar, .site-footer, .page-sidebar, .cta-band { display: none !important; }
}

/* =========================================================
   17. ROOF LEAK REPAIR PROS COMPONENTS
   ========================================================= */
/* Inner hero with featured image (service + area pages) */
.page-hero.has-media { padding: 40px 0 44px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.page-hero-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); aspect-ratio: 16 / 10; background: var(--color-secondary); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-media { order: 2; aspect-ratio: 16 / 9; }
}
.byline { display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .82); margin: 0; }
.byline svg { width: 18px; height: 18px; color: var(--color-accent-on-dark); }
.article-media { margin: 0 0 1.6em; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--color-surface); }
.article-media img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.prose-wide { max-width: 900px; }

/* Outline buttons on dark heroes stay visible */
.page-hero .btn-outline, .hero .btn-outline { background: rgba(255, 255, 255, .06); }

/* Quick-picker strip: "Where is it leaking?" */
.quick-picker { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px 22px; margin: -34px auto 0; position: relative; z-index: 2; }
.quick-picker .qp-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin: 0 0 12px; color: var(--color-primary); }
.quick-picker ul { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.quick-picker a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 88px; padding: 12px 8px; text-align: center; border: 1.5px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font-weight: 700; font-size: 15px; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.quick-picker a:hover, .quick-picker a:focus-visible { border-color: var(--color-accent); color: var(--color-accent-dark); background: #FFF6EF; }
.quick-picker svg { width: 26px; height: 26px; color: var(--color-accent); }
@media (max-width: 1080px) { .quick-picker ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .quick-picker { margin-top: -20px; padding: 16px; }
  .quick-picker ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-picker a { min-height: 64px; flex-direction: row; justify-content: flex-start; font-size: 15px; }
  .quick-picker svg { width: 22px; height: 22px; }
}

/* "Leaking right now?" box */
.leak-now { background: #FFF6EF; border: 1.5px solid #F4C7A8; border-radius: var(--radius); padding: 22px; }
.leak-now h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; margin-bottom: 10px; color: var(--color-accent-dark); }
.leak-now h3 svg { width: 22px; height: 22px; }
.leak-now ol { margin: 0 0 14px 1.2em; font-size: 16px; }
.leak-now li { margin-bottom: 6px; }
.leak-now .btn-row .btn { flex: 1 1 180px; font-size: 16px; padding: 12px 16px; }
.leak-now .btn-outline { color: var(--color-primary); border-color: var(--color-primary); background: transparent; }
.leak-now-note { font-size: 14px; color: var(--color-text-muted); margin: 12px 0 0; }

/* Form extras */
.form-more { border: 1px dashed var(--color-border); border-radius: var(--radius-btn); padding: 10px 14px; }
.form-more summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--color-primary); }
.form-more[open] { display: grid; gap: 12px; }
.quote-form input[type="file"] { padding: 10px; background: var(--color-white); }
.form-fine { font-size: 13px; color: var(--color-text-muted); margin: 2px 0 0; text-align: center; }

/* Hub cards with thumbnails */
a.card.has-thumb { padding: 0 0 22px; overflow: hidden; }
a.card.has-thumb > :not(.card-thumb) { margin-left: 24px; margin-right: 24px; }
.card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 18px; background: var(--color-surface); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.card:hover .card-thumb img { transform: scale(1.03); }

/* Area pages: code-drawn neighborhood map + fact tiles */
.area-map { margin: 1.4em 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); overflow: hidden; }
.area-map svg { width: 100%; height: auto; display: block; }
.area-map figcaption { font-size: 14px; color: var(--color-text-muted); padding: 10px 16px; border-top: 1px solid var(--color-border); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.2em 0 1.6em; }
.fact { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 16px; }
.fact strong { display: block; font-family: var(--font-heading); font-size: 26px; color: var(--color-primary); line-height: 1.1; }
.fact span { font-size: 14px; color: var(--color-text-muted); }
.source-note { font-size: 14px; color: var(--color-text-muted); }

/* Sticky mobile action bar: Call / Text a photo / Book */
.mobile-action-bar { display: none; }
@media (max-width: 767px) {
  .mobile-action-bar {
    display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: var(--color-secondary); box-shadow: 0 -6px 24px rgba(0, 0, 0, .22);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; }
  .mobile-action-bar svg { width: 20px; height: 20px; }
  .mobile-action-bar .mab-call { background: var(--color-accent); }
  .mobile-action-bar .mab-text { background: var(--color-primary); }
  .mobile-action-bar .mab-book { background: var(--color-secondary); }
  body { padding-bottom: 64px; }
  body.keyboard-open .mobile-action-bar { display: none; }
}

/* =========================================================
   18. PREVIEW FIXES (v1.0.0 QA, Playwright 1440 + 390)
   ========================================================= */
.site-logo { line-height: 1.15; }
.site-logo .logo-text { line-height: 1.12; }
.site-logo .logo-text span { margin-top: 4px; line-height: 1.2; }
.trust-row { flex-wrap: nowrap; gap: 10px; }
.trust-badge { font-size: 14px; padding: 7px 13px; white-space: nowrap; }
@media (max-width: 1180px) {
  .trust-row { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-left: 2px; padding-right: 2px; }
  .trust-row::-webkit-scrollbar { display: none; }
  .trust-badge { flex-shrink: 0; }
}
.quick-picker { margin: 28px auto 0; }
@media (max-width: 560px) { .quick-picker { margin-top: 18px; } }
@media (max-width: 680px) {
  .topbar .container > a { display: none; }
  .topbar .container { justify-content: center; min-height: 34px; }
}

/* Responsive hero photo: <picture class="hero-bg"> inside .hero (phones get the small vertical crop, not a 1600px background) */
.hero > .hero-bg { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero > .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, rgba(17, 28, 39, .94) 0%, rgba(27, 42, 58, .80) 55%, rgba(27, 42, 58, .50) 100%); }
@media (max-width: 960px) { .hero.has-photo::before { background: linear-gradient(180deg, rgba(17, 28, 39, .92) 0%, rgba(27, 42, 58, .86) 100%); } }
