/* =====================================================================
   Best Cuts Tree Pros
   Brand colors come from the logo (green + brown). The hi-vis lime
   accent comes from Tyler's safety shirt.
   ===================================================================== */

:root {
  --forest-950: #0b1c0e;
  --forest-900: #0f2412;
  --forest-800: #163319;
  --green: #2a612c;        /* logo green */
  --green-dark: #1f4a1f;
  --brown: #644323;        /* logo brown */
  --cream: #f6f2e9;
  --paper: #fbf9f4;
  --sand: #e6dfcf;
  --ink: #172017;
  --muted: #586056;
  --hivis: #c8f23a;        /* safety-shirt lime */
  --hivis-bright: #d8ff52;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* hidden always wins over display rules below */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }
img, svg { display: block; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; }
h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: .005em;
  text-wrap: balance;
}
h3 { font-size: 1.45rem; font-weight: 700; }

a { color: var(--green); }

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

/* Accessibility: keyboard focus ring and skip link */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #e0a526; outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest-900); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 10px; }

/* Small uppercase label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--brown);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--hivis); }
.hivis { color: var(--hivis); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  text-transform: uppercase; letter-spacing: .07em; text-decoration: none; line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
button.btn { border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 10px 18px; font-size: .98rem; }
.btn-lg { padding: 17px 30px; font-size: 1.15rem; }

.btn-hivis { background: var(--hivis); color: var(--forest-950); }
.btn-hivis:hover { background: var(--hivis-bright); box-shadow: 0 12px 28px -10px rgba(200, 242, 58, .6); }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 2px rgba(246, 242, 233, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--forest-900); color: #fff; }
.btn-dark:hover { background: var(--green); box-shadow: 0 10px 22px -10px rgba(15, 36, 18, .6); }
.btn-outline { color: var(--forest-900); box-shadow: inset 0 0 0 2px var(--forest-900); background: transparent; }
.btn-outline:hover { background: var(--forest-900); color: #fff; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 249, 244, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { border-color: rgba(23, 32, 23, .08); box-shadow: 0 8px 28px -16px rgba(0, 0, 0, .35); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 58px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em;
  color: var(--forest-900); text-decoration: none;
}
.nav-phone svg { color: var(--green); }
.nav-phone:hover { color: var(--green); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(900px 520px at 78% 42%, rgba(42, 97, 44, .6), transparent 65%),
    linear-gradient(160deg, #15321a 0%, var(--forest-900) 55%, var(--forest-950) 100%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(120px, 15vw, 230px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/rings.svg") no-repeat right -360px center / 1500px auto;
}
.hero::after, .section-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .09; mix-blend-mode: overlay;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(3.4rem, 8.4vw, 6.9rem); font-weight: 800;
  text-transform: uppercase; line-height: .9; letter-spacing: -.005em;
  margin-bottom: 24px;
}
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.26rem); color: rgba(246, 242, 233, .82); max-width: 33em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; }
.hero-points li {
  position: relative; padding-left: 28px; font-weight: 600; color: rgba(246, 242, 233, .92);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 19px; height: 19px; transform: translateY(-50%);
  border-radius: 50%; background: var(--hivis)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1c0e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.hero-visual { display: flex; justify-content: center; }
.blade-wrap { position: relative; width: min(450px, 100%); aspect-ratio: 1; }
/* Shadow lives on a non-spinning wrapper so it stays below the blade */
.blade-shadow { position: absolute; inset: 0; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .4)); }
/* Sawdust canvas (drawn by site.js): covers the screen so dust can fly across the page.
   Sits under the header (30), phone bar (40), and estimate popup. */
.sawdust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 25; pointer-events: none; }
.blade {
  width: 100%; height: 100%;
  fill: var(--hivis);
  animation: spin 50s linear infinite;
}
.hero-photo {
  position: absolute; inset: 17%; width: 66%; height: 66%;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px var(--forest-900), 0 20px 50px rgba(0, 0, 0, .45);
}
.name-tag {
  position: absolute; left: -2%; bottom: 9%;
  background: var(--cream); color: var(--ink);
  padding: 11px 18px 12px; border-radius: 12px; border-left: 5px solid var(--green);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55);
  transform: rotate(-4deg);
}
.name-tag strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1; }
.name-tag span { display: block; margin-top: 3px; font-size: .88rem; font-weight: 600; color: var(--brown); }

