/* ===== 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: #86efac;
  color: #0a2540;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    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);
  }
  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ===== NAV ===== */
#nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(110, 231, 183, 0.2);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(10, 37, 64, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #22c55e;
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* ===== MOBILE MENU ===== */
.menu-line {
  transition: all 0.3s ease;
}

#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) {
  width: 20px;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f0fdf4;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #22c55e;
}

/* ===== HERO ===== */
#hero {
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #fef9f0 50%, #e0f2fe 100%);
  z-index: 0;
}

/* ===== BUTTONS ===== */
a[href^="tel:"] {
  text-decoration: none;
}

/* ===== CARDS ===== */
@media (prefers-reduced-motion: no-preference) {
  .group:hover .w-14 {
    transform: scale(1.05);
  }
}

/* ===== MAP ===== */
iframe {
  filter: saturate(0.8) brightness(1.02);
}

/* ===== FORM ===== */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== MISC ===== */
img {
  max-width: 100%;
  height: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #86efac;
}
