/* =============================================================
   Pedro's Lawn & Detail — stylesheet
   Mobile-first · Design tokens in :root · No build required
   Section map matches index.html and PLAN.md §5–§6.
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS                                     (PLAN §5)
   :root custom properties — colors, fonts, spacing, radii,
   shadows, transitions, layout limits.
   ------------------------------------------------------------- */
:root {
  /* Neutrals */
  --color-bg:            #FAFAF7;
  --color-bg-alt:        #F5F5F1;
  --color-surface:       #FFFFFF;
  --color-text:          #1F2933;
  --color-text-muted:    #52606D;
  --color-text-light:    #FAFAF7;
  --color-border:        #E4E7EB;
  --color-border-strong: #CBD2D9;

  /* Lawn Care (green) */
  --color-lawn:          #2D6A4F;
  --color-lawn-dark:     #1B4332;
  --color-lawn-light:    #95D5B2;
  --color-lawn-bg:       #EEF7F0;

  /* Car Detailing (slate) */
  --color-detail:        #334155;
  --color-detail-dark:   #1E293B;
  --color-detail-light:  #94A3B8;
  --color-detail-bg:     #F1F5F9;

  /* Shared CTA (amber) */
  --color-cta:           #F59E0B;
  --color-cta-dark:      #D97706;
  --color-cta-text:      #1F2933;

  /* Type */
  --ff-heading: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-base: 1rem;
  --fs-md:  1.125rem;
  --fs-lg:  1.25rem;
  --fs-xl:  1.5rem;
  --fs-2xl: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.4rem + 3vw, 3.25rem);

  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-normal: 1.6;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-card:  0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 14px 32px rgba(15, 23, 42, 0.14);
  --shadow-nav:   0 2px 12px rgba(15, 23, 42, 0.08);

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   150ms;
  --dur:        250ms;
  --dur-slow:   450ms;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    64px;
  --nav-height-lg: 76px;
}

/* -------------------------------------------------------------
   2. RESET + BASE
   Modern normalize, box-sizing, base typography, focus ring,
   reduced-motion override, image defaults.
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-4);
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; }

p {
  margin: 0 0 var(--sp-4);
}

a {
  color: var(--color-lawn-dark);
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25rem;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-lawn-light);
  color: var(--color-lawn-dark);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   .container, .section, .visually-hidden, .skip-link.
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section__title {
  text-align: center;
  margin-bottom: var(--sp-3);
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 42rem;
  margin: 0 auto var(--sp-7);
}

.accent-green { color: var(--color-lawn); }
.accent-slate { color: var(--color-detail-light); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 100;
  background: var(--color-cta);
  color: var(--color-cta-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* -------------------------------------------------------------
   4. BUTTONS
   .btn base + variants (--cta, --lawn, --detail, --ghost,
   --outline), sizes (--sm, --lg, --full).
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn:active {
  transform: translateY(0);
}

.btn--cta {
  background: var(--color-cta);
  color: var(--color-cta-text);
}
.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--color-cta-dark);
  color: var(--color-cta-text);
}

.btn--lawn {
  background: var(--color-lawn);
  color: var(--color-text-light);
}
.btn--lawn:hover,
.btn--lawn:focus-visible {
  background: var(--color-lawn-dark);
  color: var(--color-text-light);
}

.btn--detail {
  background: var(--color-detail);
  color: var(--color-text-light);
}
.btn--detail:hover,
.btn--detail:focus-visible {
  background: var(--color-detail-dark);
  color: var(--color-text-light);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-text-light);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-text-light);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  min-height: 36px;
}
.btn--lg {
  padding: 1.05rem 2rem;
  font-size: var(--fs-md);
}
.btn--full {
  display: flex;
  width: 100%;
}

/* -------------------------------------------------------------
   5. SCROLL REVEAL
   .reveal → .visible transition.
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------
   6. HEADER + NAV                                      (§6.2)
   .site-header, .brand, .nav-toggle (hamburger), .primary-nav
   (mobile slide-drawer → desktop horizontal).
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-height);
  /* No backdrop-filter here — it would make this element the containing
     block for position:fixed children (primary-nav), constraining the
     nav to the header's height instead of the full viewport. */
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
/* Frosted glass background lives in ::before so it doesn't affect
   the containing block of fixed descendants */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-nav);
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.94);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 100%;
  position: relative; /* sit above the ::before backdrop layer */
  z-index: 1;
}

