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

:root {
  --brand-navy: #0B1F3F;
  --brand-navy-deep: #071430;
  --brand-ink: #040B1C;
  --brand-red: #E23A2E;
  --brand-red-bright: #F2554A;
  --brand-red-deep: #A8231A;
  --brand-ice: #EEF3FA;
}

html { scroll-behavior: smooth; }

.font-display { font-family: 'Big Shoulders Display', 'Arial Narrow', Arial, sans-serif; letter-spacing: 0.005em; }

/* Typographic wordmark: AE monogram in a cut-corner red block */
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  font-weight: 900;
  color: #FFFFFF;
  background: var(--brand-red);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Nav link with animated red 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-red);
  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 40s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-ink);
}

/* 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(11, 31, 63, 0.3) 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-red);
  padding: 1.75rem 0.25rem 0.5rem;
  margin: 0;
}
.review-quote p {
  position: relative;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1D2638;
}
.review-quote p::before {
  content: '\201C';
  display: block;
  font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  font-size: 4.5rem;
  line-height: 0.6;
  font-weight: 900;
  color: var(--brand-red);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}
.review-quote footer { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--brand-navy); }
.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-navy);
  flex-shrink: 0;
  font-size: 15px;
}
.review-avatar--red { background: var(--brand-red); }

/* 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(7, 20, 48, 0.2);
}
.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-navy); }
.form-field {
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  min-height: 3rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(11, 31, 63, 0.18);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 1rem;
  color: var(--brand-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field::placeholder { color: rgba(4, 11, 28, 0.4); }
.form-field:focus { border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(226, 58, 46, 0.3); }
.chip {
  border-radius: 9999px;
  background: rgba(11, 31, 63, 0.08);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-navy);
}

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

/* Recent work mosaic (real client photos, shown at or below native size) */
.work-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
  background: var(--brand-navy);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  outline-offset: 4px;
}
.work-item picture { display: block; height: 100%; }
.work-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.work-item:hover img, .work-item:focus-visible img { transform: scale(1.05); }
.work-item:focus-visible { outline: 3px solid var(--brand-red); }
.filter-btn {
  min-height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--brand-red); color: #FFFFFF; }
.filter-btn[aria-pressed="true"] { background: var(--brand-red); border-color: var(--brand-red); color: #FFFFFF; }
.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(4, 11, 28, 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(2, 6, 16, 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-red); color: #FFFFFF; }
.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; }

@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; }
}
