/* ============================================
   The Higher Class — Custom Styles
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(140, 41, 40, 0.15);
  color: #3d0f0e;
}

/* Floating animation for hero stat cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

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

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

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

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

/* Menu lines animation */
.menu-line.active:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-line.active:nth-child(2) {
  opacity: 0;
}

.menu-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 6px;
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(250, 246, 243, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(140, 41, 40, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #c43f3d;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #c43f3d;
  outline-offset: 2px;
}

/* 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;
  }
}

/* Print styles */
@media print {
  header, footer, #contact-form, .animate-float, .animate-float-delayed {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .font-serif {
    color: #000 !important;
  }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}