/* Brand / logo mark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-text);
  text-decoration: none !important;
  font-family: var(--ff-heading);
  line-height: 1.1;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-lawn);
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 1.375rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand__text {
  display: flex;
  flex-direction: column;
}
.brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}
.brand__sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Hamburger */
.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur-fast) var(--ease);
  transform-origin: center;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Primary nav — mobile: slide-in drawer from right */
.primary-nav {
  position: fixed;
  top: 0;
  right: -100vw;   /* off-screen */
  bottom: 0;
  width: min(320px, 82vw);
  padding: calc(var(--nav-height) + 1.5rem) 1.5rem 2rem;
  background: var(--color-surface);
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: right var(--dur) var(--ease);
  /* Explicit z-index: Chrome treats fixed elements at root level.
     Must be high enough to overlay hero section (z-index:auto) and backdrop (9998). */
  z-index: 9999;
  overflow-y: auto;
}
.primary-nav.is-open {
  right: 0;
}
.primary-nav a {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none !important;
  min-height: 44px;
  line-height: 1.4;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--color-lawn-bg);
  color: var(--color-lawn-dark);
}
.primary-nav .btn {
  margin-top: 1rem;
}

/* Body scroll lock when drawer is open */
body.nav-open {
  overflow: hidden;
}

/* Backdrop — visual dimming only, pointer-events:none so nav links are never blocked */
#navBackdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: none;  /* pass all clicks through to the page; nav closes via document listener */
  animation: fade-in var(--dur) var(--ease);
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -------------------------------------------------------------
   7. HERO                                              (§6.3)
   .hero + .hero__bg + .hero__overlay + .hero__content
   + .hero__ctas + .hero__scroll indicator.
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--sp-7)) 0 var(--sp-8);
  color: var(--color-text-light);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../images/hero/hero-backyard-transformation.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.55) 0%,
      rgba(15, 23, 42, 0.65) 40%,
      rgba(27, 67, 50, 0.75) 100%
    );
}
.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 52rem;
}
.hero__eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__title {
  color: var(--color-text-light);
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-5);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.hero__title .accent-green {
  color: var(--color-lawn-light);
}
.hero__title .accent-slate {
  color: #E2E8F0;
}
.hero__lead {
  font-size: var(--fs-md);
  color: rgba(250, 250, 247, 0.92);
  margin-bottom: var(--sp-7);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-5);
  transform: translateX(-50%);
  color: rgba(250, 250, 247, 0.75);
  padding: var(--sp-2);
  border-radius: 50%;
  animation: hero-bounce 2.4s var(--ease) infinite;
}
.hero__scroll:hover,
.hero__scroll:focus-visible {
  color: var(--color-text-light);
}
@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* -------------------------------------------------------------
   8. SERVICES                                          (§6.4)
   .services__grid (2-up desktop, stacked mobile),
   .service card (--lawn green theme / --detail slate theme).
   ------------------------------------------------------------- */
.services {
  padding: var(--sp-9) 0;
  background: var(--color-bg);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.service {
  display: flex;
  flex-direction: column;
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: currentColor;
  opacity: 0.85;
  z-index: 2;
}

/* Full-bleed hero image at top of each service card */
.service__hero {
  margin:
    calc(-1 * var(--sp-7))
    calc(-1 * var(--sp-6))
    var(--sp-5);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}
.service__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.service:hover .service__hero img {
  transform: scale(1.03);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service--lawn {
  color: var(--color-lawn);
  background:
    linear-gradient(180deg, var(--color-lawn-bg) 0%, var(--color-surface) 45%);
}
.service--lawn:hover { border-color: var(--color-lawn-light); }
.service--detail {
  color: var(--color-detail);
  background:
    linear-gradient(180deg, var(--color-detail-bg) 0%, var(--color-surface) 45%);
}
.service--detail:hover { border-color: var(--color-detail-light); }

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: var(--sp-5);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: currentColor;
  box-shadow: var(--shadow-sm);
}
.service__title {
  color: var(--color-text);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}
.service__lead {
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
}
.service__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: grid;
  gap: var(--sp-2);
}
.service__list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text);
  font-size: var(--fs-sm);
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}
.service .btn {
  margin-top: auto;
}

/* -------------------------------------------------------------
   9. GALLERY                                           (§6.5)
   .gallery__filters (toolbar), .filter-btn (.is-active),
   .gallery__grid (masonry via CSS columns),
   .gallery__item + .gallery__label overlay.
   ------------------------------------------------------------- */
