/* ==========================================================================
   Marietta Tree Removal — site-specific styles
   Palette: forest/emerald + charcoal, chartreuse leaf accent
   Typography: Oswald (display) + Roboto (body)
   ========================================================================== */

:root {
  --forest-900: #0d2a1e;
  --forest-800: #123c2b;
  --forest-700: #1a5240;
  --forest-600: #236b52;
  --charcoal:   #1b1f1d;
  --leaf:       #a3c539;
  --leaf-dark:  #8aa82f;
  --mist:       #f5f7f4;
}

html { scroll-behavior: smooth; }

body { font-family: 'Roboto', system-ui, -apple-system, sans-serif; }

.font-display { font-family: 'Oswald', 'Roboto', sans-serif; }

/* Uppercase condensed display treatment */
.display-head {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

/* --------------------------------------------------------------------------
   Skip link (accessibility)
   -------------------------------------------------------------------------- */
.skip-nav {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--leaf);
  color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
}
.skip-nav:focus { left: 0; }

/* --------------------------------------------------------------------------
   Emergency storm-line banner (sits above header)
   -------------------------------------------------------------------------- */
.stormline {
  background: var(--charcoal);
  border-bottom: 2px solid var(--leaf);
}
.stormline-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(163, 197, 57, 0.7);
  animation: stormpulse 2s infinite;
}
@keyframes stormpulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 197, 57, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(163, 197, 57, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 197, 57, 0); }
}

/* --------------------------------------------------------------------------
   Topographic / canopy texture for dark sections
   -------------------------------------------------------------------------- */
.canopy-bg {
  background-color: var(--forest-900);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(35, 107, 82, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(26, 82, 64, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(13, 42, 30, 0.6) 0%, transparent 55%);
}
.topo-lines {
  background-image:
    repeating-linear-gradient(135deg, rgba(163, 197, 57, 0.04) 0px, rgba(163, 197, 57, 0.04) 1px, transparent 1px, transparent 22px);
}

/* Charcoal storm callout */
.storm-bg {
  background-color: var(--charcoal);
  background-image:
    linear-gradient(180deg, rgba(18, 60, 43, 0.4) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
}

/* --------------------------------------------------------------------------
   Sticky header shadow-on-scroll
   -------------------------------------------------------------------------- */
.masthead {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.masthead.is-stuck {
  box-shadow: 0 6px 24px -12px rgba(13, 42, 30, 0.45);
}

/* Dropdown reveal */
.nav-drop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-parent:hover .nav-drop,
.nav-parent:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.drawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer.is-open { transform: translateX(0); }
body.drawer-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   Numbered service rows (homepage)
   -------------------------------------------------------------------------- */
.svc-index {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--leaf-dark);
  letter-spacing: -0.02em;
}
.svc-row:hover .svc-index {
  -webkit-text-stroke: 2px var(--leaf);
}

/* --------------------------------------------------------------------------
   Lift tile hover
   -------------------------------------------------------------------------- */
.lift-tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lift-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(13, 42, 30, 0.5);
}

/* Chartreuse CTA glow */
.btn-leaf {
  background: var(--leaf);
  color: var(--charcoal);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-leaf:hover {
  background: #b4d44f;
  box-shadow: 0 12px 28px -12px rgba(163, 197, 57, 0.7);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.is-active .accordion-panel {
  max-height: 520px;
}
.accordion-item.is-active .accordion-sign {
  transform: rotate(45deg);
  background: var(--forest-700);
  color: #fff;
}
.accordion-sign { transition: transform 0.25s ease, background-color 0.25s ease; }

/* --------------------------------------------------------------------------
   Numbered process markers
   -------------------------------------------------------------------------- */
.phase-num {
  font-family: 'Oswald', sans-serif;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Left accent bar for callout lists */
.rule-leaf {
  border-left: 3px solid var(--leaf);
}
