/* ============================================
   Rooster Brew Espresso — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #98d4c0;
  color: #0f1c2e;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #faf9f7;
}
::-webkit-scrollbar-thumb {
  background: #0f1c2e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1a2d45;
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

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

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

/* --- Hero Animations --- */
.hero-subtitle {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.hero-desc {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  transform: translateY(20px);
}

.hero-image-wrapper {
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
  transform: translateY(20px);
}

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

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

/* --- Scroll Line Animation --- */
.scroll-line {
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: -16px;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 48px;
    opacity: 0;
  }
}

/* --- Section Labels --- */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #98d4c0;
  font-weight: 400;
}

.section-heading {
  color: #0f1c2e;
}

/* --- Divider --- */
.divider-line {
  transition: opacity 0.3s ease;
}

/* --- About Section --- */
.about-image-wrap {
  position: relative;
}

.about-image-inner {
  position: relative;
  overflow: hidden;
}

.about-image-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(15, 28, 46, 0.1));
}

.about-content {
  padding-top: 2rem;
}

.about-text p {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

.about-stats div {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

/* --- Menu Section --- */
.menu-item {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s ease;
}

/* --- Gallery --- */
.gallery-item {
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Contact Form --- */
.form-input {
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #98d4c0 !important;
}

.form-input::placeholder {
  color: rgba(15, 28, 46, 0.15);
}

/* --- Utility: Reveal on Scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Mobile Menu Transitions --- */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-title br {
    display: none;
  }

  .section-heading {
    font-size: 2.5rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem !important;
  }

  .visit-map iframe {
    height: 350px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-image-wrapper img {
    height: 400px;
  }
}
