/* =========================================================
   OPTIMUM ROOFING & SOLAR — Global Stylesheet
   Quality. Integrity. Built to Last.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors (extracted from logo) */
  --blue: #0c8afd;
  --blue-dark: #0a78dd;
  --blue-deep: #0a63b8;
  --charcoal: #1C1C1C;
  --charcoal-soft: #2A2A2A;
  --navy: #001732;
  --navy-2: #0a2c52;
  --steel: #EFF4FA;
  --steel-2: #E2ECF6;
  --white: #FFFFFF;
  --gold: #D4A017;

  /* Text */
  --text: #1C2430;
  --text-muted: #5A6675;
  --text-light: #8A95A3;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #B7C6D8;

  /* Borders / lines */
  --line: #E0E8F1;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Spacing scale — multiples of 8 */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 80px;
  --s-9: 96px;
  --s-10: 128px;

  /* Type sizes */
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4rem;

  /* Fonts */
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-sub: 'Barlow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-script: 'Pinyon Script', 'Great Vibes', cursive;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 3px rgba(15, 42, 74, 0.08);
  --sh-md: 0 6px 20px rgba(15, 42, 74, 0.10);
  --sh-lg: 0 18px 44px rgba(15, 42, 74, 0.16);

  /* Layout */
  --maxw: 1200px;
  --maxw-wide: 1320px;
  --nav-h: 76px;
  --topbar-h: 38px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--blue);
}
.eyebrow.on-dark { color: #7DB4E4; }
h1, .h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.4px currentColor;
}
h2, .h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, var(--fs-3xl));
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h3, .h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-xl);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.7;
}
.script {
  font-family: var(--font-script);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-3); }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.section-tight { padding: var(--s-6) 0; }
.bg-steel { background: var(--steel); }
.bg-navy { background: var(--navy); color: var(--text-on-dark); }
.bg-charcoal { background: var(--charcoal); color: var(--text-on-dark); }
.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto var(--s-6); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { margin: var(--s-2) 0 0; }
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  line-height: 1;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(12, 138, 253, 0.28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(12, 138, 253, 0.36); }
.btn-white { background: #fff; color: var(--charcoal); box-shadow: var(--sh-md); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.10); border-color: #fff; transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 18px 34px; font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sub);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  transition: gap 0.18s ease, color 0.18s ease;
}
.tlink svg { width: 18px; height: 18px; transition: transform 0.18s ease; }
.tlink:hover { color: var(--blue-dark); gap: 10px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  height: var(--topbar-h);
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  position: relative;
  z-index: 60;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar .tb-left { display: flex; align-items: center; gap: var(--s-1); color: var(--text-on-dark-muted); }
.topbar .tb-left svg { width: 16px; height: 16px; color: #7DB4E4; }
.topbar .tb-right { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar .tb-right svg { width: 16px; height: 16px; color: #7DB4E4; }
.topbar a:hover { color: #fff; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav.solid { background: #fff; box-shadow: 0 4px 22px rgba(15, 42, 74, 0.10); border-bottom-color: var(--line); }

/* logo (text recreation) */
.brand { display: flex; flex-direction: column; line-height: 0.9; }
/* logo as image */
.brand img.brand-logo {
  height: 60px;
  width: auto;
  max-width: 190px;
  display: block;
  object-fit: contain;
}
.nav:not(.solid) .brand img.brand-logo {
  filter: brightness(0) invert(1);
}

.nav-links { display: flex; align-items: center; gap: var(--s-4); }
.nav-links a {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  transition: color 0.18s ease;
}
.nav:not(.solid) .nav-links a { color: rgba(255,255,255,0.92); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--blue); }
.nav:not(.solid) .nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }
.nav:not(.solid) .nav-links a.active::after { background: #fff; }

.nav-right { display: flex; align-items: center; gap: var(--s-2); }
.nav-cta { padding: 12px 22px; }

/* hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav:not(.solid) .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(82vw, 340px);
  height: 100vh;
  background: var(--navy);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  padding: var(--s-8) var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  box-shadow: -20px 0 50px rgba(0,0,0,0.3);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line-dark);
  letter-spacing: 0.02em;
}
.mobile-menu a.active { color: #6FB0E6; }
.mobile-menu .btn { margin-top: var(--s-3); }
.mobile-menu .mm-phone { margin-top: auto; color: var(--text-on-dark-muted); font-family: var(--font-sub); display:flex; align-items:center; gap:8px; }
.mobile-menu .mm-phone svg { width: 18px; height: 18px; color: #7DB4E4; }
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 20, 35, 0.5);
  z-index: 65;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.mm-close { position: absolute; top: 18px; right: 18px; background:none; border:none; color:#fff; padding:6px; }
.mm-close svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  margin-top: calc(-1 * (var(--nav-h)));
  padding-top: calc(var(--nav-h) + var(--s-9));
  padding-bottom: var(--s-10);
  overflow: hidden;
}
.hero.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.has-bg::after {
  content: "";
  position: absolute; inset: 0;
  width: auto; height: auto;
  background: linear-gradient(160deg, rgba(10,28,50,0.70) 0%, rgba(15,42,74,0.58) 60%, rgba(10,28,50,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 11px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%; top: -20%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(12,138,253,0.28) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.hero .hero-sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.92);
  margin-top: var(--s-3);
  max-width: 600px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

/* trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-dark);
}
.trust-item { display: flex; align-items: center; gap: 9px; font-family: var(--font-sub); font-weight: 600; color: #fff; }
.trust-item svg { width: 20px; height: 20px; color: #7DB4E4; }
.trust-divider { width: 1px; height: 26px; background: var(--line-dark); }

/* angled divider */
.angle-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 64px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}
.angle-divider.to-steel { background: var(--steel); }

/* compact page hero (interior pages) */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--nav-h) + var(--s-7));
  padding-bottom: var(--s-7);
  overflow: hidden;
}
.page-hero.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: calc(var(--nav-h) + var(--s-8));
  padding-bottom: var(--s-8);
}
.page-hero.has-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,28,50,0.72) 0%, rgba(15,42,74,0.60) 60%, rgba(10,28,50,0.48) 100%);
  z-index: 0;
}
.page-hero.has-bg .container { position: relative; z-index: 2; }

