/* Home page (index.html). The instant quote's own styles are in quote-widget.css. */

:root {
  --ink: #0f1a12;
  --forest: #13261a;
  --green: #2d6a35;
  --lime: #8cc63f;          /* accent on dark */
  --gold: #c8952a;
  --gold-dark: #a87a1f;
  --paper: #f3f6f1;
  --line: #dfe6dc;
  --text: #1c241e;
  --muted: #56645a;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; position: relative; }

/* Type */
h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; color: var(--ink); }
h2 span { color: var(--green); }
.eyebrow { font-family: var(--body); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 0 0 14px; }
.eyebrow-light { color: #fff; }

/* Pill buttons with the round arrow */
.pill-btn { display: inline-flex; align-items: center; gap: 16px; border-radius: 999px; padding: 8px 8px 8px 26px; font-family: var(--body); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.pill-btn-gold { background: var(--gold); color: #fff; }
.pill-btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.pill-ico { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--gold); display: inline-grid; place-items: center; flex-shrink: 0; transition: transform .2s; }
.pill-ico i { transform: rotate(-45deg); transition: transform .2s; }
.pill-btn:hover .pill-ico i { transform: rotate(0); }

/* Announcement */
.announce { display: block; height: 40px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--green); color: #fff; text-align: center; font-size: .88rem; font-weight: 500; padding: 9px 16px; text-decoration: none; position: relative; z-index: 60; }
.announce i { font-size: .75rem; margin-left: 6px; }
.announce:hover { background: #255a2c; }

/* Short text on phones */
.show-sm { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } .show-sm { display: inline; } }

/* Header: over the hero, solid once scrolled */
.site-header { position: absolute; top: 40px; left: 0; right: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { position: fixed; top: 0; background: rgba(10, 18, 12, .96); box-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; transition: height .25s; }
.site-header.scrolled .nav { height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 12px; }
.brand-text strong { font-family: var(--head); font-size: 1.55rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.brand-text small { font-family: var(--body); font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .5em; margin-top: 5px; color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--lime); }
.phone-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--green); border-radius: 999px; padding: 6px 18px 6px 6px; font-weight: 600 !important; }
.phone-pill:hover { background: #255a2c; color: #fff !important; }
.phone-pill .pill-ico { width: 32px; height: 32px; color: var(--green); }
.phone-pill .pill-ico i { transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--forest); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero-video { opacity: 0; transition: opacity 1s ease; object-position: 50% 50%; }
.hero-video.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 7, .92) 0%, rgba(5, 12, 7, .75) 38%, rgba(5, 12, 7, .2) 75%, rgba(5, 12, 7, .1) 100%), linear-gradient(180deg, rgba(5, 12, 7, .55) 0%, transparent 30%); }
.hero-content { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 170px; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.4rem); font-weight: 700; max-width: 820px; }
.hero h1 span { color: var(--lime); font-size: .78em; }
.hero-sub { max-width: 560px; font-size: 1.05rem; color: rgba(255, 255, 255, .88); margin: 20px 0 32px; }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-call { color: #fff; font-weight: 600; text-decoration: none; }
.hero-call i { color: var(--lime); margin-right: 6px; }
.hero-call:hover { color: var(--lime); }

/* Wavy divider with an accent line */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 10vw, 150px); z-index: 3; }
.wave-fill { fill: var(--paper); }
.wave-line { fill: none; stroke: var(--lime); stroke-width: 5; vector-effect: non-scaling-stroke; }
.wave-top { top: -1px; bottom: auto; }

/* About: big rounded photo + text */
.split { padding-top: 70px; }
.split-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-photo { position: relative; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; }
.split-badge { position: absolute; right: -18px; bottom: 28px; background: var(--forest); color: #fff; border-radius: 18px; padding: 16px 22px; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.split-badge strong { display: block; font-family: var(--head); font-size: 2rem; color: var(--lime); line-height: 1; }
.split-badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.split-text h2 { margin-bottom: 22px; }
.split-text > p:not(.eyebrow) { color: var(--muted); margin: 0 0 16px; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 18px 14px 0 0; }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--head); font-size: 1.7rem; color: var(--green); text-transform: uppercase; line-height: 1.1; }
.facts span { font-size: .85rem; color: var(--muted); }

