/* Family Rooted Lawncare demo (re-skin of the lawn and yard care master): component styles beyond Tailwind utilities */

:root {
  --brand-green: #1E4416;
  --brand-green-deep: #0C2309;
  --brand-gold: #EDA93A;
  --brand-gold-deep: #9A5B10;
  --brand-brown: #4A2410;
  --brand-brown-deep: #2A1408;
  --brand-cream: #FBF3E0;
  --brand-ink: #1C140C;
}

html { scroll-behavior: smooth; }

.font-display { word-spacing: 0.06em; font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-optical-sizing: auto; }

/* Nav link with animated gold underline */
.nav-link {
  position: relative;
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease-in-out;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}
.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); } }

/* Marquee band */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  gap: 1.5rem;
  padding-left: 1.5rem;
  animation: marquee 38s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-brown-deep);
}

/* Angled full-bleed band */
.angled { clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); margin: -2.5rem 0; position: relative; z-index: 1; }
.parallax-img { top: -10%; will-change: transform; }

/* Image hover zoom */
.zoom-img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.zoom-img:hover { transform: scale(1.05); }

/* Review strip */
.review-strip { scrollbar-width: thin; scrollbar-color: rgba(74, 36, 16, 0.35) transparent; }
.review-quote {
  scroll-snap-align: start;
  flex: 0 0 min(85vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 3px solid var(--brand-gold);
  padding: 1.75rem 0.25rem 0.5rem;
  margin: 0;
}
.review-quote p {
  position: relative;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #2B2016;
}
.review-quote p::before {
  content: '\201C';
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 4rem;
  line-height: 0.6;
  font-weight: 900;
  color: var(--brand-brown);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}
.review-quote footer { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--brand-green); }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--brand-green);
  flex-shrink: 0;
  font-size: 15px;
}
.review-avatar--gold { background: var(--brand-gold); color: var(--brand-brown-deep); }

/* Frosted glass panels (light background recipe) */
.glass-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.6);
  -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(42, 20, 8, 0.16);
}
.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(--brand-green); }
.form-field {
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  min-height: 3rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(42, 20, 8, 0.15);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  color: var(--brand-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field::placeholder { color: rgba(28, 20, 12, 0.4); }
.form-field:focus { border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(30, 68, 22, 0.25); }
.chip {
  border-radius: 9999px;
  background: rgba(30, 68, 22, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-green);
}

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

/* Recent work wall (real client photos: 382x510 portraits and one 680x510 landscape, shown at or below native size) */
.work-item {
  position: relative;
  display: block;
  width: 100%;
  max-width: 382px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  cursor: zoom-in;
  background: var(--brand-green);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  outline-offset: 4px;
}
.work-item--wide { max-width: 680px; }
.work-item img { display: block; width: 100%; height: auto; aspect-ratio: 382 / 510; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.work-item--wide img { aspect-ratio: 680 / 510; }
.work-item:hover img, .work-item:focus-visible img { transform: scale(1.05); }
.work-item:focus-visible { outline: 3px solid var(--brand-gold); }
.work-item .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  text-align: left;
  background: linear-gradient(to top, rgba(12, 35, 9, 0.92), transparent);
}

/* Lightbox (MD-Regulation-1 Chapter 9) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  background: rgba(0, 0, 0, 0.96);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lightbox-stage { overflow: hidden; border-radius: 16px; max-width: 100%; line-height: 0; }
.lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  pointer-events: none;
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  transition: transform 0.25s ease-out;
}
.lightbox-stage.is-zoomed img { transform: scale(2.5); }
.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.2s;
}
.lightbox-btn:hover { background: var(--brand-gold); color: var(--brand-brown-deep); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox { padding-bottom: 5rem; }
}

/* 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; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .zoom-img, .zoom-img:hover, .work-item img, .work-item:hover img { transition: none; transform: none; }
  .parallax-img { transform: none !important; }
}
