/* Stonycreek Valley Cellars - site styles
   Colors and fonts match the Wix prototype. */

:root {
  --green: #2d4a1e;
  --green-dark: #1a2e10;
  --burgundy: #4d0202;
  --gold: #d4a853;
  --cream: #f5e6c8;
  --tan: #c4956a;
  --ink: #1a1a1a;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--green-dark);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); }
a:hover { color: var(--cream); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--cream); color: var(--ink); padding: 8px 12px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(212, 168, 83, .18);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 40px; width: auto; }
.brand-text {
  font-family: var(--serif); font-size: 1.35rem; color: var(--cream); text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(245, 230, 200, .4); border-radius: 6px;
  color: var(--cream); font: inherit; font-size: .85rem; padding: 6px 12px; cursor: pointer;
}

.site-nav ul {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
.site-nav a, .site-nav .nav-disabled {
  white-space: nowrap; font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  color: var(--cream); text-decoration: none;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold);
}
/* Menu items whose pages aren't ready yet */
.site-nav .nav-disabled { opacity: .5; cursor: default; }

@media (max-width: 960px) {   /* six menu items: switch to the Menu button before they wrap */
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--green-dark);
    border-bottom: 1px solid rgba(212, 168, 83, .18);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav li { padding: 10px 0; border-top: 1px solid rgba(245, 230, 200, .08); }
}

/* ---------- Buttons and badges ---------- */

.btn {
  display: inline-block;
  background: var(--tan); color: var(--ink);
  font-family: var(--sans); font-size: .85rem; font-weight: 500;
  padding: 12px 30px; border-radius: 50px; text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--gold); color: var(--ink); }

.badge-soon {
  display: inline-block;
  border: 1px solid var(--tan); color: var(--cream);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 26px; border-radius: 50px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: min(640px, calc(100vh - var(--header-h)));
  background: var(--green);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 64px var(--gutter);
}
.hero-text h1 { margin-bottom: .6em; }
.hero-sub {
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--cream); margin-bottom: 2em; max-width: 22ch;
}
.hero-img { position: relative; background: var(--green-dark); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { min-height: 280px; }
}

/* ---------- Generic sections ---------- */

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-green { background: var(--green); }
.section-dark { background: var(--green-dark); }
.section-burgundy { background: var(--burgundy); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- Our Current Selections (placeholder) ---------- */

.selections { text-align: center; }
.selections .wrap > p, .showcase > p {
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--cream);
  margin: 0 auto; max-width: 36ch;
}

/* ---------- Winemaking videos ---------- */

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collage img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; background: var(--green-dark); }
.collage img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* ---------- Big Dog Lodge ---------- */

.perks { margin: 0 0 2em; padding-left: 1.2em; }
.perks li { margin: .15em 0; }
.lodge-img img { width: 100%; border-radius: 4px; background: var(--green); }

/* ---------- Guided by the Stonycreek River ---------- */

.river {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  background: var(--green) url("../img/river-banner.jpg") center / cover no-repeat;
}
.river::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26, 46, 16, .75) 0%, rgba(26, 46, 16, .25) 60%, rgba(26, 46, 16, 0) 100%);
}
.river .wrap { position: relative; display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.river h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .4em; }
.river .river-logo { height: 52px; width: auto; }
.river .glass { width: clamp(120px, 18vw, 220px); }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-dark); border-top: 1px solid rgba(212, 168, 83, .18); padding: 48px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: start; }
.footer-grid img { height: 44px; width: auto; }
.footer-grid h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--gold); margin-bottom: .6em; }
.footer-grid address { font-style: normal; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(212, 168, 83, .12); font-size: .82rem; opacity: .85; }
.footer-legal p { margin: 0 0 .3em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- About page ---------- */

.about-hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--green-dark); }
.about-hero .about-img { position: relative; min-height: 420px; background: var(--green); }
.about-hero .about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero .about-text { padding: clamp(48px, 7vw, 96px) var(--gutter); align-self: center; max-width: 620px; }
@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero .about-img { min-height: 260px; }
}

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { text-align: center; margin-bottom: 1em; }

