/* ===================================
   LEANDER ROOFING COMPANY
   Design system: sharp corners, strong hierarchy, high contrast.
   Brand: Charcoal + Safety Red. Trades / strong register.
   Built on the local-design base system.
   =================================== */

:root {
  /* Colors: Charcoal + Safety Red */
  --color-primary: #1a1a1a;
  --color-primary-ink: #ffffff;
  --color-accent: #d12b1f;
  --color-accent-dark: #a81d13;
  --color-ink: #141414;
  --color-body: #333333;
  --color-muted: #6b6b6b;
  --color-line: #e3e3e3;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f4f4;
  --color-bg-dark: #1a1a1a;
  --color-success: #15803d;
  --color-error: #dc2626;

  /* Typography: roofing/trades, Montserrat (900) + Inter */
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Scale */
  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing (8px base) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --header-h: 72px;

  /* NO rounded corners, design rule */
  --radius: 0;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 800; }
h4 { font-size: 1.125rem; font-weight: 700; }
p { max-width: 72ch; }

.overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-accent);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
.container-narrow { max-width: var(--container-narrow); }

section { padding-block: var(--s-6); }
@media (min-width: 768px) { section { padding-block: var(--s-7); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn-secondary { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-secondary:hover { background: var(--color-ink); color: #fff; }
.btn-call { background: var(--color-ink); color: #fff; text-decoration: none; }
.btn-call:hover { background: var(--color-accent); }
.cta-band .btn-secondary { color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--color-ink); }

/* Announcement bar */
.announcement-bar {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem var(--s-2);
}
.announcement-bar a { color: #fff; font-weight: 800; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  height: var(--header-h);
}
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--s-2);
}
.site-header .logo { text-decoration: none; display: inline-flex; align-items: center; }
.site-header nav { display: none; gap: var(--s-3); }
.site-header nav a { text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: var(--color-accent); }
@media (min-width: 900px) { .site-header nav { display: flex; } }

.header-call { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0.625rem 1rem; background: var(--color-ink); color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; }
.header-call:hover { background: var(--color-accent); }
.header-call span { display: none; }
@media (min-width: 480px) { .header-call span { display: inline; } }

/* Above-hero review bar */
.review-bar {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  padding: 0.6rem var(--s-2);
  font-size: 0.9375rem;
  font-weight: 600;
}
.review-bar .stars { color: #f5b50a; letter-spacing: 2px; }
.review-bar strong { color: #fff; font-weight: 800; }

/* Hero */
.hero {
  background: var(--color-bg-alt);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--color-line);
}
@media (min-width: 768px) {
  .hero { padding-block: var(--s-6); }
  .hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-5); align-items: center; }
}
.hero h1 { margin-bottom: var(--s-2); }
.hero .subhead { font-size: 1.25rem; color: var(--color-body); margin-bottom: var(--s-3); max-width: 52ch; }
.hero .trust-pill { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0.5rem 1rem; background: var(--color-ink); color: #fff; font-weight: 700; font-size: 0.875rem; margin-bottom: var(--s-3); }
.hero .trust-pill .stars { color: #f5b50a; letter-spacing: 1px; }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: grid; gap: 0.5rem; }
.hero-bullets li { font-weight: 600; display: flex; align-items: flex-start; gap: 0.5rem; }
.hero-bullets li::before { content: '✓'; color: var(--color-accent); font-weight: 900; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Lead form card */
.lead-form { background: var(--color-bg); color: var(--color-body); padding: var(--s-3); border: 2px solid var(--color-ink); }
.lead-form label { color: var(--color-ink); }
/* Form card heading stays dark even inside the red mid-page band */
.form-band .lead-form h2 { color: var(--color-ink); }
.lead-form h2 { font-size: 1.5rem; margin-bottom: var(--s-1); }
.lead-form .form-intro { font-size: 0.875rem; color: var(--color-muted); margin-bottom: var(--s-2); }
.lead-form .form-row { display: grid; gap: var(--s-2); margin-bottom: var(--s-2); }
.lead-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-line);
  background: #fff;
  font-size: 1rem;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-ink);
}
.lead-form textarea { min-height: 90px; resize: vertical; }
.lead-form .btn { width: 100%; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .form-note { font-size: 0.8125rem; color: var(--color-muted); margin-top: var(--s-1); text-align: center; }

/* Trust bar */
.trust-bar { background: var(--color-ink); color: #fff; padding-block: var(--s-3); }
.trust-bar ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2); text-align: center;
}
@media (min-width: 768px) { .trust-bar ul { grid-template-columns: repeat(5, 1fr); } }
.trust-bar li { font-weight: 700; font-size: 0.9375rem; }
.trust-bar li span { display: block; font-size: 1.5rem; color: var(--color-accent); margin-bottom: 0.25rem; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: block; padding: var(--s-3); background: var(--color-bg);
  border: 2px solid var(--color-line); text-decoration: none; color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.service-card:hover { border-color: var(--color-ink); background: var(--color-bg-alt); }
.service-card .icon { font-size: 1.75rem; margin-bottom: var(--s-1); }
.service-card h3 { margin-bottom: var(--s-1); }
.service-card .arrow { display: inline-block; margin-top: var(--s-2); font-weight: 800; color: var(--color-accent); }

/* Why Choose Us pillars */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar { border: 2px solid var(--color-line); border-top: 4px solid var(--color-accent); padding: var(--s-3); background: #fff; }
.pillar h3 { margin-bottom: var(--s-2); }
.pillar .stat { display: block; font-family: var(--font-heading); font-weight: 900; font-size: 2rem; color: var(--color-accent); line-height: 1; margin-bottom: var(--s-1); }

/* Topical depth sections ("What types of X") */
.depth-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .depth-grid { grid-template-columns: repeat(2, 1fr); } }
.depth-item { padding: var(--s-3); background: #fff; border-left: 3px solid var(--color-accent); border-bottom: 1px solid var(--color-line); }
.depth-item h3 { margin-bottom: var(--s-1); font-size: 1.1875rem; }
.depth-item .data-point { display: inline-block; margin-top: var(--s-1); font-size: 0.8125rem; font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.04em; }

/* Mid-page lead form band */
.form-band { background: var(--color-accent); color: #fff; }
.form-band h2 { color: #fff; margin-bottom: var(--s-1); }
.form-band p.lead { font-size: 1.125rem; margin-bottom: var(--s-3); max-width: 60ch; }
.form-band .lead-form { border-color: #fff; }
@media (min-width: 768px) {
  .form-band .container { display: grid; grid-template-columns: 1fr 0.85fr; gap: var(--s-5); align-items: center; }
}

/* Social proof */
.reviews { background: var(--color-bg-alt); }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: #fff; padding: var(--s-3); border: 2px solid var(--color-line); }
.review-card .stars { color: #f5b50a; font-size: 1.125rem; margin-bottom: var(--s-1); letter-spacing: 2px; }
.review-card blockquote { font-style: italic; margin-bottom: var(--s-2); }
.review-card cite { font-style: normal; font-weight: 700; display: block; }
.review-card cite span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--color-muted); }

/* Process steps */
.process-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.process-steps li { counter-increment: step; padding-left: 3.5rem; position: relative; }
.process-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; background: var(--color-accent); color: #fff;
  font-family: var(--font-heading); font-weight: 900; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.process-steps li h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin-block: var(--s-2); font-size: 0.9375rem; }
.compare-table th, .compare-table td { border: 1px solid var(--color-line); padding: 0.75rem; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--color-ink); color: #fff; font-family: var(--font-heading); }
.compare-table tbody tr:nth-child(even) { background: var(--color-bg-alt); }

/* Financing callout */
.financing-callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  background: var(--color-bg-alt); border: 2px solid var(--color-ink);
  border-left: 6px solid var(--color-accent); padding: var(--s-3); margin-block: var(--s-3);
}
.financing-callout .fc-text { flex: 1 1 280px; }
.financing-callout strong { font-family: var(--font-heading); font-size: 1.125rem; }

/* Locations grid */
.locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
@media (min-width: 768px) { .locations-grid { grid-template-columns: repeat(3, 1fr); } }
.location-card { padding: var(--s-3); border: 2px solid var(--color-line); text-decoration: none; color: inherit; font-weight: 700; transition: border-color 0.15s, background 0.15s; }
.location-card:hover { border-color: var(--color-ink); background: var(--color-bg-alt); }
.location-card span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--color-muted); margin-top: 0.25rem; }

/* Prose blocks (service/about/legal body) */
.prose h2 { margin-top: var(--s-4); margin-bottom: var(--s-2); }
.prose h3 { margin-top: var(--s-3); margin-bottom: var(--s-1); }
.prose p { margin-bottom: var(--s-2); }
.prose ul, .prose ol { margin: 0 0 var(--s-2) 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .lead { font-size: 1.1875rem; color: var(--color-ink); }

/* FAQ */
.faq details { border-bottom: 2px solid var(--color-line); padding-block: var(--s-2); }
.faq summary {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem;
  cursor: pointer; list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: var(--s-2); }

/* Final CTA */
.cta-band { background: var(--color-ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { font-size: 1.125rem; margin-bottom: var(--s-3); margin-inline: auto; }

/* Footer */
.site-footer { background: var(--color-ink); color: #fff; padding-block: var(--s-5) var(--s-3); font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .footer-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: var(--s-2); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer .footer-logo { font-family: var(--font-heading); font-weight: 900; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.site-footer .footer-logo span { color: var(--color-accent); }
.site-footer .footer-bottom {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
  font-size: 0.8125rem; color: rgba(255,255,255,0.7);
}
.site-footer .footer-bottom a { color: rgba(255,255,255,0.7); }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a { padding: 1rem; text-align: center; text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 0.9375rem; font-family: var(--font-heading); }
.mobile-cta .call { background: var(--color-ink); color: #fff; }
.mobile-cta .quote { background: var(--color-accent); color: #fff; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* Floating call button (desktop, long pages) */
.fab {
  position: fixed; bottom: var(--s-4); right: var(--s-4); z-index: 90;
  display: none; align-items: center; gap: 0.5rem;
  background: var(--color-accent); color: #fff; text-decoration: none;
  font-family: var(--font-heading); font-weight: 800; padding: 0.875rem 1.25rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0; transform: translateY(12px); transition: opacity 0.2s, transform 0.2s, background 0.15s;
}
.fab:hover { background: var(--color-accent-dark); }
.fab.visible { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) { .fab { display: inline-flex; } }

/* Breadcrumbs */
.breadcrumbs { padding-block: var(--s-2); font-size: 0.875rem; color: var(--color-muted); background: var(--color-bg-alt); border-bottom: 1px solid var(--color-line); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-ink); }
.breadcrumbs span[aria-current] { color: var(--color-ink); font-weight: 600; }

/* NAP / contact blocks */
.nap address { font-style: normal; line-height: 1.7; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mt-3 { margin-top: var(--s-3); }
.map-embed { width: 100%; height: 380px; border: 2px solid var(--color-ink); }

/* ===================================
   STITCH POLISH PASS
   Industrial refinements extracted from the approved Google Stitch design.
   =================================== */

/* Uppercase heading treatment (FAQ summaries stay sentence case for readability) */
h1, h2, h3 { text-transform: uppercase; }

/* Heavier charcoal card borders + red hover */
.service-card, .review-card, .location-card { border: 2px solid var(--color-ink); }
.service-card:hover, .location-card:hover { border-color: var(--color-accent); background: var(--color-bg-alt); }
.pillar { border: 2px solid var(--color-ink); border-top: 4px solid var(--color-accent); }

/* Red left-accent bar on left-aligned section headings (skips centered + CTA/form bands) */
section:not(.cta-band):not(.form-band) > .container:not(.text-center) > h2:not(.text-center) {
  border-left: 6px solid var(--color-accent);
  padding-left: var(--s-3);
}

/* Bold red top accent on the footer */
.site-footer { border-top: 6px solid var(--color-accent); }

/* Homepage service-card line icons (inline SVG, no icon-font request) */
.service-card .icon { color: var(--color-accent); margin-bottom: var(--s-2); line-height: 0; }
.service-card .icon svg { width: 2.25rem; height: 2.25rem; display: block; }

/* Logo images (header + footer) */
.logo-img { height: 46px; width: auto; display: block; }
.footer-logo-img { height: 42px; width: auto; display: block; }
@media (max-width: 480px) { .logo-img { height: 38px; } }

/* Photo hero (background image set inline per page; this handles sizing + text contrast) */
.hero--photo { background-size: cover; background-position: center; background-repeat: no-repeat; border-bottom: none; }
.hero--photo h1, .hero--photo .subhead, .hero--photo .hero-bullets li, .hero--photo .overline { color: #fff; }
.hero--photo .hero-bullets li::before { color: var(--color-accent); }
.hero--photo .btn-secondary { color: #fff; border-color: #fff; }
.hero--photo .btn-secondary:hover { background: #fff; color: var(--color-ink); }
.hero--photo .trust-pill { background: var(--color-accent); }

/* About split (image + text) */
.about-split { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 768px) { .about-split { grid-template-columns: 1fr 1fr; } }
.about-img { width: 100%; height: auto; border: 2px solid var(--color-ink); }

/* Inline content figure (e.g. storm photo on a service page) */
.content-figure { margin: 0 0 var(--s-3); border: 2px solid var(--color-ink); }
.content-figure img { width: 100%; height: auto; display: block; }

/* Location page local stack (neighborhoods + landmarks + keyword map) */
.area-stack { background: var(--color-bg-alt); }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-1); }
@media (min-width: 640px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .link-grid { grid-template-columns: repeat(4, 1fr); } }
.link-grid a { display: block; padding: 0.6rem 0.75rem; border: 2px solid var(--color-line); background: #fff; text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--color-ink); transition: border-color 0.15s, background 0.15s; }
.link-grid a:hover { border-color: var(--color-accent); background: var(--color-bg-alt); }
.map-embed-wrap { margin-top: var(--s-3); }
.weather-widget { max-width: 540px; }

/* Driving stack (collapsed accordions of directions links, bottom of location pages) */
.driving-stack details.stack-acc { border: 2px solid var(--color-line); margin-bottom: var(--s-2); padding: var(--s-2) var(--s-3); background: #fff; }
.driving-stack summary { font-family: var(--font-heading); font-weight: 800; font-size: 1.0625rem; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; text-transform: uppercase; letter-spacing: -0.01em; }
.driving-stack summary::-webkit-details-marker { display: none; }
.driving-stack summary::after { content: '+'; position: absolute; right: 0; top: -0.1rem; font-size: 1.5rem; color: var(--color-accent); }
.driving-stack details[open] summary { margin-bottom: var(--s-2); }
.driving-stack details[open] summary::after { content: '\2212'; }
