/* San Antonio Tree Service — practice concept by Fahmora
   Static, dependency-free stylesheet. */

:root{
  --green-900:#0e2a1c;
  --green-800:#123c27;
  --green-700:#164a30;
  --green-600:#1d6340;
  --green-100:#e6efe8;
  --bark:#3c2f26;
  --orange:#d9601a;
  --orange-dark:#b94c10;
  --ink:#1b211d;
  --muted:#5b665e;
  --line:#dfe4de;
  --cream:#f7f6f1;
  --white:#ffffff;
  --radius:14px;
  --shadow-sm:0 1px 2px rgba(14,42,28,.08), 0 6px 18px rgba(14,42,28,.06);
  --shadow-md:0 10px 30px rgba(14,42,28,.12);
  --wrap:1180px;
  --font:"Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
  font-size:17px;
  line-height:1.6;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; height:auto; }
a{ color:var(--green-700); }
h1,h2,h3{ line-height:1.15; letter-spacing:-.02em; margin:0 0 .5em; font-weight:750; }
h1{ font-size:clamp(2rem, 5.4vw, 3.4rem); }
h2{ font-size:clamp(1.55rem, 3.4vw, 2.3rem); }
h3{ font-size:1.12rem; letter-spacing:-.01em; }
p{ margin:0 0 1rem; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:20px; }