.treeline { position: absolute; left: 0; bottom: -1px; width: 100%; height: auto; pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { position: relative; isolation: isolate; padding: clamp(76px, 9vw, 124px) 0; scroll-margin-top: 80px; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--forest-900); color: var(--cream); }
.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 58px); }
.section-sub { margin-top: 14px; font-size: 1.15rem; color: var(--muted); }
.section-sub a { font-weight: 600; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--sand); border-radius: 18px;
  padding: 30px 26px 26px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--green), var(--hivis));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 48px -26px rgba(15, 36, 18, .5); }
.service:hover::after { transform: scaleX(1); }
.service-num {
  position: absolute; top: 14px; right: 20px;
  font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #d8cfba;
}
.service-icon {
  width: 56px; height: 56px; padding: 13px; margin-bottom: 24px;
  border-radius: 15px; background: var(--forest-900);
  fill: none; stroke: var(--hivis); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.service:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service h3 { margin-bottom: 10px; }
.service p { flex: 1; color: var(--muted); font-size: 1rem; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .09em; color: var(--green); text-decoration: none;
}
.service-link span { transition: transform .25s ease; }
.service-link:hover span { transform: translateX(5px); }

/* Tilted scrolling band */
.ticker {
  position: relative; z-index: 2;
  width: 112%; margin: -30px 0 -30px -6%;
  transform: rotate(-2deg);
  background: var(--hivis); color: var(--forest-950);
  padding: 16px 0; overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45);
}
.ticker-track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.ticker span {
  margin-right: 30px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1;
}
.ticker svg { flex: none; width: 26px; height: 26px; margin-right: 30px; fill: var(--forest-900); }
.ticker:hover .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker { cursor: pointer; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* How it works */
.section-dark .section-sub { color: rgba(246, 242, 233, .7); }
#process { padding-top: clamp(110px, 12vw, 160px); }
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 62px; z-index: -1;
  border-top: 2px dashed rgba(200, 242, 58, .3);
}
.step {
  padding: 32px 28px 30px; border-radius: 18px;
  background: #12291a; border: 1px solid rgba(246, 242, 233, .1);
}
.step-num {
  display: block; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 4.6rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.6px var(--hivis);
}
.step h3 { font-size: 1.65rem; margin-bottom: 10px; color: var(--cream); }
.step p { color: rgba(246, 242, 233, .74); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { margin-bottom: 16px; color: #333a32; max-width: 38em; }
.signature {
  margin-top: 28px; font-family: var(--font-script); font-weight: 600; font-size: 2.5rem;
  line-height: 1; color: var(--forest-900) !important;
}
.signature span { display: block; margin-top: 8px; font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.values { list-style: none; display: grid; gap: 16px; }
.value {
  display: flex; gap: 18px; padding: 24px;
  background: #fff; border: 1px solid var(--sand); border-radius: 18px;
  box-shadow: 0 14px 30px -24px rgba(15, 36, 18, .45);
}
.value svg {
  flex: none; width: 50px; height: 50px; padding: 12px; border-radius: 14px;
  background: var(--cream); fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.value h3 { font-size: 1.32rem; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: .99rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--sand); }
.faq details:first-child { border-top: 1px solid var(--sand); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 56px 22px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest-900); color: var(--hivis);
  font-family: var(--font-body); font-size: 1.4rem; font-weight: 500; line-height: 1;
  transition: transform .25s ease, background-color .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--green); }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }
.faq details a { font-weight: 600; }

/* Final call to action / contact */
.cta { overflow: hidden; }
.cta-blade {
  position: absolute; z-index: -1; width: 680px; height: 680px; right: -200px; top: 50%;
  margin-top: -340px; fill: rgba(200, 242, 58, .05);
  animation: spin 90s linear infinite reverse;
}
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin-bottom: 30px; }
.cta h2 .hivis { display: block; }
/* "Text Us a Photo" only makes sense on phones and tablets */
.text-photo { display: none; }
@media (hover: none) and (pointer: coarse) {
  .text-photo { display: inline-flex; }
}
.contact-cards { list-style: none; display: grid; gap: 12px; }
.contact-cards li {
  padding: 18px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(246, 242, 233, .14);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.contact-label {
  display: block; margin-bottom: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--hivis);
}
.contact-cards a, .contact-cards li > span:last-child {
  font-size: 1.16rem; font-weight: 600; color: var(--cream); text-decoration: none; overflow-wrap: anywhere;
}
.contact-cards a:hover { color: var(--hivis); }
.contact-cards .save-contact {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: .92rem; font-weight: 600; color: rgba(246, 242, 233, .75);
}
.contact-cards li { display: flex; flex-direction: column; align-items: flex-start; }