.winemaker { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.winemaker .name { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); margin-bottom: .4em; }
.photo-placeholder {
  aspect-ratio: 6 / 5;
  border: 2px dashed rgba(212, 168, 83, .55); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--gold); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(245, 230, 200, .04);
}
.winemaker-photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: 4px; box-shadow: 0 0 0 1px rgba(212, 168, 83, .35), 0 12px 30px rgba(0, 0, 0, .35);
}
@media (max-width: 760px) { .winemaker { grid-template-columns: 1fr; } .photo-placeholder, .winemaker-photo { max-width: 320px; } }

/* ---------- Age gate ---------- */

.age-gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(26, 46, 16, .82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none; }
.age-box {
  background: rgba(45, 74, 30, .96);
  border: 1px solid var(--gold); border-radius: 10px;
  max-width: 460px; width: 100%; padding: 36px 28px; text-align: center;
}
.age-box h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.age-box p { font-weight: 700; color: var(--gold); }
.age-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 24px 0 18px; }
.age-buttons button { border: 0; cursor: pointer; font-family: var(--sans); }
.age-denied { color: var(--cream) !important; font-weight: 500 !important; }
body.gate-open { overflow: hidden; }

/* ---------- Our Wines (catalog from Square) ---------- */

.page-intro { text-align: center; padding-bottom: clamp(40px, 6vw, 64px); }
.page-intro .hero-sub { margin: 0 auto; max-width: 40ch; }

.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.wines-status {
  grid-column: 1 / -1; text-align: center;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--cream);
  margin: 0;
}

.wine-card {
  display: flex; flex-direction: column;
  background: var(--green-dark);
  border: 1px solid rgba(212, 168, 83, .22); border-radius: 8px;
  overflow: hidden;
}
.wine-media { position: relative; aspect-ratio: 4 / 5; background: #f4efe6; }
.wine-media > img { width: 100%; height: 100%; object-fit: contain; }
.wine-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
}
.wine-placeholder img { width: 55%; height: auto; opacity: .55; }

.wine-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--burgundy); color: var(--cream);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 50px;
}
.wine-card.is-sold-out .wine-media > img,
.wine-card.is-sold-out .wine-placeholder { opacity: .5; }

.wine-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.wine-name { font-size: 1.5rem; margin-bottom: .35em; }
.wine-desc { font-size: .9rem; margin-bottom: 1em; }

.wine-options { list-style: none; margin: auto 0 0; padding: 0; }
.wine-option {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 8px 0; border-top: 1px solid rgba(245, 230, 200, .1);
}
.option-name { color: var(--cream); font-size: .9rem; }
.option-price { margin-left: auto; color: var(--gold); font-weight: 600; }
.option-soldout { width: 100%; text-align: right; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tan); }
.wine-option.is-sold-out .option-price { text-decoration: line-through; opacity: .6; }

/* Phone layout: clearer separation between stacked wine cards */
@media (max-width: 600px) {
  .wine-grid { gap: 48px; }
  .wine-card {
    border-color: rgba(212, 168, 83, .45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  }
  .wine-media { aspect-ratio: 4 / 5; }
  .wine-body { padding-bottom: 28px; }
}

/* ---------- Cart ---------- */

.site-header .wrap { gap: 20px; }
.brand { margin-right: auto; }

.cart-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; color: var(--cream); cursor: pointer;
  border: 1px solid rgba(245, 230, 200, .4); border-radius: 50px;
  font: inherit; font-size: .85rem; font-weight: 500; padding: 6px 8px 6px 14px;
}
.cart-button:hover { border-color: var(--gold); color: var(--gold); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245, 230, 200, .15); color: var(--cream); font-size: .78rem; font-weight: 700;
}
.cart-button.has-items .cart-count { background: var(--gold); color: var(--ink); }
.cart-button.bump .cart-count { animation: cart-bump .35s ease; }
@keyframes cart-bump { 50% { transform: scale(1.3); } }
@media (max-width: 960px) {
  .cart-button { order: 2; }
  .nav-toggle { order: 3; }
}