/* inline photos */
.photo-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 11px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.page-hero .page-hero-sub { color: rgba(255,255,255,0.92); font-size: var(--fs-md); margin-top: var(--s-2); max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-sub); font-size: var(--fs-sm); color: var(--text-on-dark-muted); margin-bottom: var(--s-2); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.6; }
.breadcrumb .current { color: #7DB4E4; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--s-3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--sh-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--line);
}
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

.icon-badge {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: var(--steel);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.solid { background: var(--blue); color: #fff; }
.icon-badge.gold { background: rgba(212,160,23,0.12); color: var(--gold); }

.service-card h3 { margin-bottom: var(--s-1); }
.service-card p { color: var(--text-muted); margin: 0 0 var(--s-3); }

/* ---------- Why section (feature rows) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.feature-row { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-dark); }
.feature-row:last-child { border-bottom: none; }
.feature-row .fr-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(125, 180, 228, 0.14);
  color: #7DB4E4;
  display: flex; align-items: center; justify-content: center;
}
.feature-row .fr-icon svg { width: 24px; height: 24px; }
.feature-row h4 { font-family: var(--font-sub); font-weight: 700; font-size: var(--fs-md); margin: 0 0 2px; }
.feature-row p { margin: 0; color: var(--text-on-dark-muted); font-size: var(--fs-sm); }

/* ---------- Process steps (horizontal) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); position: relative; margin-top: var(--s-6); }
.steps::before {
  content: "";
  position: absolute;
  top: 26px; left: 12%; right: 12%;
  height: 2px;
  background: var(--steel-2);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 var(--s-1); }
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s-2);
  box-shadow: 0 6px 16px rgba(12,138,253,0.3);
  border: 4px solid #fff;
}
.step h4 { font-family: var(--font-sub); font-weight: 700; font-size: var(--fs-md); margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stat { text-align: center; padding: var(--s-2); }
.stat .stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: #fff;
  line-height: 1;
}
.stat .stat-num .unit { color: #7DB4E4; }
.stat .stat-label { font-family: var(--font-sub); font-weight: 500; color: var(--text-on-dark-muted); margin-top: 8px; letter-spacing: 0.02em; }
.stat + .stat { border-left: 1px solid var(--line-dark); }

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; height: 100%; }
.stars { display: flex; gap: 3px; margin-bottom: var(--s-2); }
.stars svg { width: 20px; height: 20px; color: var(--gold); fill: var(--gold); }
.review-card .quote { font-size: var(--fs-md); color: var(--text); line-height: 1.6; margin: 0 0 var(--s-3); flex: 1; }
.review-card .reviewer { font-family: var(--font-sub); font-weight: 700; color: var(--text); }
.review-card .reviewer .city { display: block; font-weight: 500; color: var(--text-light); font-size: var(--fs-sm); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 11px);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--text-on-dark-muted); max-width: 620px; margin: var(--s-2) auto var(--s-4); font-size: var(--fs-md); }
.cta-banner.blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }
.cta-banner.blue::before { opacity: 0.6; }
.cta-banner.blue p { color: rgba(255,255,255,0.9); }

/* ---------- Service area pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--steel-2);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 11px 22px;
  font-family: var(--font-sub);
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.pill svg { width: 16px; height: 16px; color: var(--blue); }
.pill:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- City cards ---------- */
.city-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  box-shadow: var(--sh-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; align-items: center; gap: var(--s-2);
}
.city-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--blue); }
.city-card .cc-icon { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--steel); color: var(--blue); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.city-card .cc-icon svg { width: 22px; height: 22px; }
.city-card h4 { font-family: var(--font-sub); font-weight: 700; font-size: var(--fs-md); margin: 0; }
.city-card span { color: var(--text-light); font-size: var(--fs-sm); }

