/* ═══════════════════════════════════════════════════════════════
   OAK CITY — Page-specific extensions
   Patterns shared by service / city / blog pages
   ═══════════════════════════════════════════════════════════════ */

/* ── Technique / option cards (3-up) ──────────────────── */
.technique-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 36px 0;
}
.technique-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: border-color 0.25s, transform 0.3s, box-shadow 0.3s;
}
.technique-card:hover {
  border-color: rgba(52,211,153,0.30);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.technique-card .tc-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(52,211,153,0.10);
  border: 1px solid rgba(52,211,153,0.20);
  border-radius: 12px;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 18px;
}
.technique-card .tc-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.technique-card .tc-desc { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.technique-card .tc-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.20);
  padding: 4px 10px; border-radius: 100px;
}

/* ── Storm / pattern grid (emergency page) ────────────── */
.storm-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 30px 0;
}
.storm-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-md);
  padding: 22px;
}
.storm-card .sc-ico { font-size: 22px; margin-bottom: 10px; }
.storm-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.storm-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Reasons grid (stump grinding) ────────────────────── */
.reasons-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 28px 0;
}
.reason-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px 20px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.reason-card:hover { border-color: rgba(52,211,153,0.25); transform: translateY(-2px); }
.reason-card .r-ico {
  font-size: 24px; margin-bottom: 12px;
  display: inline-block;
}
.reason-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.reason-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Species / chip tile grid ─────────────────────────── */
.species-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 26px 0;
}
.species-chip {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.25s;
}
.species-chip:hover { border-color: rgba(52,211,153,0.25); }
.species-chip .s-ico { font-size: 22px; }
.species-chip .s-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.species-chip .s-meta { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }

