/* ============================================================
   MAXWELL ROOFING — shared stylesheet (multi-page site)
   Brand: blue + white + deep navy. Display: Montserrat 800. Body: Inter.
   ============================================================ */

:root {
  /* --- locked brand --- */
  --color-brand-blue: #1CA5D8;       /* vivid logo blue — NON-TEXT + large display, mostly on navy */
  --color-brand-blue-dark: #1580AB;  /* deeper vivid — depth, borders, vivid hover on dark */
  --color-deep-navy: #0E3A52;        /* dark sections, utility bar, footer */
  --color-white: #FFFFFF;
  --color-off-white: #F5F8FA;        /* alternating section backgrounds */
  --color-charcoal: #1A1D23;         /* body text */
  --color-text-muted: #5A6571;
  --color-border: #DDE5EA;

  /* --- AA-safe derivatives (bright #1CA5D8 fails 4.5:1 as text/buttons) --- */
  --color-blue-ink: #0C6E96;         /* brand-blue TEXT on light + button bg w/ white text (~5.7:1) */
  --color-blue-ink-dark: #0a5a80;    /* button/link hover (white text ~7:1) */
  --color-blue-sky: #5BC0EE;         /* brand-blue TEXT on navy/dark sections (~5.8:1) */
  --color-navy-2: #15506e;           /* lifted navy (cards/inputs on dark) */
  --color-muted-on-navy: rgba(255,255,255,0.74);

  --maxw: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(14,58,82,0.06), 0 4px 12px rgba(14,58,82,0.06);
  --shadow-md: 0 8px 30px rgba(14,58,82,0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; overflow-x: clip; }   /* clip (not hidden) kills sideways scroll without breaking the sticky nav */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-blue-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--color-deep-navy); }

/* two-tone headline emphasis */
.hl { color: var(--color-blue-ink); }
.on-dark .hl, .section--navy .hl, .page-hero .hl, .hero .hl { color: var(--color-blue-sky); }

/* ---------- layout helpers ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-off-white); }
.section--navy { background: var(--color-deep-navy); color: var(--color-white); }
.section--navy h2, .section--navy h3 { color: var(--color-white); }

.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; color: var(--color-blue-ink); margin: 0 0 0.85rem; display: block;
}
.eyebrow--ondark { color: var(--color-blue-sky); }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.section-intro { color: var(--color-text-muted); font-size: 1.0625rem; margin-top: 0.85rem; max-width: 62ch; }
.section--navy .section-intro { color: var(--color-muted-on-navy); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--color-brand-blue); outline-offset: 2px; border-radius: 3px;
}
.visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; min-height: 52px; line-height: 1.1;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--color-blue-ink); color: var(--color-white); }
.btn--primary:hover { background: var(--color-blue-ink-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--color-blue-ink); border-color: var(--color-blue-ink); }
.btn--outline:hover { background: var(--color-blue-ink); color: var(--color-white); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); transform: translateY(-2px); }
.btn--lg { font-size: 1.05rem; padding: 1.1rem 2rem; min-height: 58px; }
.btn__arrow { font-weight: 700; }

/* ============================================================
   UTILITY BAR
   ============================================================ */
.utility-bar { background: var(--color-deep-navy); color: var(--color-white); font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.utility-bar a { color: var(--color-white); text-decoration: none; font-weight: 600; }
.utility-bar a:hover { color: var(--color-blue-sky); }
.utility-bar__center { color: var(--color-muted-on-navy); }
.utility-bar__right { color: var(--color-muted-on-navy); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-white); border-bottom: 1px solid var(--color-border); transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.scrolled { background: var(--color-deep-navy); border-bottom-color: rgba(255,255,255,0.1); box-shadow: 0 6px 24px rgba(14,58,82,0.18); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 72px; }
.page-home .site-header .container { max-width: none; padding-inline: clamp(1.5rem, 4.5vw, 3.5rem); }   /* HOME ONLY: full-bleed nav so the logo hugs the left + aligns with the full-bleed hero text (matches .hero .container). Interior pages keep the centered nav so the logo stays aligned with their centered page-heros. */
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: 0.02em; color: var(--color-deep-navy); text-decoration: none; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5rem; }
.nav__brand b { color: var(--color-blue-ink); }
.site-header.scrolled .nav__brand { color: var(--color-white); }
.site-header.scrolled .nav__brand b { color: var(--color-blue-sky); }
.brand-logo { height: 48px; width: auto; display: block; }
/* blue logo reads on the white nav; knock it out to white once nav goes navy */
.site-header.scrolled .brand-logo { filter: brightness(0) invert(1); }