/* ---------- Image placeholder ---------- */
.img-ph {
  background:
    repeating-linear-gradient(135deg, rgba(15,42,74,0.05) 0, rgba(15,42,74,0.05) 12px, rgba(15,42,74,0.02) 12px, rgba(15,42,74,0.02) 24px),
    linear-gradient(135deg, var(--steel) 0%, var(--steel-2) 100%);
  border: 1px dashed rgba(15,42,74,0.22);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
  font-size: var(--fs-sm);
  padding: var(--s-3);
  min-height: 240px;
}
.img-ph.on-dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 12px, rgba(255,255,255,0.02) 12px, rgba(255,255,255,0.02) 24px),
    linear-gradient(135deg, #15375A 0%, #1E456B 100%);
  border-color: rgba(255,255,255,0.18);
  color: var(--text-on-dark-muted);
}

/* ---------- Two-column detail layout (roofing/solar) ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-6); align-items: start; }
.prose h2 { margin-bottom: var(--s-2); }
.prose h3 { color: var(--blue-deep); margin: var(--s-5) 0 var(--s-2); }
.prose p { color: var(--text-muted); margin: 0 0 var(--s-2); }
.check-list { display: grid; gap: var(--s-1); margin: var(--s-2) 0; }
.check-list li { display: flex; gap: var(--s-1); align-items: flex-start; color: var(--text); }
.check-list li svg { width: 22px; height: 22px; color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.check-cols { columns: 2; column-gap: var(--s-4); }
.check-cols li { break-inside: avoid; margin-bottom: var(--s-1); }

/* highlight card */
.highlight-card {
  background: var(--steel);
  border: 2px solid var(--blue);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.highlight-card .hc-label { font-family: var(--font-sub); font-weight: 700; color: var(--blue-deep); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-sm); margin-bottom: var(--s-1); display:flex; align-items:center; gap:8px; }
.highlight-card .hc-label svg { width: 20px; height: 20px; }
.highlight-card p { margin: 0 0 var(--s-3); color: var(--text); font-size: var(--fs-md); }

/* pull quote */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
  font-size: var(--fs-lg);
  font-family: var(--font-sub);
  font-style: italic;
  color: var(--text);
  margin: var(--s-4) 0;
}
.pull-quote cite { display: block; font-style: normal; font-weight: 700; font-size: var(--fs-base); color: var(--text-muted); margin-top: var(--s-1); }

