/* =============================================
   Lord's Pressure Washing — Custom Styles
   Companion to Tailwind config in index.html
   ============================================= */

/* ── Global reset helpers ─────────────────── */
html {
  scroll-behavior: smooth;
  /* Prevent iOS from auto-scaling text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Safe area support for notched phones */
body {
  /* vh fallback → svh fixes iOS Safari address-bar overlap */
  min-height: 100vh;
  min-height: 100svh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Nav safe area */
#navbar {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ── Material Symbols ─────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  line-height: 1;
}

/* ── Custom utility classes ───────────────── */
.glass-header {
  background: rgba(8, 14, 29, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.shimmer-bg {
  background: linear-gradient(
    135deg,
    rgba(58, 223, 250, 0.05) 0%,
    rgba(8, 14, 29, 0) 50%,
    rgba(105, 156, 255, 0.05) 100%
  );
}

.primary-glow {
  box-shadow: 0 0 24px rgba(58, 223, 250, 0.25);
}

.text-glow {
  text-shadow: 0 0 16px rgba(58, 223, 250, 0.5);
}

/* ── Hero full-viewport height ────────────── */
/* svh = small viewport height, excludes iOS Safari chrome — no address bar bleed */
.hero-min-h {
  min-height: 100vh;
  min-height: 100svh;
}

/* ── Modal ────────────────────────────────── */
/* Safari requires -webkit- prefix for backdrop-filter */
.modal-backdrop {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Lock body scroll while modal is open.
   touch-action: none stops iOS Safari from scrolling behind the modal. */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

/* ── Scroll reveal animations ─────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a reveal section */
.reveal-section .reveal-item:nth-child(1) { transition-delay:   0ms; }
.reveal-section .reveal-item:nth-child(2) { transition-delay:  80ms; }
.reveal-section .reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal-section .reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal-section .reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-section .reveal-item:nth-child(6) { transition-delay: 400ms; }
.reveal-section .reveal-item:nth-child(7) { transition-delay: 480ms; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Footer credit ────────────────────────── */
.site-credit {
  font-size: 0.75rem;
  color: rgba(224, 229, 251, 0.35);
  letter-spacing: 0.04em;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.site-credit a {
  color: #3adffa;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-credit a:hover {
  opacity: 0.7;
}

/* ── Tap highlight removal on mobile ──────── */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ── Smooth image rendering ───────────────── */
img {
  image-rendering: auto;
}
