/* =========================================================
   ROOTS Wine Festival 2026 — styles
   Brand colours (from ROOTS_GUIDELINE.pdf):
     Dry Vermouth  #F3F1D4   (cream)
     Sacramento    #162114   (darkest green)
     Pine          #294122   (primary green)
     Lime Margarita#CEFB02   (lime accent)
     Tangerine     #EB3D00   (CTA / buttons)
   Typography:
     H1   Momo Trust Display (brand) — fallback: Archivo Black
     H2 / body / buttons  Roboto Mono
   ========================================================= */

/* ---- Brand font hook ----
   Add the licensed Momo Trust Display files to web/assets/fonts/
   and uncomment to use the real brand display font.
@font-face {
  font-family: "Momo Trust Display";
  src: url("../assets/fonts/MomoTrustDisplay-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
*/

:root {
  --cream: #F3F1D4;
  --sacramento: #162114;
  --pine: #294122;
  --lime: #CEFB02;
  --tangerine: #EB3D00;

  --font-display: "Momo Trust Display", "Archivo Black", system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "Courier New", monospace;

  --maxw: 1200px;
  --radius: 14px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 300;
  color: var(--sacramento);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); letter-spacing: -0.5px; }
h3 { font-family: var(--font-mono); font-weight: 600; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 600; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--tangerine);
  margin: 0 0 .6rem;
}
.eyebrow-light { color: var(--lime); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head.center { justify-content: center; text-align: center; }
.section-sub { max-width: 46ch; margin: .9rem auto 0; }
.lead { font-size: 1.15rem; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--tangerine); --fg: var(--cream);
  font-family: var(--font-mono); font-weight: 600; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22,33,20,.25); }
.btn-sm { padding: .6rem 1.1rem; font-size: .8rem; }
.btn-block { display: flex; width: 100%; }
.btn-accent { --bg: var(--tangerine); --fg: #fff; }
.btn-dark { --bg: var(--pine); --fg: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--pine); }

