/* ==========================================================
   Roof Nerds LLC — global styles
   ========================================================== */

:root {
  --bg: #0A0D14;
  --surface: #121826;
  --surface-2: #1A2234;
  --orange: #F88000;
  --orange-hot: #F86000;
  --orange-light: #FFA020;
  --blue: #0058C8;
  --blue-bright: #2F7BFF;
  --white: #FFFFFF;
  --muted: #9AA4B2;
  --line: #243049;
  --success: #3DDC97;
  --danger: #FF4D4D;

  --grad-orange: linear-gradient(180deg, var(--orange-light) 0%, var(--orange-hot) 100%);
  --sticker-shadow: 6px 6px 0 #000;
  --sticker-shadow-lg: 10px 10px 0 #000;
  --radius: 18px;
  --radius-sm: 12px;

  --font-display: "Lilita One", "Arial Black", Impact, sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-bright); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-light); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange); color: #000; }
html { scrollbar-color: var(--orange) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grad-orange); border-radius: 10px; border: 3px solid var(--bg); }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .01em;
  -webkit-text-stroke: 4px var(--blue);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(0,0,0,.55), 0 10px 24px rgba(0,0,0,.45);
}
h1.display { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1.02; }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3.display { font-size: clamp(1.4rem, 2.4vw, 1.9rem); -webkit-text-stroke-width: 3px; }

.marker {
  display: inline-block;
  font-family: var(--font-marker);
  text-transform: none;
  background: var(--grad-orange);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  transform: rotate(-3deg);
  padding: 0 .08em .06em;
  text-shadow: none;
  filter: drop-shadow(3px 3px 0 var(--blue)) drop-shadow(4px 5px 0 #000);
}
.orange-text { background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white);
  border: 2px solid var(--blue); background: rgba(0, 88, 200, .14);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #CDD5E0; max-width: 40ch; }
.muted { color: var(--muted); }

.section-head { text-align: center; max-width: 860px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .lead { margin: 18px auto 0; max-width: 56ch; }

/* roofline that draws above H2s */
.roofline { width: 120px; height: 34px; margin: 0 auto 14px; overflow: visible; }
.roofline path {
  fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1) .1s;
}
.roofline.is-in path, .is-in .roofline path { stroke-dashoffset: 0; }

/* ---------- buttons ---------- */
.btn {
  --shadow: 6px 6px 0 #000;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; line-height: 1;
  padding: 18px 26px; min-height: 56px;
  border-radius: 14px; border: 3px solid var(--blue);
  cursor: pointer; position: relative;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #000; }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 #000; }
.btn-primary { background: var(--grad-orange); color: var(--white); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-primary:hover { color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); }
.btn-secondary:hover { background: rgba(0,88,200,.18); color: var(--white); }
.btn-white { background: var(--white); color: var(--bg); }
.btn-white:hover { color: var(--bg); }
.btn-sm { font-size: .98rem; padding: 12px 18px; min-height: 46px; --shadow: 4px 4px 0 #000; box-shadow: var(--shadow); }
.btn-sm:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- sticker cards ---------- */
.sticker {
  background: var(--surface);
  border: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--sticker-shadow);
}

/* ---------- patterns ---------- */
.shingles { position: relative; isolation: isolate; }
.shingles::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'%3E%3Cpath d='M0 20h80M0 40h80M20 0v20M60 0v20M0 20v20M40 20v20M80 20v20'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.018'%3E%3Crect x='1' y='1' width='18' height='18'/%3E%3Crect x='41' y='21' width='38' height='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
}
.shingles-fade::before {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 50%, transparent 100%);
}

