/* Quotramax design system - roofing website agency */

:root {
  --ink: #07090e;
  --ink-2: #10141c;
  --ink-3: #171c27;
  --paper: #f4f2ec;
  --paper-2: #ebe7de;
  --paper-3: #fffdf8;
  --line-dark: #252a36;
  --line-light: #d8d2c6;
  --muted-dark: #9aa3b5;
  --muted-light: #5b6270;
  --text-dark: #f3f5fc;
  --text-light: #12161f;
  --accent: #e08a2f;
  --accent-2: #c46e18;
  --accent-soft: rgba(224, 138, 47, 0.14);
  --brand-blue: #78a8ff;
  --brand-blue-deep: #3d6eff;
  --ok: #3d9a6e;
  --danger: #d4534a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --header-h: 72px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html[data-theme="dark"] {
  --bg: var(--ink);
  --bg-alt: var(--ink-2);
  --bg-card: var(--ink-3);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --line: var(--line-dark);
  --header-bg: rgba(7, 9, 14, 0.92);
  --invert-section-bg: var(--paper);
  --invert-section-text: var(--text-light);
  --invert-section-muted: var(--muted-light);
  --invert-section-line: var(--line-light);
  --invert-card: var(--paper-3);
  --logo-well: #000;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --bg-card: var(--paper-3);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --line: #c9c3b6;
  --header-bg: rgba(244, 242, 236, 0.94);
  --invert-section-bg: var(--ink);
  --invert-section-text: var(--text-dark);
  --invert-section-muted: var(--muted-dark);
  --invert-section-line: var(--line-dark);
  --invert-card: var(--ink-3);
  --logo-well: #000;
  color-scheme: light;
}
html[data-theme="light"] .form-fail,
html[data-theme="light"] .field .error { color: #9b2f28; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.04em; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 62px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap > * { min-width: 0; }

.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 4000;
  background: var(--accent); color: #1a1006; padding: 12px 18px;
  font-weight: 700; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 16px; }
.section-head .lede { margin-top: 0; }

.band-alt { background: var(--bg-alt); }
.band-invert {
  background: var(--invert-section-bg);
  color: var(--invert-section-text);
}
.band-invert .lede,
.band-invert .muted { color: var(--invert-section-muted); }
.band-invert .eyebrow { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #1a1006;
  border-color: var(--accent);
}
.btn-primary:hover { background: #f09a3e; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); }
.band-invert .btn-ghost { color: var(--invert-section-text); border-color: var(--invert-section-line); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: wait; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.brand-symbol {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: var(--logo-well);
  border-radius: 10px;
  flex: none;
}
.brand-symbol img {
  position: absolute;
  width: 74px;
  height: 74px;
  max-width: none;
  left: -16px;
  top: -10px;
}
.brand-word em { font-style: normal; color: var(--brand-blue); }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.theme-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; border-radius: 10px; }
.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 240;
  visibility: hidden;
}
.drawer.open { visibility: visible; }
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.62);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background: var(--bg-card);
  border-left: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-links { display: flex; flex-direction: column; gap: 6px; }