.add-btn {
  flex-basis: 100%;
  margin-top: 8px;
  background: var(--tan); color: var(--ink); border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  padding: 9px 16px; border-radius: 50px;
  transition: background .2s;
}
.add-btn:hover { background: var(--gold); }
.add-btn.is-added { background: var(--cream); }

body.cart-open { overflow: hidden; }
.cart-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); }
.cart-overlay[hidden], .cart-panel[hidden] { display: none; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--green-dark); border-left: 1px solid rgba(212, 168, 83, .35);
  box-shadow: -12px 0 32px rgba(0, 0, 0, .4);
  transform: translateX(100%); transition: transform .25s ease;
}
.cart-panel.is-open { transform: none; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(212, 168, 83, .2);
}
.cart-head h2 { font-size: 1.8rem; margin: 0; }
.cart-close {
  background: none; border: 1px solid rgba(245, 230, 200, .4); border-radius: 50px;
  color: var(--cream); font: inherit; font-size: .8rem; padding: 6px 14px; cursor: pointer;
}
.cart-notice {
  margin: 14px 20px 0; padding: 10px 12px; border-radius: 6px;
  background: rgba(77, 2, 2, .6); color: var(--cream); font-size: .85rem;
}
.cart-body { flex: 1; overflow-y: auto; }
.cart-list { list-style: none; margin: 0; padding: 8px 20px; }
.cart-empty { padding: 32px 0; text-align: center; color: var(--cream); font-family: var(--serif); font-size: 1.3rem; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgba(245, 230, 200, .1);
}
.cart-line-info { display: flex; flex-direction: column; }
.cart-line-name { color: var(--cream); font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.cart-line-option { font-size: .85rem; color: var(--cream); opacity: .85; }
.cart-line-unit { font-size: .8rem; }
.cart-line-total { grid-column: 2; grid-row: 1; align-self: start; color: var(--gold); font-weight: 600; }
.cart-qty { display: inline-flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid rgba(245, 230, 200, .4); color: var(--cream); font-size: 1.1rem; line-height: 1;
}
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-val { min-width: 28px; text-align: center; color: var(--cream); font-weight: 600; }
.cart-remove {
  justify-self: end; background: none; border: 0; cursor: pointer; padding: 4px 0;
  color: var(--tan); font: inherit; font-size: .8rem; text-decoration: underline;
}
.cart-foot { padding: 16px 20px 24px; border-top: 1px solid rgba(212, 168, 83, .25); }
.cart-subtotal { display: flex; justify-content: space-between; color: var(--cream); font-size: 1.05rem; margin-bottom: .4em; }
.cart-subtotal strong { color: var(--gold); }
.cart-fineprint { font-size: .78rem; opacity: .85; }
.cart-checkout { width: 100%; border: 0; cursor: pointer; font-size: .95rem; padding: 14px; }
.cart-checkout:disabled { opacity: .5; cursor: default; }
.cart-error {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 6px;
  background: rgba(77, 2, 2, .6); color: var(--cream); font-size: .85rem;
}
.cart-secure { margin: 10px 0 0; text-align: center; }

/* ---------- Thank-you page ---------- */
.thank-you { text-align: center; min-height: 50vh; }
.thank-you p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.thank-you .hero-sub { margin-bottom: 1.2em; max-width: none; }
.order-ref { color: var(--cream); font-weight: 600; letter-spacing: .04em; }
.thank-you .btn { margin-top: 1em; }

/* ---------- Delivery note + delivery area popup ---------- */
.delivery-note {
  max-width: 760px; margin: 28px auto 0; padding: 18px 22px;
  border: 1px solid rgba(212, 168, 83, .45); border-radius: 8px; background: rgba(45, 74, 30, .6);
}
.delivery-note p { margin-bottom: .9em; font-size: .95rem; }
.delivery-note strong { color: var(--cream); }

body.dlv-open { overflow: hidden; }
.dlv-modal {
  position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dlv-modal[hidden] { display: none; }
.dlv-box {
  width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #faf6ee; color: #2b2b2b;
  border: 1px solid var(--gold); border-radius: 10px; padding: 20px 22px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.dlv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlv-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; color: var(--green-dark); }
.dlv-close {
  background: none; border: 1px solid #8a7a5c; border-radius: 50px;
  color: #3b3b3b; font: inherit; font-size: .8rem; padding: 6px 14px; cursor: pointer;
}
.dlv-close:hover { border-color: var(--green); color: var(--green); }
.dlv-intro { margin: 10px 0 14px; font-size: .92rem; color: #3b3b3b; }
.dlv-form label { display: block; color: var(--green-dark); font-weight: 600; margin-bottom: 6px; }
.dlv-row { display: flex; gap: 10px; }
.dlv-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 6px;
  border: 1px solid #b9ab8d; background: #fff; color: var(--ink);
}
.dlv-row input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.dlv-row .btn { border: 0; cursor: pointer; }
.dlv-result {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; font-size: .92rem;
  background: #efe8da; color: #2b2b2b; border-left: 4px solid #b9ab8d;
}
.dlv-result.tier-any { background: #e3eedc; border-left-color: var(--green); }
.dlv-result.tier-case { background: #f5e9dc; border-left-color: var(--tan); }
.dlv-result.tier-none { background: #f6e1e1; border-left-color: #9b2c2c; }
.dlv-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 16px 0 10px; font-size: .88rem; }
.dlv-legend li { display: flex; align-items: center; gap: 8px; color: #2b2b2b; }
.dlv-swatch { width: 22px; height: 16px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0, 0, 0, .35); }
.dlv-map { height: min(460px, 55vh); border-radius: 6px; background: #e8e4da; border: 1px solid #cfc4ad; }
.dlv-map-error { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink); padding: 20px; }
.dlv-fine { font-size: .8rem; margin: 10px 0 0; color: #4a4a4a; }
.dlv-fine a { color: var(--green); font-weight: 600; }
.dlv-box .leaflet-container { font-family: var(--sans); }

/* ---------- Cart: delivery address ---------- */
.cart-delivery { margin: 4px 20px 16px; padding: 14px 14px 10px; border: 1px solid rgba(212, 168, 83, .3); border-radius: 8px; }
.cart-delivery h3 { font-size: 1.4rem; margin: 0 0 .2em; }
.cart-dlv-intro { font-size: .82rem; margin-bottom: .8em; }
.cart-dlv-intro a { color: var(--gold); }
.cart-dlv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; }
.cart-field { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--cream); position: relative; }
.cart-field-name, .cart-field-street, .cart-field-street2 { grid-column: 1 / -1; }
.cart-field input {
  font: inherit; font-size: .95rem; padding: 8px 10px; border-radius: 6px;
  border: 1px solid rgba(245, 230, 200, .35); background: #fffdf8; color: var(--ink); width: 100%;
}
.cart-field-city input { padding-right: 40px; }
.cart-state { position: absolute; right: 10px; bottom: 9px; color: #6b6b6b; font-size: .85rem; font-weight: 600; }
.cart-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.cart-dlv-status {
  margin: 4px 0 12px; padding: 9px 11px; border-radius: 6px; font-size: .84rem;
  background: rgba(245, 230, 200, .08); color: var(--cream); border-left: 4px solid rgba(245, 230, 200, .3);
}
.cart-dlv-status.is-ok { background: rgba(111, 163, 90, .18); border-left-color: #6fa35a; }
.cart-dlv-status.is-short { background: rgba(196, 149, 106, .18); border-left-color: var(--tan); }
.cart-dlv-status.is-none { background: rgba(77, 2, 2, .55); border-left-color: #b04848; }

/* ---------- Large "View cart" button below the wines ---------- */
.cart-cta { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }
.cart-cta-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: min(420px, 100%); padding: 16px 36px; border: 0; cursor: pointer;
  background: var(--gold); color: var(--ink); border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .15s, background .2s;
}
.cart-cta-btn:hover { background: var(--cream); transform: translateY(-1px); }
.cart-cta-main { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; }
.cart-cta-sub { font-size: .85rem; font-weight: 500; opacity: .85; }
.cart-cta-btn.is-empty { background: rgba(245, 230, 200, .15); color: var(--cream); box-shadow: none; }
.cart-cta-btn.is-empty:hover { background: rgba(245, 230, 200, .25); }

/* ---------- Events (home section + events page) ---------- */

.btn-outline { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--tan); }
.btn-outline:hover { background: var(--tan); color: var(--ink); }

.events-home h2, .events-page h1 { text-align: center; margin-bottom: .8em; }
.events-intro { max-width: 70ch; margin: 0 auto 2.5em; text-align: center; color: var(--cream); }
.events-empty { max-width: 62ch; margin: 0 auto; text-align: center; }
.events-empty p { margin-bottom: 1.6em; color: var(--cream); }
.events-empty a { color: var(--gold); }
.events-empty .events-soon {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--gold); margin: 0 0 .7em;
}
.events-soon::before, .events-soon::after {
  content: ""; display: inline-block; width: 40px; height: 1px; background: var(--tan);
  vertical-align: middle; margin: 0 16px; opacity: .7;
}
.events-all { text-align: center; margin-top: 3.5em; }

.event-feature, .event-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: rgba(245, 230, 200, .06); border: 1px solid rgba(212, 168, 83, .25);
  border-radius: 6px;
}
.event-feature > .event-img, .event-card > .event-img { border-radius: 5px 0 0 5px; }
.event-img { width: 100%; height: 100%; min-height: 260px; max-height: 440px; object-fit: cover; object-position: 50% 25%; display: block; background: var(--green-dark); }
.event-body { padding: clamp(22px, 3vw, 36px); }
.event-type { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .5em; }
.event-body h2, .event-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .4em; text-align: left; }
.event-when { font-weight: 600; color: var(--cream); margin-bottom: .8em; }
.event-where { color: var(--cream); margin-bottom: 1em; }
.event-desc { color: var(--cream); margin-bottom: 1.2em; opacity: .92; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.event-card { scroll-margin-top: calc(var(--header-h) + 16px); }
.event-card:target { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

.events-next-title { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 2em 0 .8em; text-align: center; }
.events-next { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.events-next a {
  display: grid; gap: 2px; height: 100%; padding: 16px 20px; text-decoration: none; color: var(--cream);
  border: 1px solid rgba(212, 168, 83, .25); border-radius: 6px; transition: border-color .2s, background .2s;
}
.events-next a:hover { border-color: var(--gold); background: rgba(245, 230, 200, .06); }
.events-next-date { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.events-next-title-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.events-next-venue { font-size: .85rem; opacity: .85; }

@media (max-width: 760px) {
  .event-feature, .event-card { grid-template-columns: 1fr; }
  .event-img { min-height: 0; aspect-ratio: 16 / 10; max-height: none; height: auto; }
  .event-feature > .event-img, .event-card > .event-img { border-radius: 5px 5px 0 0; }
  .events-next { grid-template-columns: 1fr; }
  .event-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* "Add to my calendar" choices */
.cal-menu { position: relative; }
.cal-menu > summary { list-style: none; cursor: pointer; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-menu > summary::after { content: " ▾"; font-size: .8em; }
.cal-menu[open] > summary { background: var(--tan); color: var(--ink); }
.cal-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: var(--cream); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); padding: 6px;
  display: grid;
}
.cal-list a { color: var(--ink); text-decoration: none; padding: 11px 14px; border-radius: 5px; font-size: .92rem; font-weight: 500; }
.cal-list a:hover, .cal-list a:focus { background: rgba(196, 149, 106, .3); }
@media (max-width: 760px) {
  .event-actions .cal-menu { flex: 1 1 auto; }
  .event-actions .cal-menu > summary { display: block; text-align: center; }
  .cal-list { position: static; margin-top: 8px; box-shadow: none; }
}

/* Home: "no events yet" card with the default tasting photo */
.events-empty-card .event-body { display: flex; flex-direction: column; justify-content: center; text-align: center; max-width: none; margin: 0; }
.events-empty .events-soon { white-space: nowrap; }
@media (max-width: 480px) {
  .events-soon::before, .events-soon::after { width: 22px; margin: 0 10px; }
}

/* "Coming soon" wines (Square category "Coming Soon") */
.wine-badge.is-soon { background: var(--gold); color: var(--ink); }
.wine-soon-note { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6em; }

/* ---------- Home: "Our Current Selections" showcase ---------- */
.showcase {
  display: grid; gap: clamp(20px, 3vw, 32px); margin: clamp(28px, 4vw, 44px) auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px;
}
.showcase.count-1 { grid-template-columns: minmax(0, 340px); justify-content: center; }
.showcase.count-2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.showcase > p { grid-column: 1 / -1; }
.showcase-card {
  display: flex; flex-direction: column; text-align: left; text-decoration: none; color: var(--cream);
  background: var(--green-dark); border: 1px solid rgba(212, 168, 83, .3); border-radius: 8px; overflow: hidden;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.showcase-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.showcase-media { position: relative; aspect-ratio: 4 / 5; background: #f4efe6; }
.showcase-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.showcase-name { font-size: 1.4rem; margin-bottom: .3em; }
.showcase-desc { font-size: .88rem; margin-bottom: .8em; opacity: .9; }
.showcase-price { margin-top: auto; color: var(--gold); font-weight: 600; font-size: 1rem; }
.showcase-cta { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shop-btn { text-decoration: none; background: var(--tan); }
.shop-btn:hover { background: var(--gold); color: var(--ink); transform: none; }   /* same as the other buttons: tan, gold on hover */
.showcase-note { font-size: .9rem; color: var(--cream); margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--cream); }
@media (max-width: 760px) {
  .showcase, .showcase.count-2 { grid-template-columns: minmax(0, 360px); justify-content: center; gap: 28px; }
}
.wine-card { scroll-margin-top: calc(var(--header-h) + 20px); }
.wine-card.is-highlighted { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

/* ---------- Cart: promo code ---------- */
.cart-promo { margin: 4px 0 10px; }
.cart-promo-link { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--gold); text-decoration: underline; cursor: pointer; }
.cart-promo-link:hover { color: var(--cream); }
.cart-promo-form { display: flex; gap: 8px; margin-top: 4px; }
.cart-promo-form input {
  flex: 1; min-width: 0; padding: 9px 12px; font: inherit; font-size: 16px; text-transform: uppercase;
  border: 1px solid rgba(212, 168, 83, .45); border-radius: 6px; background: rgba(245, 230, 200, .08); color: var(--cream);
}
.cart-promo-apply { border: 0; border-radius: 6px; padding: 9px 16px; font: inherit; font-weight: 600; background: var(--tan); color: var(--ink); cursor: pointer; }
.cart-promo-apply:hover { background: var(--gold); }
.cart-promo-apply:disabled { opacity: .6; cursor: default; }
.cart-promo-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; font-size: .9rem; color: var(--cream); }
.cart-promo-line strong { margin-left: auto; color: var(--gold); }
.cart-promo-remove { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; color: var(--tan); text-decoration: underline; cursor: pointer; }
.cart-promo-msg { margin: 6px 0 0; font-size: .85rem; color: #f0b4a8; }
.cart-subtotal-after { font-size: .95rem; }

.cart-promo [hidden], .cart-promo[hidden] { display: none !important; }

/* ---------- Gallery page ---------- */

.gallery-page h1 { text-align: center; margin-bottom: .4em; }
.gallery-intro { max-width: 62ch; margin: 0 auto 2.5em; text-align: center; color: var(--cream); }
.gallery-empty {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--gold);
}
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px);
}
.gallery-grid figure { margin: 0; }
.gallery-photo {
  display: block; overflow: hidden; border-radius: 6px; background: var(--green);
  border: 1px solid rgba(212, 168, 83, .25);
}
.gallery-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.04); }
.gallery-photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery-grid figcaption {
  margin-top: .7em; font-size: .92rem; line-height: 1.5; color: var(--cream); opacity: .92;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 3em; }
.pager a {
  min-width: 44px; min-height: 44px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212, 168, 83, .4); border-radius: 6px; color: var(--cream); text-decoration: none; font-weight: 600;
}
.pager a:hover { background: rgba(245, 230, 200, .1); }
.pager a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pager-step { color: var(--gold) !important; }

/* Photo viewer */
.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(10, 18, 6, .97);
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: minmax(0, 1fr) auto;
  padding: 56px 8px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox-info { grid-column: 1 / -1; grid-row: 2; text-align: center; padding: 14px 16px 0; max-width: 70ch; margin: 0 auto; }
.lightbox-caption { color: var(--cream); margin: 0 0 .4em; white-space: pre-line; }
.lightbox-count { color: var(--tan); font-size: .8rem; letter-spacing: .08em; margin: 0; }
.lightbox-close {
  position: absolute; top: 10px; right: 12px; min-height: 40px; padding: 8px 16px;
  background: transparent; color: var(--cream); border: 1px solid rgba(245, 230, 200, .5); border-radius: 20px;
  font: inherit; font-size: .9rem; cursor: pointer;
}
.lightbox-nav {
  grid-row: 1; align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(245, 230, 200, .12); color: var(--cream); border: 0; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(245, 230, 200, .25); }
.lightbox button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 0 minmax(0, 1fr) 0; padding: 56px 0 16px; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; font-size: 1.7rem; background: rgba(10, 18, 6, .55); }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
@media (max-width: 420px) {
  .gallery-grid figcaption { font-size: .85rem; }
}

