/* ── 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 {
  display: block;
  max-width: 100%;
}

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

/* ── Section Label ──────────────────────────────────── */
.section-label {
  display: block;
}

/* ── Navbar ──────────────────────────────────────────── */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo {
  color: #134e4a;
}

#navbar.scrolled .nav-link {
  color: rgba(30, 41, 59, 0.65);
}

#navbar.scrolled .nav-link:hover {
  color: #134e4a;
}

#navbar.scrolled .nav-link::after {
  background: #0d9488;
}

#navbar.scrolled .mobile-link {
  color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled #menu-toggle {
  color: #134e4a;
}

/* ── Nav Links ──────────────────────────────────────── */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

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

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

/* ── Hero Animations ────────────────────────────────── */
.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-headline {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-desc {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.hero-cta {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Indicator ───────────────────────────────── */
.hero-scroll {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Reveal on Scroll ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  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.revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed:nth-child(3) { transition-delay: 0.2s; }

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

#mobile-menu a {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

#mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
#mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
#mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
#mobile-menu.open a:nth-child(5) { transition-delay: 0.32s; }

/* ── Form Styles ────────────────────────────────────── */
input:focus,
textarea:focus {
  border-bottom-color: #0d9488 !important;
}

input::placeholder,
textarea::placeholder {
  color: #cbd5e1;
}

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

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

  .reveal {
    transform: translateY(20px);
  }
}

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

@media (min-width: 1024px) {
  .hero-headline {
    font-size: 5.25rem;
  }
}
