/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ─── Skip Link ─── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: #D4A84B; color: #0D0D0D; padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px; font-weight: 600; z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: #2E2E2E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C8382B; }

/* ─── Selection ─── */
::selection { background: #C8382B; color: #fff; }

/* ─── Navigation ─── */
.nav {
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.08);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.nav-logo-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #D4A84B; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 14px;
  color: #D4A84B; transition: background 0.3s, color 0.3s;
}
.nav:hover .nav-logo-ring { background: #D4A84B; color: #0D0D0D; }

.nav-menu {
  display: flex; align-items: center; gap: 2rem;
}
.nav-link {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: #A0A0A0;
  transition: color 0.3s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: #C8382B;
  transition: width 0.3s;
}
.nav-link:hover { color: #D4A84B; }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: #C8382B; color: #fff !important;
  padding: 0.5rem 1.25rem; border-radius: 6px;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #E04A3D; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger-line {
  width: 24px; height: 2px; background: #D4A84B;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 2rem;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1.25rem; color: #fff; }
  .nav-toggle { display: flex; }
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #C8382B; color: #fff; font-weight: 600;
  padding: 1rem 2.5rem; border-radius: 8px; font-size: 0.9375rem;
  border: 2px solid #C8382B; transition: all 0.3s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: transparent; color: #C8382B;
  box-shadow: 0 0 30px rgba(200, 56, 43, 0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #D4A84B; font-weight: 600;
  padding: 1rem 2.5rem; border-radius: 8px; font-size: 0.9375rem;
  border: 2px solid #D4A84B; transition: all 0.3s;
  letter-spacing: 0.02em;
}
.btn-secondary:hover {
  background: #D4A84B; color: #0D0D0D;
  box-shadow: 0 0 30px rgba(212, 168, 75, 0.3);
}

/* ─── Section Shared ─── */
.section { position: relative; }
.section-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: #D4A84B; margin-bottom: 1rem;
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('https://images.pexels.com/photos/4047286/pexels-photo-4047286.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.55) 0%,
    rgba(13, 13, 13, 0.40) 40%,
    rgba(13, 13, 13, 0.70) 80%,
    rgba(13, 13, 13, 0.95) 100%
  );
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { z-index: 3; }
.hero-eyebrow {
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero-subtitle {
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.hero-actions {
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll { z-index: 3; }
.scroll-indicator {
  width: 24px; height: 40px; border: 2px solid rgba(212, 168, 75, 0.4);
  border-radius: 12px; margin: 0 auto; position: relative;
}
.scroll-indicator span {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; background: #D4A84B; border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}
.hero-corner {
  position: absolute; width: 120px; height: 120px; z-index: 3; pointer-events: none;
}
.accent-corner-tl { top: 24px; left: 24px; border-top: 2px solid rgba(212, 168, 75, 0.3); border-left: 2px solid rgba(212, 168, 75, 0.3); }
.accent-corner-br { bottom: 24px; right: 24px; border-bottom: 2px solid rgba(200, 56, 43, 0.3); border-right: 2px solid rgba(200, 56, 43, 0.3); }

/* ─── Story Section ─── */
.story { background: #0D0D0D; }
.story-accent {
  position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(200, 56, 43, 0.03) 100%);
  pointer-events: none;
}
.story-img-wrapper { position: relative; border-radius: 16px; overflow: hidden; }
.story-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 16px; transition: transform 0.6s;
}
.story-img-wrapper:hover .story-img { transform: scale(1.03); }
.story-img-accent {
  position: absolute; inset: 0; border-radius: 16px;
  border: 1px solid rgba(212, 168, 75, 0.15); pointer-events: none;
}
.stat { text-align: left; }
.stat-number { font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.25rem; }

/* ─── Brews Section ─── */
.brews { background: #111111; }
.beer-card {
  background: #1A1A1A; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.beer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(200, 56, 43, 0.1);
  border-color: rgba(200, 56, 43, 0.2);
}
.beer-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.beer-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.beer-card:hover .beer-card-img-wrap img { transform: scale(1.08); }
.beer-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 100%);
}
.beer-style {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: #D4A84B;
  background: rgba(212, 168, 75, 0.15); padding: 0.3rem 0.75rem;
  border-radius: 20px;
}
.beer-card-body { padding: 1.5rem; }
.beer-meta { display: flex; gap: 1rem; }
.beer-meta-item {
  font-size: 0.75rem; color: #666; display: flex; align-items: center; gap: 0.375rem;
}
.beer-meta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #C8382B; display: inline-block;
}

/* ─── Taproom Section ─── */
.taproom { background: #0D0D0D; overflow: hidden; }
.taproom-bg {
  position: absolute; inset: 0;
  background: url('https://images.pexels.com/photos/2097522/pexels-photo-2097522.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
}
.taproom-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.80) 50%, rgba(13,13,13,0.60) 100%);
}
.taproom-feature {
  display: flex; align-items: flex-start; gap: 1rem;
}
.taproom-icon {
  width: 20px; height: 20px; color: #C8382B; flex-shrink: 0; margin-top: 2px;
}
.taproom-img-stack { position: relative; border-radius: 12px; overflow: hidden; }
.taproom-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px; transition: transform 0.6s;
}
.taproom-img-stack:hover .taproom-img { transform: scale(1.04); }

/* ─── Events Section ─── */
.events { background: #111111; }
.event-card {
  background: #1A1A1A; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s, box-shadow 0.4s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.event-card-header {
  background: linear-gradient(135deg, #C8382B 0%, #A82D23 100%);
  padding: 1.25rem 1.5rem; display: flex; align-items: baseline; gap: 0.75rem;
}
.event-day { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: #fff; }
.event-date { font-size: 0.8125rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; }
.event-card-body { padding: 1.5rem; }

/* ─── Visit Section ─── */
.visit { background: #0D0D0D; position: relative; }
.visit-accent {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(200, 56, 43, 0.04), transparent);
  pointer-events: none;
}
.visit-info-block { padding-left: 1rem; border-left: 2px solid rgba(212, 168, 75, 0.2); }
.visit-info-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #D4A84B; margin-bottom: 0.5rem;
}
.visit-info-value { font-size: 1rem; color: #E0E0E0; line-height: 1.7; }
.visit-phone { font-size: 1.25rem; font-weight: 600; }

/* ─── Contact Form ─── */
.contact-form-card {
  background: #1A1A1A; border-radius: 20px; padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: #A0A0A0; margin-bottom: 0.5rem; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-input {
  width: 100%; background: #0D0D0D; border: 1px solid #2E2E2E;
  border-radius: 8px; padding: 0.875rem 1rem; color: #fff;
  font-family: inherit; font-size: 0.9375rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input::placeholder { color: #444; }
.form-input:focus {
  border-color: #C8382B; box-shadow: 0 0 0 3px rgba(200, 56, 43, 0.15);
}
.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-success {
  text-align: center; padding: 2rem;
  animation: fadeUp 0.5s forwards;
}
.form-success-icon {
  width: 48px; height: 48px; color: #4ADE80; margin: 0 auto 1rem;
}
.hidden { display: none; }

/* ─── Footer ─── */
.footer { background: #080808; border-top: 1px solid rgba(212, 168, 75, 0.08); position: relative; }
.footer-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.footer-logo-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #D4A84B; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 14px;
  color: #D4A84B;
}
.footer-divider { border-top: 1px solid rgba(255,255,255,0.05); }

/* ─── Scroll Reveal ─── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1; /* visible by default for no-JS */
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-up.animated { transform: translateY(0); opacity: 1; }
  .reveal-left.animated { transform: translateX(0); opacity: 1; }
  .reveal-right.animated { transform: translateX(0); opacity: 1; }
  .reveal-up:not(.animated) { transform: translateY(40px); opacity: 0; }
  .reveal-left:not(.animated) { transform: translateX(-40px); opacity: 0; }
  .reveal-right:not(.animated) { transform: translateX(40px); opacity: 0; }
}

/* ─── Responsive ─── */
@media (max-width: 1023px) {
  .hero-title { font-size: 3.5rem; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section { padding: 4rem 1.25rem; }
  .story { padding-top: 5rem; }
  .story-img-wrapper { margin-top: 2rem; }
  .taproom-img-stack { margin-top: 0 !important; }
  .contact-form-card { padding: 1.5rem; }
  .hero-corner { width: 60px; height: 60px; }
  .accent-corner-tl { top: 12px; left: 12px; }
  .accent-corner-br { bottom: 12px; right: 12px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem; }
  .btn-primary, .btn-secondary { padding: 0.875rem 1.75rem; font-size: 0.875rem; }
}
