/* 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 {
  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: 760px) {
  .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 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: 1 / 1; }
  .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: 760px) {
  .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; }