/* Services */
.services { background: var(--forest); color: #fff; }
.section-head { margin-bottom: 48px; }
.section-head h2 { color: #fff; }
.section-head h2 span { color: var(--lime); }
.section-head-dark h2 { color: var(--ink); }
.section-head-dark h2 span { color: var(--green); }
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.svc-card { grid-column: span 2; background: #1b3323; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 3; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.svc-photo { aspect-ratio: 16 / 10; overflow: hidden; background: #24432e; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-photo img { transform: scale(1.05); }
.svc-photo-snow { display: grid; place-items: center; font-size: 3.5rem; color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, #2a4f37, #1b3323); }
.svc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-num { font-family: var(--head); color: var(--lime); font-size: .95rem; letter-spacing: .1em; }
.svc-body h3 { font-size: 1.6rem; font-weight: 600; }
.svc-body p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .93rem; flex: 1; }
.svc-link { margin-top: 8px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.svc-link i { margin-left: 6px; transition: margin .2s; }
.svc-card:hover .svc-link i { margin-left: 12px; }

/* Before / after */
.ba-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 24px; align-items: start; }
.ba-slider { position: relative; margin: 0; border-radius: 24px; overflow: hidden; user-select: none; background: #ccd; }
.ba-tall { aspect-ratio: 3 / 4; }
.ba-wide { aspect-ratio: 16 / 9; }
.ba-slider > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.ba-slider { cursor: ew-resize; touch-action: pan-y; }
.ba-slider img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.ba-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.ba-slider:focus-within .ba-handle span { outline: 3px solid var(--lime); }
.ba-tag { position: absolute; top: 16px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }
.ba-slider figcaption { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; pointer-events: none; }
.ba-wide { align-self: center; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }

/* Quote */
.quote { background: var(--forest); color: #fff; padding-top: 170px; }
.quote .wave-fill { fill: var(--paper); }
.quote .section-head { text-align: center; }
.quote .iq { margin-bottom: 26px; scroll-margin-top: 90px; }
.custom-quote { max-width: 1040px; margin: 0 auto; scroll-margin-top: 90px; }
.custom-quote-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #1b3323; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; color: rgba(255, 255, 255, .85); padding: 16px 16px 16px 26px; font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.custom-quote-toggle:hover { background: #22402c; }
.custom-quote-toggle strong { color: #fff; font-family: var(--head); text-transform: uppercase; font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; margin-right: 6px; }
.custom-quote-toggle .pill-ico i { transform: none; }
.custom-quote-toggle[aria-expanded="true"] .custom-quote-chev { transform: rotate(180deg); }
.custom-quote-body { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; margin-top: 28px; background: #1b3323; border-radius: 22px; padding: 36px; }
.cq-text h3 { font-size: 2rem; margin-bottom: 8px; }
.cq-text p { color: rgba(255, 255, 255, .75); margin: 0 0 22px; }
.cq-text a, .cq-text span { display: block; color: #fff; text-decoration: none; margin-bottom: 10px; font-weight: 500; }
.cq-text i { color: var(--lime); width: 22px; }
.cq-form { display: flex; flex-direction: column; gap: 16px; }
.cq-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cq-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.cq-form label { font-weight: 600; font-size: .88rem; color: rgba(255, 255, 255, .9); }
.cq-form input, .cq-form textarea { font: inherit; font-size: .95rem; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 12px 14px; outline: none; }
.cq-form input::placeholder, .cq-form textarea::placeholder { color: rgba(255, 255, 255, .4); }
.cq-form input:focus, .cq-form textarea:focus { border-color: var(--lime); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip { font: inherit; font-size: .85rem; font-weight: 500; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.svc-chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cq-send { align-self: flex-start; }
.form-note { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* Footer */
.footer { background: #0a130d; color: rgba(255, 255, 255, .7); padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
.footer-grid > div > a:not(.brand), .footer-grid > div > span { display: block; text-decoration: none; margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer .brand { display: flex; margin-bottom: 16px; }
.footer-about { margin: 0; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .82rem; }

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

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

/* ── Smaller screens ── */
@media (max-width: 1000px) {
  .nav-links { gap: 20px; }
  .nav-links li:nth-child(5) { display: none; }
  .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-badge { right: 16px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 1; }
  .svc-card:nth-child(5) { grid-column: span 2; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-tall { aspect-ratio: 4 / 4.5; }
  .custom-quote-body { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10, 18, 12, .98); border-radius: 18px; padding: 10px; display: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
  .nav-links.open { display: flex; }
  .nav-links li:nth-child(5) { display: block; }
  .nav-links a { display: block; padding: 12px 14px; }
  .phone-pill { margin-top: 6px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .nav { height: 72px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.3rem; }
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero-content { padding-top: 140px; padding-bottom: 130px; }
  .hero-shade { background: linear-gradient(0deg, rgba(5, 12, 7, .95) 0%, rgba(5, 12, 7, .75) 50%, rgba(5, 12, 7, .35) 100%); }
  .split { padding-top: 40px; }
  .split-photo img { border-radius: 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
  .facts strong { min-width: 90px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .quote { padding-top: 120px; }
  .custom-quote-body { padding: 22px 18px; }
  .cq-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  body { padding-bottom: 72px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 18, 12, .97); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px; font-weight: 700; text-decoration: none; font-size: .95rem; }
  .mobile-call { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
  .mobile-quote { background: var(--gold); color: #fff; }
}

/* The quote section has its own heading — skip the widget's */
.quote .iq-start > .iq-eyebrow, .quote .iq-start > h2 { display: none; }
.quote .iq-start .iq-lead { margin-top: 0; }
