/* ============================================
   Smith Stevan a DDS — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(161, 22, 55, 0.15);
  color: #711731;
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(30, 24, 21, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(253, 242, 244, 0.06);
}

.nav-text {
  color: #fdf9f3;
}

.nav-link {
  color: #fdf9f3;
}

#navbar.scrolled .nav-text,
#navbar.scrolled .nav-link {
  color: #fdf9f3;
}

/* ---------- Hero ---------- */
.hero-content {
  opacity: 1;
  transform: none;
}

/* ---------- Services ---------- */
.service-card {
  opacity: 1;
  transform: none;
}

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

/* ---------- About ---------- */
.about-image {
  opacity: 1;
  transform: none;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal.revealed {
    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; }
}

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

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

.menu-line {
  background: #fdf9f3;
}

#navbar.scrolled .menu-line {
  background: #fdf9f3;
}

/* ---------- Map ---------- */
.leaflet-container {
  border-radius: 0;
}

/* ---------- Form ---------- */
.contact-form input,
.contact-form textarea {
  background: rgba(253, 249, 243, 0.6);
  border: 1px solid rgba(161, 22, 55, 0.15);
  color: #2c2420;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(161, 22, 55, 0.5);
  background: rgba(253, 249, 243, 0.9);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(44, 36, 32, 0.4);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
}

.form-success.show {
  display: block;
}

/* ---------- Smooth transitions ---------- */
a, button {
  transition: all 0.3s ease;
}

img {
  transition: transform 0.7s ease;
}

/* ---------- Utility ---------- */
.text-shadow {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
