/* ============================================================
   RoofSEO — job-site industrial editorial
   Anton (display) / Libre Franklin (body) / JetBrains Mono (data)
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece7dc;
  --ink: #1b1d22;
  --asphalt: #16181d;
  --asphalt-2: #1f222a;
  --orange: #ff5a1f;
  --orange-dark: #e04a12;
  --amber: #ffb020;
  --line: #d8d2c4;
  --line-dark: #2c303a;
  --muted: #5c5f66;
  --muted-light: #9ba0ab;
  --radius: 4px;
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Libre Franklin", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --pitch: 4vw; /* roofline diagonal height */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--orange); color: #fff; }

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

a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.15; }

.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 34px; height: 3px;
  background: var(--orange);
}

.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.dark .lede { color: var(--muted-light); }

.accent { color: var(--orange); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--asphalt);
  color: var(--paper);
  border-bottom: 3px solid var(--orange);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo {
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.logo svg { width: 26px; height: 26px; flex: none; }
.logo b { color: var(--orange); font-weight: 400; }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 9px 13px;
  color: var(--muted-light);
  transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }

.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--line-dark);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  padding: 15px 26px;
  background: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 4px 4px 0 rgba(0,0,0,.25);
}
.btn:hover { background: var(--orange-dark); transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(0,0,0,.28); }
.btn:active { transform: translate(0,0); box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.btn.ghost {
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(0,0,0,.06); transform: none; }
.dark .btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.small { padding: 10px 18px; font-size: .75rem; }

/* ---------- sections & rooflines ---------- */

section { padding: 90px 0; position: relative; }

.dark {
  background: var(--asphalt);
  color: var(--paper);
}
/* shingle texture on dark sections */
.dark.shingles {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.035) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 110px, rgba(255,255,255,.02) 110px 112px);
}

/* roof-pitch divider: give a section .pitch-top and it gets an angled roofline */
.pitch-top {
  clip-path: polygon(0 var(--pitch), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--pitch) * -1);
  padding-top: calc(90px + var(--pitch));
}
.pitch-top.rev { clip-path: polygon(0 0, 100% var(--pitch), 100% 100%, 0 100%); }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { margin-bottom: 16px; }

/* ---------- hero ---------- */

