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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(13, 148, 136, 0.2);
  color: #0f172a;
}

/* ─── Navigation ─── */
.nav-fixed {
  transition: box-shadow 0.3s ease;
}

.nav-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* ─── Mobile Menu ─── */
#mobileMenu {
  animation: slideDown 0.25s ease-out;
}

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

/* ─── Scroll Reveal Animations ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

/* ─── Button Ripple ─── */
button,
a[href] {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Image Loading ─── */
img {
  max-width: 100%;
  height: auto;
}

/* ─── Print Styles ─── */
@media print {
  .nav-fixed,
  #mobileMenu,
  .reveal {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  header {
    position: static !important;
  }
}
