/* =========================================================================
   Reliant Exteriors — main.css
   Light theme with dark hero panels. Mobile-first. System fonts only.
   ========================================================================= */

:root {
  --ink: #0f172a;
  --ink-soft: rgba(15, 23, 42, 0.74);
  --ink-mute: rgba(15, 23, 42, 0.52);
  --ink-faint: rgba(15, 23, 42, 0.32);

  --canvas: #ffffff;
  --canvas-soft: #f1f5f9;
  --canvas-warm: #f8fafc;
  --surface: #ffffff;

  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-deep: #1e40af;
  --accent-soft: rgba(37, 99, 235, 0.08);

  --night: #0b1424;
  --night-2: #142036;
  --night-3: #1e2c47;
  --steel: #94a3b8;
  --steel-soft: #cbd5e1;

  --border: rgba(10, 22, 40, 0.08);
  --border-strong: rgba(10, 22, 40, 0.14);
  --border-night: rgba(255, 255, 255, 0.10);

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 1px 3px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(10, 22, 40, 0.08), 0 8px 24px -8px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 24px 48px -12px rgba(10, 22, 40, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 10vw, 128px);

  --transition: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
               "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

/* ========== Type ========== */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }
p  { color: var(--ink-soft); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.eyebrow-night { color: var(--accent-bright); }

/* ========== Layout ========== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-tight { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.section-night { background: var(--night); color: #fff; }
.section-night h1, .section-night h2, .section-night h3, .section-night h4 { color: #fff; }
.section-night p, .section-night .lede { color: rgba(255,255,255,0.72); }
.section-soft { background: var(--canvas-soft); }

.stack-sm > * + * { margin-top: 14px; }
.stack-md > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; color: var(--ink); }
.brand-mark { display: none; } /* legacy placeholder, kept for backwards compat */
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-logo ~ span { display: none; } /* hide redundant text now that the logo carries it */
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* Hero video — fills hero-media, behind the text */
.hero-media video,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
  position: relative;
  padding: 6px 0;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .phone-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-cta .phone-link svg { width: 16px; height: 16px; color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--transition), top var(--transition);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.65);
}
.btn-ghost {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-light {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-light:hover { background: var(--canvas-soft); border-color: var(--ink-faint); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ========== Hero ========== */
.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;
  opacity: 0.55;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.65) 0%, rgba(10,22,40,0.85) 60%, rgba(10,22,40,0.95) 100%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(37,99,235,0.18) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88vh;
  padding-top: 80px;
  padding-bottom: 96px;
}
.hero-eyebrow { color: var(--accent-bright); margin-bottom: 28px; }
.hero h1 { color: #fff; max-width: 920px; }
.hero h1 .accent-line { color: var(--accent-bright); }
.hero .answer {
  margin-top: 28px;
  max-width: 740px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero-meta strong {
  display: block;
  color: #fff;
  font-size: 22px;
  margin-top: 4px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 700;
}

/* Subpage hero (smaller, with photo strip) */
.sub-hero {
  background: var(--night);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sub-hero-media { position: absolute; inset: 0; z-index: -2; }
.sub-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.sub-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,22,40,0.78) 0%, rgba(10,22,40,0.92) 100%);
}
.sub-hero-inner {
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 880px;
}
.sub-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 56px); }
.sub-hero .answer {
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.breadcrumb a { color: rgba(255,255,255,0.78); }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb span { color: rgba(255,255,255,0.30); }

/* ========== Trust strip ========== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.trust-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}
.trust-item:last-child { border-right: none; }
.trust-item strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.trust-item span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.trust-stars {
  letter-spacing: 0.05em;
  color: var(--accent);
  font-size: 17px;
}

/* ========== Service grid ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.service-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--canvas-soft);
}
.service-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 16px; flex: 1; }
.service-card .more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.service-card .more::after {
  content: "→";
  transition: transform var(--transition);
}
.service-card:hover .more::after { transform: translateX(3px); }

/* ========== Why Reliant — differentiator ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  padding: 32px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.why-icon svg { width: 22px; height: 22px; }
.why-item h4 { margin-bottom: 8px; font-size: 18px; }
.why-item p { font-size: 15px; }

/* ========== Coverage map ========== */
.coverage {
  background: var(--night);
  color: #fff;
}
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.coverage-text h2 { color: #fff; }
.coverage-text p { color: rgba(255,255,255,0.72); }
.coverage-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}
.coverage-list li::before {
  content: "•";
  color: var(--accent-bright);
  margin-right: 10px;
}
.coverage-map-wrap {
  background: var(--night-2);
  border: 1px solid var(--border-night);
  border-radius: var(--radius-lg);
  padding: 32px;
  aspect-ratio: 5/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coverage-map { width: 100%; height: 100%; }

/* ========== Reviews carousel ========== */
.reviews {
  background: var(--canvas-soft);
}
.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.review-stars { color: var(--accent); font-size: 17px; letter-spacing: 0.06em; margin-bottom: 14px; }
.review-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.review-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mute);
}
.review-meta strong { color: var(--ink); font-weight: 600; }

