/* ═══════════════════════════════════════════
   Chula Vista Brewery — Stylesheet
   Palette: Plum (#4a1a2e) + Amber (#d4a017)
   Fonts: Playfair Display + Inter
   ═══════════════════════════════════════════ */

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a0a12;
  background: #faf6f0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Custom Properties ─────────────────────── */
:root {
  --plum:        #4a1a2e;
  --plum-light:  #6b2543;
  --plum-dark:   #2e0f1c;
  --amber:       #d4a017;
  --amber-light: #e8c05a;
  --amber-dark:  #b8860f;
  --cream:       #faf6f0;
  --cream-dark:  #f0e8d8;
  --text-dark:   #1a0a12;
  --text-mid:    #3d2030;
  --text-light:  #7a5a6a;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(74,26,46,0.08);
  --shadow-lg:   0 12px 48px rgba(74,26,46,0.12);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--plum);
}
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}
.section-heading em {
  font-style: italic;
  color: var(--amber-dark);
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Container ─────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--plum-dark);
  border: 2px solid var(--amber);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--white);
  color: var(--plum);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--plum);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-nav {
  background: var(--amber);
  color: var(--plum-dark);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
}
.btn-nav:hover { background: var(--amber-light); }
.btn-call { margin-top: 1.5rem; }

/* ── Header ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,26,46,0.08);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.site-nav a:hover {
  color: var(--plum);
  background: rgba(74,26,46,0.06);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--plum-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(46,15,28,0.92) 0%,
    rgba(74,26,46,0.78) 50%,
    rgba(46,15,28,0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 4rem;
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-headline .headline-line {
  display: block;
}
.hero-headline em {
  font-style: italic;
  color: var(--amber-light);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* ── Sections ──────────────────────────────── */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-sub {
  margin: 0 auto;
}

/* ── About ─────────────────────────────────── */
.about {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-text p {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── Beers ─────────────────────────────────── */
.beers {
  background: var(--plum);
}
.beers .section-eyebrow { color: var(--amber); }
.beers .section-heading { color: var(--white); }
.beers .section-heading em { color: var(--amber-light); }
.beers .section-sub { color: rgba(255,255,255,0.7); }
.beer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.beer-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.beer-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.beer-card-icon {
  margin-bottom: 1.25rem;
  opacity: 0.9;
}
.beer-name {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.beer-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.beer-style {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(212,160,23,0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}
.beer-note {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ── Story Banner ──────────────────────────── */
.story-banner {
  padding: 0;
  position: relative;
}
.story-banner-inner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-banner-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-banner-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,15,28,0.85) 0%, rgba(74,26,46,0.7) 100%);
}
.story-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 720px;
}
.story-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.story-quote::before {
  content: '"';
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.story-credit {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Visit ─────────────────────────────────── */
.visit {
  background: var(--cream);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.visit-address {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.visit-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.detail-icon {
  flex-shrink: 0;
  color: var(--amber-dark);
  margin-top: 2px;
}
.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.detail-item p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}
.detail-item a {
  color: var(--plum);
  font-weight: 500;
  transition: var(--transition);
}
.detail-item a:hover { color: var(--amber-dark); }
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
}

/* ── Events ────────────────────────────────── */
.events {
  background: var(--white);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.event-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid transparent;
}
.event-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.event-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--plum);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-width: 72px;
}
.event-month {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.event-day {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.event-name {
  font-size: 1.2rem;
  color: var(--plum);
  margin-bottom: 0.5rem;
}
.event-body p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── CTA ───────────────────────────────────── */
.cta {
  background: var(--plum);
  padding: 5rem 0;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-eyebrow { color: var(--amber); }
.cta-heading {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-text {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn-cta-primary {
  background: var(--amber);
  color: var(--plum-dark);
  border: 2px solid var(--amber);
}
.btn-cta-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--plum);
  border-color: var(--white);
}

/* ── Contact ───────────────────────────────── */
.contact {
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-mid);
}
.contact-method a {
  color: var(--plum);
  font-weight: 500;
  transition: var(--transition);
}
.contact-method a:hover { color: var(--amber-dark); }
.method-icon { flex-shrink: 0; }

/* ── Form ──────────────────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 1.5rem;
  color: var(--plum);
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid rgba(74,26,46,0.12);
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 0.95rem;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: var(--radius);
  color: var(--amber-dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success svg { flex-shrink: 0; }

/* ── Footer ────────────────────────────────── */
.site-footer {
  background: var(--plum-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact address {
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── Back to Top ───────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum);
  color: var(--amber);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--plum-light);
  transform: translateY(-2px);
}

/* ── Reveal Animations (progressive enhanc.) ─ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image { order: -1; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250,246,240,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(74,26,46,0.08);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .hero-content { padding: 7rem 1.5rem 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .section { padding: 4rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-headline { font-size: clamp(2rem, 10vw, 3rem); }
  .beer-card { padding: 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
