/* ===== Custom styles for Brew Moon ===== */

:root {
  --color-coral-300: #FDA4AF;
  --color-coral-400: #F97583;
  --color-coral-500: #F43F5E;
  --color-charcoal-850: #2a2a2a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 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; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Navbar ===== */
#site-header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-coral-400);
  transition: width 0.25s ease;
  border-radius: 1px;
}

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

/* ===== Menu dots ===== */
.menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-coral-300);
  display: inline-block;
}

/* ===== Mobile menu animation ===== */
#mobile-menu {
  animation: slideDown 0.25s ease forwards;
}

#mobile-menu.hidden {
  animation: slideUp 0.2s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* ===== Gallery hover ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== Subtle pattern overlay ===== */
.section-pattern {
  background-image: radial-gradient(circle, rgba(249, 117, 131, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-coral-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
  background: rgba(249, 117, 131, 0.2);
  color: inherit;
}

/* ===== Mobile nav links ===== */
.mobile-nav-link {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* ===== Button ripple effect ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::after {
  opacity: 1;
}
