/* Northfold Roofing. One signature: scroll wipes the hail-damaged roof into the new one (two registered 4K stills,
   transform-only wipe: an overflow-hidden frame slides one way and its picture slides back the other). */
@font-face { font-family: "Big Shoulders"; src: url("../assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --slate: #1d2125;
  --slate-2: #262b30;
  --paper: #f2efe9;
  --paper-2: #e7e2d8;
  --ink: #15181b;
  --ink-soft: #4d545b;
  --on-dark: #f2efe9;
  --on-dark-soft: #b8bcc0;
  --yellow: #e8b23a;
  --line-dark: rgba(242, 239, 233, 0.18);
  --line-paper: rgba(21, 24, 27, 0.18);
  --display: "Big Shoulders", Impact, "Arial Narrow", sans-serif;
  --ui: "Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(20px, 4.4vw, 64px);
  --header-h: 68px;
  --story: 680px; /* about 7 wheel notches */
  --wipe: 1; /* 1 = all before, 0 = all after */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--slate); color: var(--on-dark); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body, * { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; font: 400 17px/1.55 var(--ui); background: var(--slate); }
img, picture { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 800 clamp(2.8rem, 1.6rem + 4vw, 5.6rem)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 16px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:target, [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--yellow); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus, .skip-link:focus-visible { transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; font: 600 16px/1 var(--ui); text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; background: none; color: inherit; transition: background-color .2s; white-space: nowrap; }
.btn--solid { background: var(--yellow); color: var(--ink); }
.btn--solid:hover { background: #f2c55c; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--line { border-color: currentColor; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); background: var(--slate); border-bottom: 1px solid var(--line-dark); }
.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; padding: 12px 0; }
.wordmark__name { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.wordmark__sub { font-size: 11px; color: var(--on-dark-soft); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { text-decoration: none; font-size: 15.5px; padding: 12px 0; }
.site-nav__link:hover { text-decoration: underline; }
.site-nav__call-short { display: none; }

/* Hero story */
.hero { position: relative; height: calc(100svh + var(--story)); }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-top: var(--header-h); }
.hero__media { position: absolute; inset: var(--header-h) 0 0; overflow: hidden; }
.hero__layer, .hero__layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__layer img { object-fit: cover; object-position: 62% 50%; }
.wipe { position: absolute; inset: 0; overflow: hidden; transform: translate3d(calc(var(--wipe) * 100%), 0, 0); will-change: transform; }
.wipe__inner { transform: translate3d(calc(var(--wipe) * -100%), 0, 0); will-change: transform; }
.divider { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--yellow); transform: translate3d(calc(var(--wipe) * 100vw), 0, 0); will-change: transform, opacity; opacity: min(1, calc(var(--wipe) * 14)); }
.divider::after { content: "After \2192"; position: absolute; top: 18px; left: 10px; padding: 7px 10px; background: var(--yellow); color: var(--ink); font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.divider::before { content: "\2190  Before"; position: absolute; top: 18px; right: 10px; padding: 7px 10px; background: var(--slate); color: var(--on-dark); font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.hero.is-off .hero__media { visibility: hidden; }

.readout { position: absolute; right: var(--gutter); bottom: clamp(24px, 5vh, 56px); margin: 0; padding: 14px 16px; min-width: 250px; background: rgba(29, 33, 37, 0.94); border: 1px solid var(--line-dark); }
.readout div { display: flex; justify-content: space-between; gap: 24px; padding: 3px 0; }
.readout dt { color: var(--on-dark-soft); }
.readout dd { margin: 0; font-variant-numeric: tabular-nums; }

.hero__copy { position: absolute; left: var(--gutter); top: calc(var(--header-h) + clamp(20px, 5vh, 56px)); width: min(560px, 46vw); }
.hero__status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--on-dark); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.hero__title { font: 800 min(6.2vw, 10.4vh, 6.4rem)/0.9 var(--display); text-transform: uppercase; color: var(--on-dark); margin-bottom: clamp(16px, 3vh, 28px); }
.hero__title span { color: var(--yellow); }

/* Quote form: a solid paper card, always on the first screen */
.quote { background: var(--paper); color: var(--ink); padding: 18px 20px 14px; border-radius: 2px; }
.quote__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.quote__title { font: 800 27px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.quote__or { margin: 0; font-size: 15px; color: var(--ink-soft); }
.quote__or a { color: var(--ink); font-weight: 600; display: inline-block; padding: 12px 0; margin: -8px 0; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field { margin-bottom: 10px; }
.field label, .issue legend { display: block; font: 600 14px/1.2 var(--ui); margin-bottom: 5px; padding: 0; }
.field input { width: 100%; min-height: 46px; padding: 0 12px; font: 400 16px/1 var(--ui); color: var(--ink); background: #fff8ee; border: 1px solid #8a8f94; border-radius: 2px; }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.field__err { color: #a12a12; font-size: 14px; margin: 4px 0 0; }
.issue { border: 0; margin: 2px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.issue legend { width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #8a8f94; border-radius: 2px; font-size: 15px; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.quote__row { display: flex; align-items: flex-end; gap: 12px; }
.field--zip { width: 120px; flex: none; margin-bottom: 0; }
.quote__send { flex: 1; min-height: 46px; }
.quote .btn--solid { background: var(--ink); color: var(--paper); }
.quote .btn--solid:hover { background: #2d3236; }
.quote__demo { margin: 10px 0 0; font-size: 11px; color: var(--ink-soft); }
.quote--done h2 { margin: 6px 0 10px; font-size: 34px; }
.quote--done p { color: var(--ink-soft); }
.quote__ok { color: #2f6b2a; margin: 0; }
.quote--done .btn--line { color: var(--ink); margin-top: 6px; }
.quote :focus-visible { outline-color: var(--ink); }

/* Prices */
.prices { background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.section-head { max-width: 1440px; margin: 0 auto 48px; }
.prices .eyebrow { color: var(--ink-soft); }
.price-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1440px; border-top: 2px solid var(--ink); }
.price-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: 16px 40px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line-paper); }
.price-list h3 { font: 800 clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.price-list p { margin: 0; color: var(--ink-soft); max-width: 36em; }
.price-list__price { text-align: right; font: 800 clamp(2rem, 1.4rem + 1.8vw, 3.2rem)/1 var(--display); color: var(--ink) !important; }
.price-list__price .mono { font-size: 12px; vertical-align: middle; margin-right: 6px; color: var(--ink-soft); }
.price-list__price--word { font: 600 17px/1.3 var(--ui); }

/* Process */
.process { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 100svh; background: var(--slate); }
.process__img img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.process__copy { padding: clamp(64px, 8vw, 120px) var(--gutter); align-self: center; }
.process__copy .eyebrow { color: var(--yellow); }
.process__copy h2 { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.steps .mono { color: var(--yellow); padding-top: 6px; }
.steps h3 { font: 600 19px/1.3 var(--ui); margin-bottom: 4px; }
.steps p { margin: 0; color: var(--on-dark-soft); }

/* Area + FAQ */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(40px, 6vw, 110px); padding: clamp(80px, 10vw, 140px) var(--gutter); max-width: 1568px; margin: 0 auto; }
.area .eyebrow, .faq .eyebrow { color: var(--yellow); }
.area h2 { margin-bottom: 28px; }
.towns { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 9px 12px; border: 1px solid var(--line-dark); font-size: 13px; }
.area__lic { color: var(--on-dark-soft); max-width: 30em; }
.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; padding: 20px 0; font: 600 19px/1.3 var(--ui); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--yellow); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--on-dark-soft); padding-bottom: 12px; max-width: 36em; }

/* Call strip */
.call { background: var(--yellow); color: var(--ink); text-align: center; padding: clamp(64px, 8vw, 110px) var(--gutter); }
.call h2 { margin-bottom: 10px; }
.call__tel { font: 800 clamp(2.6rem, 1.4rem + 5vw, 6rem)/1.1 var(--display); text-decoration: none; display: inline-block; padding: 4px 0; }
.call__note { margin: 0; }
.call__note a { display: inline-block; padding: 14px 0; }
.call :focus-visible { outline-color: var(--ink); }

.site-footer { padding: 28px var(--gutter); }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; font-size: 15px; color: var(--on-dark-soft); }
.site-footer__row p { margin: 0; }
.site-footer a { color: var(--on-dark); display: inline-block; padding: 12px 6px; }
.footer-mark { font: 800 22px/1 var(--display); color: var(--on-dark); margin-right: 4px; }
.legal { display: flex; gap: 24px; }

@media (max-width: 1100px) {
  .site-nav__link { display: none; }
  .readout { display: none; }
}

/* Phone: photo band on top, title and the quote form below, all on the first screen */
@media (max-width: 759px) {
  :root { --header-h: 58px; --story: 520px; }
  body { font-size: 16.5px; }
  .site-header { padding: 0 16px; }
  .wordmark__sub { display: none; }
  .wordmark__name { font-size: 26px; }
  .site-nav__call-long { display: none; }
  .site-nav__call-short { display: inline; }
  .site-nav__call { min-height: 44px; }
  .hero__stage { display: flex; flex-direction: column; }
  .hero__media { position: relative; inset: auto; flex: 1 1 auto; min-height: 22svh; }
  .hero__layer img { object-position: 50% 50%; }
  .divider::before { display: none; }
  .divider::after { top: 10px; }
  .hero__copy { position: relative; left: auto; top: auto; width: auto; padding: 12px 12px 12px; background: var(--slate); }
  .hero__status { display: none; }
  .hero__title { font-size: clamp(2.3rem, 10.6vw, 2.9rem); margin: 0 4px 10px; }
  .quote { padding: 12px 12px 10px; }
  .quote__title { font-size: 22px; }
  .quote__or { font-size: 14px; }
  .field { margin-bottom: 8px; }
  .field input { min-height: 44px; }
  .issue { gap: 6px; margin-bottom: 8px; }
  .chip span { padding: 0 11px; font-size: 14.5px; }
  .field--zip { width: 96px; }
  .quote__demo { display: none; }
  .price-list li { grid-template-columns: 1fr; gap: 10px; }
  .price-list__price { text-align: left; }
  .process { grid-template-columns: 1fr; min-height: 0; }
  .process__img img { height: auto; aspect-ratio: 16 / 10; }
  .area { grid-template-columns: 1fr; }
  .site-footer__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .btn { transition: none; }
}