.nav__menu { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--color-deep-navy); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0; position: relative; transition: color .2s; }
.nav__link:hover { color: var(--color-blue-ink); }
.site-header.scrolled .nav__link { color: rgba(255,255,255,0.86); }
.site-header.scrolled .nav__link:hover { color: var(--color-white); }
.nav__link.is-current { color: var(--color-blue-ink); }
.nav__link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-brand-blue); border-radius: 2px; }
.site-header.scrolled .nav__link.is-current { color: var(--color-blue-sky); }

.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.nav__cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-blue-ink); color: var(--color-white); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; padding: 0.7rem 1.15rem; border-radius: var(--radius); white-space: nowrap; min-height: 44px; transition: background-color .2s var(--ease); }
.nav__cta:hover { background: var(--color-blue-ink-dark); }
.nav__cta svg { width: 16px; height: 16px; }

.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--color-border); background: transparent; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; color: var(--color-deep-navy); }
.site-header.scrolled .nav__toggle { color: var(--color-white); border-color: rgba(255,255,255,0.25); }
.nav__toggle svg { width: 24px; height: 24px; }

/* ============================================================
   HERO (home, angled split)
   ============================================================ */
.hero { position: relative; background: var(--color-deep-navy); color: var(--color-white); overflow: hidden; isolation: isolate; min-height: clamp(520px, 72vh, 660px); display: flex; align-items: center; }
.hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 61%; background: var(--color-deep-navy); z-index: 0; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; display: block; }   /* landscape crop shows full-width: van lettering + roof together */
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,58,82,0.6), rgba(14,58,82,0.06)); }
.hero__panel-bg { position: absolute; top: 0; bottom: 0; left: -12%; width: 52%; background: var(--color-deep-navy); transform: skewX(-5deg); transform-origin: top left; z-index: 1; box-shadow: 18px 0 40px rgba(11,33,48,0.35); }   /* gentler slash, sits left of the van so the full lettering clears */
.hero .container { position: relative; z-index: 2; max-width: none; width: 100%; padding-inline: clamp(1.5rem, 4.5vw, 3.5rem); }   /* full-width + small left pad pushes text to the left edge */
.hero__content { max-width: 440px; padding-block: clamp(2rem, 5vw, 3.25rem); }

/* slim trust strip of badges directly on the navy (no white chips) */
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 1.7rem; }
.hero-badge { width: auto; object-fit: contain; display: block; }
.hero-badge--mc { height: 58px; }
.hero-badge--landmark { height: 24px; filter: brightness(0) invert(1); }   /* dark wordmark -> white knockout on navy */
.hero-badge--iko { height: 28px; }   /* red-shield + white-wordmark crop for navy: photos/logo-iko-hero.png (no knockout) */
.hero-badge--maximum { height: 28px; filter: brightness(0) invert(1); }    /* dark/blue logo -> white knockout on navy */
.hero-badge--warranty { height: 46px; }
.hero-badge--bbb { height: 52px; }
.hero__eyebrow { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--color-blue-sky); margin: 0 0 1.4rem; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); color: var(--color-white); letter-spacing: -0.02em; }
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,0.9); margin: 1.5rem 0 2.1rem; max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__trust { margin: 2.2rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--color-blue-sky); text-transform: uppercase; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; background: var(--color-deep-navy); color: var(--color-white); overflow: hidden; }
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 820px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--color-white); }
.page-hero__sub { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-top: 1.1rem; max-width: 58ch; }
.page-hero__photo { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0.22; z-index: 0; }
.page-hero--dramatic { background: radial-gradient(120% 120% at 80% 0%, #15506e 0%, var(--color-deep-navy) 55%); }
.page-hero--dramatic h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--color-deep-navy); color: var(--color-white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: clamp(2.25rem, 4vw, 3rem); text-align: center; }
.stat { padding: 0.5rem; border-left: 1px solid rgba(255,255,255,0.12); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--color-white); line-height: 1; }
.stat__num span { color: var(--color-brand-blue); }
.stat__label { display: block; margin-top: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-blue-sky); }