.placeholder-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-deep);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========== Process timeline ========== */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
  list-style: none;
}
.process-list::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 28px;
  height: 1px;
  background: var(--border-strong);
  z-index: 0;
}
.process-step {
  position: relative;
  padding: 0 14px;
  text-align: center;
}
.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
}
.process-step:nth-child(1) .process-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.process-step h4 { margin-bottom: 8px; font-size: 16px; }
.process-step p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* ========== Final CTA + form ========== */
.cta-final {
  background: var(--night);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 70% 100%, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-final h2 { color: #fff; max-width: 480px; }
.cta-final .lede { color: rgba(255,255,255,0.78); margin-top: 20px; }
.cta-detail {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.cta-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
}
.cta-detail-item svg {
  width: 18px; height: 18px;
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.cta-detail-item strong { color: #fff; font-weight: 600; display: block; margin-bottom: 2px; }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
}
.field { display: block; margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(255,255,255,0.08);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select option { color: #0f1419; background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== Footer ========== */
.site-footer {
  background: #060d1a;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  margin-bottom: 20px;
}
.site-footer ul li { padding: 6px 0; font-size: 15px; }
.site-footer a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer .brand { color: #fff; font-size: 22px; }
.site-footer .brand small { color: rgba(255,255,255,0.55); }
.site-footer .brand-logo { height: 36px; filter: brightness(0) invert(1) brightness(0.94); }
.site-footer .nap { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); margin-top: 18px; }
.site-footer .nap strong { color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.40);
}

/* ========== Service-page body ========== */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p { font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.prose h2 { margin-top: 56px; margin-bottom: 18px; }
.prose h3 { margin-top: 36px; margin-bottom: 12px; }
.prose ul:not(.bare) { padding-left: 20px; margin-bottom: 22px; }
.prose ul:not(.bare) li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature-row .feature {
  padding: 28px;
  background: var(--canvas-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.feature h4 { margin-bottom: 10px; font-size: 17px; }
.feature p { font-size: 15px; }

/* ========== FAQ accordion ========== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-item .faq-body p + p { margin-top: 12px; }

/* ========== Location-page extras ========== */
.loc-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px auto;
  max-width: 920px;
}
.loc-meta-item {
  text-align: center;
  padding: 24px;
  background: var(--canvas-soft);
  border-radius: var(--radius-md);
}
.loc-meta-item strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--ink);
}
.loc-meta-item span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.subdivisions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 6px 14px;
  background: var(--canvas-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ========== Gallery ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--canvas-soft);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ========== Section header pattern ========== */
.section-header { max-width: 760px; margin-bottom: 56px; }
.section-header .lede { margin-top: 18px; }
.section-header-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-track { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .coverage-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-final-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .process-list::before { display: none; }
  .trust-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(3) { border-right: none; }
  .trust-item:nth-child(4), .trust-item:nth-child(5) { border-top: 1px solid var(--border); }
  .trust-item:nth-child(4) { border-right: 1px solid var(--border); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-cta .nav-toggle { display: inline-flex; }
  .header-cta .phone-link { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    align-items: stretch;
    gap: 0;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav.is-open a:last-child { border-bottom: none; }

  .hero-inner { min-height: 78vh; padding-top: 56px; padding-bottom: 64px; }
  .hero-meta { gap: 22px 32px; margin-top: 40px; }
  .hero-meta strong { font-size: 18px; }

  .service-grid, .why-grid, .reviews-track, .gallery-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { gap: 32px; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 22px 16px; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .trust-item:nth-child(even) { border-right: none; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .trust-item:nth-child(5) { border-top: 1px solid var(--border); border-right: none; }

  .loc-meta { grid-template-columns: 1fr; gap: 14px; }
  .process-list { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   v3 POLISH — futuristic gray + blue (2026-05-03)
   Layered on top of the base theme to elevate visual quality.
   ============================================================ */

/* --- Logo + header tighten --- */
.brand-logo { height: 36px; }
.site-footer .brand-logo { height: 28px; }
.site-header { background: rgba(255,255,255,0.78); }
.site-header-inner { height: 72px; }

/* --- Hero overlay: cooler slate, smoother fall-off --- */
.hero::before {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.78) 60%, rgba(15,23,42,0.94) 100%);
}
.hero::after {
  background:
    radial-gradient(ellipse 50% 40% at 85% 5%, rgba(59,130,246,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 15% 90%, rgba(37,99,235,0.14) 0%, transparent 60%);
}
.sub-hero::before {
  background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.94) 100%);
}

/* --- Hero accent line: gradient text instead of flat color --- */
.hero h1 .accent-line {
  background: linear-gradient(120deg, #60a5fa 0%, #93c5fd 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- Hero scroll indicator (futuristic detail) --- */
.hero-inner::after {
  content: "";
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2.6s ease-in-out infinite;
}
.hero-inner { position: relative; }
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;    transform: translateX(-50%) translateY(8px); }
}

/* --- Premium gradient buttons --- */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.18),
    0 8px 24px -8px rgba(37,99,235,0.55);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.24),
    0 14px 32px -8px rgba(37,99,235,0.65);
  transform: translateY(-1px);
}

/* --- Trust strip refinement --- */
.trust-strip {
  background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-soft) 100%);
}
.trust-strip .trust-item .trust-stars { color: #fbbf24 !important; }  /* yellow Google-style stars */

/* --- Service card: top accent line + blue-tinted hover shadow --- */
.service-card { position: relative; }
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width var(--transition), left var(--transition);
  border-radius: 0 0 3px 3px;
}
.service-card:hover::before { width: 100%; left: 0; }
.service-card:hover {
  box-shadow:
    0 24px 60px -20px rgba(37,99,235,0.20),
    0 0 0 1px rgba(37,99,235,0.10);
  border-color: transparent;
}

/* --- Why icons: subtle gradient bg --- */
.why-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.10) 0%, rgba(59,130,246,0.20) 100%);
  border: 1px solid rgba(37,99,235,0.12);
}

