/* ═══════════════════════════════════════════════════════
   SOUTH STRAND ORAL SURGERY — Custom Styles
   Premium Dark Luxury · Forest Green + Gold
   ═══════════════════════════════════════════════════════ */

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

body {
  background-color: #040a06;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040a06;
}
::-webkit-scrollbar-thumb {
  background: #1e4f28;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8a44e;
}

/* ── Selection ── */
::selection {
  background: rgba(200, 164, 78, 0.3);
  color: #faf8f4;
}

/* ── Animations ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(0.3deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 164, 78, 0.2); }
  50% { box-shadow: 0 0 30px 5px rgba(200, 164, 78, 0.1); }
}

.animate-fade-up {
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float-card-1 {
  animation: float-1 5s ease-in-out infinite;
}

.animate-float-card-2 {
  animation: float-2 4.5s ease-in-out infinite;
}

.animate-float-card-3 {
  animation: float-3 5.5s ease-in-out infinite;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(4, 10, 6, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 164, 78, 0.1);
}

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

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

.mobile-link {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Menu Button Animation ── */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* ── Intersection Observer Reveal ── */
.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.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Form Select Arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a44e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Service Card Hover Glow ── */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ── Button Ripple Effect ── */
button, a {
  position: relative;
  overflow: hidden;
}

/* ── Image Aspect Ratio ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Responsive Adjustments ── */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.15;
  }
}

@media (min-width: 768px) {
  .lg\:hover\:shadow-\[0_0_40px_rgba\(200\,164\,78\,0\.35\)\]:hover {
    box-shadow: 0 0 40px rgba(200, 164, 78, 0.35);
  }
}

/* ── Print Styles ── */
@media print {
  body {
    background: white;
    color: black;
  }
  #navbar, #mobile-menu {
    display: none;
  }
}