/* ---------- From the Cellar (posts) ---------- */

.news-page h1 { text-align: center; margin-bottom: .4em; }
.news-intro { max-width: 62ch; margin: 0 auto 2.5em; text-align: center; color: var(--cream); }
.news-intro a { color: var(--gold); }
.news-empty {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--gold);
}
.news-date { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5em; }
.news-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 24px; max-width: 980px; }
.news-card, .news-feature {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden;
  background: rgba(245, 230, 200, .06); border: 1px solid rgba(212, 168, 83, .25); border-radius: 6px;
  color: var(--cream); text-decoration: none; transition: border-color .2s ease, background .2s ease;
}
.news-card:hover, .news-feature:hover { border-color: rgba(212, 168, 83, .6); background: rgba(245, 230, 200, .09); }
.news-card:focus-visible, .news-feature:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.news-card img, .news-feature img { width: 100%; height: 100%; min-height: 220px; max-height: 360px; object-fit: cover; display: block; background: var(--green-dark); }
.news-card-body, .news-feature-body { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; }
.news-card h2, .news-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 .4em; text-align: left; color: var(--cream); }
.news-excerpt { color: var(--cream); opacity: .92; margin: 0 0 1.1em; }
.news-more { color: var(--gold); font-weight: 600; }
.news-feature .btn { align-self: flex-start; }
.news-feature:hover .btn, .news-feature:focus-visible .btn { background: var(--gold); }

