/* Northfield Roofing Co. — spec landing page.
   Self-contained: nothing here comes from the main site's CSS.
   Palette and type follow the roofing statics (slate dusk, warm cream,
   orange call to action, heavy sans headlines). */

:root {
  --slate-900: #1B1E21;
  --slate-800: #25292D;
  --slate-700: #353A3F;
  --cream: #F5F1E9;
  --cream-dim: #CFC9BD;
  --paper: #FBF9F5;
  --ink: #1E2124;
  --ink-soft: #555A60;
  --orange: #E8862E;
  --orange-press: #D47520;
  --line: #E2DCD0;
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Spec banner */
.spec-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #16181C;
  color: #F2F2F0;
  font: 500 13px/1.4 system-ui, sans-serif;
  text-align: center;
  padding: 8px 16px;
}
.spec-banner a { color: #E8862E; }

/* Header */
.site-header {
  background: var(--slate-900);
  color: var(--cream);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark-mark {
  width: 22px;
  height: 14px;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 100%, 82% 100%, 50% 32%, 18% 100%, 0 100%);
}
.wordmark-sub {
  margin-left: 6px;
  font-weight: 500;
  color: var(--cream-dim);
}
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.call-btn:hover { border-color: var(--orange); }
.call-btn svg { width: 18px; height: 18px; color: var(--orange); }

@media (max-width: 420px) {
  .wordmark-sub { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--ink);
  font: 600 1.0625rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--orange-press); }
.btn-block { width: 100%; }

.eyebrow {
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--slate-800);
  color: var(--cream);
  min-height: min(78svh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-bg-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-bg-video.is-playing { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(27, 30, 33, 0.55) 0%, rgba(27, 30, 33, 0.35) 40%, rgba(27, 30, 33, 0.92) 100%);
}
@media (min-width: 760px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgba(27, 30, 33, 0.85) 0%, rgba(27, 30, 33, 0.55) 45%, rgba(27, 30, 33, 0.2) 100%),
      linear-gradient(180deg, transparent 60%, rgba(27, 30, 33, 0.9) 100%);
  }
}
.hero-body { padding-top: 96px; padding-bottom: 48px; }
.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  max-width: 14ch;
}
.hero .lede {
  margin: 16px 0 28px;
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--cream-dim);
}

/* Inspection checks (carousel slides 2 to 4) */
.checks {
  background: var(--slate-900);
  color: var(--cream);
  padding: 56px 0 64px;
}
.checks h2 {
  font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  margin-bottom: 28px;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.check img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--slate-700);
}
.check h3 { font-size: 1.25rem; margin-bottom: 6px; }
.check p { color: var(--cream-dim); }
.check-answer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 28px 24px;
  border: 1px solid var(--slate-700);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  background: var(--slate-800);
}
.check-answer h3 { font-size: 1.5rem; }
.check-answer .btn { margin-top: 20px; align-self: flex-start; }

@media (min-width: 760px) {
  .check-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Reasons */
.reasons { padding: 64px 0; }
.reasons > .wrap > h2 {
  font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  margin-bottom: 28px;
}
.reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.reason img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--line);
}
.reason h3 { font-size: 1.25rem; margin-bottom: 6px; }
.reason p { color: var(--ink-soft); }

@media (min-width: 640px) {
  .reason-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Trust strip */
.trust {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-list {
  list-style: none;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.trust-list strong { display: block; color: var(--ink); font-size: 1.0625rem; }
@media (min-width: 760px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}

/* Form */
.form-section {
  background: var(--slate-800);
  color: var(--cream);
  padding: 64px 0;
}
.form-grid { display: grid; gap: 32px; }
.form-copy h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 12px; }
.form-copy p:not(.eyebrow) { color: var(--cream-dim); max-width: 38ch; }

.lead-form {
  display: grid;
  gap: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 24px 20px;
  border-radius: 10px;
  scroll-margin-top: 56px;
}
.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.optional { font-weight: 400; color: var(--ink-soft); }
.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #BDB6A8;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font);
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus,
.lead-form textarea:focus {
  outline: 3px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange-press);
}
.form-note:empty { display: none; }
.form-note {
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  background: var(--cream);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .lead-form { padding: 32px; }
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--cream-dim);
  padding: 32px 0 40px;
  font-size: 0.9375rem;
}
.footer-row {
  display: grid;
  gap: 20px;
}
.footer-row > div { display: grid; gap: 4px; }
.footer-row strong { color: var(--cream); }
.footer-row a { color: var(--cream-dim); text-underline-offset: 3px; }
.footer-spec a { color: var(--orange); }
@media (min-width: 760px) {
  .footer-row { grid-template-columns: 1fr auto; text-align: left; }
  .footer-spec { text-align: right; }
}
