/* ============================================================
   Wine Workshop & Brew Center — Shared Design System
   Chrome mobile compatible rewrite
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

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

:root {
  --ink: #1a1208;
  --parchment: #f5ede0;
  --wine: #7a1c2e;
  --wine-light: #a0253d;
  --gold: #c8964e;
  --gold-light: #e8b96a;
  --cream: #faf6ef;
  --muted: #8a7560;
  --border: rgba(200,150,78,0.25);
}

/* Use a concrete px value as --pad fallback for Chrome */
html { scroll-behavior: smooth; }

body {
  background: #faf6ef;
  background: var(--cream);
  color: #1a1208;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding-left: 24px;
  padding-right: 24px;
  background: rgba(250,246,239,0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,150,78,0.25);
}

@media (min-width: 480px) {
  nav { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 768px) {
  nav { height: 72px; padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1100px) {
  nav { padding-left: 64px; padding-right: 64px; }
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #7a1c2e;
  color: var(--wine);
  line-height: 1.2;
  text-decoration: none;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.nav-logo span {
  display: block;
  font-size: 0.55rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7560;
  color: var(--muted);
  margin-top: 2px;
}
@media (min-width: 768px) { .nav-logo { font-size: 1.2rem; } }
@media (min-width: 1024px) { .nav-logo { font-size: 1.3rem; } }

/* Desktop links — hidden on mobile */
.nav-links {
  display: none;
  list-style: none;
}
.nav-links a {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1208;
  color: var(--ink);
  font-weight: 400;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #7a1c2e; color: var(--wine); }

/* Desktop CTA — hidden on mobile */
.nav-cta {
  display: none;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.5rem 1.2rem;
  border: 1px solid #7a1c2e;
  border: 1px solid var(--wine);
  color: #7a1c2e;
  color: var(--wine);
  text-decoration: none;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  white-space: nowrap;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.nav-cta:hover { background: #7a1c2e; background: var(--wine); color: #fff; }

/* Hamburger — mobile only */
.nav-toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  /* Make tap target generous */
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1208;
  background: var(--ink);
  border-radius: 2px;
  margin: 3px 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

/* Full-screen drawer */
.nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 199;
  background: #faf6ef;
  background: var(--cream);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  /* Use visibility + opacity instead of pointer-events for Chrome compat */
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity 0.3s, visibility 0.3s;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-drawer.open {
  visibility: visible;
  opacity: 1;
}

.nav-drawer a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #1a1208;
  color: var(--ink);
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  padding: 0.3rem 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-drawer a:active,
.nav-drawer a.active { color: #7a1c2e; color: var(--wine); }

.nav-drawer .drawer-cta {
  margin-top: 0.8rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  padding: 0.9rem 2.2rem;
  background: #7a1c2e;
  background: var(--wine);
  color: #fff;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 0;
}

.nav-drawer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #1a1208;
  color: var(--ink);
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

/* Desktop: show links, hide hamburger, hide drawer always */
@media (min-width: 768px) {
  .nav-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 2rem;
    column-gap: 2rem;
  }
  .nav-cta { display: inline-block; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}
@media (min-width: 1024px) {
  .nav-links { -webkit-column-gap: 2.4rem; column-gap: 2.4rem; }
  .nav-links a { font-size: 0.68rem; }
  .nav-cta { font-size: 0.68rem; padding: 0.55rem 1.4rem; }
}

/* ═══════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════ */
.page-hero {
  padding-top: 64px;
  background: #1a1208;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: -webkit-linear-gradient(315deg, #3d1a0a 0%, #7a1c2e 50%, #1a0a05 100%);
  background: linear-gradient(135deg, #3d1a0a 0%, #7a1c2e 50%, #1a0a05 100%);
}
.page-hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.06;
  background-image: -webkit-radial-gradient(circle, #c8964e 1px, transparent 1px);
  background-image: radial-gradient(circle, #c8964e 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 24px 3rem;
  width: 100%;
}
@media (min-width: 480px) { .page-hero-content { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 768px) {
  .page-hero { padding-top: 72px; min-height: 320px; }
  .page-hero-content { padding: 3rem 40px 3.5rem; }
}
@media (min-width: 1100px) { .page-hero-content { padding-left: 64px; padding-right: 64px; } }
@media (min-width: 1024px) { .page-hero { min-height: 340px; } }

.page-hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8964e; color: var(--gold);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 0.8rem;
}
.page-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #c8964e; background: var(--gold);
  margin-right: 0.8rem;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: white;
  line-height: 1.05;
}
@media (min-width: 480px) { .page-hero h1 { font-size: 2.8rem; } }
@media (min-width: 768px) { .page-hero h1 { font-size: 3.8rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 4.5rem; } }
.page-hero h1 em { font-style: italic; color: #e8b96a; color: var(--gold-light); }
.page-hero-sub {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  line-height: 1.7;
}
@media (min-width: 768px) { .page-hero-sub { font-size: 1rem; } }

/* ═══════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════ */
.ticker { background: #7a1c2e; background: var(--wine); padding: 0.65rem 0; overflow: hidden; }
.ticker-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  white-space: nowrap;
  -webkit-animation: ticker 40s linear infinite;
  animation: ticker 40s linear infinite;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.ticker-inner > * { margin-right: 3rem; }
.ticker-inner span { color: #e8b96a; color: var(--gold-light); }
@-webkit-keyframes ticker { from { -webkit-transform: translateX(0); transform: translateX(0); } to { -webkit-transform: translateX(-50%); transform: translateX(-50%); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container { padding: 4rem 24px; }
@media (min-width: 480px) { .container { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 768px) { .container { padding: 5.5rem 40px; } }
@media (min-width: 1100px) { .container { padding: 6rem 64px; } }

.section-divider { border: none; border-top: 1px solid rgba(200,150,78,0.25); margin: 0 24px; }
@media (min-width: 768px) { .section-divider { margin: 0 40px; } }

.section-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8964e; color: var(--gold);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #c8964e; background: var(--gold);
  margin-right: 0.8rem;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
@media (min-width: 480px) { .section-title { font-size: 2.3rem; } }
@media (min-width: 768px) { .section-title { font-size: 2.8rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.2rem; } }
.section-title em { font-style: italic; color: #7a1c2e; color: var(--wine); }
.section-desc { font-size: 0.9rem; line-height: 1.8; color: #8a7560; color: var(--muted); max-width: 680px; }
@media (min-width: 768px) { .section-desc { font-size: 0.95rem; } }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: #7a1c2e; background: var(--wine);
  color: white;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  -webkit-transition: background 0.25s;
  transition: background 0.25s;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover,
.btn-primary:active { background: #a0253d; background: var(--wine-light); }

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border: 1px solid #1a1208; border: 1px solid var(--ink);
  color: #1a1208; color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost:hover,
.btn-ghost:active { background: #1a1208; background: var(--ink); color: #faf6ef; color: var(--cream); }

.btn-gold {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border: 1px solid #c8964e; border: 1px solid var(--gold);
  color: #c8964e; color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold:hover,
.btn-gold:active { background: #c8964e; background: var(--gold); color: #1a1208; color: var(--ink); }

@media (min-width: 768px) {
  .btn-primary, .btn-ghost, .btn-gold { padding: 1rem 2.2rem; font-size: 0.68rem; }
}

/* ═══════════════════════════════════════════
   DARK SECTION
   ═══════════════════════════════════════════ */
.dark-section { background: #1a1208; background: var(--ink); color: white; position: relative; overflow: hidden; }
.dark-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: -webkit-radial-gradient(ellipse at 70% 50%, rgba(122,28,46,0.25) 0%, transparent 65%);
  background: radial-gradient(ellipse at 70% 50%, rgba(122,28,46,0.25) 0%, transparent 65%);
}
.dark-section .section-title { color: white; }
.dark-section .section-desc { color: rgba(255,255,255,0.6); }
.dark-section .section-eyebrow { color: #e8b96a; color: var(--gold-light); }
.dark-section .section-eyebrow::before { background: #e8b96a; background: var(--gold-light); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: #1a1208; background: var(--ink);
  color: white;
  padding: 2.5rem 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  row-gap: 1.5rem;
}
@media (min-width: 480px) { footer { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 768px) {
  footer {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 2.8rem 40px;
  }
}
@media (min-width: 1100px) { footer { padding-left: 64px; padding-right: 64px; } }

.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 300; color: white; }
.footer-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  list-style: none;
  row-gap: 0.5rem;
  -webkit-column-gap: 1.6rem;
  column-gap: 1.6rem;
}
.footer-links a { font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.5); text-decoration: none; -webkit-transition: color 0.2s; transition: color 0.2s; }
.footer-links a:hover { color: #e8b96a; color: var(--gold-light); }
.footer-copy { font-size: 0.62rem; color: rgba(255,255,255,0.28); letter-spacing: 0.06em; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-animation: fadeUp 0.7s ease forwards;
  animation: fadeUp 0.7s ease forwards;
}
@-webkit-keyframes fadeUp { to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { -webkit-animation-delay: 0.12s; animation-delay: 0.12s; }
.delay-2 { -webkit-animation-delay: 0.24s; animation-delay: 0.24s; }
.delay-3 { -webkit-animation-delay: 0.36s; animation-delay: 0.36s; }
.delay-4 { -webkit-animation-delay: 0.48s; animation-delay: 0.48s; }
