/* RoofRepair.us. Tokens from .factory/config/design-dna.json */
:root {
	--navy: #07284a;
	--navy-deep: #02325c;
	--footer: #01244a;
	--blue: #0b52a4;
	--blue-map: #1d63cf;
	--yellow: #fbc10d;
	--yellow-hover: #f2b400;
	--ink: #0b1f3a;
	--muted: #4f5b6b;
	--line: #dde3ea;
	--tint: #e8eff8;
	--soft: #f7f9fc;
	--bg: #ffffff;
	--ok: #1f8a4c;
	--danger: #b42318;
	--radius: 8px;
	--shadow: 0 2px 10px rgba(7, 40, 74, .08);
	--font-display: "Outfit", system-ui, sans-serif;
	--font-body: "Work Sans", system-ui, sans-serif;
	--container: 1340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--muted); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.center { text-align: center; }
.h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.5px; }
.h3 { font-size: 22px; font-weight: 600; }
.section--soft { background: var(--soft); }
.section--tint { background: var(--tint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow-hover); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn--lg { min-height: 60px; padding: 16px 36px; font-size: 21px; }
.btn--block { width: 100%; font-size: 20px; min-height: 52px; }
.sonic-cta-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(7, 40, 74, .18); }
.sonic-cta-hover:active { transform: translateY(0); box-shadow: none; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo__mark { flex: none; }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.5px; color: var(--navy); }
.logo__word span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 30px; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__list a:hover { color: var(--blue); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: #5b93d6; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 54, 110, .45) 0%, rgba(11, 54, 110, .18) 38%, rgba(11, 54, 110, 0) 60%); }
.hero__inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero__copy { max-width: 520px; }
.hero__title { font-size: clamp(46px, 6.4vw, 88px); line-height: .98; letter-spacing: -1.5px; color: #fff; margin-bottom: 18px; text-shadow: 0 2px 14px rgba(5, 30, 60, .25); }
.hero__title .w { display: inline-block; }
.hero__sub { color: #fff; font-size: 18px; line-height: 1.5; margin-bottom: 22px; max-width: 430px; text-shadow: 0 1px 8px rgba(5, 30, 60, .35); }

/* Request form */
.rr-form-card { background: #fff; border-radius: 10px; padding: 20px 22px 16px; box-shadow: 0 10px 30px rgba(7, 40, 74, .22); max-width: 420px; color: var(--ink); scroll-margin-top: 24px; }
.rr-form__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); text-align: center; margin: 0 0 12px; }
.rr-form input, .rr-form select, .rr-form textarea { width: 100%; min-height: 44px; border: 1px solid #c8d1dc; border-radius: 6px; padding: 9px 12px; font-size: 15px; color: var(--ink); background: #fff; margin-bottom: 10px; }
.rr-form textarea { min-height: 64px; resize: vertical; }
.rr-form input:focus, .rr-form select:focus, .rr-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(11, 82, 164, .25); outline-offset: 0; }
.rr-select { position: relative; }
.rr-select select { appearance: none; -webkit-appearance: none; padding-right: 30px; font-size: 13px; letter-spacing: -.1px; }
.rr-select::after { content: ""; position: absolute; right: 14px; top: 16px; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.rr-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.rr-label span { color: var(--muted); font-weight: 400; }
.rr-form__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.rr-form__note img { width: 11px; height: auto; }
.rr-form__consent { font-size: 12px; line-height: 1.45; color: var(--muted); margin: 8px 0 0; }
.rr-form__error { color: var(--danger); font-size: 14px; margin-bottom: 10px; }
.rr-form__done { text-align: center; color: var(--ink); }
.rr-form__done p:last-child { margin: 0; color: var(--muted); }
.rr-back { background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 6px 0 0; font-size: 14px; }
.rr-hp { position: absolute; left: -9999px; }
.js .rr-form[data-steps] .rr-step[data-step="2"] { display: none; }
.js .rr-form[data-steps].is-step-2 .rr-step[data-step="1"] { display: none; }
.js .rr-form[data-steps].is-step-2 .rr-step[data-step="2"] { display: block; }
.rr-back { display: none; }
.js .rr-back { display: inline-block; }

/* 02 Promise */
.promise { background: #fff; padding: 44px 0; border-bottom: 1px solid var(--line); }
.promise__list { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1440px; }
.promise__list li { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px 12px; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--navy); }
.promise__list li + li { border-left: 1px solid var(--line); }
.promise__list img { width: 68px; height: 68px; object-fit: contain; flex: none; }

/* 03 Moments */
.moments { padding: 64px 0 40px; }
.moments__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.moment-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.moment-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(7, 40, 74, .14); }
.moment-card img { width: 100%; aspect-ratio: 440 / 314; object-fit: cover; }
.moment-card__body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 26px; text-align: center; }
.moment-card__title { font-family: var(--font-display); font-weight: 600; font-size: 21px; white-space: nowrap; color: var(--ink); }
.moment-card__link { font-weight: 600; font-size: 21px; color: var(--blue); }

/* 04 How */
.how { padding: 40px 0 72px; }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 16px; counter-reset: none; }
.how__step { display: flex; align-items: flex-start; gap: 14px; position: relative; }
.how__step + .how__step::before { content: ""; position: absolute; left: -44px; top: 26px; width: 38px; border-top: 2px dotted var(--blue); opacity: .6; }
.how__num { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 28px; display: grid; place-items: center; }
.how__step img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.how__text { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; }
.how__text strong { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--ink); line-height: 1.2; }