/* ---------- Practice notice ---------- */
.practice-note{
  background:var(--green-900);
  color:#cfe0d4;
  font-size:.78rem;
  letter-spacing:.01em;
  text-align:center;
  padding:8px 16px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-weight:700; font-size:1rem; text-decoration:none; cursor:pointer;
  border-radius:10px; border:2px solid transparent;
  padding:.72rem 1.15rem; min-height:48px;
  transition:background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-call{ background:var(--orange); color:#fff; border-color:var(--orange); }
.btn-call:hover{ background:var(--orange-dark); border-color:var(--orange-dark); }
.btn-ghost{ background:transparent; color:var(--green-900); border-color:rgba(18,60,39,.35); }
.btn-ghost:hover{ background:var(--green-100); border-color:var(--green-700); }
.btn-outline{ background:#fff; color:var(--green-800); border-color:var(--line); }
.btn-lg{ font-size:1.05rem; padding:.9rem 1.5rem; min-height:54px; }
.btn-block{ width:100%; }
:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; border-radius:6px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:1rem; min-height:70px; }
.brand{ display:flex; align-items:center; gap:.65rem; text-decoration:none; color:var(--ink); margin-right:auto; }
.brand-mark{ color:var(--green-700); display:flex; }
.brand-text strong{ display:block; font-size:1.02rem; letter-spacing:-.02em; line-height:1.2; }
.brand-text span{ display:block; font-size:.74rem; color:var(--muted); letter-spacing:.03em; text-transform:uppercase; }
.site-nav{ display:none; gap:1.4rem; }
.site-nav a{ color:var(--ink); text-decoration:none; font-weight:600; font-size:.95rem; padding:.4rem 0; }
.site-nav a:hover{ color:var(--green-600); }
.header-call{ display:none; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:linear-gradient(180deg, #0e2a1c 0%, #123c27 58%, #17492f 100%);
  color:#f2f6f2;
  overflow:hidden;
  padding:2.6rem 0 2.8rem;
  isolation:isolate;
}
#tree-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none; opacity:0; transition:opacity 1.2s ease;
  display:block;
}
#tree-canvas.is-ready{ opacity:1; }
.hero-fallback{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 55% at 78% 28%, rgba(93,166,116,.35), transparent 70%),
    radial-gradient(45% 45% at 12% 82%, rgba(24,86,54,.55), transparent 70%);
}
.hero-silhouette{
  position:absolute; z-index:0; right:-6%; bottom:0; width:min(62%, 460px); height:78%;
  color:#7fc08f; opacity:.16; pointer-events:none; transition:opacity .6s ease;
}
.hero-silhouette svg{ width:100%; height:100%; }
.webgl-on .hero-silhouette{ opacity:0; }
.hero-grid{ position:relative; z-index:2; display:grid; gap:2rem; }
.hero-copy{ max-width:40rem; }
.hero-scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(178deg, rgba(9,26,17,.50) 0%, rgba(9,26,17,.70) 58%, rgba(9,26,17,.86) 100%);
}
.eyebrow{
  text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:700;
  color:#9dc9a9; margin:0 0 .7rem;
}
.hero h1{ color:#fff; }
.lede{ font-size:1.06rem; color:#d3e2d6; max-width:36em; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.7rem; margin:1.5rem 0 1.4rem; }
.hero .btn-ghost{ color:#eaf3ec; border-color:rgba(233,243,236,.45); }
.hero .btn-ghost:hover{ background:rgba(255,255,255,.1); border-color:#fff; }
.hero-trust{
  list-style:none; margin:0; padding:1rem 0 0; display:flex; flex-wrap:wrap; gap:.6rem 1.6rem;
  border-top:1px solid rgba(255,255,255,.18); font-size:.94rem; color:#cfe0d4;
}
.hero-trust li{ display:flex; align-items:center; gap:.4rem; }
.hero-trust strong{ color:#fff; }
.stars{ color:#f2b23c; display:inline-flex; align-items:center; gap:1px; }
.why-photo{ margin:0 0 .4rem; }
.why-photo img{
  border-radius:var(--radius); box-shadow:var(--shadow-md);
  aspect-ratio:16/10; object-fit:cover; width:100%;
}
.why-photo figcaption{ font-size:.72rem; color:#9db3a3; margin-top:.5rem; }

/* ---------- Sections ---------- */
.section{ padding:3.2rem 0; }
.section-tint{ background:var(--cream); }
.section-dark{ background:var(--green-800); color:#e7efe8; }
.section-dark h2, .section-dark h3{ color:#fff; }
.section-head{ max-width:44rem; margin-bottom:1.9rem; }
.section-sub{ color:var(--muted); font-size:1.02rem; margin:0; }
.section-sub.light{ color:#c3d6c8; }
.fineprint{ font-size:.78rem; color:var(--muted); margin-top:1.5rem; }

/* Cards */
.cards{ display:grid; gap:1.2rem; }
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column;
}
.card-media img{ aspect-ratio:3/2; object-fit:cover; width:100%; }
.card-body{ padding:1.15rem 1.15rem 1.3rem; display:flex; flex-direction:column; flex:1; }
.card-body p{ color:var(--muted); font-size:.97rem; }
.link-arrow{
  margin-top:auto; font-weight:700; text-decoration:none; font-size:.95rem;
  color:var(--green-600); display:inline-flex; gap:.35rem; align-items:center;
}
.link-arrow:hover{ color:var(--orange-dark); }

/* Why / expect */
.split{ display:grid; gap:2rem; }
.expect{ list-style:none; margin:0; padding:0; display:grid; gap:1.3rem; }
.expect h3{ margin-bottom:.25rem; }
.expect p{ margin:0; color:#bdd2c3; font-size:.96rem; }
.expect li{ padding-left:1rem; border-left:3px solid #2f7a51; }

/* Gallery */
.gallery{ display:grid; gap:.9rem; grid-template-columns:1fr; }
.gallery figure{ margin:0; position:relative; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); }
.gallery img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }
.gallery figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:.9rem;
  background:linear-gradient(180deg, transparent, rgba(9,26,17,.82));
  color:#fff; font-size:.85rem; font-weight:600;
}

/* Reviews */
.rating-band{ display:grid; gap:1.4rem; }
.rating-score{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:1.4rem; box-shadow:var(--shadow-sm); text-align:center;
}
.score{ display:block; font-size:3rem; font-weight:800; line-height:1; letter-spacing:-.03em; color:var(--green-800); }
.stars-lg{ margin:.5rem 0 .3rem; justify-content:center; }
.star-half{ opacity:.45; }
.rating-meta{ display:block; color:var(--muted); font-size:.9rem; margin-bottom:.8rem; }
.review-slots{ display:grid; gap:1rem; }
.review-slot{
  margin:0; background:#fff; border:1px dashed #c3cec6; border-radius:var(--radius);
  padding:1.2rem;
}
.review-slot p{ margin:0 0 .6rem; color:var(--muted); font-style:italic; }
.review-slot cite{ font-size:.78rem; color:#8a968e; font-style:normal; letter-spacing:.04em; text-transform:uppercase; }
.listings{ margin-top:1.8rem; border-top:1px solid var(--line); padding-top:1.3rem; }
.listings-title{ font-size:.88rem; color:var(--muted); margin-bottom:.7rem; }
.listings ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.listings li{
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:.35rem .85rem; font-size:.83rem; font-weight:600; color:var(--green-800);
}

/* CTA band */
.cta-band{ background:var(--green-900); color:#fff; padding:2.6rem 0; }
.cta-inner{ display:grid; gap:1.2rem; align-items:center; }
.cta-band h2{ color:#fff; margin-bottom:.35rem; }
.cta-band p{ color:#c3d6c8; margin:0; }

/* Contact */
.contact-grid{ display:grid; gap:2rem; }
.details{ margin:1.4rem 0 0; display:grid; gap:1rem; }
.details div{ border-top:1px solid var(--line); padding-top:.8rem; }
.details dt{ font-size:.74rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); font-weight:700; }
.details dd{ margin:.2rem 0 0; font-size:1.02rem; font-weight:600; }
.details a{ color:var(--green-700); }

.form-card{ background:var(--cream); border:1px solid var(--line); border-radius:var(--radius); padding:1.3rem; }
.demo-flag{
  background:#fff5e8; border:1px solid #f0d3ac; color:#7a4a13;
  font-size:.83rem; border-radius:10px; padding:.7rem .85rem; margin-bottom:1.1rem;
}
.field{ margin-bottom:1rem; }
label{ display:block; font-weight:650; font-size:.92rem; margin-bottom:.35rem; }
.optional{ font-weight:500; color:var(--muted); }
input, select, textarea{
  width:100%; font:inherit; font-size:1rem; color:var(--ink);
  padding:.75rem .8rem; min-height:48px;
  border:1px solid #ccd5ce; border-radius:10px; background:#fff;
}
textarea{ resize:vertical; min-height:110px; }
input:focus, select:focus, textarea:focus{ border-color:var(--green-600); outline:2px solid rgba(29,99,64,.25); outline-offset:0; }
input[aria-invalid="true"]{ border-color:#b3261e; }
.form-status{ font-size:.9rem; margin:.9rem 0 0; min-height:1.2em; }
.form-status.ok{ color:var(--green-700); font-weight:650; }
.form-status.err{ color:#b3261e; font-weight:650; }
.form-alt{ font-size:.9rem; color:var(--muted); margin:.8rem 0 0; text-align:center; }

/* Footer */
.site-footer{ background:var(--green-900); color:#c3d6c8; padding:2.6rem 0 1.5rem; font-size:.95rem; }
.footer-grid{ display:grid; gap:1.8rem; }
.site-footer a{ color:#e2efe5; text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.footer-brand{ color:#fff; font-weight:750; font-size:1.05rem; margin-bottom:.4rem; }
.footer-heading{ color:#fff; font-weight:700; font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:.5rem; }
.footer-heading.spaced{ margin-top:1.1rem; }
.site-footer nav a{ display:block; padding:.22rem 0; }
.footer-note{ border-top:1px solid rgba(255,255,255,.14); margin-top:1.8rem; padding-top:1.1rem; }
.footer-note p{ font-size:.78rem; color:#9db3a3; margin:0; }

/* Mobile call bar */
.mobile-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  display:flex; gap:.55rem; padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97); border-top:1px solid var(--line);
  box-shadow:0 -6px 18px rgba(14,42,28,.1);
}
.mobile-bar .btn{ min-height:50px; white-space:nowrap; }
.mobile-bar .btn-call{ font-size:.98rem; padding-inline:.7rem; }
.mobile-bar .btn-outline{ flex:0 0 auto; padding-inline:1.1rem; }
body{ padding-bottom:78px; }

/* ---------- Breakpoints ---------- */
@media (min-width:640px){
  .cards{ grid-template-columns:repeat(2,1fr); }
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .review-slots{ grid-template-columns:repeat(2,1fr); }
  .details{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:900px){
  body{ padding-bottom:0; }
  .mobile-bar{ display:none; }
  .site-nav{ display:flex; }
  .header-call{ display:inline-flex; }
  .hero{ padding:5rem 0 5.4rem; min-height:min(78vh, 680px); display:flex; align-items:center; }
  .hero-silhouette{ right:6%; width:min(42%, 420px); height:84%; }
  .hero-scrim{ background:linear-gradient(100deg, rgba(9,26,17,.88) 0%, rgba(9,26,17,.6) 40%, rgba(9,26,17,0) 70%); }
  .hero-grid{ width:100%; }
  .section{ padding:4.6rem 0; }
  .cards{ grid-template-columns:repeat(3,1fr); }
  .split{ grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
  .why-photo{ margin-top:2rem; }
  .expect{ grid-template-columns:1fr 1fr; gap:1.6rem; }
  .rating-band{ grid-template-columns:.8fr 1.2fr; align-items:start; }
  .rating-score{ text-align:left; }
  .stars-lg{ justify-content:flex-start; }
  .cta-inner{ grid-template-columns:1fr auto; gap:2rem; }
  .contact-grid{ grid-template-columns:1fr 1fr; gap:3.2rem; }
  .form-card{ padding:1.8rem; }
  .footer-grid{ grid-template-columns:1.6fr 1fr 1fr; }
  .gallery{ grid-template-columns:repeat(4, 1fr); grid-auto-rows:200px; }
  .gallery .g1{ grid-column:span 2; grid-row:span 2; }
  .gallery .g2{ grid-column:span 2; }
  .gallery .g3, .gallery .g4{ grid-column:span 1; }
  .gallery figure img{ aspect-ratio:auto; height:100%; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
@media print{
  .mobile-bar, #tree-canvas{ display:none; }
}