/* ============================================================
   FEATURES (Why Maxwell)
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3.5vw, 3rem); }
.feature__icon { width: 52px; height: 52px; color: var(--color-blue-ink); margin-bottom: 1.2rem; }
.section--navy .feature__icon { color: var(--color-brand-blue); }
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.feature p { margin: 0; color: var(--color-text-muted); }
.section--navy .feature p { color: var(--color-muted-on-navy); }

/* ============================================================
   SERVICES PREVIEW CARDS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { display: flex; flex-direction: column; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.9rem; border-bottom: 3px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.section--alt .svc-card { background: var(--color-white); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-bottom-color: var(--color-brand-blue); }
.svc-card__icon { width: 40px; height: 40px; color: var(--color-blue-ink); margin-bottom: 1rem; }
.svc-card__icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.svc-card p { margin: 0 0 1.1rem; color: var(--color-text-muted); font-size: 0.98rem; }
.svc-card__link { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--color-blue-ink); text-decoration: none; }
.svc-card__link:hover { color: var(--color-blue-ink-dark); }

/* ============================================================
   DEEP SERVICE SECTIONS (services.html) — alternating
   ============================================================ */
.svc-deep { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--color-border); }
.svc-deep__media, .svc-deep__body { min-width: 0; }
.svc-deep:first-of-type { border-top: 0; }
.svc-deep:nth-child(odd) .svc-deep__media { order: 2; }   /* 01 photo-right, 02 photo-left, … */
.svc-num { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; color: var(--color-blue-ink); margin: 0 0 0.7rem; }
.svc-deep__body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.9rem; }
.svc-deep__body > p { color: var(--color-text-muted); margin: 0 0 1.4rem; }
.checklist { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 1.25rem; height: 1.25rem; background: var(--color-blue-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat; }
/* height:auto makes CSS aspect-ratio win over the img height attr; square suits Jamie's portrait phone photos (object-fit:cover = no distortion) */
.svc-deep__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); background: var(--color-off-white); }

/* ============================================================
   STORM STRIP
   ============================================================ */