.news-home h2 { text-align: center; margin-bottom: .8em; }
.news-home .news-feature { max-width: 1000px; margin: 0 auto; }
.news-all { text-align: center; margin: 2em 0 0; }
.news-all a { color: var(--gold); font-weight: 600; }

/* One post */
.news-post .wrap { max-width: 860px; }
.news-back { margin: 0 0 2em; }
.news-back a { color: var(--gold); text-decoration: none; font-weight: 600; }
.news-back a:hover { text-decoration: underline; }
.news-head { text-align: center; margin-bottom: 2em; }
.news-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0; }
.news-cover { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 6px; margin: 0 0 2.2em; }
.news-body { color: var(--cream); font-size: 1.06rem; line-height: 1.75; max-width: 68ch; margin: 0 auto; }
.news-body p, .news-body ul, .news-body ol { margin: 0 0 1.2em; }
.news-body ul, .news-body ol { padding-left: 1.4em; }
.news-body li { margin-bottom: .35em; }
.news-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.6em 0 .5em; text-align: left; }
.news-body a { color: var(--gold); }
.news-body strong { color: #fff6e3; }
.news-photos { margin-top: 2.5em; }
.news-nextprev {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3.5em; padding-top: 2em;
  border-top: 1px solid rgba(212, 168, 83, .3);
}
.news-nextprev a { color: var(--cream); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.news-nextprev a span { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .3em; }
.news-nextprev a:hover { color: var(--gold); }
.news-older { text-align: right; grid-column: 2; }
.news-preview-note { background: var(--gold); color: var(--ink); padding: 12px 16px; border-radius: 6px; margin: 0 0 2em; }

@media (max-width: 700px) {
  .news-card, .news-feature { grid-template-columns: 1fr; }
  .news-card img, .news-feature img { min-height: 0; max-height: none; aspect-ratio: 16 / 10; }
  .news-nextprev { grid-template-columns: 1fr; }
  .news-older { grid-column: 1; text-align: left; }
}

/* Gallery videos */
.gallery-photo.is-video { position: relative; }
.play-badge {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 18, 6, .78); color: var(--cream); font-size: .8rem; font-weight: 600;
  padding: 6px 10px 6px 8px; border-radius: 20px; pointer-events: none;
}
.play-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--gold); margin-left: 2px; }
.lightbox-video { width: auto; height: auto; max-width: 100%; max-height: 100%; background: #000; }
.lightbox-video[hidden], .lightbox-img[hidden], .lightbox-vidmsg[hidden] { display: none; }
.lightbox-stage { position: relative; }
.lightbox-vidmsg {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); width: min(90%, 460px); margin: 0;
  background: rgba(10, 18, 6, .9); color: var(--cream); text-align: center; padding: 14px 16px; border-radius: 6px; border: 1px solid rgba(212, 168, 83, .4);
}

