/* =========================================================================
   Rogue Valley Wine Tasting — pixel-perfect HTML/CSS/JS clone
   Design tokens extracted from getComputedStyle of the live origin.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Allura&family=Lato:wght@400;700;900&family=Lora:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-bg: #f6f1e8;            /* page cream background */
  --color-text: #686868;          /* body text gray */
  --color-text-strong: #090d0f;   /* headings on light bg */
  --color-accent: #6f895c;        /* sage green (section bg + logo) */
  --color-accent-soft: #b0c1a3;   /* light sage (menu link color) */
  --color-tan: #d7cdbe;           /* warm tan strip background */
  --color-deep-green: #043a21;    /* footer */
  --color-white: #ffffff;

  /* Typography */
  --font-body: 'Lora', Verdana, Helvetica, Arial, sans-serif;
  --font-heading: 'Lato', Verdana, Helvetica, Arial, sans-serif;
  --font-script: 'Allura', 'Brush Script MT', cursive;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --header-height: 151px;
  --hero-height: 580px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; border: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; padding: 0; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.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; }

/* ===== AOS-style fade-in (custom, lightweight) ===== */
.aos { opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.aos[data-aos="fade-down"] { transform: translateY(-30px); }
.aos[data-aos="fade-up"]   { transform: translateY(30px); }
.aos[data-aos="fade-in"]   { transform: none; }
.aos.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   1. HEADER / NAV
   ========================================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  color: var(--color-white);
  font-family: var(--font-body);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;     /* nav centered now that the logo is removed */
  gap: 1rem;
  position: relative;          /* anchor for the absolutely-positioned mobile toggle */
}
/* Header logo intentionally hidden per request — the brand mark now lives
   on the "Taste the Variety" sunset banner instead. */
.site-logo { display: none; }

/* Main nav */
.main-nav {
  flex: 1;
  text-align: center;
}
.main-nav__list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.main-nav__item { position: relative; }
.main-nav__link {
  display: inline-block;
  min-width: 100px;
  padding: 24px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 15px;
  color: var(--color-accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.35s ease;
}
.main-nav__link:hover,
.main-nav__link:focus,
.main-nav__item.is-open > .main-nav__link { color: var(--color-white); }
.main-nav__caret { display: inline-block; margin-left: 6px; font-size: 10px; transform: translateY(-2px); }

/* Submenus */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  background: var(--color-deep-green);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 30;
}
.main-nav__item:hover > .submenu,
.main-nav__item.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.submenu__item { position: relative; }
.submenu__link {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent-soft);
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}
.submenu__link:hover { color: var(--color-white); background: rgba(255,255,255,0.05); }
.submenu .submenu {
  top: 0;
  left: 100%;
  transform: translate(8px, 0);
}
.submenu__item:hover > .submenu,
.submenu__item.is-open > .submenu {
  transform: translate(0, 0);
}

/* Mobile toggle — anchored to the right edge of the header inner row */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  border-radius: 4px;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bar::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bar::after  { position: absolute; top:  7px; left: 0; }

/* =========================================================================
   2. HERO #1 — "Uncork the Rogue!™"
   ========================================================================= */
.hero {
  position: relative;
  height: var(--hero-height);
  overflow: hidden;
  isolation: isolate;
  background-color: #8a8787; /* fallback bg matches origin's slide bg under jl-blend-darken */
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: darken;          /* origin uses jl-blend-darken */
  pointer-events: none;
}
.hero::after {
  /* subtle vignette to keep text legible */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}
.hero__title {
  font-family: var(--font-script);
  font-size: 110px;
  line-height: 1.05;
  font-weight: 400;
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  letter-spacing: 1px;
  /* slow, dramatic fade-in tied to .aos's transition */
  transition: opacity 1.6s ease, transform 1.6s ease;
}
.hero__title sup { font-size: 0.3em; vertical-align: super; }
@media (max-width: 768px) {
  .hero__title { font-size: 64px; }
}

/* =========================================================================
   3. REGION STRIPS (#g-fullstrip — 4 carousels stacked)
   ========================================================================= */
