/* Townes Coffee — Custom Styles */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #b8860b;
  color: #0a1628;
}

/* Gold Line Accent */
.gold-line-above {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8860b;
}

.gold-line-above::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #b8860b, transparent);
  border-radius: 1px;
}

/* Navigation */
#site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(240, 243, 249, 0.85);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  background: rgba(240, 243, 249, 0.96);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-link {
  position: relative;
}

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

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

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

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

.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  img {
    transition: none;
  }
}

/* Hover Transitions */
a, button {
  transition: all 0.25s ease;
}

/* Smooth image loading */
img {
  transition: opacity 0.4s ease;
}

img[data-src] {
  opacity: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8fa5cc;
}

/* Form Styles */
input, textarea, select {
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Print Styles */
@media print {
  #site-header,
  #mobile-menu-btn {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
