/* Boyd's Land Clearing demo: component styles beyond Tailwind utilities.
   Colors mirror the tailwind.config tokens in index.html. Change both together. */

:root {
  --forest-950: #0E1A12;
  --forest-900: #14261A;
  --forest-700: #2A4A33;
  --blaze-500: #F26B1D;
  --blaze-700: #B4480C;
  --paper-50: #F7F4EE;
  --ink: #16201A;
}

html { scroll-behavior: smooth; }

/* Nav link with animated blaze underline */
.nav-link {
  position: relative;
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease-in-out;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blaze-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover { color: #FFFFFF; }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* Hero slow zoom */
.hero-img { animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Saturated band: angled bottom edge that overlaps the services section */
.band-angle { clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); position: relative; z-index: 2; margin-bottom: -4rem; }
@media (min-width: 768px) { .band-angle { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); margin-bottom: -6rem; } }

/* Outlined oversized background word */
.ghost-word {
  color: transparent;
  -webkit-text-stroke: 2px rgba(14, 26, 18, 0.16);
}
.ghost-word--light { -webkit-text-stroke: 2px rgba(255, 255, 255, 0.07); }

/* Review strip (dark section) */
.review-strip { scrollbar-width: thin; scrollbar-color: rgba(242, 107, 29, 0.5) transparent; scroll-padding-left: 1rem; }
/* Scroll padding matches the strip's side padding so snapping keeps the first quote in line with the heading */
@media (min-width: 640px) { .review-strip { scroll-padding-left: 2rem; } }
@media (min-width: 1024px) { .review-strip { scroll-padding-left: max(2.5rem, calc((100vw - 1280px) / 2 + 2.5rem)); } }
.review-quote {
  scroll-snap-align: start;
  flex: 0 0 min(85vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 1.75rem 0.25rem 0.5rem;
  border-top: 3px solid var(--blaze-500);
}
.review-quote p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.review-quote p::before {
  content: '\201C';
  display: block;
  margin-bottom: 0.5rem;
  font-size: 4rem;
  line-height: 0.6;
  font-weight: 900;
  color: var(--blaze-500);
  opacity: 0.6;
}
.review-quote footer { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: #FFFFFF; }
.review-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-950);
  background: var(--blaze-500);
}
.review-avatar--alt { color: #FFFFFF; background: var(--forest-700); }

/* Frosted glass panels (light background recipe) */
.glass-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  backdrop-filter: blur(40px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 32px -4px rgba(14, 26, 18, 0.18);
}
.glass-sheen {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  mix-blend-mode: overlay;
}
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--forest-900); }
.form-field {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(14, 26, 18, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field::placeholder { color: rgba(22, 32, 26, 0.42); }
.form-field:focus { border-color: var(--blaze-700); box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.28); }
.chip {
  border-radius: 9999px;
  background: rgba(42, 74, 51, 0.12);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest-900);
}

/* Mobile call bar: safe-area padding */
.call-bar { min-height: 3.5rem; padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-img, .group:hover .card-img { transition: none; transform: none; }
}