.region-strips { background-color: var(--color-tan); padding: 0; }
.region-strip {
  position: relative;
  padding: 14px 0; /* tan gap visible above and below each strip */
}
.region-strip + .region-strip { padding-top: 0; }

.strip-track {
  --strip-gap: 4px;            /* tan bg shows through this gap */
  display: flex;
  gap: var(--strip-gap);
  padding: 0 var(--strip-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-card {
  position: relative;
  /* 7 cards visible: subtract 6 inter-card gaps + 2 outer pad gaps from 100% */
  flex: 0 0 calc((100% - 8 * var(--strip-gap)) / 7);
  aspect-ratio: 196 / 246;
  scroll-snap-align: start;
  overflow: hidden;
}
.strip-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* ----- Listing cards (default state: only photo, no overlay) ----- */
.strip-card__title {
  position: absolute;
  top: 0;
  bottom: 147.5px;          /* match origin top:0 bottom:147.5 */
  left: 15px;
  right: 15px;
  z-index: 2;
  margin: 0;
  padding: 25px 10px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-heading);
  font-size: 23.8px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  opacity: 0;                /* hidden by default — origin behavior */
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.strip-card__readmore {
  position: absolute;
  bottom: 22px;
  left: 15px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  padding-bottom: 4px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Hover: darken photo + reveal title + reveal Read More */
.strip-card:hover .strip-card__img { filter: brightness(0.55); transform: scale(1.02); }
.strip-card:hover .strip-card__title { opacity: 1; }
.strip-card:hover .strip-card__readmore { opacity: 1; }

/* ----- Region label cards (first card of each strip — title always visible) ----- */
.strip-card--label .strip-card__title {
  /* Origin: top: 88.4px bottom: 0 — title in the bottom 2/3 of the card, top-aligned */
  top: 88px;
  bottom: 0;
  padding: 0 10px;
  margin: 25px 10px;
  align-items: flex-start;
  font-size: 23.8px;
  line-height: 35.7px;
  letter-spacing: 1px;
  opacity: 1;                 /* always visible */
  pointer-events: auto;
}
.strip-card--label .strip-card__img { filter: brightness(0.85); }
.strip-card--label:hover .strip-card__img { filter: brightness(0.7); transform: scale(1.02); }
.strip-card--label .strip-card__readmore { display: none; }

/* Strip arrow buttons (visible on touch / smaller widths only) */
.strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--color-text-strong);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}
.strip-arrow:hover { background: var(--color-white); transform: translateY(-50%) scale(1.06); }
.strip-arrow--prev { left: 8px; }
.strip-arrow--next { right: 8px; }
.strip-arrow svg { width: 18px; height: 18px; }

/* =========================================================================
   4. GREEN SECTION (#g-firstfullwidth)
      4a. Sunset slideshow (Hero #2) — hidden on phone
      4b. 4-column grid (Instagram + YouTube embeds)
   ========================================================================= */
.green-section {
  background-color: var(--color-accent);
  color: var(--color-text);
  position: relative;
}

/* 4a. Sunset banner — image fills a 297px-tall band as backdrop;
       title + paragraph overlay it and the paragraph flows past the
       image into the green section below (matches origin behaviour). */
.sunset-banner {
  position: relative;
  /* No fixed height: container grows with content. Image sits in top 297px. */
}
.sunset-banner__img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 297px;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.sunset-banner__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 1.5rem 30px;
  text-align: center;
}
.sunset-banner__logo {
  display: block;
  width: 130px;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}
.sunset-banner__title {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 41.6px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  position: relative;
}
.sunset-banner__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-text);
  margin: 18px auto 0;
}
.sunset-banner__desc {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 35px;
  color: var(--color-text);
  margin: 28px 0 0;
  padding: 0 10px;
}

/* 4b. 4-column embed grid — Instagram | YouTube | TikTok | Facebook
       All 4 columns are equal in width and height. */
.green-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 32px 1.5rem 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.green-grid__col {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.embed {
  background: #ffffff;
  width: 100%;
  aspect-ratio: 9 / 16;             /* uniform tall embed for all 4 platforms */
  border-radius: 6px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
}
.embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  flex: 1 1 auto;
}

/* =========================================================================
   5. ACTIVITY STRIP (#g-extension — 5 cards)
   ========================================================================= */
