/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(13, 148, 136, 0.15);
  color: #0f766e;
}

/* === Navigation === */
.navbar-scrolled #navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-link {
  color: #334155;
}

.navbar-scrolled .nav-logo-text {
  color: #0f172a;
}

.navbar-scrolled #menu-icon span {
  background: #334155;
}

.navbar-transparent .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.navbar-transparent .nav-logo-text {
  color: #ffffff;
}

.navbar-transparent #menu-icon span {
  background: #ffffff;
}

.nav-link:hover {
  color: #0d9488 !important;
}

/* === Mobile Menu === */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#menu-toggle[aria-expanded="true"] #bar1 {
  transform: translateY(5px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] #bar2 {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] #bar3 {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 1px;
  background: #0d9488;
  transition: transform 0.3s ease;
}

.mobile-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* === Menu Tabs === */
.menu-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  cursor: pointer;
}

.menu-tab.active {
  background: #0d9488;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

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

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* === Subtle hover on photo grid images === */
.overflow-hidden img {
  will-change: transform;
}

/* === Focus styles === */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Print === */
@media print {
  nav, #hero, .reveal { display: none; }
  body { color: #000; background: #fff; }
}
