/* ============================================
   STYLES.CSS — River City Tree Care
   Dark theme · Amber-gold dominant · Rugged outdoor
   ============================================ */

/* --- CSS Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- CSS Variables --- */
:root {
  /* Layout */
  --navbar-height: 80px;
  --max-width: 1200px;
  --content-width: 65ch;
  --section-pad: 80px 20px;
  --section-pad-mobile: 50px 16px;
  --radius: 8px;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Colors — River City Tree Care */
  --primary: #F0900A;
  --primary-dark: #C46800;
  --primary-rgb: 240, 144, 10;
  --secondary: #8B5E3C;
  --accent: #4A7C59;
  --text: #f0e6d9;
  --text-light: #b8a898;
  --text-dark: #1a1a1a;
  --bg: #18100A;
  --bg-alt: #1E1208;
  --bg-mid: #2A1F14;
  --bg-light: #ffffff;

  /* Elevation System */
  --elevation-1: 0 1px 3px rgba(0,0,0,0.25);
  --elevation-2: 0 4px 16px rgba(0,0,0,0.30);
  --elevation-3: 0 8px 28px rgba(0,0,0,0.40);
  --ember-glow: 0 0 24px rgba(240, 144, 10, 0.35);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* --- Skip-to-Content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-sm); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* --- Container Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
@media (max-width: 767px) {
  .container { padding-inline: var(--space-md); }
}

/* --- Prose Width --- */
.prose { max-width: var(--content-width); }
.prose-centered { max-width: var(--content-width); margin-inline: auto; }

/* --- Answer Block --- */
.answer-block {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: var(--space-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-xl) 0;
}

/* --- Eyebrow Label --- */
.eyebrow-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

/* --- Typography --- */
body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* --- Section Titles --- */
.section-title {
  margin-bottom: var(--space-lg);
  color: var(--text);
}
.section-subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: var(--space-2xl);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--primary);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 0 var(--primary-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--primary-dark);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-secondary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* Ripple effect (optional — add .ripple class to enable) */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid rgba(240, 144, 10, 0.15);
  transition: background var(--transition-slow), box-shadow var(--transition-slow), border-bottom var(--transition-slow);
}
.navbar.scrolled {
  background: rgba(24, 16, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 144, 10, 0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}
.nav-links a {
  color: rgba(240, 230, 217, 0.9);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}
.nav-links a[aria-current="page"] { color: var(--primary); }

.nav-phone {
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--transition);
}
.nav-phone:hover { color: #fff; }
.nav-phone i { font-size: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--navbar-height));
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  color: var(--text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .mobile-phone {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: var(--space-lg);
}

/* ============================================
   HERO — Ken Burns
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(24, 16, 10, 0.65);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}

/* Hero load animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  animation: heroFadeUp 0.7s ease forwards;
  opacity: 0;
}
.hero-h1-gradient {
  background: linear-gradient(135deg, #F0900A 0%, #FFB347 50%, #F0900A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-typed-wrap {
  display: block;
  min-height: 1.2em;
}
.hero-typed-wrap .typed-cursor {
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
}
.hero-subtitle {
  animation: heroFadeUp 0.7s ease 0.15s forwards;
  opacity: 0;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: var(--space-md);
  color: rgba(255,255,255,0.85);
}
.hero-cta {
  animation: heroFadeUp 0.7s ease 0.3s forwards;
  opacity: 0;
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}
.hero-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.hero-phone:hover { color: var(--primary); }
.hero-badges {
  animation: heroFadeUp 0.7s ease 0.45s forwards;
  opacity: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-2xl);
}

@media (max-width: 767px) {
  .hero { min-height: 75vh; }
}

/* ============================================
   TRUST BADGE STRIP
   ============================================ */
.badge-strip {
  background: var(--bg-alt);
  border-top: 1px solid rgba(240, 144, 10, 0.15);
  border-bottom: 1px solid rgba(240, 144, 10, 0.15);
}
.badge-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  padding-block: var(--space-lg);
}
.badge-strip .badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-strip .badge i {
  color: var(--primary);
  font-size: 1.1rem;
}
@media (max-width: 767px) {
  .badge-strip .container {
    gap: var(--space-md);
  }
  .badge-strip .badge {
    font-size: 0.75rem;
    flex: 0 0 auto;
  }
}

/* ============================================
   SERVICES GRID — Dark cards, amber accent
   ============================================ */
.services-section {
  background: var(--bg);
  padding: var(--section-pad);
}
.services-section .section-title { color: var(--primary); }