/* Tap-the-saw easter egg */
.blade-wrap { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Storm Center promo card on the home page */
.storm-promo-wrap { padding: 0 0 clamp(64px, 8vw, 104px); }
.storm-promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 28px; padding: 30px 34px; border-radius: 22px;
  background: linear-gradient(135deg, #15321a, var(--forest-950)); color: var(--cream); text-decoration: none;
  box-shadow: 0 30px 60px -36px rgba(15, 36, 18, .8);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.storm-promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/rings.svg") no-repeat right -260px center / 900px auto;
}
.storm-promo:hover { transform: translateY(-4px); box-shadow: 0 36px 70px -34px rgba(15, 36, 18, .9); }
.storm-promo-icon {
  flex: none; width: 76px; height: 76px; padding: 16px; border-radius: 50%;
  background: rgba(200, 242, 58, .1); border: 1px solid rgba(200, 242, 58, .35);
  fill: none; stroke: var(--hivis); stroke-width: 1.6; stroke-linecap: round;
}
.storm-promo-icon path { transform-origin: 12px 12px; animation: spin 4s linear infinite; }
.storm-promo-text { flex: 1; }
.storm-promo-text .eyebrow { margin-bottom: 8px; }
.storm-promo h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 6px; }
.storm-promo-text p:last-child { color: rgba(246, 242, 233, .75); }
.storm-promo .btn { flex: none; }

