/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ===== SCROLL REVEAL ===== */
.scroll-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);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#navbar.scrolled {
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
#navbar.scrolled .nav-link { color: rgba(255, 255, 255, 0.85); }
#navbar.scrolled .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
  display: block;
}
.mobile-nav-link:hover {
  color: #fff;
}

/* ===== SMOOTH SECTION TRANSITIONS ===== */
section {
  position: relative;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href^="tel"] {
  -webkit-tap-highlight-color: transparent;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #34d399; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #10b981; }

/* ===== SELECTION ===== */
::selection { background: rgba(52, 211, 153, 0.25); color: #0a2540; }

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== MAP CONTAINER ===== */
iframe {
  filter: saturate(0.8) contrast(1.05);
}
