/* ============================================
   Mighty Mugs Coffee — Custom Styles
   ============================================ */

/* Base & Typography */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8faf9;
}
::-webkit-scrollbar-thumb {
  background: #b4bfb9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8a9a92;
}

/* Selection */
::selection {
  background: #1a5f5f;
  color: #f8faf9;
}

/* ============================================
   Navigation
   ============================================ */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 191, 185, 0.3);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

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

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

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

.mobile-link {
  position: relative;
}

#mobile-menu-btn.active #bar1 {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.active #bar2 {
  opacity: 0;
}
#mobile-menu-btn.active #bar3 {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 6px;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-title {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-desc {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator line animation */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================
   Scroll Reveal 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.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; }

/* ============================================
   Image hover effects
   ============================================ */
img {
  transition: filter 0.3s ease;
}

/* ============================================
   Form styles
   ============================================ */
input:focus,
textarea:focus {
  outline: none;
  border-color: #1a5f5f !important;
  box-shadow: 0 0 0 3px rgba(26, 95, 95, 0.1);
}

/* ============================================
   Button hover effect
   ============================================ */
button[type="submit"],
a[href="#menu"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before,
a[href="#menu"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

button[type="submit"]:hover::before,
a[href="#menu"]:hover::before {
  left: 100%;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem !important;
  }

  #hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  #hero .lg\:col-span-5 {
    margin-top: 2rem;
  }

  .scroll-line {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 3.5rem !important;
  }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  .nav-fixed,
  .scroll-line,
  #mobile-menu-btn {
    display: none !important;
  }

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

  a {
    color: #000;
  }
}
