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

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(45, 90, 61, 0.2);
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Navigation ── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

.nav-logo {
  transition: color 0.4s ease;
}

.nav-link {
  position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

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

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

.menu-line {
  display: block;
  transition: all 0.4s ease;
}

#menu-toggle.active .menu-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ── Hero ── */
.hero-eyebrow {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-headline {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-subtitle {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-btn,
.hero-link {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

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

.hero-image {
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

.hero-image-wrapper {
  position: relative;
}

/* Scroll line animation */
.scroll-line-fill {
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ── Eyebrow ── */
.eyebrow {
  position: relative;
  display: inline-block;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
}

/* ── Divider ── */
.divider-line {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.divider-line.visible {
  opacity: 1;
}

/* ── Reveal Animations ── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger children */
.reveal-up > * {
  transition-delay: 0.1s;
}

/* ── Form ── */
.form-input {
  width: 100%;
}

.form-input:focus {
  border-bottom-color: #2d5a3d;
}

.form-input::placeholder {
  color: #9bb89a;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #3a3028;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
}

.form-submit {
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  transition: left 0.5s ease;
}

.form-submit:hover::before {
  left: 0;
}

/* ── Gallery ── */
.gallery-img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up:hover .gallery-img {
  transform: scale(1.04);
}

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

  .hero-image-wrapper {
    margin-top: 2rem;
  }

  .hero-image-wrapper .aspect-\[4\/5\] {
    aspect-ratio: 4/3;
  }

  .eyebrow::before {
    display: none;
  }

  .lg\:col-span-7 .aspect-\[4\/5\] {
    aspect-ratio: 4/3;
  }
}

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

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #2d5a3d;
  outline-offset: 2px;
}

/* ── Print ── */
@media print {
  #navbar,
  #mobile-menu,
  .scroll-indicator {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
