/* Arial sized to match Montserrat, so text does not jump when the web font loads */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); size-adjust: 113.4%; ascent-override: 85%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --ink: #06142a;
  --slate: #16263f;
  --blue: #0b2a57;
  --blue-dark: #071d3f;
  --blue-soft: #9cc4f2;
  --tint: #f0f4f9;
  --line: #dae3ee;
  --text: #1c2a3a;
  --muted: #4d5c6e;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(6, 20, 42, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: Montserrat, "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65;
}
h1, h2, h3, p, ul, ol, dl, dd, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(800px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid #4f94e8; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 2px solid transparent; border-radius: 9px;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-blue:disabled { opacity: .65; cursor: wait; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #e6edf6; }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); }
.btn-outline em { font-weight: 500; font-style: normal; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 64px; height: 60px; flex: none; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 23px; font-weight: 900; letter-spacing: .07em; }
.logo-text small { font-size: 11px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--slate); text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); }
.has-menu { position: relative; }
.has-menu > a { display: block; padding-block: 26px; }
.caret { font-size: 11px; }
.menu {
  position: absolute; top: 100%; left: -16px; display: none; min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.menu a { display: block; padding: 9px 12px; border-radius: 7px; }
.menu a:hover { background: var(--tint); }
.has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--ink); }

/* Hero: swap --hero-image for a real job photo when you have one */
.hero {
  --hero-image: url(/images/roof-hero.svg);
  position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(4, 13, 28, .93) 0%, rgba(4, 13, 28, .8) 52%, rgba(4, 13, 28, .55) 100%), var(--hero-image) center / cover, var(--ink);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; padding-block: 64px 96px; }
