/* =========================================================
   Tree Service Demo — "Timberline" variant
   Base layout: Gnome-style split hero / overlap cards
   To make a new niche or variant, copy this file and change
   the tokens in :root first. Layout rules below stay shared.
   ========================================================= */

:root {
  /* Brand tokens (change these per niche/variant) */
  --primary: #1f4d2b;        /* forest green: buttons, headings accents */
  --primary-600: #173b21;
  --leaf: #5fa832;           /* eyebrow text, checks, icons */
  --accent: #f08a24;         /* safety orange: main CTAs */
  --accent-600: #d97616;
  --dark: #17201a;           /* hero panel, footer */
  --dark-2: #222c25;
  --tint: #f3f5f1;           /* alternating section bg */
  --text: #2b332d;
  --muted: #5d675f;
  --line: #e2e7df;
  --white: #fff;
  --star: #f6b100;

  /* Type */
  --font-head: "Bitter", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & rhythm */
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px rgba(18, 32, 22, .10);
  --shadow-lg: 0 18px 50px rgba(18, 32, 22, .18);
  --container: 1180px;
  --section-y: clamp(64px, 8vw, 110px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--dark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #d9e0da; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ico--lg { width: 38px; height: 38px; color: var(--leaf); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--leaf);
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.eyebrow--light { color: #9bd46f; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__sub { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-600); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(240, 138, 36, .35); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--light { background: #fff; color: var(--primary); }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: #e6efe6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__trust { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__trust li { display: flex; align-items: center; gap: 6px; }
.topbar__trust .ico { width: 15px; height: 15px; color: #9bd46f; }
.topbar__phone { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Header ---------- */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 10px 18px 8px; border-radius: 4px; line-height: 1.1;
}
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; }
.logo__tag { font-size: .68rem; border-top: 1px solid rgba(255,255,255,.4); margin-top: 4px; padding-top: 3px; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--dark); text-decoration: none; font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; }
.nav a:hover { color: var(--leaf); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--dark); }
.hero__copy {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 70px 56px 150px 20px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(95,168,50,.18), transparent 60%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: #d4dcd5;
}
.hero__copy-inner { max-width: 540px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #9bd46f; }
.hero__lead { font-size: 1.1rem; margin-bottom: 1.8rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.hero__points li::before { content: "✓"; color: #9bd46f; font-weight: 700; margin-right: 6px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Review badge in hero */
.review-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--dark); text-decoration: none;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  font-size: .88rem; margin-bottom: 22px; box-shadow: var(--shadow);
}
.review-badge__g {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  color: #fff; font-weight: 700; font-family: Arial, sans-serif;
}
.review-badge .stars { margin-right: 4px; }
.stars { color: var(--star); letter-spacing: 2px; }
.stars--lg { font-size: 1.4rem; }

/* ---------- Overlapping service cards ---------- */
.service-cards { position: relative; margin-top: -110px; z-index: 5; background: linear-gradient(to bottom, transparent 0 110px, var(--tint) 110px); }
.service-cards__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius);
}
.s-card { padding: 34px 26px 30px; text-align: center; border-right: 1px solid var(--line); transition: background .2s; }
.s-card:last-child { border-right: 0; }
.s-card:hover { background: var(--tint); }
.s-card__ico { width: 46px; height: 46px; fill: var(--leaf); margin: 0 auto 14px; display: block; }
.s-card p { color: var(--muted); font-size: .92rem; }
.s-card__link { font-weight: 600; text-decoration: none; color: var(--primary); }
.s-card--alert .s-card__ico { fill: var(--accent); }
.s-card--alert .s-card__link { color: var(--accent-600); }