.activity-strip {
  background-color: var(--color-tan);
  padding: 14px 0;
  position: relative;
}
/* 5 cards visible: subtract 4 inter-card gaps + 2 outer pad gaps from 100% */
.activity-strip .strip-card {
  flex: 0 0 calc((100% - 6 * var(--strip-gap)) / 5);
  aspect-ratio: 285 / 371;
}
/* Activity-strip titles are ALWAYS visible at bottom-left with an underline */
.activity-strip .strip-card__title {
  top: auto;
  bottom: 25px;
  left: 22px;
  right: 22px;
  padding: 0 0 14px;
  margin: 0;
  display: block;
  font-size: 23.8px;
  line-height: 35.7px;
  letter-spacing: 1.5px;
  opacity: 1;                  /* override hidden default */
  text-align: left;
}
.activity-strip .strip-card__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--color-white);
  margin-top: 10px;
}
.activity-strip .strip-card__readmore {
  bottom: auto;
  top: 24px;
  left: auto;
  right: 22px;
}
.activity-strip .strip-card:hover .strip-card__img { filter: brightness(0.5); }

/* =========================================================================
   6. FOOTER (#g-copyright)
   ========================================================================= */
.site-footer {
  background-color: var(--color-deep-green);
  color: var(--color-white);
  padding: 60px 0 0;
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-brand__logo { max-width: 240px; height: auto; }
.footer-brand__wjd  { max-width: 180px; height: auto; }

/* Weather widget */
.footer-weather {
  background: var(--color-white);
  color: var(--color-text);
  padding: 18px 22px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
  max-width: 380px;
}
.footer-weather__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 6px;
  color: var(--color-text-strong);
}
.footer-weather__time { text-align: center; font-size: 13px; margin-bottom: 4px; }
.footer-weather__time b { color: var(--color-text-strong); }
.footer-weather__feels { text-align: center; font-weight: 700; margin-top: 4px; font-size: 14px; }
.footer-weather__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0 8px;
}
.footer-weather__icon { width: 56px; height: 56px; }
.footer-weather__temp { font-size: 24px; font-weight: 700; color: var(--color-text-strong); line-height: 1; }
.footer-weather__minmax { font-size: 12px; color: var(--color-text); }
.footer-weather__sun {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 6px;
  font-size: 12px;
  align-items: center;
  justify-items: start;
}
.footer-weather__sun img { width: 24px; height: 24px; }
.footer-weather__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 12px;
  margin-top: 8px;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

/* More links */
.footer-links__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  margin: 0 0 14px;
  color: var(--color-white);
}
.footer-links__list { display: flex; flex-direction: column; gap: 6px; }
.footer-links__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  transition: opacity 0.2s ease;
}
.footer-links__list a:hover { opacity: 0.75; }
.footer-links__icon { font-size: 14px; line-height: 1; width: 16px; }

/* Bottom row */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding: 28px 0 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .strip-card { flex: 0 0 calc((100% - 5 * var(--strip-gap)) / 4); aspect-ratio: 196 / 246; }
  .activity-strip .strip-card { flex: 0 0 calc((100% - 4 * var(--strip-gap)) / 3); }
  .green-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-height: 110px; --hero-height: 360px; }
  .site-header__inner { justify-content: center; padding: 0 1rem; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .strip-card { flex: 0 0 100%; aspect-ratio: 16 / 11; }
  .activity-strip .strip-card { flex: 0 0 100%; aspect-ratio: 16 / 11; }
  .strip-arrow { display: inline-flex; }

  .sunset-banner__logo { width: 100px; margin-bottom: 14px; }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { align-items: center; text-align: center; }
}

/* Mobile menu drawer */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 90vw);
  background: var(--color-deep-green);
  color: var(--color-white);
  padding: 80px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  z-index: 200;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--color-white);
}
.mobile-drawer__list a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-soft);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-drawer__list a:hover { color: var(--color-white); }
.mobile-drawer__sublist a {
  padding-left: 18px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  border-bottom: 0;
}
.mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 150;
}
.mobile-drawer__overlay.is-open { opacity: 1; visibility: visible; }