.drawer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  color: var(--text); font-size: 28px; cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 0 72px;
  color: #f3f5fc;
  background: #07090e;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 14, 0.96) 0%, rgba(7, 9, 14, 0.78) 42%, rgba(7, 9, 14, 0.28) 100%),
    linear-gradient(0deg, #07090e 0%, transparent 42%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin: 0 0 20px; }
.hero h1 span { display: block; color: #f0c48a; }
.hero-copy { font-size: 18px; color: #c4cbd8; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hero-trust { display: grid; gap: 8px; }
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4cbd8;
  font-size: 14px;
}
.hero-trust span::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* Device mockup */
.mock {
  background: #0d121b;
  border: 1px solid #35415a;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  color: #f3f5fc;
}
.mock-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a3344;
  font-size: 12px;
  color: #9aa3b5;
}
.mock-chrome { display: flex; gap: 6px; }
.mock-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #3a4456; }
.mock-screen { padding: 18px 8px 8px; }
.mock-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.mock-screen h3 { font-size: 26px; margin: 8px 0 10px; }
.mock-screen p { font-size: 13px; color: #9aa3b5; margin-bottom: 14px; }
.mock-cta {
  display: inline-flex;
  background: var(--accent);
  color: #1a1006;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-tile {
  border: 1px solid #2a3344;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  background: #111722;
}
.mock-devices { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.mock-phone {
  width: 72px;
  background: #0d121b;
  border: 1px solid #35415a;
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 8px;
  line-height: 1.3;
}
.mock-note { font-size: 12px; color: #9aa3b5; text-align: center; margin-top: 12px; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px 0;
}
.marquee-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.marquee-group { display: flex; gap: 40px; padding-right: 40px; }
.marquee-group span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { margin-top: 16px; display: grid; gap: 8px; }
.card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.text-link { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  margin-bottom: 10px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-col h3 { font-size: 18px; margin-bottom: 16px; }
.compare-col li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare-bad { background: var(--bg-card); }
.compare-good {
  background: var(--accent-soft);
  border-color: rgba(224, 138, 47, 0.35);
}
.compare-good li::before,
.compare-bad li { display: block; }
.compare-col li { padding-left: 22px; position: relative; }
.compare-bad li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.compare-good li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; }
.step .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.timing {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
}

.feature { padding: 20px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; }
.scope {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
}
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field .error { color: #f0a39d; font-size: 13px; display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.form-fail { color: #f0a39d; margin: 0; }
.form-success {
  display: none;
  text-align: center;
  padding: 28px 12px;
}
.form-success.is-visible { display: block; }
.form.is-sent { display: none; }
.success-mark {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  color: var(--ok);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.faq-icon { color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body { display: none; padding: 0 0 18px; color: var(--muted); }
.faq-item.open .faq-body { display: block; }
.faq-cat { margin: 36px 0 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta .lede { margin: 0 auto 24px; }
.final-cta .btn { margin: 0 6px 10px; }

.page-hero { padding: 72px 0 28px; }
.page-hero h1 { max-width: 860px; margin-bottom: 18px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--accent); }
.prose { max-width: 760px; }
.prose p { margin: 0 0 16px; color: var(--muted); }
.prose h2 { margin: 36px 0 12px; font-size: 28px; }
.prose h3 { margin: 28px 0 10px; }
.prose ul { display: grid; gap: 8px; margin: 0 0 18px; }
.prose li { padding-left: 18px; position: relative; color: var(--muted); }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.legal-box h2 { font-size: 22px; margin: 28px 0 10px; }
.legal-box p, .legal-box li { color: var(--muted); }
.legal-box ul { display: grid; gap: 8px; margin: 12px 0 16px; }
.legal-box li { padding-left: 16px; position: relative; }
.legal-box li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
.foot-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.foot-col h4 { color: var(--text); font-size: 14px; margin-bottom: 4px; }
.foot-col a:hover { color: var(--text); }
.sticky-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 180;
  justify-content: center;
}
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow); }
.page-contact.has-sticky { padding-bottom: 0; }
.page-contact .sticky-cta { display: none !important; }

.mid-cta { text-align: center; padding-top: 36px; }

.trust-panel { max-width: 760px; }
.trust-panel p { color: var(--muted); margin-bottom: 14px; }

.example-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .hero { padding: 48px 0 88px; }
  .hero-grid, .grid-2, .grid-3, .compare, .cta-panel, .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 76px; }
  .cta-panel { padding: 24px; }
}

@media (max-width: 480px) {
  .wrap, .site-nav { padding-left: 18px; padding-right: 18px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .brand { font-size: 16px; }
  .mock-screen h3 { font-size: 22px; }
}

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-shot { display: block; background: #111; }
.work-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.work-card-body { padding: 22px 22px 26px; }
.work-card-body h3 { margin: 0 0 8px; }
.work-card-body p { color: var(--muted); font-size: 15px; }
.city-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 18px;
  margin: 0 0 48px;
}
.city-links a { color: var(--accent); font-weight: 600; font-size: 15px; }
.city-links a:hover { text-decoration: underline; }
.state-block { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.state-block:last-child { border-bottom: 0; }
.state-block h2 a { color: inherit; }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .city-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { width: auto; transform: none; flex-wrap: wrap; }
  .marquee-group { flex-wrap: wrap; white-space: normal; }
  .marquee-group[aria-hidden="true"] { display: none; }
}
