/* ========================================
   Witchdoctor Brewing Company — Styles
   Forest green + off-white, clean minimalist
   ======================================== */

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

:root {
  --green-900: #0d1f15;
  --green-800: #1a3c2a;
  --green-700: #234d36;
  --green-600: #2d6a4f;
  --green-500: #40916c;
  --gold-500: #c8a961;
  --gold-400: #d4b876;
  --cream-100: #f8f6f0;
  --cream-200: #f0ece0;
  --cream-300: #e8e2d4;
  --text-dark: #1a1a18;
  --text-mid: #4a4a46;
  --text-light: #7a7a74;
  --white: #ffffff;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream-100);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-800);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
}
.skip-link:focus {
  left: 0;
}

.site {
  min-height: 100vh;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}
.nav.scrolled {
  background: rgba(13, 31, 21, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav.scrolled .nav__logo,
.nav.scrolled .nav__links a {
  color: var(--cream-100);
}
.nav.scrolled .nav__cta {
  background: var(--gold-500);
  color: var(--green-900);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav__logo-icon {
  color: var(--gold-500);
}
.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease-out);
}
.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--white);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  width: 100%;
}
.nav__cta {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  transition: background 0.25s, color 0.25s, border-color 0.25s !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover {
  background: var(--gold-500) !important;
  border-color: var(--gold-500) !important;
  color: var(--green-900) !important;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.25s;
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 31, 21, 0.55) 0%,
    rgba(13, 31, 21, 0.70) 50%,
    rgba(13, 31, 21, 0.88) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 2rem;
  color: var(--white);
}
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.5rem;
}
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero__headline em {
  font-style: italic;
  color: var(--gold-400);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--gold-500);
  color: var(--green-900);
  border-color: var(--gold-500);
}
.btn--primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn--large {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}
.btn--dark {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.btn--dark:hover {
  background: var(--green-700);
  border-color: var(--green-700);
}

/* ---- SCROLL INDICATOR ---- */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---- TICKER ---- */
.ticker {
  background: var(--green-800);
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker__track {
  display: flex;
  gap: 2rem;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker span {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.ticker__dot {
  color: var(--gold-500) !important;
  font-size: 0.5rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  align-self: center;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- SECTIONS ---- */
.section {
  padding: 7rem 1.5rem;
}
.section__inner,
.beers__inner,
.story__inner,
.taproom__inner,
.visit__inner,
.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}
.section__lead {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
}
.section__footer {
  text-align: center;
  margin-top: 3rem;
}
.section__note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
  font-style: italic;
}

/* ---- BEERS ---- */
.beers {
  background: var(--cream-100);
}
.beers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.beer-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.04);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.beer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.08);
}
.beer-card__image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.beer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.beer-card:hover .beer-card__image img {
  transform: scale(1.04);
}
.beer-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--green-800);
  color: var(--cream-100);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}
.beer-card__info {
  padding: 1.5rem;
}
.beer-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.beer-card__style {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-600);
}
.beer-card__abv {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 300;
}
.beer-card__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.beer-card__desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ---- STORY ---- */
.story {
  background: var(--green-800);
  color: var(--white);
  overflow: hidden;
}
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story__image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__text .section__eyebrow {
  text-align: left;
  color: var(--gold-500);
}
.story__text .section__title {
  text-align: left;
  color: var(--white);
}
.story__text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
}
.story__text p:last-of-type {
  margin-bottom: 2.5rem;
}
.story__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.story__stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.story__stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.story__stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ---- TAPROOM ---- */
.taproom {
  background: var(--cream-100);
}
.taproom__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.feature {
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--cream-300);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feature:hover {
  border-color: var(--green-600);
  box-shadow: 0 8px 32px rgba(26, 60, 42, 0.08);
}
.feature__icon {
  color: var(--green-600);
  margin-bottom: 1.25rem;
}
.feature__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.feature__desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}
.taproom__image {
  border-radius: 12px;
  overflow: hidden;
}
.taproom__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- VISIT ---- */
.visit {
  background: var(--green-900);
  color: var(--white);
}
.visit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.visit__content .section__eyebrow {
  text-align: left;
  color: var(--gold-500);
}
.visit__content .section__title {
  text-align: left;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.visit__content .section__lead {
  text-align: left;
  margin: 0;
  color: rgba(255,255,255,0.65);
}
.visit__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.visit__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.75rem;
}
.visit__card-title {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.visit__address {
  font-style: normal;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.visit__hours div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  font-weight: 300;
}
.visit__hours div:last-child { border-bottom: none; }
.visit__hours dt { color: rgba(255,255,255,0.55); }
.visit__hours dd { color: rgba(255,255,255,0.85); }
.visit__phone a,
.visit__email a {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 300;
  transition: color 0.2s;
  display: block;
}
.visit__phone a:hover,
.visit__email a:hover {
  color: var(--gold-500);
}
.visit__email {
  margin-top: 0.5rem;
}
.visit__email a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ---- CONTACT ---- */
.contact {
  background: var(--cream-200);
}
.contact__inner {
  max-width: 640px;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form__group label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--cream-300);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-light);
}
.form__textarea {
  resize: vertical;
  min-height: 120px;
}
.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a74' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.contact__success {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-800);
  color: var(--cream-100);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.5);
  padding: 4rem 1.5rem 2.5rem;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.footer__logo-icon {
  color: var(--gold-500);
}
.footer__tagline {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 280px;
  color: rgba(255,255,255,0.45);
}
.footer__links nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}
.footer__links a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--gold-500);
}
.footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* ---- ANIMATIONS (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .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; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .story__inner,
  .visit__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .story__image {
    aspect-ratio: 16/9;
  }
  .story__text .section__eyebrow,
  .story__text .section__title {
    text-align: center;
  }
  .story__text p {
    text-align: center;
  }
  .story__stats {
    justify-content: center;
  }
  .visit__content .section__eyebrow,
  .visit__content .section__title,
  .visit__content .section__lead {
    text-align: center;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__links nav { text-align: left; }
  .footer__legal { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 1.25rem; }
  .section__header { margin-bottom: 2.5rem; }

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(13, 31, 21, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem 3rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
    pointer-events: none;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__toggle { display: flex; }

  .beers__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .taproom__features {
    grid-template-columns: 1fr;
  }
  .contact__row {
    grid-template-columns: 1fr;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .hero { min-height: 580px; }
  .hero__headline { font-size: 2.1rem; }
  .story__stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .story__stat-divider { display: none; }
}
