/* ---------- Variables ---------- */
:root {
  --forest-900: #12261b;
  --forest-800: #1c3a28;
  --forest-700: #275238;
  --accent: #e8630c;
  --accent-dark: #c8500a;
  --cream: #f8f6ef;
  --cream-2: #f0ece0;
  --ink: #1a201a;
  --muted: #5c665c;
  --line: rgba(26, 32, 26, 0.12);
  --white: #ffffff;
  --shadow: 0 20px 50px -20px rgba(18, 38, 27, 0.35);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest-900); color: var(--white); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px -8px rgba(232, 99, 12, 0.55); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--forest-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.25); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 246, 239, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--forest-900); }
.logo svg { width: 26px; height: 26px; fill: var(--forest-800); stroke: none; }
.logo svg rect { fill: var(--accent); }
.logo em { font-style: normal; color: var(--accent); }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--forest-800); transition: color .15s ease; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--forest-900); }
.phone-link svg { color: var(--accent); }
.phone-link.on-dark { color: var(--white); }
.phone-link.on-dark svg { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--forest-900); transition: transform .2s ease, opacity .2s ease; margin: 0 auto; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) 0 0/22px 22px,
    linear-gradient(160deg, var(--forest-900) 0%, var(--forest-800) 45%, var(--forest-700) 100%);
  color: var(--white);
  padding: 72px 0 90px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); margin-bottom: 20px; }
.h1-short { display: none; }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 46ch; margin-bottom: 28px; }
.hero-trust { display: flex; flex-direction: column; gap: 12px; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255,255,255,.92); }
.hero-trust svg { color: var(--accent); flex-shrink: 0; background: rgba(232,99,12,.15); border-radius: 999px; padding: 4px; width: 22px; height: 22px; }

/* ---------- Quote card / multi-step form ---------- */
.quote-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form-progress { display: none; align-items: center; margin-bottom: 24px; }
.js .form-progress { display: flex; }
.step-dot { width: 30px; height: 30px; border-radius: 999px; background: var(--cream-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; transition: background .2s ease, color .2s ease; }
.step-dot.active, .step-dot.completed { background: var(--accent); color: var(--white); }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 8px; }

.form-step { display: block; }
.js .form-step:not(.active) { display: none; }
.form-step h2 { font-size: 1.3rem; margin-bottom: 18px; }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-option { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 600; font-size: 0.85rem; color: var(--forest-800); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.service-option svg { width: 24px; height: 24px; color: var(--forest-700); }
.service-option:hover { transform: translateY(-2px); border-color: var(--accent); }
.service-option.selected { background: var(--forest-900); border-color: var(--forest-900); color: var(--white); }
.service-option.selected svg { color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 0.85rem; font-weight: 600; color: var(--forest-800); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 70px; }

.form-nav { display: flex; gap: 12px; margin-top: 6px; }
.form-nav .btn { flex: 1; }
.form-disclaimer { font-size: 0.75rem; color: var(--muted); margin-top: 14px; text-align: center; }

.form-success { text-align: center; padding: 12px 0 4px; }
.success-icon { width: 56px; height: 56px; color: #3f8a4d; margin: 0 auto 16px; }
.form-success h2 { margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 6px; }
.success-note a { color: var(--accent); font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee { background: var(--forest-900); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: scroll-left 26s linear infinite; }
.marquee-track span { color: rgba(255,255,255,.85); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; margin-right: 28px; }
.marquee-track span[aria-hidden] { color: var(--accent); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head .eyebrow { justify-content: center; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: block; padding: 32px 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--cream); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(18,38,27,.25); }
.service-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--forest-900); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.service-card .read-more { font-weight: 700; color: var(--forest-800); display: inline-flex; align-items: center; gap: 6px; }
.service-card .read-more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.service-card:hover .read-more svg { transform: translateX(3px); }

/* ---------- How it works ---------- */
.how-it-works { background: var(--cream-2); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-step { text-align: center; padding: 0 12px; }
.process-number { display: inline-block; font-family: 'Sora', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--accent); opacity: .8; margin-bottom: 10px; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 18px; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; background: var(--forest-900); }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 100%); }
.g-caption { position: relative; z-index: 1; color: var(--white); font-weight: 700; font-family: 'Sora', sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.g-1 { grid-row: span 2; }
.g-5 { grid-column: span 2; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; background: none; border: none; text-align: left; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--forest-900); }
.faq-question svg { flex-shrink: 0; transition: transform .2s ease; color: var(--accent); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { padding: 0 4px 22px; color: var(--muted); max-width: 65ch; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,.9); }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-banner .btn-primary { background: var(--forest-900); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--forest-800); }

/* ---------- Blog ---------- */
.blog-hero { background: var(--cream-2); padding: 64px 0 48px; text-align: center; }
.blog-hero .eyebrow { justify-content: center; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 12px; }
.blog-hero p { color: var(--muted); max-width: 56ch; margin: 0 auto; }

.post-list { padding: 64px 0 96px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(18,38,27,.25); }
.post-date { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); margin-bottom: 18px; flex: 1; }
.post-card .read-more { font-weight: 700; color: var(--forest-800); display: inline-flex; align-items: center; gap: 6px; }
.post-card .read-more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.post-card:hover .read-more svg { transform: translateX(3px); }

.article { padding: 56px 0 40px; max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-header .post-date { display: block; }
.article-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 10px 0 0; }
.article-body h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; color: var(--ink); }
.article-body p, .article-body li { font-size: 1.02rem; line-height: 1.7; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: var(--ink); }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-body a.btn { color: var(--white); text-decoration: none; }
.article-body table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.95rem; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article-body th { font-family: 'Sora', sans-serif; color: var(--forest-800); }
.article-note { background: var(--cream-2); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 0.92rem; color: var(--muted); margin: 24px 0; }

.post-cta { background: var(--forest-900); color: var(--white); border-radius: 18px; padding: 32px; text-align: center; margin: 40px 0; }
.post-cta h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.post-cta p { color: rgba(255,255,255,.8); margin-bottom: 20px; }

.article-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--forest-800); margin-bottom: 24px; }
.article-back svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(255,255,255,.75); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.site-footer .logo svg { fill: var(--white); }
.footer-brand p { font-size: 0.9rem; max-width: 40ch; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { padding: 20px 24px 100px; font-size: 0.78rem; text-align: center; color: rgba(255,255,255,.5); }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .post-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-1 { grid-row: span 1; }
  .g-5 { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 73px; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 90; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm, .header-actions .phone-link { display: none; }

  .hero { padding: 20px 0 28px; }
  .hero-inner { gap: 16px; }
  .eyebrow { display: none; }
  .hero h1 { font-size: 1.4rem; margin-bottom: 0; }
  .h1-full { display: none; }
  .h1-short { display: block; }
  .hero-lead { display: none; }
  .hero-trust { display: none; }
  .quote-card { padding: 24px; }
  .service-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .g-1, .g-5 { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  .mobile-cta-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); z-index: 95; box-shadow: 0 -8px 24px -16px rgba(0,0,0,.2); }
  .mobile-cta-bar .btn { flex: 1; }
  body { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