/* 05 Versus */
.versus { padding: 48px 0; background: #fff; }
.versus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus__panel { border-radius: 10px; padding: 26px 36px 20px; }
.versus__panel--them { background: #f2f4f6; border: 1px solid var(--line); }
.versus__panel--us { background: #f1f6fd; border: 2px solid var(--blue); }
.versus__title { font-family: var(--font-display); font-weight: 700; font-size: 44px; text-align: center; color: var(--ink); margin-bottom: 10px; }
.versus__panel--us .versus__title { color: var(--blue); }
.versus__panel li { display: flex; align-items: center; gap: 28px; padding: 18px 0; font-size: 22px; color: var(--ink); }
.versus__panel li + li { border-top: 1px solid var(--line); }
.versus__panel li img { width: 64px; height: 46px; object-fit: contain; flex: none; }

/* 06 Repair */
.repair { padding: 48px 0; background: #fff; }
.repair__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: center; }
.repair__intro p { font-size: 16px; }
.repair__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.repair__list li { border-left: 1px solid var(--line); }
.repair__list li:nth-child(3n+1) { border-left: 0; }
.repair__list li:nth-child(n+4) { border-top: 1px solid var(--line); }
.repair__list a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 16px; text-decoration: none; }
.repair__list img { height: 132px; width: auto; object-fit: contain; transition: transform .2s ease; }
.repair__list a:hover img { transform: translateY(-3px); }
.repair__list span { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); text-align: center; }

/* 07 Reviews */
.reviews { padding: 80px 0 88px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.review-card { margin: 0; display: flex; gap: 22px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 24px 24px 30px; }
.review-card__q { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; font-family: Georgia, serif; font-size: 64px; line-height: 90px; text-align: center; font-weight: 700; overflow: hidden; }
.review-card__label { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 21px; margin: 12px 0 6px; }
.review-card blockquote { margin: 0 0 22px; font-size: 20px; color: var(--ink); line-height: 1.45; }
.review-card figcaption { font-size: 18px; color: var(--ink); }
.review-card figcaption::before { content: "- "; }

/* 08 States */
.states { padding: 56px 0 64px; }
.states__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.states__map img { width: 100%; max-width: 560px; }
.states__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.states__chips a { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--blue); font-family: var(--font-display); font-weight: 600; font-size: 19px; white-space: nowrap; transition: border-color .2s ease, transform .2s ease; }
.states__chips a:hover { border-color: var(--blue); transform: translateY(-2px); }
.states__chips img { width: 58px; height: 50px; object-fit: contain; flex: none; }
.states__chips .states__all { justify-content: center; }

/* 09 FAQ */
.faq { padding: 80px 0 88px; background: var(--soft); }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; align-items: start; }
.faq__item { border: 1px solid #d5dce6; border-radius: 10px; background: #fff; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px; min-height: 80px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 13px; height: 13px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { padding: 0 26px 20px; margin: 0; font-size: 17px; }

/* 10 CTA band + footer */
.cta-band { position: relative; background: var(--navy); overflow: hidden; padding: 44px 0; }
.cta-band__art { position: absolute; top: 50%; transform: translateY(-50%); opacity: .9; pointer-events: none; }
.cta-band__art--house { left: 2%; width: 26%; max-width: 380px; }
.cta-band__art--plan { right: 1.5%; width: 11%; max-width: 160px; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 32px; padding-left: 24%; padding-right: 10%; max-width: none; }
.cta-band__title { color: #fff; font-size: clamp(30px, 3vw, 46px); white-space: nowrap; font-weight: 700; margin: 0; letter-spacing: -.5px; text-align: center; }
.cta-band__title span { display: block; color: var(--yellow); font-size: 1.12em; }
.site-footer { background: var(--footer); color: #d6e1ef; padding: 36px 0 40px; border-top: 1px solid rgba(255, 255, 255, .14); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 24px; }
.site-footer__h { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 21px; margin-bottom: 8px; }
.site-footer ul li { margin-bottom: 4px; }
.site-footer a { color: #d6e1ef; text-decoration: none; font-size: 17px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand .logo__word { font-size: 30px; }
.site-footer__brand .logo__mark { width: 76px; height: 48px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.logo--light, .logo--light .logo__word { color: #fff; }
.site-footer__copy { font-size: 16px; margin: 0; }

/* Inner pages */
.page-hero { background: var(--navy); padding: 56px 0 40px; }
.page-hero__title { color: #fff; font-size: clamp(34px, 4.4vw, 56px); margin: 0; }
.page-body { padding-top: 48px; padding-bottom: 64px; }
.entry-content { max-width: 820px; }
.entry-content h2 { font-size: 30px; margin-top: 1.4em; }
.entry-content h3 { font-size: 22px; margin-top: 1.2em; }
.entry-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }

/* Motion: hidden only once JS has opted in, never for reduced motion */
.motion-ready .sonic-fade-on-scroll, .motion-ready .sonic-stagger-children > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.motion-ready .sonic-fade-on-scroll, .motion-ready .sonic-stagger-children > * { opacity: 1 !important; transform: none !important; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
	.cta-band__title { white-space: normal; }
	.nav__list { gap: 18px; }
	.nav { gap: 18px; }
	.how__step + .how__step::before { display: none; }
	.cta-band__inner { padding-left: 24px; padding-right: 24px; flex-direction: column; gap: 22px; }
	.cta-band__art--house { opacity: .25; width: 46%; }
	.cta-band__art--plan { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; content: ""; }
	.nav-toggle__bar::before { position: absolute; top: -6px; }
	.nav-toggle__bar::after { position: absolute; top: 6px; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.nav__cta { margin-top: 14px; }
	.moments__grid { grid-template-columns: repeat(2, 1fr); }
	.how__steps { grid-template-columns: 1fr; gap: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }
	.versus__grid, .repair__grid, .states__grid, .faq__grid, .reviews__grid { grid-template-columns: 1fr; }
	.states__map img { margin: 0 auto; }
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; align-items: flex-start; }
}
@media (max-width: 700px) {
	body { font-size: 16px; }
	.site-header__inner { min-height: 64px; }
	.logo__word { font-size: 22px; }
	.logo__mark { width: 44px; height: 28px; }
	.hero { min-height: 0; align-items: flex-start; }
	.hero__bg img { object-position: 60% 30%; }
	.hero::before { background: linear-gradient(180deg, rgba(8, 40, 82, .55) 0%, rgba(8, 40, 82, .3) 45%, rgba(8, 40, 82, .55) 100%); }
	.hero__inner { padding-top: 32px; padding-bottom: 32px; }
	.hero__copy { max-width: none; }
	.rr-form-card { max-width: none; }
	.promise { padding: 16px 0; }
	.promise__list { grid-template-columns: 1fr 1fr; gap: 4px 0; }
	.promise__list li { justify-content: flex-start; font-size: 16px; gap: 10px; padding: 10px 8px; }
	.promise__list li + li { border-left: 0; }
	.promise__list img { width: 40px; height: 40px; }
	.moments__grid { gap: 12px; }
	.moment-card__title { font-size: 15px; }
	.versus__panel { padding: 18px; }
	.versus__title { font-size: 23px; }
	.versus__panel li { font-size: 17px; gap: 14px; padding: 12px 0; }
	.versus__panel li img { width: 44px; height: 34px; }
	.reviews, .faq { padding: 48px 0; }
	.review-card { gap: 14px; padding: 18px; }
	.review-card__q { width: 44px; height: 44px; font-size: 44px; line-height: 62px; }
	.review-card__label { font-size: 17px; margin-top: 4px; }
	.review-card blockquote { font-size: 17px; margin-bottom: 10px; }
	.review-card figcaption { font-size: 15px; }
	.faq__item summary { font-size: 17px; padding: 12px 18px; min-height: 56px; }
	.moment-card__title { font-size: 16px; white-space: normal; }
	.states__chips a { white-space: normal; }
	.moment-card__link { font-size: 15px; }
	.moment-card__body { padding: 14px 8px 16px; }
	.how__step img { width: 60px; height: 60px; }
	.states__chips img { width: 40px; height: 34px; }
	.repair__list { grid-template-columns: 1fr 1fr; }
	.repair__list li, .repair__list li:nth-child(3n+1) { border-left: 0; }
	.repair__list li:nth-child(2n) { border-left: 1px solid var(--line); }
	.repair__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.repair__list img { height: 76px; }
	.repair__list span { font-size: 15px; }
	.states__chips { grid-template-columns: 1fr 1fr; }
	.states__chips li:last-child { grid-column: 1 / -1; }
	.states__chips a { min-height: 54px; font-size: 15px; padding: 8px 12px; gap: 10px; }
	.btn--lg { white-space: normal; text-align: center; }
}