/* ---------- glasses bullets ---------- */
.glasses-list li { position: relative; padding-left: 40px; margin-bottom: 12px; }
.glasses-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 28px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke='%23F88000' stroke-width='5'%3E%3Crect x='3' y='3' width='20' height='18' rx='6'/%3E%3Crect x='33' y='3' width='20' height='18' rx='6'/%3E%3Cpath d='M23 10q5-4 10 0'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header-h); transition: height .3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 13, 20, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.35);
}
.site-header.is-scrolled .bar { height: 62px; }
.brand-link { display: block; flex-shrink: 0; }
.brand-link img { height: 44px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand-link img { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) {
  color: var(--white); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 10px 11px; border-radius: 10px; position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .btn { margin-left: 12px; }

.menu-toggle {
  display: none; width: 50px; height: 50px; border-radius: 12px;
  background: var(--surface-2); border: 3px solid var(--blue); box-shadow: 4px 4px 0 #000; cursor: pointer;
  align-items: center; justify-content: center; position: relative; z-index: 120;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--white); position: relative; transition: transform .25s ease, background .25s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg);
  display: flex; flex-direction: column; padding: 100px var(--gutter) 24px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open .site-header { z-index: 130; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a:not(.btn) {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.8rem); text-transform: uppercase;
  color: var(--white); text-decoration: none; -webkit-text-stroke: 2px var(--blue); paint-order: stroke fill;
  padding: 4px 0;
}
.mobile-menu nav a:not(.btn):hover { color: var(--orange); }
.mobile-menu .btn { margin-top: 18px; align-self: flex-start; }
.mobile-menu .menu-mascot { margin: auto auto 0; width: min(240px, 60vw); padding-top: 24px; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: #070910; border-top: 3px solid var(--blue); padding: 64px 0 28px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 6px; background: var(--grad-orange);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-tag { font-family: var(--font-marker); font-size: 1.3rem; margin-bottom: 6px; }
.footer-services { font-family: var(--font-display); letter-spacing: .1em; font-size: .9rem; color: var(--muted); }
.footer-entity { color: var(--muted); font-size: .92rem; max-width: 46ch; margin-top: 14px; }
.footer-col h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .05em; margin-bottom: 14px; color: var(--orange); }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { color: var(--orange-light); text-decoration: underline; }
.footer-col address { font-style: normal; color: #CDD5E0; line-height: 1.8; }
.footer-bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: .9rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom nav { display: flex; gap: 18px; }

/* ==========================================================
   Inner pages
   ========================================================== */
.breadcrumbs { padding-top: calc(var(--header-h) + 18px); font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-light); text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs [aria-current] { color: var(--white); font-weight: 500; }
.page-hero { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero h1 { margin: 18px 0 18px; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }
.answer-first { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: #E6EBF2; border-left: 5px solid var(--orange); background: var(--surface); padding: 18px 22px; border-radius: 0 14px 14px 0; max-width: 72ch; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.two-col.form-layout { grid-template-columns: .9fr 1.1fr; }
.sticky-col { position: sticky; top: 96px; }

.prose { max-width: 760px; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2em 0 .6em; letter-spacing: .01em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: #D5DCE6; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--white); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--blue); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose .updated { color: var(--muted); font-size: .92rem; }
.prose .callout { background: var(--surface); border: 3px solid var(--blue); border-radius: 16px; box-shadow: 5px 5px 0 #000; padding: 22px 24px; margin: 2em 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.sources { font-size: .92rem; }
.sources li { word-break: break-word; }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 3px solid var(--blue); border-radius: 16px; overflow: hidden; box-shadow: var(--sticker-shadow); }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2); }
.data-table thead th.us { color: var(--orange); }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody th { font-weight: 700; color: var(--white); }
.data-table td { color: #D5DCE6; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 10px 14px 0; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-card { padding: 28px 26px; }
.fit-card h3 { margin-bottom: 16px; }
.fit-card li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: #D5DCE6; }
.fit-card li svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.fit-card.not { border-color: #3A2A33; }

.cta-strip { text-align: center; padding: 36px 24px; margin-top: 48px; }
.cta-strip h2 { margin-bottom: 12px; }
.cta-strip p { color: #CDD5E0; margin: 0 auto 22px; max-width: 52ch; }
.cta-strip .btn + .btn { margin-left: 12px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.link-card { display: flex; flex-direction: column; padding: 24px; text-decoration: none; color: var(--white); transition: transform .2s ease, border-color .2s ease; }
.link-card:hover { transform: translate(-2px, -3px); border-color: var(--orange); color: var(--white); }
.link-card h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 10px; }
.link-card p { color: #CDD5E0; margin-bottom: 14px; font-size: .97rem; }
.link-card .go { margin-top: auto; color: var(--orange-light); font-weight: 700; }

/* ---------- embeds (form / calendar) ---------- */
.embed-card {
  position: relative; background: var(--surface); border: 3px solid var(--blue); border-radius: var(--radius);
  box-shadow: var(--sticker-shadow); padding: 12px; overflow: hidden; width: 100%;
}
.embed-card iframe { display: block; width: 100%; max-width: 100%; position: relative; z-index: 1; }
.embed-form { min-height: 1124px; }
.embed-cal { min-height: 760px; }
.embed-loading {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 120px; gap: 14px; color: var(--muted); font-weight: 700; background: var(--surface);
  transition: opacity .35s ease, visibility .35s;
}
.embed-card.is-loaded .embed-loading { opacity: 0; visibility: hidden; }
.glasses-spin { width: 64px; height: 32px; color: var(--orange); animation: glassesBob 1s ease-in-out infinite; }
@keyframes glassesBob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
.embed-alt { text-align: center; margin: 16px 0 0; color: #CDD5E0; font-weight: 500; }
.embed-alt a { font-weight: 700; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.facts li { background: var(--surface-2); border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: .93rem; }

@media (max-width: 960px) {
  .two-col, .two-col.form-layout, .fit-grid { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}
@media (max-width: 560px) {
  .embed-card { padding: 6px; border-width: 2px; }
  .cta-strip .btn + .btn { margin: 12px 0 0; }
}

/* ==========================================================
   Motion helpers
   ========================================================== */
.reveal { opacity: 0; transform: scale(.92) rotate(-1.5deg); }
.reveal.is-in { animation: slap .55s cubic-bezier(.2,.9,.3,1.3) forwards; animation-delay: var(--d, 0s); }
@keyframes slap {
  0% { opacity: 0; transform: scale(.92) rotate(-1.5deg); }
  60% { opacity: 1; transform: scale(1.02) rotate(.4deg); }
  100% { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand-link img { height: 36px; }
  .site-header.is-scrolled .brand-link img { height: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .mobile-menu .btn { width: 100%; }
  .display { -webkit-text-stroke-width: 3px; }
}

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

/* step 2 banner on /book-a-call/ after the form redirects here */
.step-banner { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: rgba(61,220,151,.12); border: 2px solid var(--success); color: var(--white); font-weight: 500; max-width: 60ch; }
.step-banner strong { color: var(--success); }
