/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background-color: #1B4332;
  color: #F5F0E8;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
  background: #1B4332;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #143023;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-img {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-img.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ─── HERO REVEAL ─── */
.hero-reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.15s; }
.hero-reveal:nth-child(2) { animation-delay: 0.3s; }
.hero-reveal:nth-child(3) { animation-delay: 0.45s; }
.hero-reveal:nth-child(4) { animation-delay: 0.6s; }
.hero-reveal:nth-child(5) { animation-delay: 0.75s; }
.hero-reveal:nth-child(6) { animation-delay: 0.9s; }
.hero-reveal:nth-child(7) { animation-delay: 1.05s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── HEADER SCROLLED STATE ─── */
#site-header.scrolled {
  background-color: rgba(253, 252, 250, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

#site-header.scrolled .font-display {
  color: #1B4332;
}

/* ─── MOBILE MENU ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

#menu-toggle.active #bar-top {
  transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active #bar-mid {
  opacity: 0;
  width: 0;
}
#menu-toggle.active #bar-bot {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 6px;
}

/* ─── LINK UNDERLINE HOVER ─── */
a {
  text-decoration: none;
}

/* ─── INPUT FOCUS RING ─── */
input:focus,
textarea:focus {
  outline: none;
}

/* ─── IMAGE HOVER ─── */
img {
  display: block;
}

/* ─── RESPONSIVE TWEAKS ─── */
@media (max-width: 767px) {
  .font-display.text-5xl {
    font-size: 2.75rem;
    line-height: 1.05;
  }
  .font-display.text-4xl {
    font-size: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .font-display.text-5xl {
    font-size: 3rem;
  }
}

/* ─── PRINT ─── */
@media print {
  #site-header,
  #menu-toggle {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