.hero {
  background: var(--asphalt);
  color: var(--paper);
  padding: 84px 0 calc(70px + var(--pitch));
  overflow: hidden;
  position: relative;
}
.hero::after { /* faint blueprint grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted-light);
}
.hero-note b { color: var(--amber); }

/* subsequent section overlaps hero's bottom via pitch */
.hero + .pitch-top { z-index: 2; }

/* ---------- SERP card (hero visual) ---------- */

.serp-card {
  background: #fff;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(1.6deg);
  font-size: .85rem;
}
.serp-bar {
  display: flex; align-items: center; gap: 10px;
  background: #f1f3f4; border-radius: 99px;
  padding: 9px 16px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .78rem; color: #444;
}
.serp-bar svg { width: 14px; height: 14px; flex: none; }
.serp-result { padding: 12px 0; border-top: 1px solid #eee; }
.serp-result:first-of-type { border-top: 0; }
.serp-url { font-size: .72rem; color: #202124; display: flex; gap: 6px; align-items: center; }
.serp-url span { color: #5f6368; }
.serp-title { color: #1a0dab; font-size: .98rem; font-weight: 600; margin: 2px 0; }
.serp-snip { color: #4d5156; font-size: .8rem; line-height: 1.45; }
.serp-result.you {
  background: #fff8f4;
  border: 2px solid var(--orange);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 4px -14px;
  position: relative;
}
.serp-result.you::after {
  content: "#1 — YOU";
  position: absolute;
  top: -13px; right: 12px;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 3px 9px;
  border-radius: 3px;
}
.serp-pin { color: #c5221f; }

/* rank bars under serp card */
.rank-strip {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 60px;
  margin: 26px 8px 0;
  transform: rotate(1.6deg);
}
.rank-strip i {
  flex: 1;
  background: var(--line-dark);
  border-radius: 2px 2px 0 0;
  animation: grow 1s cubic-bezier(.2,.8,.2,1) both;
}
.rank-strip i:nth-child(1) { height: 18%; animation-delay: .1s; }
.rank-strip i:nth-child(2) { height: 26%; animation-delay: .2s; }
.rank-strip i:nth-child(3) { height: 34%; animation-delay: .3s; }
.rank-strip i:nth-child(4) { height: 30%; animation-delay: .4s; }
.rank-strip i:nth-child(5) { height: 48%; animation-delay: .5s; }
.rank-strip i:nth-child(6) { height: 62%; animation-delay: .6s; }
.rank-strip i:nth-child(7) { height: 78%; animation-delay: .7s; }
.rank-strip i:nth-child(8) { height: 100%; background: var(--orange); animation-delay: .8s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rank-strip i { transform-origin: bottom; }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--asphalt);
  padding: 30px 28px;
  position: relative;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(27,29,34,.12);
  border-top-color: var(--orange);
}
.card .num {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--orange);
  display: block;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: .95rem; color: var(--muted); }
.card a.more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.card a.more:hover { color: var(--orange); }

.dark .card {
  background: var(--asphalt-2);
  border-color: var(--line-dark);
  border-top-color: var(--orange);
}
.dark .card p { color: var(--muted-light); }
.dark .card a.more { color: var(--paper); }

/* ---------- stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line-dark);
  border: 2px solid var(--line-dark);
}
.stat {
  background: var(--asphalt);
  padding: 34px 26px;
  text-align: center;
}
.stat .v {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--orange);
  display: block;
  line-height: 1;
}
.stat .l {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 10px;
  display: block;
}

/* ---------- process ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 76px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .93rem; color: var(--muted); }
.dark .step p { color: var(--muted-light); }

/* ---------- checklist / prose ---------- */

.prose { max-width: 760px; }
.prose h2 { margin: 54px 0 18px; }
.prose h3 { margin: 38px 0 12px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.check-list { list-style: none; margin-left: 0 !important; }
.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  background: var(--orange);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* keyword table */
.kw-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0 26px; }
.kw-table th {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  background: var(--asphalt);
  color: var(--paper);
  padding: 12px 16px;
}
.kw-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.kw-table tr:hover td { background: #fff8f4; }
.kw-table .tag {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--paper-2);
  color: var(--muted);
  white-space: nowrap;
}
.kw-table .tag.hot { background: #ffe4d8; color: var(--orange-dark); }

/* price cards */
.price-card { text-align: left; }
.price-card .price {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  margin: 6px 0 4px;
}
.price-card .per { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card ul { list-style: none; margin: 20px 0 0; font-size: .92rem; }
.price-card li { padding: 8px 0; border-top: 1px dashed var(--line); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq .a { padding: 18px 24px 22px; color: var(--muted); font-size: .97rem; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--orange);
  color: #fff;
  clip-path: polygon(0 var(--pitch), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--pitch) * -1);
  padding: calc(80px + var(--pitch)) 0 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before { /* hazard stripes */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--asphalt) 0 18px, var(--amber) 18px 36px);
}
.cta-banner h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 14px; }
.cta-banner p { max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; opacity: .93; }
.cta-banner .btn {
  background: var(--asphalt);
  box-shadow: 4px 4px 0 rgba(0,0,0,.2);
}
.cta-banner .btn:hover { background: #000; }
.cta-banner .sub { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; margin-top: 18px; opacity: .85; }

/* ---------- breadcrumbs / page hero ---------- */

.page-hero {
  background: var(--asphalt);
  color: var(--paper);
  padding: 64px 0 calc(56px + var(--pitch));
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 880px; }
.page-hero h1 { margin-bottom: 18px; }
.crumbs {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 26px;
}
.crumbs a { color: var(--muted-light); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--orange); margin: 0 8px; }

/* ---------- forms ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  padding: 38px 36px;
  box-shadow: 0 24px 48px rgba(27,29,34,.1);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice {
  padding: 18px 22px;
  border: 2px solid var(--orange);
  background: #fff8f4;
  font-weight: 600;
  margin-bottom: 28px;
}
.notice.ok { border-color: #1c8a43; background: #f0faf3; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--asphalt);
  color: var(--muted-light);
  padding: 70px 0 0;
  font-size: .92rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
}
.site-footer h4 {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted-light); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .logo { color: var(--paper); margin-bottom: 16px; }
.footer-bar {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
}
.footer-bar .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--asphalt);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 22px;
    border-bottom: 3px solid var(--orange);
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 34px; }
  .serp-card { transform: rotate(0); }
  .rank-strip { transform: rotate(0); }
}
