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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #7EC8B8;
  color: #0A2342;
}

/* ── Navigation ── */
.nav-logo-color {
  color: #0A2342;
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #7EC8B8;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Hero Animations ── */
.hero-subtitle {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-title {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-desc {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-accent {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-scroll {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-active .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

.hero-active .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

.hero-active .hero-accent {
  opacity: 1;
  transform: translateY(0);
}

/* ── Image hover ── */
.hero-img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Section animations ── */
.section-label,
.section-title,
.section-desc {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-label.visible,
.section-title.visible,
.section-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reveal on scroll ── */
.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.visible {
  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; }

/* ── Mobile menu ── */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Bar animation ── */
#menuBtn.active #bar1 {
  transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active #bar2 {
  opacity: 0;
  width: 0;
}
#menuBtn.active #bar3 {
  transform: rotate(-45deg) translate(3px, -3px);
}

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

/* ── Smooth image loading ── */
img {
  display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FAFAF8;
}
::-webkit-scrollbar-thumb {
  background: #7EC8B8;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0A2342;
}

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-accent {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1.5rem;
    max-width: 100%;
  }

  .hero-image-wrapper {
    min-height: 350px;
  }
}

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

@media (min-width: 1280px) {
  .hero-title {
    font-size: 5.5rem;
  }
}
