/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(6, 78, 59, 0.2);
  color: #064e3b;
}

/* ── Mobile Menu ── */
.mobile-link {
  display: block;
}

/* ── Service Cards ── */
.service-card {
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ── Testimonial Cards ── */
.bg-cream-50.rounded-2xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ── Reduced motion fallback ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .aspect-square img,
  .aspect-\[4\/5\] img {
    transition: none;
  }
}

/* ── Header Shadow on Scroll ── */
#site-header.scrolled {
  box-shadow: 0 1px 12px rgba(6, 78, 59, 0.08);
}

/* ── Custom Select Arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ── Form Input Focus ── */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ── Smooth Image Loading ── */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* ── Print Styles ── */
@media print {
  #site-header,
  #mobile-menu,
  button,
  .service-card:hover {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #064e3b;
  }
}