.gallery {
  padding: var(--sp-9) 0;
  background: var(--color-bg-alt);
}
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-7);
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--fs-sm);
  min-height: 40px;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.filter-btn:hover {
  border-color: var(--color-lawn);
  color: var(--color-lawn-dark);
}
.filter-btn.is-active {
  background: var(--color-lawn);
  color: var(--color-text-light);
  border-color: var(--color-lawn);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  text-decoration: none !important;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.gallery__item.is-hidden {
  display: none;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.gallery__item:hover img {
  transform: scale(1.04);
}
.gallery__empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--sp-7) 0;
}

/* -------------------------------------------------------------
   10. LIGHTBOX                                         (§6.5)
   Native <dialog> styling + backdrop + close/prev/next buttons.
   ------------------------------------------------------------- */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: var(--color-text-light);
}
.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__form {
  margin: 0;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  z-index: 2;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  transform: translateY(-50%) scale(1.05);
}
.lightbox__figure {
  margin: 0;
  padding: 4rem 4.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  max-width: 100%;
  max-height: 100%;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lightbox__caption {
  text-align: center;
  color: rgba(250, 250, 247, 0.9);
  font-size: var(--fs-sm);
  max-width: 40rem;
}

/* -------------------------------------------------------------
   11. WHY CHOOSE                                       (§6.6)
   .why__grid (1/2/3 columns responsive), .why__card, .why__icon.
   ------------------------------------------------------------- */
.why {
  padding: var(--sp-9) 0;
  background: var(--color-bg);
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.why__card {
  padding: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.why__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-lawn-light);
}
.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-lawn-bg);
  color: var(--color-lawn);
  margin-bottom: var(--sp-4);
}
.why__card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
  color: var(--color-text);
}
.why__card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------
   12. REVIEWS (placeholder)                            (§6.7)
   .reviews__grid, .review card, .review__stars (amber),
   .review__badge (muted "Placeholder review" corner tag).
   ------------------------------------------------------------- */
.reviews {
  padding: var(--sp-9) 0;
  background: var(--color-lawn-bg);
}
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.review {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.review:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.review__stars {
  display: flex;
  gap: 2px;
  color: var(--color-cta);
  margin-bottom: var(--sp-4);
  margin-top: var(--sp-2);
}
.review__quote {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--sp-4);
}
.review__attr {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin: 0;
}

/* -------------------------------------------------------------
   13. HOW IT WORKS                                     (§6.8)
   .how__steps (numbered), .how__num circle, .how__step.
   ------------------------------------------------------------- */
.how {
  padding: var(--sp-9) 0;
  background: var(--color-bg);
}
.how__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  counter-reset: how;
}
.how__step {
  text-align: center;
  padding: var(--sp-6) var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
}
.how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-lawn);
  color: var(--color-text-light);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.how__step h3 {
  margin-bottom: var(--sp-2);
}
.how__step p {
  color: var(--color-text-muted);
  margin: 0;
}

/* -------------------------------------------------------------
   14. SERVICE AREA                                     (§6.9)
   .area__inner centered layout, .area__pin icon.
   ------------------------------------------------------------- */
.area {
  padding: var(--sp-9) 0;
  background:
    linear-gradient(135deg, var(--color-lawn-dark) 0%, var(--color-lawn) 100%);
  color: var(--color-text-light);
  text-align: center;
}
.area__inner {
  max-width: 40rem;
  margin: 0 auto;
}
.area__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-light);
  margin-bottom: var(--sp-5);
}
.area .section__title {
  color: var(--color-text-light);
}
.area__lead {
  color: rgba(250, 250, 247, 0.9);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-6);
}

/* -------------------------------------------------------------
   15. CONTACT                                          (§6.10)
   .contact__grid (info left / form right on desktop),
   .contact__card, .contact__form, .form__group,
   .form__honey (visually hidden honeypot), .form__status.
   ------------------------------------------------------------- */
