:root {
  --ink: #17201d;
  --paper: #f4f1e9;
  --white: #ffffff;
  --muted: #5c655f;
  --line: rgba(23, 32, 29, 0.15);
  --accent: #f2c94c;
  --accent-dark: #d7aa21;
  --forest: #1d3a31;
  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

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

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--accent);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.24);
}

.nav {
  width: min(calc(100% - 40px), var(--max));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 27px;
  height: 18px;
  display: inline-block;
  border-top: 5px solid var(--accent);
  border-left: 5px solid var(--accent);
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:not(.nav-cta):hover { color: var(--accent); }

.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover,
.nav-cta:hover { transform: translateY(-2px); background: #ffd969; }

.button:focus-visible,
.nav-cta:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(0,0,0,.18);
  font-size: 24px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: #333;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12,18,16,.86) 0%, rgba(12,18,16,.56) 47%, rgba(12,18,16,.13) 76%),
    linear-gradient(0deg, rgba(12,18,16,.58), transparent 45%),
    url("roof-workers.webp");
  background-position: center, center, center 42%;
  background-size: cover;
  transform: scale(1.02);
  animation: hero-image 1.2s ease-out both;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 150px 0 78px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 36px; border-top: 2px solid currentColor; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(43px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.88);
  font-size: 20px;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.text-link { color: var(--white); font-weight: 700; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }

.section { padding: 96px 0; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.section-heading { max-width: 700px; margin-bottom: 48px; }

.section-heading h2,
.guide-copy h2,
.form-intro h2,
.faq h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.guide-copy p,
.form-intro p { color: var(--muted); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  min-height: 235px;
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  transition: background .2s ease;
}

.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; }
.service:hover { background: rgba(255,255,255,.45); }

.service-number { color: var(--accent-dark); font-size: 13px; font-weight: 800; }
.service h3 { margin: 48px 0 10px; font-size: 22px; line-height: 1.2; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

.guide-band { color: var(--white); background: var(--forest); }

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-items: start;
}

.guide-copy p { color: rgba(255,255,255,.72); }

.checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }

.checklist li {
  position: relative;
  padding: 20px 0 20px 38px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 20px;
  color: var(--accent);
  font-weight: 800;
}

.form-section { background: var(--white); }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.35fr);
  gap: 8vw;
  align-items: start;
}

.form-intro { position: sticky; top: 28px; }
.form-intro .direct-email { display: inline-block; margin-top: 12px; font-weight: 800; text-underline-offset: 5px; }

.lead-form { display: grid; gap: 22px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field label,
.fieldset-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #aeb6b1;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
}

.field textarea { min-height: 150px; resize: vertical; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.choice {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c9cfcb;
  border-radius: 4px;
  cursor: pointer;
}

.choice:has(input:checked) { border-color: var(--forest); background: #edf3f0; }
.choice input { width: 18px; height: 18px; accent-color: var(--forest); }

.consent { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--forest); }
.consent a { text-underline-offset: 3px; }
.form-note { margin: -8px 0 0; color: var(--muted); font-size: 13px; }
.lead-form .button { width: 100%; min-height: 58px; border: 0; }
.form-status { min-height: 26px; margin: -8px 0 0; font-weight: 700; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; }
.faq-list { border-top: 1px solid var(--line); }

details { border-bottom: 1px solid var(--line); }
summary { padding: 22px 36px 22px 0; font-weight: 800; cursor: pointer; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 3px; font-size: 26px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { max-width: 660px; padding: 0 32px 22px 0; color: var(--muted); }

.site-footer { padding: 62px 0 22px; color: var(--white); background: #111714; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 50px; }
.footer-main h2 { max-width: 600px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-contact a { font-weight: 800; text-underline-offset: 5px; }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.46); font-size: 11px; }
.footer-meta a { color: inherit; }

.privacy-page { min-height: 100vh; background: var(--paper); }
.privacy-page .site-header { position: relative; color: var(--ink); border-color: var(--line); }
.privacy-page .menu-button { color: var(--ink); border-color: var(--line); background: transparent; }
.privacy-page main { width: min(calc(100% - 40px), 760px); margin: 0 auto; padding: 80px 0 110px; }
.privacy-page h1 { font-size: clamp(40px, 6vw, 64px); }
.privacy-page h2 { margin-top: 42px; font-size: 26px; }
.privacy-page p, .privacy-page li { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes hero-image { from { opacity: .5; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .menu-button { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 82px 0 auto;
    padding: 26px 20px 32px;
    flex-direction: column;
    align-items: stretch;
    background: #111714;
    border-top: 1px solid rgba(255,255,255,.16);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px; font-size: 17px; text-align: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .guide-layout, .form-layout, .faq-layout { grid-template-columns: 1fr; gap: 52px; }
  .form-intro { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { width: min(calc(100% - 28px), var(--max)); height: 72px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 23px; height: 15px; }
  .nav-links { top: 72px; }
  .hero { min-height: 91svh; }
  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(12,18,16,.82), rgba(12,18,16,.35)),
      linear-gradient(0deg, rgba(12,18,16,.74), transparent 64%),
      url("roof-workers.webp");
    background-position: center, center, 59% center;
  }
  .hero-inner { width: min(calc(100% - 28px), var(--max)); padding: 122px 0 46px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-copy { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { text-align: center; }
  .section { padding: 70px 0; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .services-grid { grid-template-columns: 1fr; }
  .service, .service:first-child { min-height: auto; padding: 25px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .service h3 { margin: 18px 0 8px; }
  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .footer-main, .footer-meta { flex-direction: column; }
}
