/* Yard Boyz Lawn Care Service demo (re-skin of the lawn and yard care master): component styles beyond Tailwind utilities */

:root {
  --brand-dark: #1F1C18;
  --brand-dark-deep: #12100D;
  --brand-ink: #0B0A08;
  --brand-accent: #FFC83D;
  --brand-accent-bright: #FFD866;
  --brand-accent-deep: #8A5A00;
  --brand-ice: #FBF6EA;
}

html { scroll-behavior: smooth; }

.font-display { font-family: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif; letter-spacing: -0.03em; }

/* Typographic wordmark: YB in a round sun-yellow badge */
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  font-weight: 800;
  color: var(--brand-ink);
  background: var(--brand-accent);
  border-radius: 9999px;
  line-height: 1;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 3px var(--brand-ink), inset 0 0 0 5px var(--brand-accent);
}

/* Nav link with animated accent 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-accent);
  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(31, 28, 24, 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-accent);
  padding: 1.75rem 0.25rem 0.5rem;
  margin: 0;
}
.review-quote p {
  position: relative;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #2A2620;
}
.review-quote p::before {
  content: '\201C';
  display: block;
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  font-size: 4.5rem;
  line-height: 0.6;
  font-weight: 900;
  color: var(--brand-accent);
  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-dark); }
.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-dark);
  flex-shrink: 0;
  font-size: 15px;
}
.review-avatar--accent { background: #C2452D; }

/* 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(18, 16, 13, 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-dark); }
.form-field {
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  min-height: 3rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(31, 28, 24, 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(11, 10, 8, 0.4); }
.form-field:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.55); }
.chip {
  border-radius: 9999px;
  background: rgba(31, 28, 24, 0.08);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-dark);
}

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

/* Sample work frames (stock 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-dark);
  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-accent); }
.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-accent); color: #FFFFFF; }
.filter-btn[aria-pressed="true"] { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-ink); }
.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(11, 10, 8, 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(8, 7, 5, 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-accent); color: var(--brand-ink); }
.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; }
}

/* Sticker badge that overlaps the hero edge */
.sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 9999px;
  background: #C2452D;
  color: #FFFFFF;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.5);
  transform: rotate(-10deg);
}
/* Sample frames: paper border, slight tilt, straighten on hover */
.frame { background: #FBF6EA; padding: 10px 10px 0; border-radius: 14px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.frame:nth-child(odd) { transform: rotate(-2deg); }
.frame:nth-child(even) { transform: rotate(2deg) translateY(16px); }
.frame:hover { transform: rotate(0) translateY(-4px); }
.frame .work-item { border-radius: 8px; box-shadow: none; aspect-ratio: 4 / 3; height: auto; }
.frame .cap { padding: 10px 4px 12px; font-size: 0.8rem; font-weight: 700; color: #1F1C18; }
@media (prefers-reduced-motion: reduce) { .frame, .frame:hover { transform: none; transition: none; } }
