:root {
  --bg: #0b0e12;
  --bg-alt: #10151b;
  --card: #141a22;
  --text: #f4f4f2;
  --muted: #a8a29e;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --line: #232c36;
  --radius: 12px;
  --font-display: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .brand { font-family: var(--font-display); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { font-weight: 700; letter-spacing: 1.5px; color: var(--text); font-size: 1.05rem; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.main-nav { margin-left: auto; display: flex; gap: 22px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.main-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: #161006;
  font-weight: 700; padding: 13px 28px;
  border-radius: var(--radius); border: none; cursor: pointer;
  font-size: 1rem; font-family: var(--font-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-glow:hover { box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45); background: #fbbf24; }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 120px 0 0;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.orb-1 { width: 480px; height: 480px; background: #b45309; top: -120px; right: -100px; animation: drift 14s ease-in-out infinite alternate; }
.orb-2 { width: 380px; height: 380px; background: #1e3a5f; bottom: 5%; left: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.12); }
}
.hero-content { position: relative; z-index: 2; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 0.78rem; color: var(--accent); font-weight: 700;
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; font-weight: 700; margin-bottom: 22px; letter-spacing: -1px; }
.line { display: block; overflow: hidden; }
.line-inner { display: inline-block; animation: lineUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.line:nth-child(2) .line-inner { animation-delay: 0.12s; }
.line:nth-child(3) .line-inner { animation-delay: 0.24s; }
@keyframes lineUp {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.gradient-text {
  background: linear-gradient(100deg, #fbbf24, #f59e0b 40%, #ea580c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.hero-anim { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.45s; }
.hero-actions.hero-anim { animation-delay: 0.6s; }
@keyframes fadeUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue { position: relative; z-index: 2; display: flex; justify-content: center; margin: 56px 0 28px; }
.scroll-cue span { width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; position: relative; opacity: 0.7; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(16, 21, 27, 0.8);
  overflow: hidden; padding: 16px 0;
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 0.9rem; color: var(--muted);
}
.ticker-track i { color: var(--accent); font-style: normal; font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 16px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.stat strong .suffix { font-size: 1.1rem; font-weight: 600; }
.stat > span:last-child { display: block; color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 30px; letter-spacing: -0.5px; }
.muted { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #fbbf24, #ea580c);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 14px; }
.card-icon svg { display: block; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.systems-note { margin-top: 28px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.systems-note strong { color: var(--text); }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }
.checklist { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.checklist li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px; }
.contact-lines { margin-top: 26px; }
.contact-lines p { margin-bottom: 16px; color: var(--muted); }
.contact-lines strong { color: var(--text); }
.quote-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.quote-form label { display: block; margin-bottom: 15px; font-weight: 600; font-size: 0.92rem; }
.quote-form input, .quote-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-form input:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* ---------- Homeowners band ---------- */
.homeowners-band { padding: 0 0 88px; }
.homeowners-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--card), #1a1408);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius); padding: 40px;
}
.homeowners-inner h2 { margin-bottom: 10px; }
.homeowners-inner .muted { max-width: 520px; }

/* ---------- Inner hero (residential) ---------- */
.hero-inner { min-height: 88vh; }

/* ---------- Slogan ---------- */
.slogan-quote {
  margin: 52px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  max-width: 640px;
}
.slogan {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; }
.trust-icon { color: var(--accent); font-size: 1.3rem; font-weight: 700; }
.trust-item p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.trust-item strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-top: 36px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); margin: 0; line-height: 1.7; }
.faq a { color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; position: relative; background: var(--card); }
.gallery img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 14px 10px; font-size: 0.85rem; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.93); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 24px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 1000px; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); display: block; }
.lightbox figcaption { color: var(--muted); text-align: center; margin-top: 12px; font-size: 0.95rem; }
.lb-close { position: absolute; top: 18px; right: 26px; font-size: 2.4rem; color: #fff; cursor: pointer; line-height: 1; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.process-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.process-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
.process-step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin: 0; }

/* ---------- Service areas ---------- */
.areas-band { padding: 72px 0; border-top: 1px solid var(--line); }
.areas-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.areas-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 0.9rem; color: var(--muted); background: var(--card); transition: border-color 0.25s, color 0.25s; }
.areas-chips span:hover { border-color: var(--accent); color: var(--text); }
.areas-chips a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 0.9rem; color: var(--muted); background: var(--card); text-decoration: none; transition: border-color 0.25s, color 0.25s; }
.areas-chips a:hover { border-color: var(--accent); color: var(--text); }

@media (max-width: 860px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 36px; }
.video-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); position: relative; }
.video-grid video { width: 100%; height: 340px; object-fit: cover; display: block; }
.video-grid figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 14px 10px; font-size: 0.85rem; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }

@media (max-width: 860px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid video { height: 260px; }
}

.brand img { height: 44px; width: auto; display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .main-nav { display: none; }
  .hero { min-height: 92vh; }
  .orb-1 { width: 300px; height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
