/* Branching Out Tree Service: concept demo by JBWebsites.
   Look: the Jahforge Lawn Care template (paper background, forest green, system sans 700/800,
   pill buttons, rounded cards, dark-green ribbon and footer), with Branching Out's brand worked in:
   their logo orange replaces the template's yellow, their lime carries icons and accents. */
:root {
  --paper: #f6f8f3;    /* template */
  --ink: #16241b;      /* template */
  --forest: #123a20;   /* template brand-dark (also their flyers' dark green) */
  --forest-2: #1b4a2a;
  --orange: #e0802f;   /* Branching Out logo orange */
  --orange-hi: #ec9445;
  --lime: #6e9222;     /* Branching Out logo lime */
  --lime-ink: #4f6b18; /* lime darkened for small text on paper */
  --lime-hi: #a6cc4e;  /* lime for small text on forest */
  --mint: #eef3e6;
  --line: rgba(22, 36, 27, .12);
  --muted: rgba(22, 36, 27, .72);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 28px;
  --nav-h: 0px; /* transparent fixed nav over the hero */
  --accent: var(--orange);
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, figure, blockquote { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--forest); }
h1 { font-weight: 800; letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.12rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--ink); font-weight: 700; border-radius: 30px; transform: translateY(-300%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.confirm { display: inline-block; background: #ffe36b; color: #1a1400; font-size: .74rem; padding: 0 6px; font-weight: 700; border-radius: 4px; vertical-align: middle; }
.ico-phone { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pill buttons (template): orange fill, dark-green text */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 30px; border: 2px solid var(--orange); background: var(--orange); color: var(--forest);
  font: 700 .9rem/1.2 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.pill:hover { background: var(--orange-hi); border-color: var(--orange-hi); transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(224, 128, 47, .8); }
.pill--sm { padding: 8px 18px; font-size: .85rem; }
.pill--lg { padding: 15px 30px; font-size: 1.02rem; }
.pill--block { width: 100%; }
.pill--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.pill--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }

/* Demo ribbon (template: thin dark-green bar) */
.ribbon { position: relative; z-index: 70; background: var(--forest); color: #cfe0d3; text-align: center; font-size: .8rem; padding: 9px 18px; line-height: 1.45; }
.ribbon a { color: var(--orange-hi); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Nav: transparent over the hero, solid forest after */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.nav.is-set { background: rgba(18, 58, 32, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.nav__bar { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { flex-shrink: 0; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); }
.nav__links { display: none; gap: 28px; }
.nav__links a { color: #fff; font-size: .92rem; opacity: .9; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--orange-hi); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: none; align-items: center; gap: 8px; font-size: 1.18rem; font-weight: 800; color: #fff; white-space: nowrap; }
.nav__phone .ico-phone { color: var(--orange); }
.nav__phone:hover { color: var(--orange-hi); }
.nav__burger { width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.nav__burger span { width: 24px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.show-xs { display: none; }
@media (min-width: 1000px) { .nav__links { display: flex; } .nav__burger { display: none; } }
@media (min-width: 1180px) { .nav__phone { display: inline-flex; } }
@media (max-width: 480px) {
  .nav__bar { height: 70px; gap: 8px; }
  .brand img { height: 38px; }
  .nav__right { gap: 6px; }
  .nav .pill--sm { padding: 8px 12px; font-size: .8rem; }
  .hide-xs { display: none; } .show-xs { display: inline; }
  .nav__burger { width: 34px; }
  .ribbon { font-size: .72rem; padding: 7px 12px; }
}
.menu { position: fixed; inset: 0; z-index: 55; background: var(--forest); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu[hidden] { display: none; }
.menu a:not(.pill) { color: #fff; font-size: 1.7rem; font-weight: 700; padding: 6px 0; }
.menu .menu__call { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-hi); font-size: 1.6rem; margin-top: 18px; }
.menu .menu__text { font-size: 1.1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 0 0 6px; }
.menu .pill { margin-top: 20px; }

/* ===== Scroll-scrub hero: JBWebsites toolkit structure (hero-scrub.css), template styling ===== */
.hero { position: relative; height: 400vh; --p: 0; background: var(--forest); }
.hero__sticky {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  overflow: hidden; isolation: isolate; display: flex; align-items: center;
}
.hero__still, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 50% 50%); }
/* Muted grade: brightness + saturate only (contrast() amplifies compression noise) */
.hero__still, .hero__video { filter: brightness(.6) saturate(.75); }
.hero__still { z-index: -3; }
.hero__video { z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 46% at 50% 50%, rgba(10, 30, 16, .45) 0%, rgba(10, 30, 16, 0) 100%),
    linear-gradient(180deg, rgba(10, 30, 16, .55) 0%, rgba(10, 30, 16, 0) 26%),
    linear-gradient(0deg, rgba(10, 30, 16, .7) 0%, rgba(10, 30, 16, 0) 42%);
}
.hero__inner { padding-top: 84px; padding-bottom: 110px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; color: #fff; }
.hero__kicker { color: var(--orange-hi); font-size: .86rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: clamp(10px, 2vh, 18px); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, min(6.2vw, 10.5vh), 5rem); line-height: 1.05; max-width: 15ch; text-shadow: 0 6px 34px rgba(0, 0, 0, .45); }
.hero__lede { margin: clamp(12px, 2.6vh, 22px) 0 clamp(18px, 3.6vh, 30px); max-width: 46ch; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.3vw, 1.12rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__cta { box-shadow: 0 12px 34px -10px rgba(224, 128, 47, .8); }
/* Phone number: big and bold, readable for older visitors */
.hero__contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 26px; margin-top: clamp(14px, 2.4vh, 22px); }
.hero__call { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.45rem, min(2.4vw, 4.2vh), 2rem); font-weight: 800; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero__call .ico-phone { color: var(--orange); }
.hero__call span { text-decoration: underline; text-decoration-color: rgba(224, 128, 47, .8); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero__text { font-size: 1.12rem; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(166, 204, 78, .8); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero__swap { display: grid; margin-top: clamp(12px, 2.2vh, 20px); font-size: 1.02rem; font-weight: 600; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero__swap > p { grid-area: 1 / 1; transition: opacity .5s ease, transform .5s ease; }
.hero__payoff { opacity: 0; transform: translateY(8px); color: var(--orange-hi); }
.hero.is-done .hero__teaser { opacity: 0; }
.hero.is-done .hero__payoff { opacity: 1; transform: none; }
/* Template's "SCROLL" + thin line */
.hero__hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; transition: opacity .4s ease;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.hero__bar { display: block; width: 2px; height: 46px; background: rgba(255, 255, 255, .28); overflow: hidden; border-radius: 2px; }
.hero__bar span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); }
.hero.is-near-end .hero__hint { opacity: 0; }
.hero__toggle {
  position: absolute; right: var(--gutter); bottom: 30px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer;
}
.hero__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hero__toggle .i-play, .hero__toggle[aria-pressed="true"] .i-pause { display: none; }
.hero__toggle[aria-pressed="true"] .i-play { display: block; }
.hero.is-static { height: auto; }
.hero.is-static .hero__sticky { position: relative; min-height: 92svh; height: auto; padding: 120px 0 80px; }
.hero.is-static .hero__video, .hero.is-static .hero__hint, .hero.is-static .hero__toggle, .hero.is-static .hero__swap { display: none; }
@media (max-height: 700px) {
  .hero__hint { display: none; }
  .hero__inner { padding-bottom: 24px; padding-top: 76px; }
  .hero__swap { display: none; }
}
@media (max-height: 600px) { .hero__lede { display: none; } .hero__actions { margin-top: 18px; } }
@media (max-width: 760px) {
  .hero__lede { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .hero__kicker { font-size: .74rem; letter-spacing: .16em; }
}

/* Quick-link row under the hero (template) */
.quick { background: #fff; border-bottom: 1px solid var(--line); }
.quick__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 34px; padding-top: 18px; padding-bottom: 18px; }
.quick__row a:not(.pill) { font-weight: 600; color: var(--forest); }
.quick__row a:not(.pill):hover { color: var(--lime-ink); }

/* Sections */
.section { padding: 100px 0; }
.section--tint { background: #fff; }
.section--forest { background: linear-gradient(160deg, var(--forest-2), var(--forest)); color: #e6efe7; }
.section--forest h2 { color: #fff; }
@media (max-width: 700px) { .section { padding: 72px 0; } }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { margin-top: 10px; }
.section-head .lede { margin-top: 14px; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime-ink); }
.eyebrow--light { color: var(--lime-hi); }
.lede { color: var(--muted); font-size: 1.05rem; }
.section--forest .lede { color: rgba(230, 239, 231, .8); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Our Work: template's 3×2 mint card grid, filled with their photos */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work__card { background: var(--mint); border: 1px solid rgba(110, 146, 34, .22); border-radius: 14px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.work__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(18, 58, 32, .55); }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7d3; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work__card:hover .work__img img { transform: scale(1.05); }
.work__card figcaption { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 34px 18px 22px; }
.work__card figcaption strong { color: var(--forest); font-size: 1.05rem; }
.work__card figcaption > span:last-child { color: var(--muted); font-size: .9rem; }
.badge { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); border: 3px solid var(--mint); }
.badge svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work { grid-template-columns: 1fr; } }

/* Services: template's white cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; border-top: 4px solid var(--lime); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.svc:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -24px rgba(18, 58, 32, .5); }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 4fr 7fr; gap: 60px; align-items: center; }
.about__logo img { width: 100%; max-width: 340px; margin: 0 auto; }
.about__copy h2 { margin: 10px 0 16px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 2px; }
.facts strong { color: var(--forest); }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 30px; text-align: center; } .facts { text-align: left; } .about__logo img { max-width: 240px; } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.review { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 26px 24px; }
.stars { color: var(--orange-hi); letter-spacing: .12em; font-size: 1.05rem; }
.review blockquote { margin-top: 12px; color: rgba(255, 255, 255, .88); font-size: .97rem; }
.review figcaption { margin-top: 16px; font-weight: 700; color: #fff; }
.review figcaption span { display: block; font-weight: 400; font-size: .82rem; color: rgba(230, 239, 231, .65); }
.reviews__more { text-align: center; margin-top: 40px; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* Contact / estimate form */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.quote__intro h2 { margin: 10px 0 14px; }
.quote__phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--forest); }
.quote__phone .ico-phone { color: var(--orange); }
.quote__phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.quote__text { margin-top: 8px; }
.quote__text a { font-size: 1.15rem; font-weight: 700; color: var(--lime-ink); text-decoration: underline; text-underline-offset: 4px; }
.perks { list-style: none; padding: 0; margin: 26px 0 0; }
.perks li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--muted); position: relative; }
.perks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); transform: translateY(-50%); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px; box-shadow: 0 24px 60px -40px rgba(18, 58, 32, .5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--forest); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1.5px solid rgba(22, 36, 27, .2); border-radius: 10px; padding: 12px 14px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(110, 146, 34, .22); }
.field.is-invalid input { border-color: #c0392b; }
.form .pill:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin-top: 14px; font-size: .95rem; color: var(--muted); min-height: 1.5em; }
.form__note.is-ok { color: var(--lime-ink); font-weight: 600; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form { padding: 26px 18px; } .form__row { grid-template-columns: 1fr; gap: 0; } }

/* Service area + FAQ */
.area { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.area__intro h2 { margin: 10px 0 14px; }
.area__note { margin-top: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative; font-weight: 700; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--lime); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; gap: 30px; } }

/* Closing CTA: template's rounded green gradient card */
.cta-wrap { padding: 20px 0 100px; }
.section--tint + .cta-wrap { background: #fff; }
.cta { background: linear-gradient(135deg, #1f6b35, var(--forest)); color: #e6efe7; border-radius: 18px; padding: 60px 30px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { margin-top: 12px; color: rgba(230, 239, 231, .85); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* Footer (template: dark green, centred) */
.footer { background: var(--forest); color: rgba(230, 239, 231, .8); padding: 46px 0 40px; text-align: center; font-size: .92rem; }
.footer__inner { display: grid; justify-items: center; gap: 10px; }
.footer__logo { width: 210px; height: auto; margin-bottom: 6px; }
.footer strong { color: #fff; }
.footer__phone { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer__phone a:hover { color: var(--orange-hi); }
.footer__small { font-size: .78rem; color: rgba(230, 239, 231, .6); max-width: 60ch; }
.footer__small a { color: var(--orange-hi); text-decoration: underline; }

/* Phones: lift the hero hint/toggle a little */
@media (max-width: 820px) {
  .hero__hint, .hero__toggle { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