.service-card {
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  transition: box-shadow var(--transition-slow), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.service-card:hover {
  box-shadow: var(--ember-glow);
  transform: translateY(-4px);
}
.service-card .card-icon {
  font-size: 1.8rem;
  color: var(--primary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}
.service-card h3 a {
  color: inherit;
  transition: color var(--transition);
}
.service-card h3 a:hover { color: var(--primary); }
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-card .card-link {
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: auto;
  transition: gap var(--transition);
}
.service-card .card-link:hover { gap: var(--space-sm); }

/* ============================================
   BEFORE / AFTER — Signature Section
   ============================================ */
.before-after-section {
  background: var(--bg-alt);
  padding: var(--section-pad);
}
.before-after-section .section-title { color: var(--primary); }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}
.ba-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.ba-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: rgba(24, 16, 10, 0.85);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.ba-divider {
  display: none;
}
@media (max-width: 767px) {
  .ba-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .ba-panel { aspect-ratio: 16/10; }
}

/* ============================================
   STAT COUNTERS
   ============================================ */
.stats-section {
  background: var(--bg-mid);
  padding: var(--section-pad);
  border-top: 1px solid rgba(240, 144, 10, 0.1);
  border-bottom: 1px solid rgba(240, 144, 10, 0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.stat-counter {
  text-align: center;
  padding: var(--space-lg);
}
.stat-counter .stat-icon {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.stat-counter .stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--primary);
  line-height: 1;
}
.stat-counter .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT SNIPPET
   ============================================ */
.about-section {
  background: var(--bg-alt);
  padding: var(--section-pad);
}
.about-section .split {
  gap: var(--space-3xl);
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
}
.about-content h2 { color: var(--primary); margin-bottom: var(--space-lg); }
.about-content p {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}
.about-content p strong { color: var(--text); }

/* ============================================
   WORK GALLERY
   ============================================ */
.gallery-section {
  background: var(--bg);
  padding: var(--section-pad);
}
.gallery-section .section-title { color: var(--primary); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  background: var(--bg-mid);
  padding: var(--section-pad);
}
.faq-section .section-title { color: var(--primary); }
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid rgba(240, 144, 10, 0.15);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-align: left;
  padding: var(--space-lg) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question .chevron {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-question .chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
  color: #fff;
  padding: var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(240, 144, 10, 0.3);
  border-bottom: 2px solid rgba(240, 144, 10, 0.3);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  color: var(--primary);
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.cta-banner p {
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
}
.cta-banner .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}
.cta-banner .cta-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.cta-banner .cta-phone:hover { color: var(--primary); }

/* ============================================
   CARDS (generic)
   ============================================ */
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--elevation-2);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--ember-glow);
  transform: translateY(-4px);
}

/* ============================================
   TICKER STRIP
   ============================================ */
.ticker-strip {
  background: var(--bg-alt);
  color: var(--text);
  padding: var(--space-md) 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(240, 144, 10, 0.1);
  border-bottom: 1px solid rgba(240, 144, 10, 0.1);
}
.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}
.ticker-strip:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-xl);
  font-weight: 700;
  font-size: 0.9rem;
}
.ticker-item i { color: var(--primary); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   IMAGE REVEAL
   ============================================ */
.img-reveal {
  overflow: hidden;
  border-radius: var(--radius);
}
.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.grid-asym {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-xl);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split-reverse > :first-child { order: 2; }
.split-reverse > :last-child { order: 1; }

/* Grid children min-width */
.grid-2 > *, .grid-3 > *, .grid-asym > *, .split > *, .split-reverse > * {
  min-width: 0;
}

/* Grid collapse */
@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-asym { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .split, .split-reverse {
    grid-template-columns: 1fr;
  }
  .split-reverse > :first-child { order: 1; }
  .split-reverse > :last-child { order: 2; }
}

/* ============================================
   IMAGE COMPOSITION
   ============================================ */
.img-framed {
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
}
.img-shadow {
  box-shadow: var(--elevation-3);
  border-radius: var(--radius);
  overflow: hidden;
}
.img-overlap {
  position: relative;
}
.img-overlap::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
}

/* ============================================
   FLOATING LABEL FORM
   ============================================ */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  padding-top: var(--space-lg);
  border: 2px solid rgba(240, 144, 10, 0.2);
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}
.form-group label {
  position: absolute;
  top: 50%;
  left: var(--space-md);
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
  transition: all 0.2s ease;
}
.form-group textarea ~ label {
  top: var(--space-lg);
  transform: none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--primary);
  transform: none;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, clip-path 0.6s ease;
}
[data-animate="fade-up"] {
  transform: translateY(30px);
}
[data-animate="wipe-right"] {
  clip-path: inset(0 100% 0 0);
}
[data-animate].in-view {
  opacity: 1 !important;
  transform: none !important;
  clip-path: inset(0 0 0 0);
}

/* Image wrappers must always be visible regardless of animation state */
.gallery-item,
.ba-panel,
.about-img-wrap,
.service-img-wrap {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger grid children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-stagger] > *.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BACK-TO-TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--ember-glow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: var(--section-pad); }
@media (max-width: 767px) {
  section { padding: var(--section-pad-mobile); }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 var(--space-sm); }

