/* Tree Removal Bakersfield CA — site styles
   Palette: canopy green, deep green, chainsaw orange, sage mist, heartwood tan.
   Type: Barlow Condensed (headings) + Barlow (text). */

:root{
  --canopy:#17402a;
  --deep:#0e2a1b;
  --saw:#f4631e;
  --saw-hover:#ff7b3a;
  --mist:#edf2ea;
  --ink:#15211a;
  --muted:#4b5a51;
  --line:#d3dbd1;
  --white:#fff;
  --error:#a8231b;
  --display:"Barlow Condensed","Arial Narrow","Roboto Condensed",Arial,sans-serif;
  --body:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --wrap:76rem;
  --gutter:clamp(1.25rem,4vw,2.5rem);
  --section:clamp(3.5rem,8vw,6rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:5.5rem}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important}
}
body{margin:0;font-family:var(--body);font-size:1.125rem;line-height:1.6;color:var(--ink);background:var(--white)}
img,svg{max-width:100%;display:block}
a{color:var(--canopy);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{color:var(--deep)}
:focus-visible{outline:3px solid var(--saw);outline-offset:2px;border-radius:3px}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.04;margin:0 0 .5em;text-wrap:balance}
h1{font-size:clamp(2.75rem,7.2vw,5.25rem);line-height:.95}
h2{font-size:clamp(2rem,4.4vw,3.125rem)}
h3{font-size:1.5rem;font-weight:600;line-height:1.15}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.2em}
[hidden]{display:none!important}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.skip{position:absolute;left:-999rem;top:0}
.skip:focus{left:1rem;top:1rem;z-index:100;background:#fff;color:var(--ink);padding:.6rem 1rem;border-radius:6px}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--body);font-weight:600;font-size:1.0625rem;line-height:1.2;padding:.85rem 1.4rem;border-radius:6px;border:2px solid transparent;text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
.btn-primary{background:var(--saw);border-color:var(--saw);color:var(--ink)}
.btn-primary:hover{background:var(--saw-hover);border-color:var(--saw-hover);color:var(--ink)}
.btn-ghost{background:transparent;border-color:var(--canopy);color:var(--canopy)}
.btn-ghost:hover{background:var(--canopy);color:#fff}
.on-dark .btn-ghost{border-color:rgba(255,255,255,.65);color:#fff}
.on-dark .btn-ghost:hover{background:#fff;border-color:#fff;color:var(--deep)}
.btn-block{width:100%}
.btn-lg{font-size:1.1875rem;padding:1rem 1.6rem}
.btn[disabled]{opacity:.65;cursor:progress}
.btn svg{width:1.1em;height:1.1em;flex:none}

/* ---------- Header ---------- */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;gap:1rem 1.25rem;min-height:4.5rem;flex-wrap:wrap}
.brand{order:1;display:flex;align-items:center;gap:.6rem;font-family:var(--display);font-weight:700;font-size:1.3125rem;color:var(--ink);text-decoration:none;white-space:nowrap}
.brand-text{display:grid;line-height:.98}
.brand-text span + span{color:var(--canopy)}
.brand:hover{color:var(--canopy)}
.brand svg{width:2.375rem;height:2.375rem;flex:none}
.nav{order:2;margin-left:auto}
.nav ul{display:flex;gap:.9rem;list-style:none;margin:0;padding:0}
.nav a{display:block;padding:.45rem 0;font-weight:500;font-size:1rem;color:var(--ink);text-decoration:none;border-bottom:2px solid transparent}
.nav a:hover,.nav a[aria-current=page]{border-bottom-color:var(--saw);color:var(--canopy)}
.header-cta{order:3;display:flex;gap:.85rem;align-items:center}
.header-phone{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;font-size:1rem;color:var(--ink);text-decoration:none;white-space:nowrap}
.header-phone svg{width:1.1rem;height:1.1rem;color:var(--saw)}
.header-phone:hover{color:var(--canopy);text-decoration:underline}
.header-cta .btn{padding:.6rem .85rem;font-size:1rem}
.nav-toggle{order:4;display:none;align-items:center;gap:.5rem;background:none;border:1.5px solid var(--line);border-radius:6px;padding:.5rem .75rem;font:inherit;font-weight:600;font-size:1rem;color:var(--ink);cursor:pointer}
.nav-toggle svg{width:1.25rem;height:1.25rem}

/* below this width the links collapse behind a Menu button (or stack, if scripts are off) */
@media (max-width:77.99rem){
  .header-cta{order:2;margin-left:auto}
  .nav-toggle{order:3}
  .nav{order:5;flex-basis:100%;margin:0 0 .75rem}
  .nav ul{flex-direction:column;gap:0}
  .nav a{padding:.8rem 0;border-bottom:1px solid var(--line)}
  .nav a:hover,.nav a[aria-current=page]{border-bottom-color:var(--line)}
  .js .nav-toggle{display:inline-flex}
  .js .nav{display:none}
  .js .nav.open{display:block}
}
@media (max-width:59.99rem){.header-phone{display:none}}
/* phones: the fixed bar at the bottom carries the quote and call buttons */
@media (max-width:47.99rem){
  .header-cta{display:none}
  .nav-toggle{margin-left:auto}
}
@media (max-width:25.99rem){
  .nav-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}

/* ---------- Home hero ---------- */
.hero{background:var(--deep);color:#fff;position:relative;overflow:hidden;isolation:isolate}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(2rem,5vw,4.5rem);align-items:center;padding-block:clamp(2.75rem,6.5vw,5rem)}
.hero h1{color:#fff;margin-bottom:.3em}
.hero .lead{font-size:clamp(1.1875rem,2vw,1.375rem);line-height:1.5;max-width:33rem;color:#e2ebe4;margin:0}
.ticks{list-style:none;padding:0;margin:1.6rem 0 0;display:grid;gap:.65rem}
.ticks li{display:flex;gap:.7rem;align-items:flex-start;font-weight:500;line-height:1.4}
.ticks li::before{content:"";flex:none;width:1.3rem;height:1.3rem;margin-top:.12rem;background:var(--saw);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 17.6 4 12.1l2.1-2.1 3.4 3.4L17.9 5 20 7.1z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 17.6 4 12.1l2.1-2.1 3.4 3.4L17.9 5 20 7.1z'/%3E%3C/svg%3E") center/contain no-repeat}
.hero-call{margin-top:1.75rem}
.hero-form{position:relative}
.hero-rings{position:absolute;z-index:-1;width:158%;max-width:none;left:50%;top:50%;transform:translate(-36%,-50%);pointer-events:none;user-select:none}

@media (max-width:57.99rem){
  .hero .wrap{grid-template-columns:minmax(0,1fr);padding-bottom:5.5rem}
  .hero-rings{width:min(46rem,190%);left:50%;top:100%;transform:translate(-30%,-48%)}
}

/* ---------- Quote form ---------- */
.quote-card{background:#fff;color:var(--ink);border-radius:10px;padding:clamp(1.25rem,3vw,2rem);box-shadow:0 22px 44px -20px rgba(4,18,10,.6)}
.quote-card h2{font-size:2.125rem;margin-bottom:.1em}
.quote-card .sub{color:var(--muted);font-size:1rem;margin-bottom:1.1rem}
.field{margin-bottom:.85rem}
.field label{display:block;font-weight:600;font-size:.9375rem;margin-bottom:.3rem}
.field .opt{font-weight:400;color:var(--muted)}
input,select,textarea{width:100%;font:inherit;font-size:1rem;line-height:1.4;color:var(--ink);background:#fff;border:1.5px solid #93a096;border-radius:6px;padding:.7rem .8rem;min-height:3rem}
select{appearance:none;-webkit-appearance:none;padding-right:2.4rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2315211a' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .8rem center;background-size:1rem}
textarea{min-height:5.25rem;resize:vertical}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(244,99,30,.5);outline-offset:0;border-color:var(--canopy)}
.row-2{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:.85rem}
.consent{font-size:.8125rem;line-height:1.45;color:var(--muted);margin:.8rem 0 0}
.form-status{margin:.8rem 0 0;font-weight:500;font-size:.9375rem;line-height:1.4}
.form-status:empty{display:none}
.form-status[data-state=error]{color:var(--error)}
.hp{position:absolute!important;left:-999rem!important;width:1px;height:1px;overflow:hidden}

/* ---------- Sections ---------- */
.section{padding-block:var(--section)}
.section-mist{background:var(--mist)}
.section-head{max-width:44rem;margin-bottom:clamp(1.5rem,4vw,2.75rem)}
.section-head h2{margin-bottom:.3em}
.section-head p{color:var(--muted);font-size:1.1875rem;margin:0}

/* services as a ruled list, not cards */
.service-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,5vw,4.5rem);border-top:2px solid var(--ink)}
.service-list li{border-bottom:1px solid var(--line)}
.service-list a{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;gap:.3rem 1.25rem;align-items:start;padding:1.4rem 0;text-decoration:none;color:inherit;height:100%}
.service-list h3{margin:0;font-size:1.875rem;font-weight:700}
.service-list p{grid-column:1;margin:0;color:var(--muted);font-size:1.0625rem;line-height:1.5}
.service-list .go{grid-column:2;grid-row:1 / span 2;align-self:center;width:2.5rem;height:2.5rem;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;transition:background-color .15s,border-color .15s}
.service-list .go svg{width:1rem;height:1rem}
.service-list a:hover h3{color:var(--canopy)}
.service-list a:hover .go{background:var(--saw);border-color:var(--saw)}
@media (max-width:47.99rem){.service-list{grid-template-columns:minmax(0,1fr)}}

/* numbered steps: the content is a real sequence */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.5rem,4vw,3.25rem);counter-reset:step}
.steps li{counter-increment:step;border-top:2px solid var(--ink);padding-top:1rem}
.steps li::before{content:counter(step);display:block;font-family:var(--display);font-weight:700;font-size:4rem;line-height:1;color:var(--saw);margin-bottom:.35rem}
.steps h3{font-size:1.625rem;font-weight:700;margin-bottom:.35em}
.steps p{margin:0;color:var(--muted)}
@media (max-width:47.99rem){.steps{grid-template-columns:minmax(0,1fr)}}

/* local knowledge + licence panel */
.local-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.75rem clamp(1.5rem,3vw,2.5rem)}
.facts h3{margin-bottom:.35em}
.facts p{margin:0;color:var(--muted);font-size:1.0625rem}
.panel{background:var(--deep);color:#e2ebe4;border-radius:10px;padding:clamp(1.5rem,3vw,2.25rem)}
.panel h2,.panel h3{color:#fff;font-size:2rem;font-weight:700;line-height:1.04;margin-bottom:.5em}
.panel ul{list-style:none;padding:0;margin:0 0 1.25rem;display:grid;gap:.8rem;font-size:1.0625rem;line-height:1.5}
.panel li{padding-left:1.1rem;border-left:3px solid var(--saw)}
.panel a{color:#fff;font-weight:600}
@media (max-width:57.99rem){.local-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:35.99rem){.facts{grid-template-columns:minmax(0,1fr)}}

/* tables */
.table-wrap{overflow-x:auto;margin-bottom:1rem}
table{border-collapse:collapse;width:100%;font-size:1.0625rem}
th,td{text-align:left;padding:.85rem 1.25rem .85rem 0;border-bottom:1px solid var(--line);vertical-align:top}
thead th{font-family:var(--display);font-size:1.3125rem;font-weight:700;border-bottom:2px solid var(--ink);white-space:nowrap}
tbody th{font-weight:600}
td.num{font-weight:600;white-space:nowrap}
.fineprint{font-size:.9375rem;color:var(--muted);max-width:46rem}
/* phones: each table row becomes a small stacked block */
@media (max-width:39.99rem){
  table,tbody,tr,th,td{display:block}
  thead{position:absolute;left:-999rem}
  tbody tr{padding:.9rem 0;border-bottom:1px solid var(--line)}
  tbody tr:first-child{border-top:2px solid var(--ink)}
  tbody th,tbody td{border:0;padding:0}
  tbody th{font-family:var(--display);font-size:1.375rem;font-weight:700;line-height:1.15}
  td.num{font-size:1.125rem;margin:.15rem 0 .3rem;color:var(--canopy)}
}

/* service areas */
.areas{list-style:none;margin:0 0 1.5rem;padding:0;columns:4 8.75rem;column-gap:1.5rem;font-weight:500}
.areas li{padding:.3rem 0;break-inside:avoid}

/* FAQ */
.faq{max-width:50rem;border-top:2px solid var(--ink)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1.25rem;align-items:center;padding:1.1rem 0;font-family:var(--display);font-weight:600;font-size:1.5rem;line-height:1.15}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:.85rem;height:.85rem;border-right:3px solid var(--saw);border-bottom:3px solid var(--saw);transform:translateY(-.2rem) rotate(45deg);margin-right:.4rem;transition:transform .2s}
.faq details[open] summary::after{transform:translateY(.15rem) rotate(-135deg)}
.faq .answer{padding:0 0 1.25rem;max-width:44rem}
.faq .answer p:last-child{margin-bottom:0}

/* closing call to action */
.cta-band{background:var(--canopy);color:#fff}
.cta-band .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem 2.5rem;padding-block:clamp(2.5rem,6vw,4rem)}
.cta-band h2{margin:0;color:#fff}
.cta-band p{margin:.5rem 0 0;color:#d5e1d7;max-width:36rem}
.cta-actions{display:flex;flex-wrap:wrap;gap:.75rem}

/* ---------- Inner pages ---------- */
.page-hero{background:var(--deep);color:#fff;position:relative;overflow:hidden;isolation:isolate}
.page-hero .wrap{padding-block:clamp(2.25rem,5vw,3.75rem)}
.page-hero h1{font-size:clamp(2.5rem,6vw,4.25rem);color:#fff;max-width:44rem;margin-bottom:.3em}
.page-hero .lead{max-width:40rem;font-size:clamp(1.125rem,1.9vw,1.3125rem);line-height:1.5;color:#e2ebe4;margin:0}
.page-hero .page-rings{position:absolute;z-index:-1;width:36rem;max-width:none;right:-13rem;top:50%;transform:translateY(-50%);pointer-events:none}
.crumbs{font-size:.9375rem;margin:0 0 1rem;color:#b7c7bb}
.crumbs a{color:#fff}
.crumbs span[aria-hidden]{margin-inline:.4rem}
@media (min-width:68rem){.page-hero .wrap > *{max-width:calc(100% - 24rem)}}
@media (max-width:67.99rem){.page-hero .page-rings{display:none}}

.layout{display:grid;grid-template-columns:minmax(0,1fr) 23.5rem;gap:clamp(2rem,5vw,4.5rem);align-items:start;padding-block:var(--section)}
.layout-single{grid-template-columns:minmax(0,1fr)}
/* the form follows the reader down the page, but only on screens tall enough to show all of it */
@media (min-width:58rem) and (min-height:52rem){.aside{position:sticky;top:5.5rem}}
.layout .quote-card{border:1px solid var(--line);box-shadow:0 18px 34px -24px rgba(4,18,10,.45)}
.aside .quote-card h2{font-size:1.875rem}
@media (max-width:57.99rem){.layout{grid-template-columns:minmax(0,1fr)}}

.prose{max-width:43rem}
.prose > :first-child{margin-top:0}
.prose h2{font-size:clamp(1.75rem,3.4vw,2.375rem);margin-top:1.7em}
.prose h3{margin-top:1.5em}
.prose li{margin-bottom:.45em}
.prose li::marker{color:var(--saw);font-weight:700}
.prose .faq{margin-top:1rem}
.prose .faq summary{font-size:1.375rem}
.callout{border-left:5px solid var(--saw);background:var(--mist);padding:1.1rem 1.25rem;margin:1.5rem 0;border-radius:0 8px 8px 0}
.callout p:last-child{margin-bottom:0}
.alert{background:#fff3ec;border:2px solid var(--saw);padding:1.1rem 1.25rem;border-radius:8px;margin:0 0 1.75rem}
.alert p:last-child{margin-bottom:0}
.next-links{list-style:none;padding:0;margin:1rem 0 0;display:flex;flex-wrap:wrap;gap:.6rem}
.next-links a{display:inline-block;padding:.5rem .9rem;border:1.5px solid var(--line);border-radius:999px;text-decoration:none;font-weight:500;font-size:1rem;color:var(--ink)}
.next-links a:hover{border-color:var(--canopy);color:var(--canopy)}

/* ---------- Footer ---------- */
.site-footer{background:var(--deep);color:#c9d7cd;font-size:1rem}
.site-footer .cols{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:2rem clamp(1.5rem,4vw,3rem);padding-block:clamp(2.5rem,6vw,3.75rem)}
.site-footer h2{font-size:1.3125rem;font-weight:600;color:#fff;margin-bottom:.7em}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:.45rem}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.site-footer .brand{color:#fff;margin-bottom:.9rem}
.site-footer .brand-text span + span{color:#e6cc9c}
.site-footer .about{max-width:24rem;margin:0}
.disclosure{border-top:1px solid rgba(255,255,255,.16);padding-block:1.25rem 1.5rem;font-size:.875rem;line-height:1.55;color:#a9bbae}
.disclosure p{margin:0 0 .5rem;max-width:62rem}
.disclosure p:last-child{margin:0}
@media (max-width:57.99rem){.site-footer .cols{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer .cols > :first-child{grid-column:1 / -1}}

/* ---------- Mobile action bar ---------- */
.mobile-bar{display:none}
@media (max-width:47.99rem){
  .mobile-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;gap:.6rem;padding:.6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 20px -14px rgba(0,0,0,.45)}
  .mobile-bar .btn{flex:1;padding:.8rem .5rem}
  body.has-bar{padding-bottom:4.75rem}
}

/* ---------- Simple centred pages (thank you, 404) ---------- */
.notice-page{padding-block:clamp(3.5rem,10vw,7rem)}
.notice-page .wrap{max-width:46rem}
.notice-page h1{font-size:clamp(2.75rem,7vw,4.5rem)}
.notice-page .lead{font-size:1.25rem;color:var(--muted);margin-bottom:2.25rem}