.storm { background: var(--color-deep-navy); color: var(--color-white); border-top: 3px solid var(--color-brand-blue); }
.storm__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.6rem; }
.storm__text { margin: 0; max-width: 72ch; color: rgba(255,255,255,0.94); }
.storm__text strong { color: var(--color-white); }
.storm__cta { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-blue-sky); font-family: var(--font-display); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1.05rem; }
.storm__cta:hover { text-decoration: underline; }
.storm__cta svg { width: 18px; height: 18px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.reviews-grid--two { grid-template-columns: repeat(2, 1fr); }
.review-card { display: flex; flex-direction: column; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.65rem 1.6rem; box-shadow: var(--shadow-sm); }
.review-card.is-hidden { display: none; }
.review-card__stars { color: var(--color-blue-ink); letter-spacing: 0.12em; font-size: 1rem; margin-bottom: 0.75rem; }
.review-card__text { font-size: 1rem; line-height: 1.6; margin: 0 0 0.55rem; color: var(--color-charcoal);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.review-card__text.expanded { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.review-card__more { align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 1rem; color: var(--color-blue-ink); font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.review-card__more:hover { color: var(--color-blue-ink-dark); text-decoration: underline; }
.review-card__by { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--color-text-muted); }
.reviews-more-wrap { text-align: center; margin-top: 2.25rem; }
.reviews-note { text-align: center; margin: 2.75rem auto 0; color: var(--color-text-muted); }
.section--navy .reviews-note { color: var(--color-muted-on-navy); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 840px; }
.faq { border-top: 1px solid var(--color-border); }
.faq:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-deep-navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.3rem; top: 1.7rem; width: 11px; height: 11px; border-right: 2.5px solid var(--color-blue-ink); border-bottom: 2.5px solid var(--color-blue-ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq p { margin: 0 0 1.4rem; color: var(--color-text-muted); max-width: 72ch; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--color-deep-navy); color: var(--color-white); text-align: center; }
.cta-band__inner { padding-block: clamp(3rem, 6vw, 5rem); }
.cta-band__title { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--color-white); max-width: 18ch; margin: 0 auto 0.8rem; }
.cta-band__sub { color: rgba(255,255,255,0.85); margin: 0 auto 1.9rem; max-width: 52ch; }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.form { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.45rem; color: var(--color-deep-navy); }
.field .req { color: var(--color-blue-ink); }
.field .opt { font-weight: 500; color: var(--color-text-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0.75rem 0.9rem; background: var(--color-white); color: var(--color-charcoal); border: 1.5px solid var(--color-border); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E3A52' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 18px; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-blue-ink); box-shadow: 0 0 0 3px rgba(12,110,150,0.22); }
.field input::placeholder, .field textarea::placeholder { color: #8a949f; }
.form .btn--primary { width: 100%; margin-top: 0.4rem; }
.form__status { display: none; padding: 2.5rem 0.5rem; text-align: center; }
.form__status.is-active { display: block; }
.form__status h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.form__status p { color: var(--color-text-muted); margin: 0; }

.sidebar { display: grid; gap: 1.25rem; }
.info-card { background: var(--color-deep-navy); color: var(--color-white); border-radius: var(--radius); padding: 1.75rem; }
.info-card h3, .call-card h3 { font-size: 1.15rem; color: var(--color-white); margin-bottom: 1rem; font-family: var(--font-display); }
.info-card .eyebrow { color: var(--color-blue-sky); }
.info-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.info-card li { display: flex; align-items: center; gap: 0.7rem; color: rgba(255,255,255,0.9); }
.info-card a { color: var(--color-white); text-decoration: none; font-weight: 600; }
.info-card a:hover { color: var(--color-blue-sky); }
.info-card svg { width: 18px; height: 18px; color: var(--color-brand-blue); flex: none; }
.info-card__socials { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.info-card__socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); }
.info-card__socials a:hover { background: var(--color-brand-blue); border-color: var(--color-brand-blue); }
.info-card__socials svg { width: 19px; height: 19px; color: var(--color-white); }
.call-card { background: var(--color-blue-ink); color: var(--color-white); border-radius: var(--radius); padding: 1.75rem; }
.call-card p { margin: 0 0 1rem; color: rgba(255,255,255,0.92); }
.call-card .call-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--color-white); text-decoration: none; display: inline-block; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); line-height: 0; }
.map-embed iframe { width: 100%; height: 220px; border: 0; }

/* ============================================================
   AREAS
   ============================================================ */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.area-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.6rem; border-left: 4px solid var(--color-brand-blue); }
.area-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.area-card p { margin: 0; color: var(--color-text-muted); font-size: 0.97rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-deep-navy); color: var(--color-white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.8rem; color: var(--color-white); }
.footer__brand b { color: var(--color-blue-sky); }
.footer-logo { height: 50px; width: auto; display: block; margin-bottom: 1rem; filter: brightness(0) invert(1); }   /* white knockout on navy footer */
.site-footer p { margin: 0 0 0.5rem; color: rgba(255,255,255,0.82); }
.footer__creds { font-size: 0.9rem; color: var(--color-blue-sky); margin-top: 0.8rem; font-weight: 600; }
.site-footer h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--color-blue-sky); margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul a, .footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer ul a:hover, .footer-contact a:hover { color: var(--color-white); }
.footer__phone { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--color-white); text-decoration: none; }
.footer__socials { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer__socials a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); color: var(--color-white); }
.footer__socials a:hover { background: var(--color-brand-blue); border-color: var(--color-brand-blue); }
.footer__socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.4rem; font-size: 0.875rem; color: rgba(255,255,255,0.66); }