.contact {
  padding: var(--sp-9) 0;
  background: var(--color-bg-alt);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

/* Info column */
.contact__info {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.contact__card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact__card:hover {
  border-color: var(--color-lawn-light);
  box-shadow: var(--shadow-sm);
}

/* File uploader / drag-and-drop area */
.uploader {
  position: relative;
}
.uploader__input {
  /* Accessible-hidden: screen readers can reach it, label triggers it */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.uploader__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-4);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text-muted);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  display: flex; /* label needs explicit display since default is inline */
}
.uploader__area:hover,
.uploader__area.is-dragover {
  border-color: var(--color-lawn);
  background: var(--color-lawn-bg);
  color: var(--color-lawn-dark);
}
.uploader__browse {
  text-decoration: underline;
  font-weight: 600;
}
.uploader__icon {
  opacity: 0.7;
}
.uploader__prompt {
  margin: 0;
  font-weight: 600;
  color: inherit;
}
.uploader__note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.uploader__list {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 0;
  display: grid;
  gap: var(--sp-2);
}
.uploader__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--color-lawn-bg);
  border: 1px solid var(--color-lawn-light);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.uploader__name {
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-weight: 500;
  min-width: 0;
  flex: 1;
}
.uploader__size {
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.uploader__error {
  margin: var(--sp-2) 0 0;
  padding: var(--sp-2) var(--sp-3);
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm);
  color: #991B1B;
  font-size: var(--fs-sm);
}
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-lawn-bg);
  color: var(--color-lawn);
  flex-shrink: 0;
}
.contact__card-body h3 {
  font-size: var(--fs-base);
  margin: 0 0 var(--sp-1);
  color: var(--color-text);
}
.contact__card-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  overflow-wrap: break-word;
}
.contact__card-body a {
  color: var(--color-text);
  font-weight: 500;
}

/* Form column */
.contact__form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}
.contact__form-header {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}
.contact__form-header h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-1);
  color: var(--color-text);
}
.contact__form-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.contact__form {
  display: grid;
  gap: var(--sp-4);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.form__group label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.form__optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.8125rem;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.form__group input:hover,
.form__group select:hover,
.form__group textarea:hover {
  border-color: var(--color-text-muted);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-lawn);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.18);
}
.form__group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.form__group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2352606D'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form__hint {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  padding: var(--sp-3);
  background: var(--color-lawn-bg);
  border-left: 3px solid var(--color-lawn);
  border-radius: 4px;
}

.form__status {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.form__status.is-success {
  background: var(--color-lawn-bg);
  border: 1px solid var(--color-lawn-light);
  color: var(--color-lawn-dark);
}
.form__status.is-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

/* -------------------------------------------------------------
   16. FOOTER                                           (§6.11)
   .site-footer + .site-footer__brand/nav/meta layout.
   ------------------------------------------------------------- */
.site-footer {
  padding: var(--sp-8) 0 var(--sp-6);
  background: var(--color-detail-dark);
  color: rgba(250, 250, 247, 0.8);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.site-footer__brand .brand {
  color: var(--color-text-light);
}
.site-footer__brand .brand__name {
  color: var(--color-text-light);
}
.site-footer__brand .brand__sub {
  color: rgba(250, 250, 247, 0.55);
}
.site-footer__brand .brand__mark {
  background: var(--color-lawn-light);
  color: var(--color-lawn-dark);
}
.site-footer__tagline {
  margin-top: var(--sp-3);
  color: rgba(250, 250, 247, 0.65);
  font-size: var(--fs-sm);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}
.site-footer__nav a {
  color: rgba(250, 250, 247, 0.8);
  text-decoration: none !important;
  font-size: var(--fs-sm);
  padding: 0.25rem 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur) var(--ease);
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--color-text-light);
}
.site-footer__meta {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  font-size: var(--fs-xs);
  color: rgba(250, 250, 247, 0.55);
}
.site-footer__meta p {
  margin: 0 0 var(--sp-2);
}
.site-footer__attr {
  color: rgba(250, 250, 247, 0.4);
}

/* -------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   @media (min-width: 768px)  → tablet
   @media (min-width: 1024px) → desktop
   Layout overrides + typography scale-up.
   ------------------------------------------------------------- */

@media (min-width: 768px) {
  .site-header {
    height: var(--nav-height-lg);
  }

  /* Nav: horizontal on tablet+ */
  .nav-toggle {
    display: none;
  }
  .primary-nav {
    position: static;
    right: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-1);
    overflow: visible;
  }
  .primary-nav a {
    padding: 0.5rem 0.9rem;
    font-size: var(--fs-sm);
    min-height: 40px;
  }
  .primary-nav a:not(.btn):hover {
    background: transparent;
    color: var(--color-lawn-dark);
  }
  .primary-nav .btn {
    margin-top: 0;
    margin-left: var(--sp-3);
  }
  body.nav-open {
    overflow: auto;
  }
  body.nav-open::after {
    display: none;
  }

  /* Grids */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
  }
  .how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: var(--sp-7);
    align-items: start;
  }
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-8);
  }
  .site-footer__meta {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(88vh, 780px);
  }
  .hero__title {
    font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem);
  }

  .services__grid {
    gap: var(--sp-7);
  }
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact__form-wrap {
    padding: var(--sp-7);
  }
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
  }
  .site-footer__meta {
    grid-column: auto;
    text-align: right;
    padding-top: 0;
    border-top: 0;
  }
}