/* ── Seasonal grid (trimming page) ────────────────────── */
.seasonal-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 28px 0;
}
.season-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px;
  position: relative;
}
.season-card .s-emoji { font-size: 22px; margin-bottom: 10px; display: block; }
.season-card .season-label {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.season-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.season-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Benefits grid ────────────────────────────────────── */
.benefits-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 28px 0;
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.benefit-card:hover { border-color: rgba(52,211,153,0.25); transform: translateY(-2px); }
.benefit-card .b-ico { font-size: 24px; margin-bottom: 12px; display: inline-block; }
.benefit-card h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.benefit-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Tag clusters (areas, neighborhoods) ──────────────── */
.tag-cluster {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0;
}
.tag-cluster .tag {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tag-cluster .tag:hover { border-color: rgba(52,211,153,0.30); color: var(--accent); background: rgba(52,211,153,0.04); }
.tag-cluster .tag-accent {
  background: rgba(52,211,153,0.08);
  border-color: rgba(52,211,153,0.25);
  color: var(--accent);
}

/* ── Blog / article specific ──────────────────────────── */
.article-figure {
  margin: 40px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-figure figcaption {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-style: italic;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .article-figure { margin: 28px 0; border-radius: var(--r-md); }
  .article-figure figcaption { padding: 12px 16px; font-size: 12.5px; }
}
.article-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin: 36px 0;
  position: relative;
}
.toc h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.toc ol {
  counter-reset: toc-c;
  list-style: none; margin: 0; padding: 0;
}
.toc li {
  counter-increment: toc-c;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: baseline; gap: 12px;
}
.toc li:last-child { border-bottom: none; }
.toc li::before {
  content: counter(toc-c, decimal-leading-zero);
  font-family: var(--serif); font-style: italic;
  color: var(--muted-2); font-size: 13px;
  min-width: 28px;
}
.toc a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.toc a:hover { color: var(--accent); }

/* Author / share strip */
.author-card {
  display: flex; align-items: center; gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  margin: 40px 0;
}
.author-card .av {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: #052213; font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}
.author-card .a-name { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.author-card .a-role { font-size: 13px; color: var(--muted); }

/* Inline quote / pullquote */
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  max-width: 64ch;
}

/* ── Owner / about hero ──────────────────────────────── */
.owner-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 40px;
  margin: 40px 0;
}
.owner-portrait {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52,211,153,0.20), rgba(52,211,153,0.05));
  border: 1px solid rgba(52,211,153,0.30);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  font-size: 96px; color: var(--accent);
  flex-shrink: 0;
  position: relative;
}
.owner-portrait::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(52,211,153,0.20);
  animation: owner-spin 60s linear infinite;
}
@keyframes owner-spin { to { transform: rotate(360deg); } }
.owner-block h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 32px; line-height: 1.1;
  margin-bottom: 6px;
}
.owner-block .role {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.owner-block p { color: var(--text-soft); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
@media (max-width: 768px) {
  .owner-block { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .owner-portrait { margin: 0 auto; width: 180px; height: 180px; font-size: 72px; }
}

/* ── Reviews / testimonial ────────────────────────────── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.review-card .stars { color: var(--accent); font-size: 14px; letter-spacing: 0.15em; margin-bottom: 14px; }
.review-card blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; line-height: 1.55;
  color: var(--text);
  margin-bottom: 18px;
}
.review-card cite {
  font-style: normal; font-weight: 600; font-size: 14px; color: var(--text);
  display: block;
}
.review-card .src { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

/* ── Hero accent (city/service pages) ─────────────────── */
.page-hero .hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-hero .hero-label::before {
  content: ''; width: 22px; height: 1px; background: var(--accent);
}
.page-hero .hero-label::after {
  content: ''; width: 22px; height: 1px; background: var(--accent);
}

/* ── Form (homepage) ─────────────────────────────────── */
.contact-split {
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 40px;
}
.form-card h3 {
  font-family: var(--serif); font-style: italic;
  font-size: 28px; line-height: 1.1;
  margin-bottom: 8px;
}
.form-card .form-sub { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(52,211,153,0.10);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #052213;
  border: none;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--accent-hi); transform: translateY(-1px); }

/* ── Contact info card ─────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 36px;
}
.contact-card h3 {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; margin-bottom: 24px;
}
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .ci {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(52,211,153,0.10);
  border: 1px solid rgba(52,211,153,0.20);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-row .label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2px;
}
.contact-row .value { font-size: 15px; color: var(--text); font-weight: 500; }
.contact-row a.value { color: var(--accent); }

/* Emergency card */
.emergency-card {
  background: linear-gradient(180deg, rgba(239,68,68,0.10), rgba(239,68,68,0.02));
  border: 1px solid rgba(239,68,68,0.30);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-top: 18px;
}
.emergency-card h3 {
  font-size: 18px; font-weight: 600;
  color: #fca5a5; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.emergency-card p { font-size: 14px; color: var(--text-soft); margin-bottom: 14px; line-height: 1.6; }
.emergency-card a {
  display: inline-block;
  background: var(--danger); color: #fff;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  transition: background 0.2s, transform 0.18s;
}
.emergency-card a:hover { background: #dc2626; transform: translateY(-1px); }

@media (max-width: 880px) {
  .contact-split {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .form-card,
  .contact-card,
  .emergency-card {
    padding: 28px 22px;
  }
  .form-card h3,
  .contact-card h3 {
    font-size: 2rem;
  }
  .contact-row {
    align-items: flex-start;
  }
  .contact-row .value,
  .contact-row a.value {
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .form-card,
  .contact-card,
  .emergency-card {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .form-card h3,
  .contact-card h3 {
    font-size: 1.8rem;
    line-height: 1.02;
  }
  .form-card .form-sub,
  .emergency-card p {
    font-size: 14px;
  }
  .contact-row {
    gap: 12px;
    padding: 12px 0;
  }
  .contact-row .ci {
    width: 38px;
    height: 38px;
  }
}

/* Tree-service 3D homepage hero */
.hero-home {
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-scroll: 0;
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 136px 24px 88px;
  overflow: hidden;
  isolation: isolate;
  perspective: 1800px;
}
.hero-home-bg,
.hero-home-veil,
.hero-home-grid,
.hero-home-aurora,
.hero-home-stage,
.hero-home-content {
  will-change: transform, opacity;
}
.hero-home-bg {
  position: absolute; inset: -4%;
  background-image: url('../../imgs/hero-front-yard-pro.jpeg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.34) saturate(1.08) contrast(1.1);
  z-index: -5;
  transform: translate3d(calc(var(--hero-shift-x) * 0.08), calc(var(--hero-shift-y) * 0.08), -120px) scale(1.14);
  animation: heroCanopyPan 24s ease-in-out infinite alternate;
}
.hero-home-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(110,231,183,0.18), transparent 30%),
    linear-gradient(180deg, rgba(4,8,7,0.12) 0%, rgba(4,8,7,0.54) 50%, rgba(4,8,7,0.96) 100%);
  z-index: -4;
}
.hero-home-grid {
  position: absolute; inset: -12%;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, transparent, black 28%, black 72%, transparent);
  opacity: 0.12;
  transform: rotateX(78deg) translate3d(calc(var(--hero-shift-x) * -0.2), calc(24vh + var(--hero-scroll) * 120px), -320px) scale(1.9);
  z-index: -3;
}
.hero-home-aurora {
  position: absolute;
  width: 42vw; height: 42vw;
  min-width: 320px; min-height: 320px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.46;
  z-index: -2;
  mix-blend-mode: screen;
}
.hero-home-aurora.aurora-a {
  top: 6%; left: -10%;
  background: radial-gradient(circle, rgba(52,211,153,0.36) 0%, rgba(52,211,153,0.10) 42%, transparent 72%);
  animation: canopyGlowA 14s ease-in-out infinite alternate;
}
.hero-home-aurora.aurora-b {
  top: 10%; right: -8%;
  background: radial-gradient(circle, rgba(156,255,196,0.28) 0%, rgba(52,211,153,0.09) 40%, transparent 74%);
  animation: canopyGlowB 16s ease-in-out infinite alternate;
}
.hero-home-stage {
  position: absolute;
  inset: 4% 4% 10%;
  z-index: -1;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: rotateX(calc(5deg + var(--hero-tilt-x) * 0.12)) rotateY(calc(var(--hero-tilt-y) * 0.15));
}
.hero-canopy,
.hero-trunk,
.hero-ground-plane,
.hero-branch,
.hero-rope,
.hero-service-totem,
.hero-float-card,
.hero-leaf-swarm,
.hero-leaf-swarm .leaf {
  position: absolute;
  transform-style: preserve-3d;
}
.hero-canopy {
  left: 50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(170,255,211,0.30), rgba(52,211,153,0.18) 38%, rgba(10,18,14,0.9) 72%);
  box-shadow: inset 0 -30px 80px rgba(0,0,0,0.35), 0 0 80px rgba(52,211,153,0.10);
}
.canopy-back {
  top: 10%; width: min(48vw, 580px); height: min(34vw, 390px);
  transform: translate3d(-50%, calc(var(--hero-shift-y) * -0.12 + var(--hero-scroll) * 50px), 10px);
  animation: canopySwayBack 10s ease-in-out infinite;
}
.canopy-mid {
  top: 16%; width: min(40vw, 500px); height: min(30vw, 340px);
  transform: translate3d(-50%, calc(var(--hero-shift-y) * -0.18 + var(--hero-scroll) * 68px), 80px);
  animation: canopySwayMid 8s ease-in-out infinite;
}
.canopy-front {
  top: 24%; width: min(32vw, 400px); height: min(24vw, 280px);
  transform: translate3d(-50%, calc(var(--hero-shift-y) * -0.24 + var(--hero-scroll) * 86px), 170px);
  animation: canopySwayFront 6.5s ease-in-out infinite;
}
.hero-trunk {
  top: 30%; left: 50%;
  width: min(8vw, 96px); height: min(44vh, 360px);
  border-radius: 999px;
  background: linear-gradient(180deg, #6f4b2e 0%, #4b321f 36%, #261a11 100%);
  box-shadow: inset 10px 0 16px rgba(255,255,255,0.04), inset -12px 0 18px rgba(0,0,0,0.26), 0 30px 70px rgba(0,0,0,0.28);
  transform: translate3d(-50%, calc(var(--hero-scroll) * 100px), 100px);
}
.hero-ground-plane {
  left: 50%; bottom: 4%;
  width: min(72vw, 900px); height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(52,211,153,0.22) 0%, rgba(17,44,31,0.44) 34%, rgba(4,9,8,0) 72%);
  transform: translate3d(-50%, calc(var(--hero-scroll) * 60px), 0) rotateX(82deg);
}
.hero-branch {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b2818, #6b4428 48%, #2e1f14);
  box-shadow: 0 12px 32px rgba(0,0,0,0.24);
}
.branch-a {
  top: 36%; left: 50%; width: min(20vw, 240px);
  transform: translate3d(-4%, calc(var(--hero-scroll) * 60px), 120px) rotate(-18deg);
}
.branch-b {
  top: 40%; left: 50%; width: min(18vw, 210px);
  transform: translate3d(-92%, calc(var(--hero-scroll) * 54px), 130px) rotate(18deg);
}
.hero-rope {
  width: 2px;
  background: linear-gradient(180deg, rgba(245,245,220,0.7), rgba(245,245,220,0.18));
  transform-origin: top center;
}
.rope-a {
  top: 32%; left: calc(50% + 120px); height: 180px;
  transform: translate3d(calc(var(--hero-shift-x) * 0.08), calc(var(--hero-scroll) * 90px), 150px) rotate(4deg);
  animation: ropeSwingA 4.5s ease-in-out infinite;
}
.rope-b {
  top: 30%; left: calc(50% - 140px); height: 150px;
  transform: translate3d(calc(var(--hero-shift-x) * -0.08), calc(var(--hero-scroll) * 80px), 150px) rotate(-5deg);
  animation: ropeSwingB 5.2s ease-in-out infinite;
}
.hero-float-card {
  width: min(23vw, 280px);
  min-width: 220px;
  padding: 20px 18px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(10,14,13,0.78), rgba(14,24,20,0.38));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-float-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text);
}
.hero-float-card span:last-child {
  display: block;
  font-size: 13px;
  color: rgba(243,241,234,0.72);
}
.hero-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 12px;
}
.hero-card-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 18px var(--accent-hi);
}
.hero-card-a {
  top: 18%; left: -1%;
  transform: translate3d(calc(var(--hero-shift-x) * -0.2), calc(var(--hero-shift-y) * -0.15 + var(--hero-scroll) * 34px), 180px) rotateY(14deg) rotateX(-6deg);
  animation: serviceCardA 7.5s ease-in-out infinite;
}
.hero-card-b {
  top: 18%; right: -1%;
  transform: translate3d(calc(var(--hero-shift-x) * 0.2), calc(var(--hero-shift-y) * -0.18 + var(--hero-scroll) * 40px), 200px) rotateY(-14deg) rotateX(-6deg);
  animation: serviceCardB 8.2s ease-in-out infinite;
}
.hero-card-c {
  bottom: 12%; right: 8%;
  transform: translate3d(calc(var(--hero-shift-x) * 0.18), calc(var(--hero-shift-y) * 0.12 + var(--hero-scroll) * 26px), 150px) rotateY(-10deg) rotateX(4deg);
  animation: serviceCardC 6.8s ease-in-out infinite;
}
.hero-service-totem {
  top: 43%; left: 50%;
  width: min(24vw, 250px);
  transform: translate3d(-50%, calc(var(--hero-scroll) * 70px), 220px);
}
.totem-panel {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(8,18,14,0.88), rgba(16,37,28,0.52));
  color: #e8fdf1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 20px 60px rgba(0,0,0,0.26);
}
.panel-a { transform: translate3d(0, 0, 120px) rotateX(6deg); }
.panel-b { transform: translate3d(24px, 18px, 80px) rotateX(6deg); }
.panel-c { transform: translate3d(-20px, 34px, 40px) rotateX(6deg); }
.hero-leaf-swarm {
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-leaf-swarm .leaf {
  top: -8%;
  width: 20px; height: 14px;
  border-radius: 90% 0 90% 0;
  background: linear-gradient(135deg, #d7ffd5, #5dc98b 38%, #1f7f50 100%);
  box-shadow: 0 0 24px rgba(110,231,183,0.18);
  opacity: 0.8;
}
.leaf-1 { left: 8%; animation: leafFall1 11s linear infinite; }
.leaf-2 { left: 18%; animation: leafFall2 13s linear -2s infinite; }
.leaf-3 { left: 28%; animation: leafFall3 9s linear -4s infinite; }
.leaf-4 { left: 42%; animation: leafFall1 12s linear -6s infinite; }
.leaf-5 { left: 56%; animation: leafFall2 10s linear -3s infinite; }
.leaf-6 { left: 68%; animation: leafFall3 14s linear -5s infinite; }
.leaf-7 { left: 76%; animation: leafFall1 10.5s linear -7s infinite; }
.leaf-8 { left: 84%; animation: leafFall2 12.5s linear -1s infinite; }
.leaf-9 { left: 90%; animation: leafFall3 8.8s linear -5.5s infinite; }
.leaf-10 { left: 48%; animation: leafFall2 11.4s linear -8.2s infinite; }
.hero-home-content {
  max-width: 980px;
  position: relative;
  z-index: 2;
  transform: translate3d(calc(var(--hero-shift-x) * 0.04), calc(var(--hero-shift-y) * 0.04 - var(--hero-scroll) * 30px), 220px);
}
.hero-home h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.98; letter-spacing: -0.04em;
  color: var(--text);
  margin: 22px 0 24px;
  text-wrap: balance;
  text-shadow: 0 12px 50px rgba(0,0,0,0.45);
}
.hero-home h1 .accent {
  color: #b2ffda;
  display: inline-block;
  text-shadow: 0 0 42px rgba(110,231,183,0.26);
}
.hero-home .typewriter {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-soft);
  margin-bottom: 36px;
  min-height: 1.6em;
  text-shadow: 0 8px 28px rgba(0,0,0,0.32);
}
.hero-home .typewriter .tw-text { color: #c9ffe8; }
.hero-home .typewriter .tw-cursor {
  display: inline-block;
  width: 2px; height: 1em; background: #c9ffe8;
  vertical-align: text-bottom; margin-left: 2px;
  animation: blink 0.7s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-home .hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-home .scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(243,241,234,0.42);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-home .scroll-cue::after {
  content: ''; width: 1px; height: 30px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cueDown 1.6s var(--ease-in-out) infinite;
}
@keyframes cueDown { 0% { transform: translateY(-10px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes heroCanopyPan {
  0% { transform: translate3d(calc(var(--hero-shift-x) * 0.08), calc(var(--hero-shift-y) * 0.08), -120px) scale(1.1); }
  100% { transform: translate3d(calc(var(--hero-shift-x) * -0.08), calc(var(--hero-shift-y) * -0.08), -120px) scale(1.18) rotate(-0.8deg); }
}
@keyframes canopyGlowA { 0% { transform: translate3d(-4%, -2%, 0) scale(1); } 100% { transform: translate3d(12%, 10%, 0) scale(1.16); } }
@keyframes canopyGlowB { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-14%, 9%, 0) scale(1.2); } }
@keyframes canopySwayBack { 0%,100% { transform: translate3d(-50%, calc(var(--hero-shift-y) * -0.12 + var(--hero-scroll) * 50px), 10px) rotate(-1deg); } 50% { transform: translate3d(-48%, calc(var(--hero-shift-y) * -0.12 + var(--hero-scroll) * 54px), 10px) rotate(1.4deg); } }
@keyframes canopySwayMid { 0%,100% { transform: translate3d(-50%, calc(var(--hero-shift-y) * -0.18 + var(--hero-scroll) * 68px), 80px) rotate(1deg); } 50% { transform: translate3d(-52%, calc(var(--hero-shift-y) * -0.18 + var(--hero-scroll) * 74px), 80px) rotate(-1.4deg); } }
@keyframes canopySwayFront { 0%,100% { transform: translate3d(-50%, calc(var(--hero-shift-y) * -0.24 + var(--hero-scroll) * 86px), 170px) rotate(-1.6deg); } 50% { transform: translate3d(-48%, calc(var(--hero-shift-y) * -0.24 + var(--hero-scroll) * 92px), 170px) rotate(1.8deg); } }
@keyframes ropeSwingA { 0%,100% { transform: translate3d(calc(var(--hero-shift-x) * 0.08), calc(var(--hero-scroll) * 90px), 150px) rotate(4deg); } 50% { transform: translate3d(calc(var(--hero-shift-x) * 0.08), calc(var(--hero-scroll) * 92px), 150px) rotate(-2deg); } }
@keyframes ropeSwingB { 0%,100% { transform: translate3d(calc(var(--hero-shift-x) * -0.08), calc(var(--hero-scroll) * 80px), 150px) rotate(-5deg); } 50% { transform: translate3d(calc(var(--hero-shift-x) * -0.08), calc(var(--hero-scroll) * 82px), 150px) rotate(2deg); } }
@keyframes serviceCardA { 0%,100% { transform: translate3d(calc(var(--hero-shift-x) * -0.2), calc(var(--hero-shift-y) * -0.15 + var(--hero-scroll) * 34px), 180px) rotateY(14deg) rotateX(-6deg); } 50% { transform: translate3d(calc(var(--hero-shift-x) * -0.2), calc(var(--hero-shift-y) * -0.15 + var(--hero-scroll) * 38px), 180px) rotateY(10deg) rotateX(-2deg) translateY(-16px); } }
@keyframes serviceCardB { 0%,100% { transform: translate3d(calc(var(--hero-shift-x) * 0.2), calc(var(--hero-shift-y) * -0.18 + var(--hero-scroll) * 40px), 200px) rotateY(-14deg) rotateX(-6deg); } 50% { transform: translate3d(calc(var(--hero-shift-x) * 0.2), calc(var(--hero-shift-y) * -0.18 + var(--hero-scroll) * 44px), 200px) rotateY(-10deg) rotateX(-2deg) translateY(-18px); } }
@keyframes serviceCardC { 0%,100% { transform: translate3d(calc(var(--hero-shift-x) * 0.18), calc(var(--hero-shift-y) * 0.12 + var(--hero-scroll) * 26px), 150px) rotateY(-10deg) rotateX(4deg); } 50% { transform: translate3d(calc(var(--hero-shift-x) * 0.18), calc(var(--hero-shift-y) * 0.12 + var(--hero-scroll) * 30px), 150px) rotateY(-6deg) rotateX(2deg) translateY(-14px); } }
@keyframes leafFall1 { 0% { transform: translate3d(0, 0, 200px) rotate(0deg); opacity: 0; } 8% { opacity: 0.8; } 100% { transform: translate3d(110px, 112vh, 20px) rotate(520deg); opacity: 0; } }
@keyframes leafFall2 { 0% { transform: translate3d(0, 0, 180px) rotate(40deg); opacity: 0; } 10% { opacity: 0.75; } 100% { transform: translate3d(-90px, 112vh, 30px) rotate(620deg); opacity: 0; } }
@keyframes leafFall3 { 0% { transform: translate3d(0, 0, 210px) rotate(-40deg); opacity: 0; } 8% { opacity: 0.82; } 100% { transform: translate3d(70px, 112vh, 10px) rotate(700deg); opacity: 0; } }

@media (max-width: 980px) {
  .hero-home-stage { inset: 8% 2% 12%; }
  .hero-float-card { width: min(34vw, 250px); min-width: 180px; padding: 16px 15px; }
  .hero-card-a { left: 1%; }
  .hero-card-b { right: 1%; }
  .hero-card-c { right: 8%; bottom: 12%; }
  .hero-service-totem { width: min(30vw, 220px); }
}
@media (max-width: 760px) {
  .hero-home { padding-top: 120px; }
  .hero-home-stage { inset: 14% 0 20%; overflow: hidden; }
  .hero-home-grid { opacity: 0.1; }
  .hero-float-card { display: none; }
  .hero-service-totem { top: 48%; width: min(46vw, 210px); }
  .canopy-back { width: min(78vw, 520px); height: min(50vw, 320px); }
  .canopy-mid { width: min(66vw, 430px); height: min(42vw, 270px); }
  .canopy-front { width: min(54vw, 330px); height: min(34vw, 220px); }
  .hero-home-veil {
    background:
      radial-gradient(circle at 50% 14%, rgba(110,231,183,0.12), transparent 28%),
      linear-gradient(180deg, rgba(4,8,7,0.26) 0%, rgba(4,8,7,0.72) 46%, rgba(4,8,7,0.98) 100%);
  }
  .hero-home h1 { text-shadow: 0 14px 56px rgba(0,0,0,0.62); }
  .hero-home .typewriter .tw-cursor { display: none; }
  .hero-home .btn,
  .hero-home .hero-actions .btn { width: 100%; }
  .hero-home .btn-ghost {
    background: rgba(10,10,11,0.68);
    border-color: rgba(255,255,255,0.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .hero-seo {
    max-width: 34ch;
    text-align: left;
    padding: 0 8px;
  }
  .hero-home .trust-row {
    width: 100%;
    justify-content: center;
    row-gap: 10px;
    padding: 4px 12px 24px;
  }
  .hero-home .scroll-cue {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero-home-stage { inset: 20% 0 22%; }
  .hero-home .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-service-totem { top: 50%; width: 56vw; }
  #contact.section { padding-top: 36px; }
}

/* Hero seo description */
.hero-seo {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 18px;
  line-height: 1.6;
}
.hero-seo a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(52,211,153,0.30); }

.svc-card,
.feature-card,
.card,
.stat-tile,
.technique-card,
.reason-card,
.benefit-card,
.season-card,
.species-chip {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.svc-card:hover,
.feature-card:hover,
.card:hover,
.stat-tile:hover,
.technique-card:hover,
.reason-card:hover,
.benefit-card:hover,
.season-card:hover,
.species-chip:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(calc(var(--tilt-x, 0deg) * -1));
  box-shadow: 0 26px 70px rgba(0,0,0,0.34), 0 0 0 1px rgba(110,231,183,0.12);
}

/* Section header (centered intro) */
.section-head {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-head .lead { margin: 14px auto 0; }

/* Article CTA - smaller version inline in articles */
.cta-inline {
  background: linear-gradient(180deg, rgba(52,211,153,0.06), rgba(52,211,153,0.02));
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin: 32px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.cta-inline .ci-text { flex: 1; min-width: 240px; }
.cta-inline h4 { font-family: var(--serif); font-style: italic; font-size: 22px; margin-bottom: 4px; }
.cta-inline p { font-size: 14px; color: var(--muted); margin: 0; }

/* Hero badges */
.page-hero .hero-badges .pill { font-size: 12px; }

/* Override: article paragraph not too tight after big elements */
.article > .pricing-table + h2,
.article > .callout + h2 { margin-top: 64px; }

/* Body class to gate page-hero spacing on emergency theme */
.theme-danger .page-hero::before {
  background:
    radial-gradient(1000px 600px at 50% 0%, rgba(239,68,68,0.10), transparent 60%),
    linear-gradient(180deg, rgba(239,68,68,0.04), transparent 70%);
}
.theme-danger .page-hero h1 .accent { color: #fca5a5; }
.theme-danger .cta-phone { color: #fca5a5; }

/* Print-friendly tweak (optional) */
@media print {
  .nav, .footer, .marquee, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home-bg,
  .hero-home-aurora,
  .hero-canopy,
  .hero-rope,
  .hero-float-card,
  .hero-leaf-swarm .leaf,
  .hero-home .scroll-cue::after {
    animation: none !important;
  }

  .hero-home,
  .hero-home-stage,
  .hero-home-content,
  .hero-home-bg,
  .hero-home-grid,
  .hero-float-card,
  .hero-service-totem,
  .hero-canopy,
  .hero-trunk {
    transform: none !important;
  }
}