/* ============================================================
   ANIMATION (entrance + scroll reveal)
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.animate-rise > * { opacity: 0; animation: rise 0.7s var(--ease) forwards; }
.animate-rise > *:nth-child(1) { animation-delay: 0ms; }
.animate-rise > *:nth-child(2) { animation-delay: 90ms; }
.animate-rise > *:nth-child(3) { animation-delay: 180ms; }
.animate-rise > *:nth-child(4) { animation-delay: 270ms; }
.animate-rise > *:nth-child(5) { animation-delay: 360ms; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   CREDENTIALS & MATERIALS BAND (home)
   ============================================================ */
.creds { background: var(--color-off-white); }
.creds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }   /* 6 cards: certifications + product brands, 2 balanced rows */
.cred { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.9rem 1.3rem; box-shadow: var(--shadow-sm); }
.cred__badge { height: 104px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.15rem; }
.cred__badge img { max-height: 104px; max-width: 100%; width: auto; object-fit: contain; }
.cred__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--color-deep-navy); margin: 0 0 0.45rem; }
.cred__desc { font-size: 0.9rem; line-height: 1.5; color: var(--color-text-muted); margin: 0; }

/* About — Master Craftsman badge + explanation */
.standard { display: grid; grid-template-columns: 210px 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.standard__badge { display: flex; justify-content: center; }
.standard__badge img { width: 100%; max-width: 210px; height: auto; object-fit: contain; }
.standard__body > p { color: var(--color-text-muted); margin: 0.6rem 0 0; }

/* Services — materials/partner marks in the New Roof section */
.svc-materials { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 0 0 1.5rem; padding: 1rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.svc-materials img { height: 38px; width: auto; object-fit: contain; }
.svc-materials span { font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

/* Footer — CertainTeed authorized-installer chip (white chip carries the white-bg logo) */
.footer__partner { display: inline-flex; align-items: center; gap: 0.65rem; background: var(--color-white); border-radius: var(--radius); padding: 0.5rem 0.85rem; margin-top: 1.1rem; }
.footer__partner img { height: 32px; width: auto; object-fit: contain; }
.footer__partner span { font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-deep-navy); }

/* Services — two shingle options (premium + value) */
.shingle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 1.75rem; }
.shingle-card { position: relative; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); }
.shingle-card--premium { border-color: var(--color-blue-ink); box-shadow: inset 0 0 0 1px var(--color-blue-ink), var(--shadow-md); }
.shingle-card__tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-blue-ink); background: rgba(12,110,150,0.09); padding: 0.3rem 0.7rem; border-radius: 100px; margin-bottom: 0.9rem; }
.shingle-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.shingle-card > p { color: var(--color-text-muted); margin: 0 0 1.1rem; }
.shingle-card__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.shingle-card__points li { position: relative; padding-left: 1.7rem; font-weight: 600; font-size: 0.95rem; }
.shingle-card__points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 1.1rem; height: 1.1rem; background: var(--color-blue-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat; }
.shingle-trust { text-align: center; max-width: 62ch; margin: 0 auto; color: var(--color-text-muted); }
.shingle-trust strong { color: var(--color-deep-navy); }
/* clickable shingle cards (whole card links to a quote) + brand logo on each */
a.shingle-card { text-decoration: none; color: inherit; display: block; cursor: pointer; transition: transform .2s var(--ease); }
a.shingle-card:hover { transform: translateY(-4px); }
a.shingle-card:focus-visible { outline: 3px solid var(--color-brand-blue); outline-offset: 3px; }
.shingle-card__logobox { height: 46px; display: flex; align-items: center; margin-bottom: 1.1rem; }
.shingle-card__logo { max-height: 44px; max-width: 170px; width: auto; object-fit: contain; display: block; }
.shingle-card__cta { display: inline-block; margin-top: 1.3rem; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--color-blue-ink); }
a.shingle-card:hover .shingle-card__cta { color: var(--color-blue-ink-dark); }
.shingle-card__cta .btn__arrow { display: inline-block; transition: transform .2s var(--ease); }
a.shingle-card:hover .shingle-card__cta .btn__arrow { transform: translateX(3px); }
@media (max-width: 700px) { .shingle-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .creds__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }   /* 2×2 on mobile */
  .standard { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .standard__badge img { max-width: 170px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* nav → hamburger */
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); padding: 0.5rem 0; max-height: 0; overflow: hidden; visibility: hidden; }
  .nav__menu.is-open { max-height: 80vh; visibility: visible; padding: 0.5rem 0; }
  .site-header.scrolled .nav__menu { background: var(--color-deep-navy); }
  .nav__menu li { padding: 0 var(--pad-x); }
  .nav__link { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
  .site-header.scrolled .nav__link { border-bottom-color: rgba(255,255,255,0.1); }
  .nav__link.is-current::after { display: none; }
  .nav__toggle { display: inline-flex; }
  /* angled hero → stack: hide the navy panel layer (the hero's own bg covers the text area)
     so it no longer sits on top of the photo and hide it */
  .hero__panel-bg { display: none; }
  .hero__photo { position: relative; width: 100%; height: 280px; z-index: 0; }
  .hero { display: flex; flex-direction: column-reverse; min-height: auto; align-items: stretch; }
  .hero__content { padding-block: clamp(2.5rem, 8vw, 3.5rem); }
  .hero-badges { gap: 1.1rem; }
  .hero-badge--mc { height: 50px; }
  .hero-badge--landmark { height: 21px; }
  .hero-badge--iko { height: 25px; }
  .hero-badge--maximum { height: 25px; }
  .hero-badge--warranty { height: 40px; }
  .hero-badge--bbb { height: 46px; }
  .hero__photo::after { background: none; }   /* drop the side-gradient on the stacked photo */
  .contact-grid { grid-template-columns: 1fr; }
  .svc-deep { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-deep:nth-child(odd) .svc-deep__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .features, .svc-grid, .areas-grid, .reviews-grid, .reviews-grid--two { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .utility-bar__center { display: none; }
  .hero__ctas .btn, .cta-band__ctas .btn { width: 100%; }
  .hero__ctas, .cta-band__ctas { flex-direction: column; }
  .nav__cta span.nav__cta-label { display: none; }
  .nav__cta { padding: 0.6rem 0.8rem; }
  .brand-logo { height: 34px; }
  .nav__right { gap: 0.5rem; }
  .nav { gap: 0.5rem; }
  /* --- tighten vertical rhythm: desktop padding leaves big blank bands on phones --- */
  :root { --section-y: clamp(2rem, 7vw, 2.75rem); }   /* ~32px (was ~64px) */
  .section-head { margin-bottom: 1.5rem; }
  .page-hero__inner { padding-block: clamp(1.75rem, 7vw, 2.5rem); }
  .cta-band__inner { padding-block: clamp(2.25rem, 7vw, 3rem); }
  .footer-grid { padding-block: clamp(2.25rem, 7vw, 3rem); gap: 1.75rem; }
  .stats__grid { padding-block: 1.75rem; gap: 1.5rem 0.75rem; }
  .standard { margin-bottom: 1.75rem; }
  .svc-deep { padding-block: clamp(2rem, 6vw, 2.75rem); }
  .footer-bottom { padding-block: 1.1rem; }
  /* badge strip: slightly smaller so all four sit on one tidy row, evenly spaced */
  .hero-badges { gap: 0.7rem 0.85rem; }
  .hero-badge--mc { height: 40px; }
  .hero-badge--landmark { height: 17px; }
  .hero-badge--iko { height: 22px; }
  .hero-badge--maximum { height: 22px; }
  .hero-badge--warranty { height: 33px; }
  .hero-badge--bbb { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .animate-rise > * { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
