:root {
  --ink: #080c12;
  --ink-soft: #121925;
  --blue: #0084eb;
  --blue-bright: #0084eb;
  --blue-deep: #0084eb;
  --paper: #ffffff;
  --mist: #f2f7fa;
  --line: #d8e4eb;
  --text: #18202a;
  --muted: #5b6672;
  --max: 1160px;
  --shadow: 0 22px 60px rgba(3, 17, 27, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: white; color: black; padding: .8rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 .65rem; color: var(--blue-deep); font-size: .82rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 850; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 13ch; font-size: clamp(2.7rem, 6.6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.65rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lead { max-width: 58ch; color: #d8e3eb; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.section-lead { max-width: 62ch; margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.15rem; border: 1px solid transparent; border-radius: .3rem; background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { background: var(--blue-bright); color: var(--ink); transform: translateY(-2px); }
.button-outline { border-color: rgba(255,255,255,.42); background: transparent; color: white; }
.button-outline:hover { border-color: white; background: white; color: var(--ink); }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #263344; color: white; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.11); background: rgba(8,12,18,.94); backdrop-filter: blur(12px); }
.nav-wrap { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 1.2rem; }
.home-nav { display: grid; grid-template-columns: auto 1fr auto; }
.brand { display: flex; width: min(290px, 56vw); align-items: center; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.header-estimate { min-height: 44px; justify-self: center; padding: .68rem 1rem; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 24px rgba(0,132,235,.28); }
.header-estimate-short { display: none; }
.menu-button { display: none; border: 0; background: transparent; color: white; font: inherit; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav > a:not(.button) { color: #dce7ee; font-size: .94rem; font-weight: 700; text-decoration: none; }
.site-nav > a[aria-current="page"] { color: var(--blue-bright); }
.phone-link { white-space: nowrap; }

.hero { position: relative; min-height: 710px; overflow: hidden; background: var(--ink); color: white; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: .62; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,8,14,.98) 0%, rgba(4,10,18,.88) 42%, rgba(5,13,20,.2) 78%), linear-gradient(0deg, rgba(2,8,13,.82), transparent 50%); }
.hero-content { position: relative; z-index: 2; display: grid; min-height: 710px; align-content: center; padding-block: 7rem; }
.hero h1 { color: white; }
.hero h1 span { color: var(--blue-bright); }
.hero .lead { margin-top: 1.35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); margin-top: 4.5rem; padding-top: 1.4rem; max-width: 740px; }
.trust-row strong { display: block; color: white; font-size: 1.05rem; }
.trust-row span { color: #a9b6c0; font-size: .9rem; }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-dark { background: var(--ink); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark .section-lead { color: #aebdca; }
.section-blue { background: var(--blue); color: white; }
.section-blue h2, .section-blue h3 { color: white; }
.split { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.split-media { overflow: hidden; border-radius: .6rem; box-shadow: var(--shadow); }
.split-media img { width: 100%; min-height: 470px; object-fit: cover; }
.split-media img.wasatch-front-photo { height: 520px; object-position: center 46%; }
.feature-list { display: grid; gap: 1rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 1.8rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .58rem; width: .72rem; height: .72rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(6,155,224,.14); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.card { position: relative; min-height: 310px; padding: 2rem; border: 1px solid var(--line); border-radius: .45rem; background: white; }
.card-number { display: block; margin-bottom: 3rem; color: var(--blue); font-size: 1rem; font-weight: 900; letter-spacing: .08em; }
.card p { margin-top: .8rem; color: var(--muted); }
.card a { display: inline-block; margin-top: 1.25rem; color: var(--blue-deep); font-weight: 800; text-decoration: none; }
.card.featured { border-color: var(--blue); background: var(--blue); color: white; }
.card.featured h3, .card.featured p, .card.featured a, .card.featured .card-number { color: white; }

.promise { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.promise-words { font-size: clamp(2.2rem, 5vw, 5rem); font-weight: 900; line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.promise-words span { display: block; color: var(--blue-bright); }
.promise-copy { padding-top: .5rem; }
.promise-copy p + p { margin-top: 1rem; }

.county-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; margin-top: 2rem; }
.county { padding: .85rem .7rem; border: 1px solid var(--line); border-radius: .3rem; background: white; color: var(--text); font-size: .92rem; font-weight: 750; text-align: center; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: .6rem; background: var(--blue); color: white; box-shadow: var(--shadow); }
.cta-strip h2 { max-width: 15ch; color: white; font-size: clamp(2rem, 4vw, 3.4rem); }
.cta-strip p { max-width: 52ch; margin-top: .7rem; }
.cta-strip .button { background: white; color: var(--ink); white-space: nowrap; }

.page-hero { padding-block: clamp(5rem, 10vw, 8rem); background: var(--ink); color: white; }
.page-hero h1 { color: white; font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero .lead { margin-top: 1.2rem; }
.page-hero .eyebrow { color: var(--blue-bright); }
.roofing-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.roofing-hero-image { overflow: hidden; border-radius: .6rem; box-shadow: 0 24px 60px rgba(0,0,0,.38); }
.roofing-hero-image img { width: 100%; height: clamp(340px, 35vw, 500px); object-fit: cover; object-position: center; }
.restoration-hero-image img { object-position: center 55%; }
.roofing-services-section { position: relative; isolation: isolate; overflow: hidden; }
.roofing-services-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff url("/assets/roof-vent-repair.png") center 42% / cover no-repeat; opacity: .18; }
.roofing-services-section > .container { position: relative; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.2rem; }
.service-panel { padding: 2rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--mist); }
.roofing-services-section .service-panel { background: rgba(255,255,255,.9); backdrop-filter: blur(2px); }
.service-panel p { margin-top: .8rem; color: var(--muted); }
.service-panel ul { margin: 1.1rem 0 0; padding-left: 1.2rem; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 2.2rem; overflow: hidden; border-radius: .45rem; background: #24303c; }
.process-step { min-height: 230px; padding: 1.6rem; background: var(--ink-soft); }
.process-step strong { color: var(--blue-bright); font-size: .8rem; letter-spacing: .14em; }
.process-step h3 { margin-top: 2rem; }
.process-step p { margin-top: .7rem; color: #aebdca; }

.comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.option { overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: white; box-shadow: 0 12px 35px rgba(3,17,27,.08); }
.option-head { padding: 2rem; background: var(--ink); color: white; }
.option-head h3 { color: white; font-size: 1.8rem; }
.option-head p { margin-top: .5rem; color: #b9c7d1; }
.option-body { padding: 2rem; }
.best-for { margin-bottom: 1.4rem; padding: 1rem; border-left: 4px solid var(--blue); background: #eaf7fd; }
.best-for strong { display: block; color: var(--blue-deep); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.option ul { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.option li { padding-left: 1.5rem; position: relative; }
.option li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.note { margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: .3rem; background: #eef2f5; color: var(--muted); font-size: .9rem; }
.restoration-treatment { margin: 2.5rem 0 0; overflow: hidden; border-radius: .55rem; background: var(--ink); box-shadow: var(--shadow); }
.restoration-treatment img { width: 100%; height: clamp(340px, 52vw, 620px); object-fit: cover; object-position: center; }
.restoration-treatment figcaption { padding: 1rem 1.25rem; color: white; font-weight: 750; }
.faq { display: grid; gap: .75rem; margin-top: 2rem; }
.faq details { border: 1px solid var(--line); border-radius: .35rem; background: white; }
.faq summary { cursor: pointer; padding: 1.15rem 1.3rem; color: var(--ink); font-weight: 800; }
.faq details p { padding: 0 1.3rem 1.3rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; }
.contact-card { padding: 2rem; border-radius: .5rem; background: var(--ink); color: white; }
.contact-card h2 { color: white; font-size: 2rem; }
.contact-card a { color: var(--blue-bright); font-weight: 800; text-decoration: none; }
.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list span { display: block; color: #98a8b6; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.estimate-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
label { color: var(--ink); font-size: .9rem; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 48px; padding: .75rem .8rem; border: 1px solid #bfcbd3; border-radius: .3rem; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(6,155,224,.25); border-color: var(--blue); }
.form-status { min-height: 1.5rem; margin-top: .8rem; font-weight: 750; }
.form-status.is-success { color: #116b38; }
.form-status.is-error { color: #a12622; }
.estimate-form button:disabled { cursor: wait; opacity: .7; }

.site-footer { padding-block: 3rem; background: #05080d; color: #9eacb7; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .9fr; gap: 2rem; }
.footer-logo { width: min(340px, 100%); }
.footer-title { margin-bottom: .7rem; color: white; font-weight: 850; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a { text-decoration: none; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid #26303b; font-size: .85rem; }

@media (max-width: 1100px) {
  .brand { width: min(220px, 30vw); }
  .header-estimate { padding: .62rem .8rem; font-size: .88rem; }
  .header-estimate-full { display: none; }
  .header-estimate-short { display: inline; }
  .site-nav { gap: .8rem; }
}

@media (max-width: 900px) {
  .nav-wrap { gap: .8rem; }
  .menu-button { display: inline-flex; min-height: 44px; align-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 78px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem; background: var(--ink); box-shadow: 0 20px 30px rgba(0,0,0,.3); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: .8rem; }
  .split, .promise, .contact-grid, .roofing-hero-grid { grid-template-columns: 1fr; }
  .split-media img.wasatch-front-photo { height: 460px; }
  .roofing-hero-image img { height: clamp(300px, 65vw, 460px); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .card-number { margin-bottom: 1.4rem; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .county-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .brand { width: min(180px, 42vw); }
  .header-estimate { min-height: 40px; padding: .55rem .7rem; font-size: .82rem; }
  .header-estimate-full { display: none; }
  .header-estimate-short { display: inline; }
  .menu-button { font-size: .9rem; }
  .hero, .hero-content { min-height: 650px; }
  .hero-media img { object-position: 58% center; }
  .hero-media::after { background: linear-gradient(0deg, rgba(3,8,14,.98) 10%, rgba(4,10,18,.78) 70%, rgba(5,13,20,.32)); }
  .trust-row { grid-template-columns: 1fr; gap: .8rem; margin-top: 2.5rem; }
  .service-grid, .comparison, .process, .estimate-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .cta-strip { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
