/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Hero gradient ────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #042f2e 0%, #134e4a 25%, #0f766e 50%, #1e293b 75%, #020617 100%);
}

/* ── Grain texture ────────────────────────────────── */
.hero-grain, .visit-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── Navigation ───────────────────────────────────── */
#site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.06);
}

/* ── Reveal animations (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ── Hero animations ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .hero-anim.hero-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .hero-anim:nth-child(1) { transition-delay: 0.2s; }
  .hero-anim:nth-child(2) { transition-delay: 0.45s; }
  .hero-anim:nth-child(3) { transition-delay: 0.7s; }
  .hero-anim:nth-child(4) { transition-delay: 0.95s; }
}

/* ── Mobile menu ──────────────────────────────────── */
#mobile-menu {
  animation: menuFadeIn 0.3s ease forwards;
}
@keyframes menuFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Thin line accents ────────────────────────────── */
section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #0d9488, transparent);
  margin-top: 1.25rem;
}

/* ── Form focus states ────────────────────────────── */
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px #14b8a6;
}

/* ── Selection color ──────────────────────────────── */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #134e4a;
}
</style>
