/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav-logo-text {
  transition: color 0.3s;
}

#navbar:not(.scrolled) .nav-logo-text {
  color: #1B4332;
}

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

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #52a83f;
  transition: width 0.3s;
}

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

#navbar:not(.scrolled) .nav-link {
  color: #f0f7ee;
}

#navbar:not(.scrolled) .nav-link:hover {
  color: #d9f99d;
}

#navbar:not(.scrolled) .nav-link::after {
  background: #d9f99d;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 1;
}

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

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

.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 5px;
  margin-left: 0;
  margin-right: 0;
}

/* ===== SCROLL REVEAL (below fold only, progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal[data-reveal="left"] {
    transform: translateX(-24px);
  }

  .reveal[data-reveal="right"] {
    transform: translateX(24px);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href="tel:12605690500"] {
  text-decoration: none;
}

/* ===== SELECTION ===== */
::selection {
  background: #d9f0d4;
  color: #1B4332;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #81c76e;
}
