/* ===================================
   Golden Barbers Manila — Custom Styles
   =================================== */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #b0e0d0;
  color: #0f2744;
}

/* ——— Navigation ——— */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.nav-fixed.scrolled {
  background: rgba(15, 39, 68, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(176, 224, 208, 0.1);
}

.nav-link {
  position: relative;
}

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

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

/* ——— Mobile Menu ——— */
#mobile-menu {
  z-index: 200;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

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

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#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; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ——— Hero Animations ——— */
.hero-eyebrow {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-title-block {
  animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-title-block:nth-child(1) { animation-delay: 0.35s; }
.hero-title-block:nth-child(2) { animation-delay: 0.5s; }
.hero-title-block:nth-child(3) { animation-delay: 0.65s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideUp {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

/* ——— Service Cards ——— */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b0e0d0, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 39, 68, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ——— Scroll Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 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; }

/* ——— Divider Stripe ——— */
.stripe-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #b0e0d0, #8cc4b0);
  border-radius: 2px;
}

/* ——— Form Styles ——— */
input:focus,
select:focus,
textarea:focus {
  border-color: #8cc4b0 !important;
  box-shadow: 0 0 0 3px rgba(140, 196, 176, 0.15) !important;
}

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

::-webkit-scrollbar-track {
  background: #0f2744;
}

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

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

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