/* Base & Utilities */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #2D8B6E;
}

::selection {
  background: #A8E6CF;
  color: #0F4C75;
}

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

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15, 76, 117, 0.08);
}

/* Hero */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #A8E6CF, #0F4C75);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Condition cards */
.condition-card {
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.condition-card:hover {
  transform: translateY(-4px);
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile menu */
#mobile-menu {
  pointer-events: none;
}

#mobile-menu.open {
  pointer-events: all;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
  border-color: #A8E6CF !important;
  box-shadow: 0 0 0 4px rgba(168, 230, 207, 0.2) !important;
}

/* Button ripple on click */
button:active {
  transform: scale(0.98);
}

/* Map section */
section iframe {
  transition: filter 0.3s ease;
}

section iframe:hover {
  filter: saturate(0.5) brightness(1.0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* Print styles */
@media print {
  nav, #contact, .scroll-indicator {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
