/* Hajdu Wines — site styles */
:root {
  --ink: #1c1417;
  --wine: #5b1a2a;
  --wine-deep: #3a0f1b;
  --gold: #b8935a;
  --cream: #f6f1e9;
  --paper: #fbf8f3;
  --muted: #6f6468;
  --line: #e4dcd0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo {
  font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .06em;
  text-decoration: none; text-transform: uppercase; color: var(--wine-deep);
}
.logo span { color: var(--gold); font-weight: 400; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a.active { color: var(--wine); border-color: var(--gold); }
.c7-tools { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.menu-toggle {
  display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); padding: 4px;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself
   traps the fixed Commerce7 side cart inside the header (cut-off cart,
   page wider than the screen, age gate off-centre on phones). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff;
  background: #3a3833 url("hero.jpg") center 40%/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,10,8,.30) 0%, rgba(12,10,8,.18) 45%, rgba(12,10,8,.45) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: 40px; text-align: center; }
.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.5vw, 96px);
  line-height: 1.02; margin: 0 auto 20px; max-width: 18ch; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; }
.hero p.lede { font-size: 19px; max-width: 560px; margin: 0 auto 34px; color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero .eyebrow { color: #fff; opacity: .9; }
.photo-credit { position: absolute; right: 22px; bottom: 18px; z-index: 1; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.btn {
  display: inline-block; text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid var(--gold); background: var(--gold); color: #1c0810;
  transition: background .2s, color .2s; cursor: pointer;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(246,241,233,.5); margin-left: 12px; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.dark { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.btn.dark:hover { background: transparent; color: var(--wine); }
.scroll-cue {
  display: none; position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(246,241,233,.6);
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2, .page-title h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px;
}
.section-head p { color: var(--muted); margin: 0; }
.rule { width: 60px; height: 1px; background: var(--gold); margin: 22px auto; border: 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--paper); padding: 48px 36px; }
.pillar .num { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.pillar h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 14px 0 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 15px; }

.band { background: var(--cream); }
.dark-band { background: var(--wine-deep); color: var(--cream); }
.dark-band .section-head p { color: rgba(246,241,233,.72); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split .art {
  aspect-ratio: 4/5; background:
    linear-gradient(160deg, rgba(184,147,90,.25), transparent 50%),
    linear-gradient(20deg, #3a0f1b, #6b2336);
  position: relative; overflow: hidden;
}
.split .art img { width: 100%; height: 100%; object-fit: cover; }
.split .art .caption {
  position: absolute; left: 24px; bottom: 20px; color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 20px;
}
.split h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.1; margin: 0 0 22px; }
.split p { color: var(--muted); }

.cta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cta-card {
  border: 1px solid rgba(184,147,90,.4); padding: 40px 32px; text-decoration: none; transition: background .25s, transform .25s;
}
.cta-card:hover { background: rgba(184,147,90,.08); transform: translateY(-3px); }
.cta-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 10px; }
.cta-card p { margin: 0 0 20px; color: rgba(246,241,233,.72); font-size: 15px; }
.cta-card .arrow { color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Inner pages ---------- */
.page-title { padding: 80px 0 50px; text-align: center; border-bottom: 1px solid var(--line); background: var(--cream); }
.page-title p { color: var(--muted); margin: 0; }
.page-body { padding: 70px 0 110px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 44px 0 12px; }
.prose p, .prose li { color: #3d3336; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 20px; }
.info-grid h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 8px; }
.info-grid p { margin: 0; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter .c7-subscribe { max-width: 520px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #140609; color: rgba(246,241,233,.7); padding: 70px 0 36px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: var(--cream); font-size: 26px; }
.site-footer h4 { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-base { border-top: 1px solid rgba(246,241,233,.12); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(20,6,9,.94); color: var(--cream); text-align: center; padding: 24px;
}
.age-gate.show { display: flex; }
.age-gate .box { max-width: 440px; }
.age-gate .logo { color: var(--cream); display: inline-block; margin-bottom: 26px; }
.age-gate h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 12px; }
.age-gate p { color: rgba(246,241,233,.7); margin: 0 0 30px; }
.age-gate .btn.ghost { margin-left: 10px; }

/* ---------- Commerce7 theming (v2) ---------- */
#c7-content, .c7-product-collection { font-family: var(--sans); }
#c7-content h1, #c7-content h2, .c7-product-collection h2 { font-family: var(--serif); font-weight: 400; }
#c7-content .c7-btn, .c7-btn--primary, .c7-product-collection .c7-btn {
  border-radius: 0 !important; letter-spacing: .12em; text-transform: uppercase;
}
:root {
  /* Commerce7 v2 exposes CSS variables; these match the site palette */
  --c7-primary-color: #5b1a2a;
  --c7-primary-color-dark: #3a0f1b;
  --c7-link-color: #5b1a2a;
  --c7-font-family: "Inter", system-ui, sans-serif;
  --c7-heading-font-family: "Cormorant Garamond", Georgia, serif;
  --c7-border-radius: 0px;
}

/* ---------- Checkout page (no header/footer) ---------- */
body.checkout { background: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; order: 3; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .c7-tools { margin-left: auto; }
  .pillars, .cta-row, .info-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
  .btn.ghost { margin: 12px 0 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
}


/* ---------- Logo image ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 48px; width: auto; }
.site-footer .logo img { height: 50px; }
.age-gate .logo img { height: 72px; margin: 0 auto; }

/* ---------- Bottle showcase (white, Soter-style) ---------- */
.white { background: #fff; }
.bottles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end; }
.bottle { text-align: center; text-decoration: none; display: block; }
.bottle .shot { height: 340px; display: flex; align-items: flex-end; justify-content: center; }
.bottle img { max-height: 100%; width: auto; transition: transform .5s ease; }
.bottle:hover img { transform: translateY(-8px); }
.bottle h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 22px 0 2px; }
.bottle .where { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Feature: photo + bottle ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 640px; background: #fff; }
.feature .photo { background: url("eaglepoint.jpg") 30% center/cover no-repeat; min-height: 420px; }
.feature .panel { display: grid; grid-template-columns: 150px 1fr; gap: 36px; align-items: center; padding: 70px 60px; }
.feature .panel img { max-height: 440px; width: auto; margin: 0 auto; }
.feature h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; margin: 0 0 18px; }
.feature p { color: var(--muted); }
.feature .btn { margin-top: 14px; }

/* ---------- Regions ---------- */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.region { background: #fff; text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; overflow: hidden; }
.region:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(40,20,20,.08); }
.region .top { height: 240px; background-size: cover; background-position: center; transition: transform .6s ease; }
.region:hover .top { transform: scale(1.04); }
.region .top.empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #efe7da, #e3d6c3);
  font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(90,60,40,.55); }
.region .body { padding: 20px 20px 24px; background: #fff; position: relative; z-index: 1; }
.region .body img { height: 110px; width: auto; margin: 0 auto; }
.region h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.15; margin: 0 0 6px; }
.region p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 10px; }
.region .arrow { color: var(--wine); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Club band ---------- */
.club-band { position: relative; color: #fff; text-align: center; padding: 140px 0;
  background: linear-gradient(rgba(30,20,14,.28), rgba(30,20,14,.45)), url("anderson-valley.jpg") center 55%/cover no-repeat; }
.club-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 60px); margin: 0 0 14px; }
.club-band p { max-width: 540px; margin: 0 auto 32px; color: rgba(255,255,255,.88); }
.club-band .eyebrow { color: #fff; }

@media (max-width: 1000px) {
  .bottles { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature .panel { padding: 50px 24px; }
}
@media (max-width: 560px) {
  .bottles { grid-template-columns: repeat(2, 1fr); }
  .bottle .shot { height: 250px; }
  .regions { grid-template-columns: 1fr; }
  .feature .panel { grid-template-columns: 1fr; text-align: center; }
  .feature .panel img { max-height: 320px; }
  .photo-credit { right: 12px; bottom: 10px; font-size: 10px; }
}


/* ---------- Illustrated video hero ---------- */
.hero-art {
  --paper-art: #efede9;
  display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px); padding: 0;
  background: var(--paper-art); overflow: hidden;
}
.hero-text { align-self: center; padding: 60px 40px 60px max(24px, calc((100vw - var(--max)) / 2 + 24px)); max-width: 680px; }
.hero-text h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.04; margin: 0 0 22px; color: var(--ink); }
.hero-text h1 em { font-style: italic; color: var(--wine); }
.hero-text .lede { font-size: 18px; color: #4d4447; max-width: 480px; margin: 0 0 34px; }
.hero-text .eyebrow { color: #7a6a58; }
.btn.outline { background: transparent; color: var(--ink); border-color: rgba(28,20,23,.4); margin-left: 12px; }
.btn.outline:hover { border-color: var(--wine); color: var(--wine); }
.hero-video { position: relative; min-height: 100%; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
@media (max-width: 900px) {
  .hero-art { grid-template-columns: 1fr; min-height: 0; }
  .hero-video { order: -1; height: 62vh; }
  .hero-video video { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .hero-text { padding: 10px 24px 70px; text-align: center; margin: 0 auto; }
  .hero-text .lede { margin-left: auto; margin-right: auto; }
  .btn.outline { margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } .hero-video { background: url("hero-illustration-poster.jpg") center/cover; } }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--paper); text-align: center; }
.narrow { max-width: 760px; }
.philosophy p { color: #4d4447; font-size: 17px; margin: 0 auto 18px; }
.philosophy p.big { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; color: var(--ink); margin-bottom: 30px; }

/* ---------- Video hero (clouds) ---------- */
.hero-film { position: relative; height: calc(100vh - 76px); min-height: 520px; padding: 0; overflow: hidden; color: #fff; background: #0b0a09; display: flex; align-items: flex-end; }
.hero-film video, .hero-film .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.6) 100%); pointer-events: none; }
.hero-film .wrap { position: relative; z-index: 1; width: 100%; text-align: center; padding-bottom: 80px; }
.hero-film h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 84px); line-height: 1.04; margin: 0 auto 16px; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero-film h1 em { font-style: italic; }
.hero-film .lede { font-size: 18px; margin: 0 auto 32px; color: rgba(255,255,255,.88); max-width: 560px; }
.hero-film .eyebrow { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.hero-film .lede { text-shadow: 0 1px 12px rgba(0,0,0,.5); }
@media (max-width: 560px) { .hero-film { height: 82vh; } .hero-film .wrap { padding-bottom: 56px; } }
@media (prefers-reduced-motion: reduce) { .hero-film video { display: none; } }

.prose .lead-para { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.35; color: var(--ink); margin-bottom: 10px; }

.hero-logo { width: min(333px, 47vw); height: auto; margin: 0 auto 40px; opacity: .7; filter: drop-shadow(0 2px 18px rgba(0,0,0,.35)); }
.hero-film video, .hero-film .poster { filter: grayscale(1) contrast(1.35) brightness(.95); }
/* Hero buttons in black, white and gray */
.hero-film .btn { background: rgba(255,255,255,.92); border-color: #fff; color: #111; }
.hero-film .btn:hover { background: #bdbdbd; border-color: #bdbdbd; color: #111; }
.hero-film .btn.ghost { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.7); color: #fff; }
.hero-film .btn.ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }

/* Winemaking section with elephant animation */
.philosophy.winemaking { background: #fff; text-align: left; padding: 10px 0 100px; }
.wm-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.wm-art video { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.wm-text p { margin-left: 0; }
@media (max-width: 800px) {
  .wm-grid { grid-template-columns: 1fr; gap: 20px; }
  .philosophy.winemaking { text-align: center; padding: 60px 0; }
  .wm-art video { max-width: 260px; }
  .wm-text p { margin-left: auto; margin-right: auto; }
}

/* Animated elephant, top-left of the hero, under the header logo */
.hero-elephant { position: absolute; z-index: 1; top: 24px; left: calc(max(24px, calc((100vw - var(--max)) / 2 + 24px)) + 66px); transform: translateX(-50%); width: 234px; pointer-events: none; }
.hero-elephant { height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
@media (max-width: 560px) { .hero-elephant { width: 150px; top: 16px; left: 82px; } }

/* Bottle hover animation */
.bottle-anim { position: relative; display: block; }
.bottle-anim video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.bottle-anim.playing video { opacity: 1; }