/* ---------- About / Why us ---------- */
.about { padding-top: calc(var(--section-y) * .8); }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 30px; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf); color: #fff; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}
.about__media { position: relative; padding-bottom: 50px; }
.about__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.stats { position: absolute; bottom: 0; left: 18px; right: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat {
  background: var(--leaf); color: #fff; text-align: center;
  padding: 20px 10px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
}
.stat__num { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat__label { font-weight: 600; font-size: .9rem; }

/* ---------- Reviews ---------- */
.rating-summary { display: inline-flex; align-items: center; gap: 14px; margin-top: 6px; text-align: left; }
.rating-summary__score { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.rating-summary__count { display: block; font-size: .9rem; color: var(--muted); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--leaf);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.review__title { font-size: 1.1rem; margin-top: 10px; }
.review p { color: var(--muted); flex: 1; }
.review__by { display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.35; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: .85rem;
}
.reviews__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.badge-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .88rem; color: var(--primary); background: var(--tint); }

/* ---------- Process ---------- */
.process__steps { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.step { background: var(--dark-2); border-radius: var(--radius-lg); padding: 34px 28px; position: relative; }
.step__num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  margin-bottom: 18px;
}

/* ---------- Projects ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; transition: transform .3s; }
.project:hover img { transform: scale(1.02); }
.project__cat { color: var(--leaf); font-weight: 600; font-size: .85rem; margin-bottom: 4px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(90deg, var(--accent-600), var(--accent)); color: #fff; padding-block: 44px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; font-size: 1.05rem; }

/* ---------- Estimate + booking calendar ---------- */
.booking {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.booking__cal { padding: 34px; background: #fff; border-right: 1px solid var(--line); }
.booking__details { padding: 34px; }
.booking__step { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 20px; }
.booking__step span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1rem; font-family: var(--font-body);
}
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.cal__nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--primary);
}
.cal__nav:hover:not(:disabled) { background: var(--tint); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.cal__day {
  aspect-ratio: 1; border: 0; border-radius: 8px; cursor: pointer;
  background: #eaf4e2; color: var(--primary); font: 600 .92rem var(--font-body);
  transition: background .15s, color .15s;
}
.cal__day:hover:not(:disabled) { background: var(--leaf); color: #fff; }
.cal__day:disabled { background: transparent; color: #b7bfb8; cursor: default; font-weight: 400; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--leaf); }
.cal__day.is-selected { background: var(--primary); color: #fff; }
.cal__legend { display: flex; gap: 18px; font-size: .78rem; color: var(--muted); margin-top: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot--open { background: #eaf4e2; box-shadow: inset 0 0 0 1px var(--leaf); }
.dot--off { background: #edf0ec; }
.slots { margin-top: 20px; }
.slots__label { font-weight: 600; font-size: .9rem; color: var(--dark); margin-bottom: 10px; }
.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  padding: 10px 6px; border: 1px solid var(--leaf); border-radius: var(--radius); background: #fff;
  color: var(--primary); font: 600 .88rem var(--font-body); cursor: pointer;
}
.slot:hover:not(:disabled) { background: #eaf4e2; }
.slot.is-selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot:disabled { border-color: var(--line); color: #b7bfb8; text-decoration: line-through; cursor: default; }
.booking__hours { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .84rem; color: var(--muted); }
.booking__hours .ico { color: var(--leaf); margin-top: 2px; }
.booking__summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 20px;
  border: 1px dashed #c9d2c6; border-radius: var(--radius); color: var(--muted); font-weight: 600; font-size: .92rem;
}
.booking__summary .ico { color: var(--muted); }
.booking__summary.is-set { border-style: solid; border-color: var(--leaf); background: #eaf4e2; color: var(--primary); }
.booking__summary.is-set .ico { color: var(--leaf); }

/* Shared form styles (booking + not-ready) */
.booking label, .form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 16px; color: var(--dark); }
.form { background: #fff; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking input, .booking select, .booking textarea,
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid #cfd6cc; border-radius: var(--radius);
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
}
.booking input:focus, .booking select:focus, .booking textarea:focus,
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--leaf); border-color: var(--leaf); }
.optional { font-weight: 400; color: var(--muted); }
.form__note { text-align: center; font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.form__error { margin: 0 0 12px; padding: 10px 12px; background: #fdeee0; color: #9a4a00; border-radius: var(--radius); font-size: .88rem; font-weight: 600; }
.form__success { margin: 14px 0 0; padding: 12px 14px; background: #eaf6e1; border-radius: var(--radius); color: var(--primary); font-weight: 600; font-size: .92rem; }
.estimate__alt { font-weight: 600; text-align: center; margin: 18px 0 0; font-size: .92rem; }

/* ---------- Not ready yet ---------- */
.not-ready__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.not-ready__copy .checklist li::before { background: var(--primary); }
.not-ready__form { border-top: 5px solid var(--primary); }
.not-ready__form-title { font-size: 1.3rem; margin-bottom: 18px; }
.choice { border: 0; padding: 0; margin: 0 0 18px; }
.choice legend { font-weight: 600; font-size: .88rem; color: var(--dark); margin-bottom: 8px; padding: 0; }
.choice__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.form .pill { margin: 0; position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill span {
  display: block; text-align: center; padding: 10px 6px; border: 1px solid #cfd6cc; border-radius: 999px;
  font-weight: 500; font-size: .85rem; cursor: pointer; transition: all .15s;
}
.pill span:hover { border-color: var(--leaf); }
.pill input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--leaf); outline-offset: 2px; }

/* ---------- Service areas ---------- */
.areas__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.areas__list a {
  display: block; padding: 14px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; color: var(--dark); background: #fff; transition: all .2s;
}
.areas__list a::before { content: "📍 "; }
.areas__list a:hover { border-color: var(--leaf); color: var(--leaf); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 820px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--leaf); font-weight: 600; }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary h3 { margin: 0; font-size: 1.08rem; }
.faq__item p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b9c3bb; font-size: .92rem; }
.footer a { color: #fff; }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-block: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo--footer { background: var(--leaf); }
.footer__contact { display: flex; align-items: center; gap: 14px; line-height: 1.5; }
.footer__contact strong { color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 44px; }
.footer__h { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 6px; }
.footer__links a { color: #b9c3bb; text-decoration: none; }
.footer__links a:hover { color: #9bd46f; }
.footer__bottom { background: #111813; text-align: center; padding: 18px; font-size: .85rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .service-cards__grid { grid-template-columns: repeat(2, 1fr); }
  .s-card:nth-child(2) { border-right: 0; }
  .s-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__copy { justify-content: flex-start; padding: 54px 20px 140px; }
  .hero__media { display: none; }
  .about__grid, .not-ready__grid { grid-template-columns: 1fr; gap: 44px; }
  .booking { grid-template-columns: 1fr; }
  .booking__cal { border-right: 0; border-bottom: 1px solid var(--line); }
  .reviews__grid, .process__steps, .projects__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
}
@media (max-width: 600px) {
  .topbar__trust li:nth-child(2) { display: none; }
  .header__cta { display: none; }
  .service-cards__grid { grid-template-columns: 1fr; }
  .s-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .booking__cal, .booking__details { padding: 24px 18px; }
  .choice__grid { grid-template-columns: 1fr 1fr; }
  .slots__grid { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(0,0,0,.15);
  }
  .mobile-bar a { padding: 18px; text-align: center; color: #fff; font-weight: 700; text-decoration: none; }
  .mobile-bar__call { background: var(--primary); }
  .mobile-bar__quote { background: var(--accent); }
}
