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

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

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: #c9a84c;
  color: #1a2744;
}

/* ── Hero ── */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(12, 20, 34, 0.55) 0%,
    rgba(26, 39, 68, 0.70) 50%,
    rgba(12, 20, 34, 0.85) 100%
  );
}

/* Hero entrance animations — above the fold, content is visible by default */
#hero h1,
#hero .hero-subtitle,
#hero .hero-badge,
#hero .hero-ctas {
  opacity: 1;
  transform: none;
}

/* ── Scroll Reveal (below the fold only) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
}

.nav-text-color {
  color: #1a2744;
  transition: color 0.4s ease;
}

.nav-sub-text {
  color: #6783bf;
  transition: color 0.4s ease;
}

#navbar.scrolled .nav-text-color {
  color: #1a2744;
}

#navbar.scrolled .nav-sub-text {
  color: #8da2cf;
}

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 1;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

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

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.25rem;
}

/* ── Gallery Strip ── */
@media (prefers-reduced-motion: no-preference) {
  .gallery-strip {
    animation: gallery-scroll 40s linear infinite;
  }

  @keyframes gallery-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* ── Form Focus States ── */
input:focus,
textarea:focus {
  outline: none;
}

/* ── Smooth scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf8f4;
}

::-webkit-scrollbar-thumb {
  background: #d9e0ef;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b3c1df;
}

/* ── Print ── */
@media print {
  #navbar, #menu-btn, .hero-bg img { display: none; }
  body { color: #1a2744; background: white; }
  a { color: #1a2744; }
}
