/* ── Base & Utilities ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #060d1f;
  color: #ffffff;
  font-family: 'Space Sans', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: #2dd4bf;
  color: #0a1628;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .group svg {
  stroke: #2dd4bf;
}

/* ── Hero ── */
#hero {
  position: relative;
}

/* ── Buttons ── */
a {
  text-decoration: none;
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Map Filter Override ── */
iframe[src*="google.com/maps"] {
  border-radius: 0 0 1.5rem 1.5rem;
}

/* ── Image Hover ── */
img {
  display: block;
  max-width: 100%;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive Tweaks ── */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2.75rem;
    line-height: 1.05;
  }

  .lg\:col-span-5 {
    margin-top: 2rem;
  }

  .floating-card {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4rem;
  }
}

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

  .group:hover img {
    transform: none;
  }
}

/* ── Print ── */
@media print {
  #navbar, #mobile-menu, .reveal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
  }
}