/* ---------- Home: Vine to Wine game invitation (Learn the Art of Winemaking) ---------- */
.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; }
.game-invite { margin-top: 2em; padding-top: 1.6em; border-top: 1px solid rgba(212, 168, 83, .45); max-width: 34em; }
.game-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.45; color: var(--cream); margin: 0 0 1em; }
.game-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75em; }
.game-links li { color: var(--cream); line-height: 1.5; }
.game-q { font-weight: 600; margin-right: .35em; }
.game-links a { color: var(--gold); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(212, 168, 83, .45); text-underline-offset: 4px; white-space: nowrap; transition: color .2s, text-decoration-color .2s; }
.game-links a:hover, .game-links a:focus-visible { color: var(--cream); text-decoration-color: var(--cream); }
.game-arrow { display: inline-block; margin-left: .3em; font-size: .9em; transition: transform .2s; }
.game-links a:hover .game-arrow { transform: translate(2px, -2px); }
/* The game's two players (drawn the same as in the game), beside the game invitation as eye-catchers */
.game-invite { display: flow-root; }   /* contain the floated players */
.game-figs { float: right; display: flex; gap: 2px; margin: -2px 0 6px 16px; pointer-events: none; }   /* beside the invitation, below the rule */
.game-fig { width: 54px; height: 90px; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