/* ---------- Forms ---------- */
.quote-form {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--s-5);
  border: 1px solid var(--line);
}
.quote-form.sticky-form { position: sticky; top: calc(var(--nav-h) + var(--s-2)); }
.quote-form h3 { margin-bottom: 4px; }
.quote-form .form-sub { color: var(--text-muted); font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
.field { margin-bottom: var(--s-2); }
.field label { display: block; font-family: var(--font-sub); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12,138,253,0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.error input, .field.error select, .field.error textarea { border-color: #D14343; }
.field .err-msg { display: none; color: #D14343; font-size: var(--fs-xs); margin-top: 5px; font-family: var(--font-sub); font-weight: 600; }
.field.error .err-msg { display: block; }
.form-success {
  display: none;
  background: rgba(31,138,91,0.10);
  border: 1.5px solid #1F8A5B;
  color: #176A46;
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-sub);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.form-success.show { display: flex; align-items: center; gap: 8px; }
.form-success svg { width: 20px; height: 20px; }

/* emergency card */
.emergency-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-4);
  text-align: center;
}
.emergency-card .ec-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(212,160,23,0.16); color: var(--gold); display:flex; align-items:center; justify-content:center; margin: 0 auto var(--s-2); }
.emergency-card .ec-icon svg { width: 28px; height: 28px; }
.emergency-card h3 { color: #fff; margin-bottom: 6px; }
.emergency-card .ec-phone { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: #fff; display:inline-block; margin: 4px 0; }
.emergency-card p { color: var(--text-on-dark-muted); font-size: var(--fs-sm); margin: 0; }

/* contact details list */
.contact-detail { display: flex; gap: var(--s-2); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail .cd-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--steel); color: var(--blue); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.contact-detail .cd-icon svg { width: 24px; height: 24px; }
.contact-detail h4 { font-family: var(--font-sub); font-weight: 700; font-size: var(--fs-md); margin: 0 0 2px; }
.contact-detail p { margin: 0; color: var(--text-muted); }
.contact-detail .big-phone { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--blue); }

/* ---------- Timeline (vertical, insurance) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute;
  left: 26px; top: 20px; bottom: 20px;
  width: 2px; background: var(--steel-2);
}
.tl-item { position: relative; display: flex; gap: var(--s-3); padding-bottom: var(--s-5); }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(12,138,253,0.28);
}
.tl-body { padding-top: 4px; }
.tl-body h4 { font-family: var(--font-sub); font-weight: 700; font-size: var(--fs-lg); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.tl-body h4 svg { width: 22px; height: 22px; color: var(--blue); }
.tl-body p { margin: 0; color: var(--text-muted); }

/* stat callout card */
.stat-callout {
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  text-align: center;
  box-shadow: var(--sh-lg);
}
.stat-callout .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; }
.stat-callout p { color: rgba(255,255,255,0.92); font-size: var(--fs-md); margin: var(--s-2) 0 0; }

/* team cards */
.team-card { text-align: center; }
.team-card .avatar {
  width: 100%; aspect-ratio: 1/1;
  border-radius: var(--r-md);
  margin-bottom: var(--s-2);
  background:
    repeating-linear-gradient(135deg, rgba(15,42,74,0.05) 0, rgba(15,42,74,0.05) 10px, rgba(15,42,74,0.02) 10px, rgba(15,42,74,0.02) 20px),
    linear-gradient(135deg, var(--steel) 0%, var(--steel-2) 100%);
  border: 1px dashed rgba(15,42,74,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  color: var(--text-light);
  padding: var(--s-2);
}
.team-card h4 { font-family: var(--font-sub); font-weight: 700; font-size: var(--fs-md); margin: 0; }
.team-card .role { color: var(--blue); font-family: var(--font-sub); font-weight: 600; font-size: var(--fs-sm); }
.team-card p { color: var(--text-muted); font-size: var(--fs-sm); margin: 6px 0 0; }

/* value cards */
.value-card { text-align: center; padding: var(--s-4); }
.value-card .icon-badge { margin: 0 auto var(--s-2); }
.value-card h4 { font-family: var(--font-head); text-transform: uppercase; font-size: var(--fs-lg); margin-bottom: 6px; letter-spacing: 0.02em; }
.value-card p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* mini-feature columns (insurance "what you need to do") */
.mini-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.mini-col { text-align: center; }
.mini-col .mc-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(125,180,228,0.14); color: #7DB4E4; display:flex; align-items:center; justify-content:center; margin: 0 auto var(--s-2); }
.mini-col .mc-icon svg { width: 30px; height: 30px; }
.mini-col h4 { font-family: var(--font-sub); font-weight: 700; font-size: var(--fs-lg); margin: 0 0 4px; color: #fff; }
.mini-col p { color: var(--text-on-dark-muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- Google Map embed ---------- */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #fff; padding: var(--s-8) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-5); padding-bottom: var(--s-7); }
.footer .brand img.brand-logo {
  height: auto;
  width: 150px;
  max-width: 150px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer .f-tag { font-family: var(--font-sub); font-weight: 600; color: var(--gold); margin: var(--s-2) 0 var(--s-1); letter-spacing: 0.02em; }
.footer .f-about { color: #9AA3AD; font-size: var(--fs-sm); line-height: 1.7; margin: 0; max-width: 320px; }
.footer h4 { font-family: var(--font-head); text-transform: uppercase; font-size: var(--fs-md); letter-spacing: 0.04em; margin-bottom: var(--s-2); color: #fff; }
.footer .f-links { display: flex; flex-direction: column; gap: 10px; }
.footer .f-links a { color: #9AA3AD; font-size: var(--fs-sm); transition: color 0.16s ease, padding-left 0.16s ease; }
.footer .f-links a:hover { color: #fff; padding-left: 4px; }
.footer .f-contact-item { display: flex; gap: 10px; color: #9AA3AD; font-size: var(--fs-sm); margin-bottom: var(--s-2); align-items: flex-start; }
.footer .f-contact-item svg { width: 18px; height: 18px; color: #4F9AD8; flex: 0 0 auto; margin-top: 2px; }
.footer .f-contact-item .f-phone { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding: var(--s-3) 0; text-align: center; }
.footer-bottom p { margin: 0; color: #7A828C; font-size: var(--fs-sm); }

/* ---------- Intro / utility blocks ---------- */
.intro-block { max-width: 760px; }
.two-para { columns: 2; column-gap: var(--s-5); }
.kicker-line { display: inline-block; width: 48px; height: 3px; background: var(--blue); margin-bottom: var(--s-2); border-radius: 2px; }
.bullet-rich li { display: flex; gap: var(--s-1); align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bullet-rich li:last-child { border-bottom: none; }
.bullet-rich li svg { width: 22px; height: 22px; color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.bullet-rich li strong { font-family: var(--font-sub); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .two-para { columns: 1; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-5); }
  .detail-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .quote-form.sticky-form { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-3); }
  .stat + .stat { border-left: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
}
@media (max-width: 768px) {
  :root { --fs-md: 1.05rem; }
  .section { padding: var(--s-7) 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-3); }
  .steps::before { display: none; }
  .mini-cols { grid-template-columns: 1fr; gap: var(--s-3); }
  .check-cols { columns: 1; }
  .hero { padding-bottom: var(--s-9); }
  .hero-cta .btn { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--s-2); }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { border-right: none; }
  .stat + .stat { border-top: 1px solid var(--line-dark); padding-top: var(--s-3); }
  .topbar .tb-left span { display: none; }
  .trust-bar { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .trust-divider { display: none; }
  .quote-form { padding: var(--s-4); }
}

/* =========================================================
   FINAL POLISH — accessibility, anchoring, micro-details
   ========================================================= */

/* Keep the top-bar phone on a single line at every width */
.topbar .tb-right { white-space: nowrap; }
.topbar .tb-left { min-width: 0; }
.topbar .tb-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Anchor targets clear the sticky nav instead of hiding beneath it */
:target { scroll-margin-top: calc(var(--nav-h) + var(--s-3)); }
[id] { scroll-margin-top: calc(var(--nav-h) + var(--s-3)); }

/* Branded text selection */
::selection { background: rgba(12, 138, 253, 0.22); color: var(--navy); }
.bg-navy ::selection, .bg-charcoal ::selection, .hero ::selection,
.page-hero ::selection, .cta-banner ::selection, .footer ::selection {
  background: rgba(125, 180, 228, 0.30); color: #fff;
}

/* Tidy tap behaviour on touch devices */
a, button, .btn, .pill, .card { -webkit-tap-highlight-color: transparent; }

/* Accessible keyboard focus — visible on light and dark surfaces */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible,
.tlink:focus-visible,
.pill:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.nav:not(.solid) .nav-links a:focus-visible,
.hero a:focus-visible, .hero .btn:focus-visible,
.page-hero a:focus-visible, .page-hero .btn:focus-visible,
.bg-navy a:focus-visible, .bg-navy .btn:focus-visible,
.cta-banner a:focus-visible, .cta-banner .btn:focus-visible,
.footer a:focus-visible, .mobile-menu a:focus-visible,
.topbar a:focus-visible, .btn-white:focus-visible {
  outline-color: #fff;
}
/* Don't show the ring on mouse click, only keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) { outline: none; }

/* Native form control accent */
input, select, textarea, button { accent-color: var(--blue); }

/* Skip-to-content link (injected by main.js) */
.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -120px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-sub);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--s-2); outline: 3px solid #fff; outline-offset: 2px; }

/* Nicer line breaking for long-form copy */
h1, h2, h3, h4 { text-wrap: balance; }
p, .lead, .hero-sub, .page-hero-sub { text-wrap: pretty; }

/* Subtle image fade-in as lazy images decode */
img[loading="lazy"] { background: var(--steel); }