.crumb { margin-bottom: 14px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.crumb a { color: #fff; font-weight: 600; text-decoration: none; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px; font-weight: 600;
}
.hero h1 { margin-top: 18px; font-size: clamp(36px, 4.7vw, 58px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 58ch; font-size: 18px; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hero-ticks li::before { content: "✓"; margin-right: 7px; font-weight: 800; color: var(--blue-soft); }

.quick-form, .quote-form, .form-done { background: #fff; border-radius: var(--radius); color: var(--text); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.quick-form { display: grid; gap: 12px; padding: 24px; border-top: 6px solid var(--blue); }
.quick-form h2 { margin: 0; font-size: 24px; color: var(--ink); }
.quick-sub { margin-top: -8px; font-size: 14px; color: var(--muted); }

/* Forms */
.quote-form { display: grid; gap: 16px; padding: 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label:not(.btn), .field legend { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field legend { margin-bottom: 8px; }
.field em { font-weight: 500; font-style: normal; color: var(--muted); }
.field label:not(.btn):has(em) { display: block; }
.field label:not(.btn):has(em) input, .field label:not(.btn):has(em) textarea { margin-top: 5px; }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #b5c3d4; border-radius: 8px;
  background: #fff; color: var(--text); font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4;
}
.field [aria-invalid=true] { border-color: #b3261e; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-address { grid-template-columns: 1fr 130px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: block !important; cursor: pointer; }
.checks input { position: absolute; opacity: 0; }
.checks span { display: block; padding: 8px 13px; border: 1px solid #b5c3d4; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.checks input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.checks input:focus-visible + span { outline: 3px solid #4f94e8; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.photo-button { justify-self: start; }
#q-photos:focus-visible + label { outline: 3px solid #4f94e8; outline-offset: 2px; }
.photo-list { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.photo-list:empty { display: none; }
.photo-list li { display: flex; justify-content: space-between; gap: 12px; }
.photo-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-list button { padding: 0; border: 0; background: none; color: var(--blue); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.form-error { padding: 10px 13px; border-radius: 8px; background: #fdecea; color: #8c1d18; font-size: 14px; font-weight: 600; }
.form-fine { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.form-done { padding: 56px 28px; text-align: center; }
.form-done h2 { margin: 0; font-size: 26px; color: var(--ink); }
.form-done p { margin-top: 8px; color: var(--muted); }

/* Stats: a card that overlaps the hero */
.stats { position: relative; z-index: 2; margin-top: -48px; }
.stats dl {
  display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 26px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 36px; font-weight: 900; line-height: 1.1; color: var(--blue); }
.stats dd { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--slate); }

/* Sections */
.section { padding-block: 84px; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
h2 { margin-top: 0; font-size: clamp(29px, 3.4vw, 40px); font-weight: 900; line-height: 1.15; color: var(--ink); letter-spacing: -.015em; text-wrap: balance; }
.section-dark h2 { color: #fff; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 12px; font-size: 17px; color: var(--muted); }
.section-head a { color: var(--ink); font-weight: 600; }
h3 { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--ink); }

/* Cards */
.card { display: block; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.link-card { text-decoration: none; }
.link-card:hover { border-color: var(--blue); }
.more { display: block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 10px; background: var(--blue); }
.icon svg { width: 25px; height: 25px; fill: #fff; }

/* Threats */
.threat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.threat { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.threat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.threat div { padding: 20px 22px 24px; }
.threat p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Split + before/after */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-lede { margin-top: 14px; font-size: 17px; color: var(--muted); }
.split-lede a { color: var(--blue); font-weight: 600; }
.signs-head { margin-top: 26px; }
.signs-head + .ticks { margin-block: 12px 18px; }
.ticks { display: grid; gap: 10px; margin-block: 20px 26px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--blue); }
.included { padding: 30px; background: var(--tint); border-radius: var(--radius); }
.included .ticks { margin-bottom: 0; margin-top: 16px; }
.ba { --pos: 55%; position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--slate); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ba-line::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 20px; font-weight: 800; line-height: 1;
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 12px; z-index: 1; padding: 4px 11px; border-radius: 6px; background: rgba(4, 13, 28, .78); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; }
.ba-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; font-weight: 900;
}
.steps h3 { color: #fff; }
.steps p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .8); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 34px; }
.why-item { display: flex; gap: 14px; }
.why-item .icon { width: 40px; height: 40px; margin: 0; }
.why-item .icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 16px; }
.why-item p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* Areas */
.areas { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 14px; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 17px 20px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; font-size: 15px; color: var(--muted); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.quote-sub { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .85); }
.quote-or { margin-top: 28px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.quote-phone { display: inline-block; font-size: 30px; font-weight: 900; color: #fff; text-decoration: none; white-space: nowrap; }
.quote-hours { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* CTA band */
.cta-band { padding-block: 64px; background: var(--blue); color: #fff; text-align: center; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin-top: 10px; font-size: 17px; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer { padding-block: 48px 24px; background: #030c1b; color: rgba(255, 255, 255, .75); font-size: 14px; }
.site-footer a { display: block; padding-block: 3px; color: #fff; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { margin: 0 0 8px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-mark { width: 96px; height: 90px; margin-bottom: 12px; object-fit: contain; }
.footer-name { display: block; margin-bottom: 6px; color: #fff; font-size: 16px; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.mobile-bar { display: none; }

/* Privacy */
.legal { padding-block: 56px 80px; }
.legal h1 { font-size: 34px; font-weight: 900; color: var(--ink); line-height: 1.2; }
.legal h2 { margin-top: 30px; font-size: 20px; }
.legal p { margin-top: 10px; color: var(--muted); }

@media (max-width: 1120px) {
  .header-row { gap: 16px; }
  .nav-toggle { display: flex; order: 3; }
  .header-cta { margin-left: auto; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px 24px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: 11px; }
  .has-menu > a { padding-block: 11px; }
  .has-menu .menu { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .menu a { padding-block: 9px; }
  .caret { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 84px; }
  .quick { max-width: 520px; }
  .service-grid, .threat-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .areas { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  html { scroll-padding-top: 72px; }
  body { padding-bottom: 72px; }
  .header-row { min-height: 64px; gap: 8px; }
  .logo { gap: 7px; }
  .header-cta .btn { display: none; }
  .header-phone { font-size: 14px; }
  .logo-mark { width: 48px; height: 45px; }
  .logo-text strong { font-size: 18px; }
  .logo-text small { font-size: 9.5px; }
  .main-nav { padding-inline: 16px; }
  .section { padding-block: 58px; }
  .section-head { margin-bottom: 30px; }
  .service-grid, .threat-grid, .why-grid, .steps, .other-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .row-2, .row-address { grid-template-columns: 1fr; }
  .quote-form, .quick-form { padding: 20px; }
  .stats dl { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats dt { font-size: 30px; }
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px; background: #fff; border-top: 1px solid var(--line);
  }
}

/* The sticky bar already has a call button on the narrowest phones */
@media (max-width: 365px) {
  .header-phone { display: none; }
}
