/* ============================================
   THE ANCHOR & CHAIN — STYLES
   Dark warm palette: deep woods, amber, copper
   ============================================ */

:root {
  --bg: #1a1410;
  --bg-alt: #231e18;
  --bg-card: #2a2319;
  --surface: #352d23;
  --text: #f0e6d6;
  --text-dim: #b8a890;
  --text-muted: #7a6e60;
  --amber: #d4a030;
  --copper: #b87333;
  --gold: #e8b960;
  --deep-red: #922b21;
  --cream: #f5f0e8;
  --border: rgba(184,115,51,0.15);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 8px;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg: #f5f0e8;
  --bg-alt: #ebe4d8;
  --bg-card: #fff;
  --surface: #e8dfd2;
  --text: #2a2319;
  --text-dim: #5a4f42;
  --text-muted: #8a7e70;
  --border: rgba(184,115,51,0.2);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; position: relative; }

.section__label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(26,20,16,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] .nav--scrolled {
  background: rgba(245,240,232,0.95);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.nav__anchor { color: var(--amber); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--transition);
}

.nav__links a:hover { color: var(--amber); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__parallax {
  position: absolute;
  inset: -60px;
  z-index: 0;
}

.hero__bg {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,0.5) 0%, rgba(26,20,16,0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero__tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 24px;
  color: var(--cream);
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--text-dim);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 40px;
}

.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--amber);
  color: #1a1410;
}

.btn--primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212,160,48,0.3);
}

.btn--outline {
  border: 1.5px solid var(--text-dim);
  color: var(--text-dim);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px; height: 48px;
  background: var(--amber);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- STORY ---- */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story__text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.story__image {
  position: relative;
}

.story__image img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.story__badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--amber);
  color: #1a1410;
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.story__badge-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.story__badge-text {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

/* ---- ALES ---- */
.ales {
  position: relative;
  overflow: hidden;
}

.ales__parallax {
  position: absolute;
  inset: -60px;
  z-index: 0;
}

.ales__bg {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.ales__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,20,16,0.8);
  z-index: 1;
}

.ales__container { position: relative; z-index: 2; }

.ales__header { text-align: center; margin-bottom: 60px; }

.ales__intro {
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Tap animation */
.taps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.tap:hover { transform: translateY(-4px); }

.tap__handle {
  width: 56px;
  height: 90px;
  background: linear-gradient(180deg, #c9a44a, #8a6914);
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.15s ease;
}

.tap:active .tap__handle {
  transform: rotate(-8deg);
  transform-origin: bottom center;
}

.tap__badge-inner {
  text-align: center;
}

.tap__name {
  font-family: 'Playfair Display', serif;
  font-size: 0.55rem;
  font-weight: 700;
  color: #1a1410;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.tap__drip {
  width: 4px; height: 0;
  background: var(--amber);
  border-radius: 0 0 2px 2px;
  transition: height 0.3s ease;
}

.tap:active .tap__drip { height: 16px; }

.tap__glass {
  width: 48px;
  height: 64px;
  margin-top: 8px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 2px 2px 6px 6px;
  overflow: hidden;
  position: relative;
}

.tap__liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--beer-color);
  transition: height 0.8s cubic-bezier(0.4,0,0.2,1);
  opacity: 0.9;
}

.tap.filled .tap__liquid { height: 80%; }

.tap__bubbles {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(circle 1px, rgba(255,255,255,0.3) 50%, transparent 50%);
  background-size: 8px 8px;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  animation: bubbleRise 3s linear infinite;
}

.tap.filled .tap__bubbles { opacity: 1; }

@keyframes bubbleRise {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* Beer detail panel */
.beer-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
}

.beer-detail.open {
  max-height: 400px;
  opacity: 1;
  padding: 32px;
}

.beer-detail__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}

.beer-detail__close:hover { color: var(--text); }

.beer-detail__inner { position: relative; }

.beer-detail__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.beer-detail__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.beer-detail__meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--amber);
  background: rgba(212,160,48,0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

.beer-detail__notes {
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 600px;
  line-height: 1.8;
}

.beer-detail__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 500px;
}