/* --- Coverage map glow + shine --- */
.coverage-map-wrap {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37,99,235,0.20) 0%, transparent 65%),
    var(--night-2);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 30px 60px -20px rgba(37,99,235,0.18);
}

/* --- CTA / contact section: blue accent strip --- */
.section-night {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37,99,235,0.16) 0%, transparent 60%),
    var(--night);
}

/* --- Footer: subtle blue top edge --- */
.site-footer {
  border-top: 1px solid rgba(59,130,246,0.18);
  background:
    linear-gradient(180deg, rgba(37,99,235,0.06) 0%, transparent 200px),
    var(--night);
}

/* --- Selection color --- */
::selection { background: rgba(37,99,235,0.25); color: var(--ink); }

/* --- Focus ring: clearer blue --- */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Reduced motion override for the scroll indicator --- */
@media (prefers-reduced-motion: reduce) {
  .hero-inner::after { animation: none; opacity: 0.4; }
}

/* ============================================================
   v4 — Owens Corning badge + Design EyeQ visualizer (2026-05-03)
   ============================================================ */

/* OC Preferred Contractor badge — sized for different contexts */
.oc-badge { display: block; max-width: 100%; height: auto; }
.oc-badge-meta {            /* inline next to hero-meta and trust-strip */
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-top: 4px;
}
.oc-badge-card {            /* larger, in why-grid card */
  height: 38px;
  width: auto;
  display: block;
  margin: 4px 0 14px;
}
.oc-badge-night {           /* for use on dark sections — invert the lockup */
  filter: brightness(0) invert(1) brightness(0.95);
}