/* Storm alert banner (js/storm.js) */
.storm-alert {
  position: relative; background: #f2b632; color: #1f1a0a;
  border-bottom: 3px solid #1f1a0a;
  background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .06) 0 12px, transparent 12px 24px);
}
.storm-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.storm-icon { flex: none; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.storm-inner p { flex: 1; font-size: .98rem; line-height: 1.45; }
.storm-actions { display: flex; gap: 8px; flex: none; }
.storm-alert .btn-outline { box-shadow: inset 0 0 0 2px #1f1a0a; color: #1f1a0a; }
.storm-alert .btn-outline:hover { background: #1f1a0a; color: #f2b632; }
.storm-close {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .1); color: #1f1a0a; font-size: 1.4rem; line-height: 1;
}
.storm-close:hover { background: rgba(0, 0, 0, .2); }
.storm-short { display: none; }
.storm-radar-link { font-weight: 700; color: #1f1a0a; white-space: nowrap; }
.storm-demo {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px;
  background: #1f1a0a; color: #f2b632; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; vertical-align: 2px;
}

/* "Phone number copied" notice on computers (js/site.js) */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  padding: 12px 20px; border-radius: 12px;
  background: var(--forest-900); color: var(--cream); font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); border-left: 4px solid var(--hivis);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { background: var(--forest-950); color: rgba(246, 242, 233, .7); padding-top: 68px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 66px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.footer-col h3 {
  margin-bottom: 14px; font-size: .95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--hivis);
}
.footer-col a { display: block; padding: 4px 0; color: rgba(246, 242, 233, .86); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--hivis); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 52px; padding-top: 22px; padding-bottom: 24px;
  border-top: 1px solid rgba(246, 242, 233, .1); font-size: .88rem;
}
.footer-bottom .credit a { color: var(--cream); }

/* Phone-only call / estimate bar */
.mobile-cta { display: none; }

/* ---------------------------------------------------------------------
   Scroll-in animation (only when JavaScript is running)
   --------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* The hero animates in on page load, without waiting for scroll or JavaScript */
[data-hero] { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------------------------------------------------------------------
   Free estimate popup
   --------------------------------------------------------------------- */
body:has(.estimate-dialog[open]) { overflow: hidden; }
.estimate-dialog {
  border: 0; border-radius: 18px; padding: 0; margin: auto;
  width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px);
  overflow-y: auto; color: var(--ink); background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.estimate-dialog::backdrop { background: rgba(11, 28, 14, .7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.estimate-dialog form { padding: 26px 28px 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.dialog-head .eyebrow { margin-bottom: 6px; font-size: .85rem; }
.dialog-head h2 { color: var(--forest-900); font-size: 2.1rem; }
.dialog-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); font-size: 1.6rem; line-height: 1;
}
.dialog-close:hover { background: var(--sand); }

.pick { border: 0; margin-bottom: 20px; }
.pick legend { font-weight: 700; margin-bottom: 10px; }
.hint, .optional { font-weight: 400; color: #666c63; font-size: .9rem; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: block; height: 100%; padding: 11px 14px; border: 2px solid var(--sand); border-radius: 10px;
  font-weight: 600; cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s;
}
.chip span::before { content: "+ "; color: #9a9f97; }
.chip span:hover { border-color: #cfc6b2; }
.chip input:checked + span { border-color: var(--green); background: #eaf3df; color: var(--forest-900); }
.chip input:checked + span::before { content: "\2713  "; color: var(--green); }
.chip input:focus-visible + span { outline: 3px solid #e0a526; outline-offset: 2px; }
.field-error { color: #b3261e; font-weight: 600; font-size: .9rem; margin-top: 8px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.fields label { font-weight: 600; font-size: .95rem; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px;
  font: inherit; font-weight: 400; background: #fff;
  border: 1px solid #cfc8b8; border-radius: 10px;
}
.fields input:focus, .fields textarea:focus { outline: 3px solid rgba(42, 97, 44, .25); border-color: var(--green); }

.radios { display: flex; gap: 22px; }
.radios label { cursor: pointer; }
.radios input { accent-color: var(--green); margin-right: 5px; }

.send { border-top: 1px solid var(--sand); padding-top: 18px; }
.send p { font-weight: 700; margin-bottom: 12px; }
.send-buttons { display: flex; gap: 10px; }
.send-buttons .btn { flex: 1; }
.sent-note { margin-top: 16px; padding: 14px 16px; background: #eaf3df; border-radius: 12px; border-left: 4px solid var(--green); }
.sent-note a { font-weight: 600; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav-phone { display: none; }
}

@media (max-width: 880px) {
  .nav-link { display: none; }
  .nav-phone { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-content: flex-start; }
  .blade-wrap { width: min(380px, 86%); margin-left: 4%; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .about, .faq-wrap, .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { padding-bottom: 60px; }
  .container { padding: 0 18px; }
  .logo img { height: 46px; }
  .nav-phone { display: none; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 4.4rem); }
  .hero-actions .btn { width: 100%; }
  .hero-points { gap: 10px 18px; }
  .blade-wrap { width: min(310px, 84%); margin: 0 auto; }
  .name-tag { left: -6%; }
  .services { grid-template-columns: 1fr; }
  .ticker span { font-size: 1.3rem; margin-right: 22px; }
  .ticker svg { width: 20px; height: 20px; margin-right: 22px; }
  .cta-blade { width: 420px; height: 420px; right: -190px; margin-top: -210px; }
  .storm-promo { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 22px; }
  .storm-promo .btn { width: 100%; }
  .storm-inner { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 12px; }
  .storm-icon { width: 28px; height: 28px; }
  .storm-inner p { flex-basis: calc(100% - 90px); font-size: .92rem; }
  .storm-actions { width: 100%; }
  .storm-long { display: none; }
  .storm-short { display: inline; }
  .storm-actions .btn { flex: 1; }
  .storm-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .estimate-dialog form { padding: 20px 18px 22px; }
  .dialog-head h2 { font-size: 1.8rem; }
  .fields { grid-template-columns: 1fr; }
  .chip span { padding: 10px 12px; font-size: .95rem; line-height: 1.35; }
  .send-buttons { flex-direction: column; }

  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .2);
  }
  .mobile-cta a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
    text-transform: uppercase; letter-spacing: .07em; text-decoration: none;
  }
  .mobile-cta-call { background: var(--forest-900); color: #fff; }
  .mobile-cta-estimate { background: var(--hivis); color: var(--forest-950); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