.link-arrow { font-weight: 600; color: var(--tangerine); border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pine);
  backdrop-filter: saturate(140%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand-logo { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-family: var(--font-mono); font-weight: 500; font-size: .9rem;
  color: var(--cream); letter-spacing: .02em;
}
.main-nav a:not(.btn):hover { color: var(--lime); }
.nav-cta { color: #fff !important; }

.lang-switch { display: flex; align-items: center; gap: .4rem; color: var(--cream); font-family: var(--font-mono); font-size: .82rem; }
.lang-btn { background: none; border: 0; color: var(--cream); opacity: .6; font: inherit; letter-spacing: .05em; cursor: pointer; padding: 2px 2px; transition: opacity .2s, color .2s; }
.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; color: var(--lime); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: .25s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: var(--cream); }
.hero-media {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #2c3a26, #161f13);
  /* Replace with real photo: background-image: url("../assets/img/hero.jpg"); */
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,33,20,.35), rgba(22,33,20,.78)); }
.hero-content { position: relative; padding-block: 5rem; }
.hero-kicker { font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--lime); margin: 0 0 1rem; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.hero-lead { max-width: 52ch; font-size: 1.15rem; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3rem; }
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--lime); }
.hero-meta span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: var(--cream); font-size: 1.4rem; animation: bob 1.8s infinite ease-in-out;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin: 0 0 1.1rem; }
.about-subhead { font-size: 1.15rem; margin: 1.6rem 0 .6rem; color: var(--tangerine); }
.about-closing { font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--pine); border: 1px solid var(--pine); border-radius: var(--radius); overflow: hidden; }
.stats li { background: var(--cream); padding: 1.8rem 1rem; text-align: center; min-width: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--tangerine); white-space: normal; overflow-wrap: break-word; }
.stat-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- winemakers carousel ---------- */
.winemakers { background: var(--sacramento); color: var(--cream); }
.winemakers .eyebrow { color: var(--lime); }
.carousel-controls { display: flex; gap: .6rem; }
.car-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--cream);
  background: transparent; color: var(--cream); font-size: 1.1rem; cursor: pointer; transition: .2s;
}
.car-btn:hover { background: var(--lime); color: var(--sacramento); border-color: var(--lime); }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem 0 1.5rem; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 1.25rem; padding-inline: var(--gutter); }
.wm-card { scroll-snap-align: start; flex: 0 0 clamp(280px, 28vw, 340px); }
.wm-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--pine), var(--sacramento));
  display: flex; align-items: flex-end; padding: 1rem; position: relative;
}
.wm-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.wm-region { position: relative; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: var(--lime); color: var(--sacramento); padding: .3rem .6rem; border-radius: 999px; font-weight: 600; }
.wm-name { font-family: var(--font-mono); font-weight: 600; margin: .8rem 0 .35rem; }
.wm-tag {
  font-size: .82rem; opacity: .8; margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.carousel-foot { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ---------- tickets ---------- */
.ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ticket-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.ticket-card {
  position: relative; background: #fff; border: 2px solid var(--pine);
  border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column;
}
.ticket-card.featured { background: var(--pine); color: var(--cream); border-color: var(--pine); transform: translateY(-10px); box-shadow: 0 16px 40px rgba(22,33,20,.2); }
.ticket-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--lime); color: var(--sacramento); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; }
.ticket-name { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.ticket-price { font-family: var(--font-display); font-size: 1rem; margin: .6rem 0 1.4rem; }
.ticket-price span { font-size: 2.6rem; }
.ticket-perks { margin-bottom: 1.8rem; flex: 1; }
.ticket-perks li { padding: .5rem 0; border-bottom: 1px dashed rgba(41,65,34,.3); font-size: .92rem; }
.ticket-card.featured .ticket-perks li { border-color: rgba(243,241,212,.25); }
.tickets-note { text-align: center; margin-top: 1.6rem; font-size: .85rem; opacity: .75; }
.tickets-widget { text-align: center; margin-top: .6rem; }
.tickets-widget .smsticket-ibutton {
  display: inline-block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--lime, #CEFB02);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- events ---------- */
.events { background: var(--cream); }
.events-soon {
  max-width: 640px; margin-inline: auto; text-align: center;
  background: #fff; border: 2px dashed var(--pine); border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3rem);
}
.events-soon-badge {
  display: inline-block; background: var(--lime); color: var(--sacramento);
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.events-soon h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.events-soon p { margin: 0; opacity: .8; }

/* Reserved for later: per-tasting cards, re-enabled once specific guided
   tastings (date/time/sommelier/price) are confirmed. */
.events-list { display: flex; flex-direction: column; gap: 1.1rem; }
.event-card {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 1.5rem; align-items: center;
  background: #fff; border: 2px solid var(--pine); border-radius: var(--radius); padding: 1.5rem 1.8rem;
  transition: .2s;
}
.event-card:hover { border-color: var(--tangerine); }
.event-time { text-align: center; border-right: 2px solid rgba(41,65,34,.2); padding-right: 1.2rem; }
.event-date { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--tangerine); }
.event-hour { font-size: .9rem; letter-spacing: .08em; }
.event-body h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.event-body p { margin: 0; font-size: .92rem; }
.event-meta { margin-top: .4rem !important; font-size: .8rem !important; opacity: .7; letter-spacing: .04em; }
.event-buy { text-align: center; }
.event-price { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 .6rem; }

/* ---------- sponsors ---------- */
.sponsors { background: #fff; }
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(41,65,34,.2); border: 1px solid rgba(41,65,34,.2); border-radius: var(--radius); overflow: hidden; }
.sponsor-slot { background: #fff; aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(41,65,34,.5); }
.sponsors-cta { text-align: center; margin-top: 1.8rem; }
.sponsors-cta a { color: var(--tangerine); font-weight: 600; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--lime); color: var(--sacramento); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.newsletter-text p:last-child { margin-bottom: 0; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .8rem; }
.newsletter-form input {
  flex: 1; min-width: 220px; font-family: var(--font-mono); font-size: 1rem;
  padding: .95rem 1.2rem; border: 2px solid var(--sacramento); border-radius: 999px; background: #fff; color: var(--sacramento);
}
.newsletter-form input:focus { outline: 3px solid var(--pine); outline-offset: 1px; }
.newsletter-msg { flex-basis: 100%; margin: .3rem 0 0; font-size: .85rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--sacramento); color: var(--cream); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { height: 36px; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 38ch; font-size: .9rem; opacity: .85; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; margin: 0 0 .6rem; opacity: .85; }
.footer-col a:hover { color: var(--lime); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(243,241,212,.18); margin-top: 2.5rem; padding-block: 1.5rem; font-size: .8rem; opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--pine); padding: 1rem var(--gutter) 2rem;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: 0 12px 30px rgba(0,0,0,.3);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(243,241,212,.15); }
  .main-nav .nav-cta { margin-top: 1rem; text-align: center; }

  .about-grid { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: 1fr; }
  .ticket-card.featured { transform: none; }
  .event-card { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
  .event-time { display: flex; gap: 1rem; border-right: 0; border-bottom: 2px solid rgba(41,65,34,.2); padding: 0 0 .8rem; }
  .event-buy { text-align: left; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-meta { gap: 1.5rem; }
  .sponsor-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-num { white-space: normal; font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