/* ============================================
   LAST UPDATED
   ============================================ */
.last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: var(--space-lg);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-alt);
  color: var(--text);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 2px solid rgba(240, 144, 10, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
.footer-info h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}
.entity-block {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}
.entity-block a { color: var(--primary); }
.entity-block a:hover { text-decoration: underline; }
footer h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}
footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
footer ul a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color var(--transition);
}
footer ul a:hover { color: var(--primary); }
.footer-contact p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}
.footer-contact a {
  color: var(--primary);
  transition: color var(--transition);
}
.footer-contact a:hover { color: #fff; }
.social-icons {
  display: flex;
  gap: var(--space-md);
}
.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(240, 144, 10, 0.1);
  color: var(--primary);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}
.social-icons a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(240, 144, 10, 0.15);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-light);
}
.footer-bottom a {
  color: var(--text-light);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--primary); }

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE NAVBAR
   ============================================ */
/* ============================================
   SERVICE PAGES
   ============================================ */

/* Page header — used on services main + individual pages */
.page-header {
  background: var(--bg-alt);
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-bottom: 1px solid rgba(240, 144, 10, 0.12);
}
.page-header .breadcrumb {
  margin-bottom: var(--space-lg);
}
.page-header h1 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}
.page-header .lead {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: var(--content-width);
}
.page-header .lead a { color: var(--primary); }

/* Service intro section */
.service-intro {
  background: var(--bg);
  padding: var(--section-pad);
}
.service-intro h2 { color: var(--primary); margin-bottom: var(--space-lg); }
.service-intro p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.service-intro p strong { color: var(--text); }
.service-intro .split { gap: var(--space-3xl); }
.service-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Process steps */
.process-section {
  background: var(--bg-mid);
  padding: var(--section-pad);
}
.process-section h2 { color: var(--primary); margin-bottom: var(--space-lg); text-align: center; }
.process-section .section-subtitle { text-align: center; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.process-step {
  text-align: center;
  padding: var(--space-lg);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240, 144, 10, 0.15);
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}
.process-step h3 {
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.process-step p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Answer blocks on dark bg */
.service-intro .answer-block,
.service-content .answer-block {
  background: var(--bg-mid);
  border-left-color: var(--primary);
}
.answer-block h3 { color: var(--text); margin-bottom: var(--space-sm); font-size: 1.15rem; }
.answer-block p { color: var(--text-light); line-height: 1.7; }

/* Service content alt section */
.service-content {
  padding: var(--section-pad);
}
.service-content h2 { color: var(--primary); margin-bottom: var(--space-lg); }
.service-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.service-content p strong { color: var(--text); }

/* Scope/use-case list */
.scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.scope-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-light);
  line-height: 1.6;
  padding: var(--space-md);
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.scope-list li i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Comparison block (forestry mulching) */
.comparison-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}
.comparison-col {
  background: var(--bg-alt);
  padding: var(--space-xl);
  border-radius: var(--radius);
}
.comparison-col h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid rgba(240, 144, 10, 0.2);
}
.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.comparison-col ul li {
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.comparison-col ul li i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
@media (max-width: 767px) {
  .comparison-block { grid-template-columns: 1fr; }
}

/* Services main page grid (reuses .service-card from homepage) */
.services-main-grid {
  padding: var(--section-pad);
  background: var(--bg);
}
.services-main-grid .grid-3 { margin-top: var(--space-xl); }

/* Specialty callout box */
.callout-box {
  background: var(--bg-alt);
  border: 1px solid rgba(240, 144, 10, 0.2);
  border-radius: var(--radius);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}
.callout-box h3 { color: var(--primary); margin-bottom: var(--space-md); }
.callout-box p { color: var(--text-light); line-height: 1.7; }

/* Service page CTA mid-page variant */
.service-cta {
  background: var(--bg-alt);
  padding: var(--section-pad);
  text-align: center;
  border-top: 1px solid rgba(240, 144, 10, 0.12);
  border-bottom: 1px solid rgba(240, 144, 10, 0.12);
}
.service-cta h2 { color: var(--primary); margin-bottom: var(--space-md); }
.service-cta p {
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  font-size: 1.05rem;
}
.service-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}
.service-cta .cta-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.service-cta .cta-phone:hover { color: var(--primary); }

/* Related services links */
.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.related-services a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: var(--space-sm) var(--space-md);
  background: rgba(240, 144, 10, 0.08);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.related-services a:hover {
  background: rgba(240, 144, 10, 0.18);
}

/* ============================================
   RESPONSIVE NAVBAR
   ============================================ */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-phone.desktop-only { display: none; }
  .hamburger { display: flex; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}