/* OC why-card: replace the gradient bubble icon with the brand mark */
.why-item-oc .why-icon {
  display: none;            /* hide the small SVG-bubble — the OC logo is the icon */
}
.why-item-oc { padding-top: 32px; }

/* Hero-meta override: when image is in the slot, drop the strong styling */
.hero-meta div img.oc-badge {
  display: block;
  margin-top: 6px;
}

/* ============================================================
   Design EyeQ visualizer section
   ============================================================ */
.visualizer-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37,99,235,0.10) 0%, transparent 60%),
    var(--canvas);
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.visualizer-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(15,23,42,0.18);
}
/* ============================================================
   Interactive shingle picker (custom Reliant build)
   ============================================================ */
.visualizer-picker {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 540px;
}

/* LEFT: house illustration stage */
.picker-stage {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  overflow: hidden;
}
.house-svg {
  width: 100%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(15, 23, 42, 0.18));
}
#roof {
  transition: fill 360ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.picker-stage-caption {
  position: absolute;
  left: 36px;
  bottom: 36px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 72px);
}
.picker-stage-product {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.picker-stage-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

/* RIGHT: controls panel */
.picker-controls {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--canvas);
}

.picker-tabs {
  display: flex;
  gap: 6px;
  background: var(--canvas-soft);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  width: fit-content;
}
.picker-tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.picker-tab:hover { color: var(--ink); }
.picker-tab.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.18),
    0 4px 12px -4px rgba(37,99,235,0.5);
}

.picker-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 4px 0 12px;
  min-height: 42px;
}

.picker-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.picker-swatch {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 0;
  background-clip: padding-box;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.18) 100%);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 4px 12px -6px rgba(15,23,42,0.30);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.picker-swatch::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--swatch-color);
  z-index: -1;
}
.picker-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(15,23,42,0.35);
}
.picker-swatch.is-active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(37,99,235,0.25),
    0 10px 22px -8px rgba(37,99,235,0.50);
  transform: translateY(-2px);
}
.picker-swatch.is-active::before {
  content: "✓";
  position: absolute;
  top: 6px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(37,99,235,0.45);
}
.picker-swatch-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 4px 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  pointer-events: none;
  line-height: 1.1;
}

.picker-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.picker-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .visualizer-picker { grid-template-columns: 1fr; min-height: 0; }
  .picker-stage { aspect-ratio: 4/3; padding: 24px; }
  .picker-controls { padding: 32px 24px; }
  .picker-stage-caption { left: 24px; bottom: 24px; padding: 10px 16px; }
  .picker-stage-name { font-size: 18px; }
}

.visualizer-meta {
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--canvas);
  border-top: 1px solid var(--border);
}
.visualizer-meta .powered-by {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.visualizer-meta .powered-by img { height: 24px; width: auto; }
@media (max-width: 720px) {
  .visualizer-frame-wrap { aspect-ratio: 4/5; }
  .visualizer-meta { padding: 22px 20px; flex-d