.beer-detail__stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.beer-detail__meter {
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.beer-detail__fill {
  height: 100%;
  width: 0;
  background: var(--amber);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1) 0.2s;
}

/* ---- KITCHEN ---- */
.kitchen__header { text-align: center; margin-bottom: 60px; }

.kitchen__grid { display: flex; flex-direction: column; gap: 48px; }

.kitchen__feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.kitchen__feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.kitchen__feature-content {
  padding: 40px;
}

.kitchen__feature-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.kitchen__feature-content p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.kitchen__prices {
  list-style: none;
}

.kitchen__prices li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.kitchen__prices li:last-child { border-bottom: none; }

.kitchen__prices li span:last-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber);
  font-weight: 500;
}

.kitchen__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kitchen__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.kitchen__card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--amber);
}

/* ---- MUSIC ---- */
.music { background: var(--bg-alt); }
.music__header { text-align: center; margin-bottom: 48px; }
.music__header p { color: var(--text-dim); max-width: 500px; margin: 0 auto; }

.music__month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.music__month h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  min-width: 200px;
  text-align: center;
}

.music__nav {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music__nav:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.music__gigs {
  max-width: 700px;
  margin: 0 auto;
}

.gig {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.gig:hover { border-color: var(--amber); }

.gig__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--bg-card);
}

.gig__date {
  min-width: 56px;
  text-align: center;
}

.gig__day {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.gig__dow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.gig__info { flex: 1; }

.gig__name {
  font-weight: 600;
  font-size: 1rem;
}

.gig__genre {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gig__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--copper);
}

.gig__chevron {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.gig.open .gig__chevron { transform: rotate(180deg); }

.gig__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.gig__body-inner {
  padding: 0 24px 20px 100px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- GARDEN ---- */
.garden {
  position: relative;
  overflow: hidden;
}

.garden__parallax {
  position: absolute;
  inset: -60px;
  z-index: 0;
}

.garden__bg {
  width: 100%; height: 100%;
  object-fit: cover;
}

.garden__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,20,16,0.92) 0%, rgba(26,20,16,0.6) 100%);
  z-index: 1;
}

[data-theme="light"] .garden__overlay {
  background: linear-gradient(90deg, rgba(245,240,232,0.95) 0%, rgba(245,240,232,0.7) 100%);
}

.garden__container { position: relative; z-index: 2; }

.garden__content { max-width: 560px; }

.garden__content p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.garden__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.garden__feat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.garden__feat svg { color: var(--amber); flex-shrink: 0; }

/* Weather widget */
.weather {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 320px;
}

.weather__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.weather__header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}

.weather__location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.weather__temp {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.weather__desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.weather__verdict {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--amber);
  padding: 8px 12px;
  background: rgba(212,160,48,0.1);
  border-radius: 4px;
}

/* ---- VISIT ---- */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.visit__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.visit__block h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.visit__block p {
  color: var(--text-dim);
  line-height: 1.8;
}

.visit__hours {
  list-style: none;
}

.visit__hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.visit__hours li span:last-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}

.visit__image img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text);
}

.footer__anchor { color: var(--amber); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__copy a {
  color: var(--amber);
  text-decoration: none;
}

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--amber);
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .story__grid,
  .visit__grid { grid-template-columns: 1fr; gap: 40px; }

  .kitchen__feature { grid-template-columns: 1fr; }
  .kitchen__feature img { min-height: 240px; }
  .kitchen__feature-content { padding: 24px; }

  .kitchen__cards { grid-template-columns: 1fr; }

  .taps { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .beer-detail__bar { grid-template-columns: 1fr; }

  .garden__features { grid-template-columns: 1fr; }

  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: var(--bg);
    padding: 100px 40px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  }

  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; }

  .taps { grid-template-columns: repeat(3, 1fr); }

  .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); }

  .story__badge { width: 90px; height: 90px; bottom: -16px; left: -8px; }
  .story__badge-number { font-size: 1.8rem; }

  .gig__body-inner { padding-left: 24px; }

  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}
