
/* Base styles for MVA Wine website */
/* This file is rendered as a Django template to support static tags */

.error {
  color: var(--error-color);
}

.banner-container {
}
.banner-container > img,
.banner-container > video {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 804;
  border-radius: 14px;
}

/* Navigation bar */
.top_nav_container {
  width: 100%;
  max-width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: white;
  z-index: 1;
}

.top_nav_container nav {
  width: calc(100% - 2*var(--viewport-border));
  max-width: var(--global-max-width);
  margin-inline: 0;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 3em;
  padding-block: calc(var(--nav-padding-block) + 8px) var(--nav-padding-block);
  padding-inline: var(--main-default-margin);
  transition: background-color var(--transition-speed) ease;
  border-bottom: 1px solid white;
}
.top_nav_container nav.white {
  background-color: white;
  border-bottom: 0;
  transition: background-color .6s ease;
}

nav > ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
}

.top_nav_container nav > ul {
  flex-grow: .3;
  gap: clamp(1.125rem, 2 * var(--scale-factor), 2rem);
}
.top_nav_container nav > ul:first-of-type {
  justify-content: flex-start;
}
.top_nav_container nav > ul:last-of-type {
  justify-content: flex-end;
}

nav.top-nav a.logo {
  flex-grow: 2;
  display: flex;
  justify-content: center;
}

nav.top-nav a.logo img {
  width: auto;
  height: var(--nav-logo-height);
}

nav a {
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
  color: var(--nav-color);
  font-size: var(--nav-font-size);
  line-height: var(--nav-line-height);
  letter-spacing: var(--nav-letter-spacing);
  white-space: nowrap;
  text-transform: lowercase;
  transition: color var(--transition-speed) ease-in-out, text-decoration-color var(--transition-speed) ease-in-out;
}

nav .nav__item--current a {
  font-weight: 400;
}

/* Hide Mobile Navigation by Default */
.mobile-nav {
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  top: 100%;
  right: -12px;
  width: auto;
  background: white;
  padding: 1em;
  list-style: none;
  border: 1px solid black;
  border-radius: 8px;
  gap: 2px;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) linear;
}

/* Hide the Hamburger Button on Desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
  min-width: unset;
  max-width: unset;
}

/* Hamburger Menu Lines */
.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: black;
}

/* Hide the Checkbox */
.mobile-nav-container {
  display: none;
}

#menu-toggle {
    display: none;
}

footer {
  width: 100%;
  padding-inline: var(--main-default-margin);
  padding-block: var(--main-default-margin) 2rem;
}
footer nav > span {
  font-size: var(--footer-font-size);
  line-height: var(--footer-line-height);
}
footer nav > a {
  font-size: var(--footer-font-size);
  line-height: var(--footer-line-height);
  letter-spacing: 0.4px;
  color: var(--nav-color);
  margin-right: 1ch;
}
footer nav > a:visited {
  color: var(--nav-color);
}
footer .footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 0.75rem;
}
footer .footer-social a {
  color: var(--nav-color);
  display: flex;
  align-items: center;
  transition: opacity var(--transition-speed) ease-in-out;
}
footer .footer-social a:hover {
  opacity: 0.7;
}
footer .footer-social svg {
  width: 20px;
  height: 20px;
}

main {
  padding-top: var(--main-padding-top);
  z-index: 0;
}
main.full-viewport {
  padding-top: 0;
  margin-inline: 0;
}

.btn {
  display: flex;
  background: transparent;
  white-space: nowrap;
  width: min-content;
  height: min-content;
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
  color: var(--nav-color);
  border: 2px solid var(--button-border-color);
  padding: .725rem 1rem;
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  letter-spacing: 0.48px;
  cursor: pointer;
  transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

a.btn {
  text-decoration: none;
  -webkit-text-decoration: none;
}

a.btn:hover,
button.btn:hover {
  color: white;
  background: black !important;
  text-decoration: none;
  -webkit-text-decoration: none;
  transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

#mini_cart small {
  padding-left: var(--default-gap);
}

@media (min-width:1200px) {
  body {
    margin-inline: auto;
  }
  footer nav {
    display: flex;
    justify-content: space-between;
  }
}

/* Mobile Styles */
@media (max-width: 1023px) {
/* Adjust navbar for mobile */
  nav.top-nav > ul {
    display: none;
  }
  nav.top-nav a.logo {
    justify-content: left;
    display: flex;
    justify-content: center;
  }
  nav.top-nav a.logo img {
  }
  .navbar {
      justify-content: space-between;
  }

  /* Show Hamburger and Hide Desktop Nav */
  .mobile-nav-container {
    display: flex;
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 1;
  }
  .menu-toggle {
      display: flex;
  }
  .desktop-nav {
      display: none;
  }

  /* Move logo to the left */
  .logo {
      order: 0;
  }

  /* Show Mobile Menu When Checkbox is Checked */
  #menu-toggle:checked ~ .mobile-nav {
    visibility: visible;
    opacity: 100%;
    transition: opacity var(--transition-speed) ease, visibility 0s linear;
  }
}

@media (max-width: 767px) {
  :root {
    --headline-padding-block: calc(clamp(var(--nav-padding-block), 16vw, 100px) - var(--nav-padding-block));
    --nav-font-size: clamp(1.5rem, 1.8vw, 1.875rem);
    --button-font-size: 1.25rem;
    --info-button-font-size: 1.125rem;
  }
  body {
  }
  nav.top-nav {
    border-bottom: none;
    padding-bottom: 1em;
  }
  main {
    padding-inline: 0;
    width: 100%;
    margin-bottom: var(--main-default-margin);
  }
  /* Adjust navbar for mobile */
  nav.top-nav > ul {
    display: none;
  }
  nav.top-nav a.logo {
    justify-content: left;
    display: flex;
    justify-content: center;
  }
  nav.top-nav a.logo img {
  }
  .navbar {
      justify-content: space-between;
  }

  /* Show Hamburger and Hide Desktop Nav */
  .mobile-nav-container {
    display: flex;
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 1;
  }
  .menu-toggle {
      display: flex;
  }
  .desktop-nav {
      display: none;
  }

  /* Move logo to the left */
  .logo {
      order: 0;
  }

  /* Show Mobile Menu When Checkbox is Checked */
  #menu-toggle:checked ~ .mobile-nav {
    visibility: visible;
    opacity: 100%;
    transition: opacity var(--transition-speed) ease, visibility 0s linear;
  }
  footer {
    padding-inline: 0;
    margin-inline: 0;
    padding-block: 2rem 1rem;
  }
  footer ul li:last-of-type {
    padding-block: 2rem 0;
    text-align: left;
    line-height: var(--p-line-height);
  }
  footer nav > span {
    display: block;
    padding-top: 1em;
    line-height: 1;
  }
}

@media (max-width: 375px) {
  footer nav > a {
    margin-right: 4px;
  }
}

#scroll-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
#scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}
@media (max-width: 767px) {
  #scroll-hint {
    display: none;
  }
}
body:has(.modal-form-container.open) #scroll-hint {
  display: none;
}
/* Wine heart — [heart] Loved by X members, above bottle image */
.wine-loved {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8125rem;
  color: black;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.75em;
}
.wine-heart {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: transform 0.15s ease;
}
.wine-heart:hover {
  transform: scale(1.2);
}
.wine-heart:active {
  transform: scale(0.95);
}
.wine-heart svg {
  fill: none;
  stroke: black;
  stroke-width: 1.5;
  transition: fill 0.2s, stroke 0.2s;
}
.wine-heart:hover svg {
  stroke: #e53935;
}
.wine-heart.liked svg {
  fill: #e53935;
  stroke: #e53935;
}
.wine-loved-text {
  white-space: nowrap;
}
.col1 .wine-loved {
  font-size: 1rem;
}
.col1 .wine-heart svg {
  width: 26px;
  height: 26px;
}
.wine-loved-text[hidden] {
  display: none;
}
ul.wine li.wine-heart-row {
  text-transform: none;
}

/* /hub/<promo_code>/ landing page — V2 layout (per the marketer's doc). */


:root {
  --hub-dark: #0d0d0d;
  --hub-text-on-dark: #fff;
  --hub-text-muted-on-dark: #cfcabe;
  --hub-beige: #aea5a0;
  --hub-screen: #cdc2bc;
  --hub-text-default: #1a1a1a;
  --hub-divider: #d4cdb6;
}

.hub-page {
  font-family: "Sombra Variable", sans-serif;
  font-variation-settings: unset;
  font-weight: 400;
  color: var(--hub-text-default);
  background: #fff;
  line-height: 1.5;
  /* Constrain the entire hub page to the site's max width, matching the rest of the site. */
  max-width: var(--global-max-width);
  margin: 0 auto;
  
  align-self: stretch;
  width: 100%;
}

/* ------- Custom hub header (replaces the site nav for this page) ------- */
/* No fixed nav on the hub — the page has its own minimal centered header. */
#scroll-hint { display: none !important; }
.top_nav_container {
  position: static;
  background: var(--hub-screen);
  z-index: auto;
  /* Constrain to the page width so the cream block doesn't bleed past the body. */
  max-width: var(--global-max-width);
  margin: 0 auto;
  /* Same body-flex stretch fix as .hub-page — see the note there. */
  align-self: stretch;
  width: 100%;
  /* Thin white separator between header and hero. */
  border-bottom: 1px solid #fff;
}
/* Drop the fixed-nav offset since the hub header is now in flow. */
:root .hub-page,
.hub-page {
  --main-padding-top: 0;
}
main.hub-page { padding-top: 0; margin-top: 0; }

.hub-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 14px 24px;
  width: 100%;
  background: var(--hub-screen);
}
.hub-header a { display: inline-flex; align-items: center; min-width: 0; }

.hub-header-logo img,
.hub-header-partner img {
  height: clamp(28px, 6vw, 53px);
  max-height: 53px;
  width: auto;
  max-width: min(280px, 38vw);
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  nav.top-nav { padding-inline: 0;}
  .hub-header { gap: 24px; padding: 10px 16px; }
}

.hub-page h2, .hub-page h3 {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.hub-section { padding: 4rem 4rem; }
.hub-page .hub-inner   { max-width: 1280px; margin: 0 auto; }

@media (max-width: 768px) {
  .hub-section { padding: 56px 20px; }
}

/* ======= §1 Hero ======= */

.hub-hero {
  position: relative;
  background: var(--hub-dark);
  color: var(--hub-text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hub-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  opacity: 90%;
}
/* Subtle overlay over the image so the headline + subhead stay legible against detail. */
.hub-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
  z-index: 0;
  pointer-events: none;
}
.hub-hero-headline-block {
  position: relative; z-index: 1;
  padding: 96px 56px 52px;
  max-width: 720px;
}

.hub-hero-headline {
  display: flex;
  flex-direction: column;
  gap: var(--default-gap);
  font-family: "Attila Sans Variable", sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: 0;
  text-wrap: balance;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--hub-text-on-dark);
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  font-weight: var(--attila-medium);
}
/* In an override, any <span> (including nested inside a <p>) reads as
   headline-level text — same convention as home banner's `.banner-text span`.
   Setting size + weight explicitly (not `inherit`) so a <span> wrapped in a
   <p> still gets the big-headline font instead of inheriting <p>'s body size. */
.hub-hero-headline span,
.hub-hero-subhead span {
  display: block;
  font-family: "Attila Sans Variable", sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  font-weight: var(--attila-medium);
  color: var(--hub-text-on-dark);
}
/* <p> children read as body-size copy (matches home banner's `.banner-text p`).
   font-variation-settings is inherited, so we have to set `normal` explicitly —
   `unset` resolves to inherit and would pick up .hub-hero-headline's Attila
   axis settings, which are meaningless on a Sombra <p> and produce different
   rendering than the same <p> inside .hub-hero-subhead. */
.hub-hero-headline > p,
.hub-hero-subhead > p {
  font-family: "Sombra Variable", sans-serif;
  font-variation-settings: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0;
  color: var(--hub-text-on-dark);
}
.hub-hero-subhead {
  display: flex;
  flex-direction: column;
  gap: var(--default-gap);
  font-family: "Sombra Variable", sans-serif;
  font-variation-settings: unset;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: white;
  margin: 0;
}
.hub-hero-cta-block {
  position: relative; z-index: 1;
  padding: 0 56px 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hub-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hub-page .btn {
  --attila-weight: var(--attila-medium);
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.85);
  color: var(--hub-text-on-dark);
  text-decoration: none;
  font-family: "Attila Sans Variable", sans-serif;
  font-variation-settings: "wght" var(--attila-weight), "cnst" var(--attila-sharp);
  font-weight: var(--attila-weight);
  font-size: 15px;
  
  line-height: 1;
  letter-spacing: 0.02em;
  min-width: 216px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.hub-page .btn.hero-btn1 {
  background: var(--hub-text-on-dark);
  color: var(--hub-dark);
}
.hub-page .btn:hover { background: var(--hub-text-on-dark); color: var(--hub-dark); }
.hub-page .btn.hero-btn1:hover { background: var(--hub-text-on-dark) !important; color: var(--hub-dark); box-shadow: white 0px 0px 1px 1px;}
.hub-page .btn.hero-btn2:hover { background: var(--hub-text-on-dark) !important; color: var(--hub-dark)}
.hub-page .cta.btn:hover { background: black !important; color: white; }
.hub-hero-note {
  font-family: "Attila Sans Variable", sans-serif;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  font-size: 15px;
  line-height: 1.2;
  color: var(--hub-text-on-dark);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hub-hero-headline-block { padding: 64px 24px 16px; }
  .hub-hero-cta-block { padding: 0 24px 48px; }
  .hub-page .btn { min-width: 160px; padding: 11px 20px; font-size: 14px; }
  .hub-hero-note { font-size: 13px; }
}

/* ======= §2 Subhead band ======= */
.hub-subhead-band {
  background: white;
  text-align: center;
  padding: 64px 32px;
}
.hub-subhead-band h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 auto 14px;
  font-family: "Attila Sans Variable", sans-serif;
  font-weight: var(--attila-medium);
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  max-width: 22em;
}
.hub-subhead-band .detail {
  font-size: 20px;
  color: #555;
  margin: 1.25rem auto 0;
  font-weight: 400;
  font-family: "Sombra Variable", sans-serif;
  font-variation-settings: unset;
}

/* ======= §2 (cont.) How we choose ======= */
.hub-section.hub-how-choose {
  padding-block-start: 0;
}
.hub-how-choose .hub-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: stretch;
}
@media (max-width: 900px) { .hub-how-choose .hub-inner { grid-template-columns: 1fr; gap: 32px; } }
.hub-how-choose h2 { 
  font-size: 30px;
  margin-bottom: 28px; 
  font-family: "Attila Sans Variable", sans-serif;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
}
.hub-how-choose .paragraphs p { margin: 0 0 14px; line-height: 1.55; font-size: 16px; }
.hub-how-choose .cta {
  display: inline-block; padding: 12px 32px;
  border: 1px solid var(--hub-text-default);
  color: var(--hub-text-default); text-decoration: none;
  font-size: 14px; letter-spacing: 0.02em;
  margin-top: 16px;
}

.hub-how-choose .photo {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.hub-how-choose .photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  
  .hub-how-choose .photo { position: static; min-height: 0; }
  .hub-how-choose .photo img { position: static; height: auto; }
}

/* ======= §3 Trust badges ======= */
.hub-trust {
  background: var(--hub-beige);
  padding: 3rem 2rem 3rem;
  text-align: center;
}
.hub-trust .badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto 2rem;
}
.hub-trust .badge {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  color: var(--hub-text-on-dark);
  flex: 0 1 200px;
  text-align: center;
}
.hub-trust .petals {
  width: 30px; height: 30px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.hub-trust .cta {
  display: inline-block; padding: 14px 36px;
  border: 1px solid var(--hub-dark);
  background: transparent;
  color: var(--hub-dark); text-decoration: none;
  font-size: 15px; letter-spacing: 0.02em;
}
.hub-trust .cta.btn {
  background: white;
}
.hub-trust .cta.btn:hover {
  color: white;
}
.hub-section.hub-how-works {
  margin-inline: 6rem;
}
@media (max-width: 768px) {
  .hub-trust .badges { flex-direction: column; gap: 18px; }
  
  .hub-trust .badge { flex: 0 0 auto; }
  .hub-trust .petals {width: 20px; height: 20px;}
  .hub-section.hub-how-works {margin-inline: 0;}
}

/* ======= §4 How membership works ======= */


.hub-how-works h2 {
  font-family: "Attila Sans Variable", sans-serif;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  font-weight: var(--attila-medium);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0;
  text-align: center;
  margin: 0 auto 64px;
  max-width: 22em;
}

.hub-how-works .columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 56px;
  row-gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.hub-how-works .col {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
}
@media (max-width: 1024px) {
  .hub-how-works .columns { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (max-width: 600px)  {
  /* Single column — drop subgrid, each col flows naturally. */
  .hub-how-works .columns { grid-template-columns: 1fr; grid-template-rows: none; }
  .hub-how-works .col { display: block; grid-row: auto; grid-template-rows: none; }
}


.hub-how-works .hub-payg {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.hub-payg-title {
  font-family: "Attila Sans Variable", sans-serif;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  font-weight: var(--attila-medium);
  font-size: 22px;
  letter-spacing: 0.01em;
  margin: 0 0 var(--default-gap);
  color: var(--hub-text-default);
}
.hub-payg-body {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--hub-text-default);
}
.hub-how-works .works-cta-row { margin-top: 56px; }
@media (max-width: 600px) {
  .hub-how-works .hub-payg { margin: 0 auto 40px; }
}

.hub-how-works .col h3 {
  font-family: "Sombra Variable", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
  align-self: end;
  text-wrap: balance;
}
.hub-how-works .col hr {
  border: 0;
  border-top: 1px solid var(--hub-text-default);
  margin: 14px 0 0;
  width: 100%;
}
.hub-how-works .col p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #444;
}
.hub-how-works .works-cta-row { text-align: center; margin-top: 56px; }
.hub-how-works .works-cta-row .cta {
  display: inline-block;
  padding: 14px 36px 10px;
  border: 1px solid var(--hub-text-default);
  color: var(--hub-text-default);
  text-decoration: none;
  font-size: 14px; letter-spacing: 0.02em;
}
.hub-how-works .works-cta-row .cta.btn:hover {color: white;}

/* ======= §5 Customer reviews ======= */

.hub-reviews { background: var(--hub-beige); }
.hub-reviews h2 {
  text-align: center;
  font-size: 30px;
  margin: 0 0 48px;
  font-family: 'Attila Sans Variable', sans-serif;
  color: white;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  font-weight: var(--attila-medium);
}

.hub-carousel {
  --carousel-visible: 3;
  --carousel-gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.hub-carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Hide scrollbar but stay scrollable. */
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hub-carousel-track::-webkit-scrollbar { display: none; }
.hub-carousel-card {
  flex: 0 0 calc((100% - (var(--carousel-visible) - 1) * var(--carousel-gap)) / var(--carousel-visible));
  scroll-snap-align: start;
  background: #fff;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #000;
  border-radius: 12px;
}
.hub-carousel-card hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 4px 0 8px;
  width: 100%;
}
.hub-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.hub-carousel-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hub-text-default);
  background: transparent;
  color: var(--hub-text-default);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.hub-carousel-controls button:hover {
  background: var(--hub-text-default);
  color: var(--hub-text-on-dark);
}
.hub-carousel-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 1024px) { .hub-carousel { --carousel-visible: 2; } }
@media (max-width: 640px)  { .hub-carousel { --carousel-visible: 1; } }

/* Reviews-specific card content */
.review-card {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
}
.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #000;
}
.review-meta {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 500;
  font-size: 16px;
  color: #000;
  letter-spacing: 0.01em;
}
.review-meta .review-location {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  color: #000;
}
.review-text {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #000;
  margin: 0;
}

/* ======= §6 Featured winemaker (video) ======= */
.hub-featured {
  display: flex;
  align-items: center;
  color: var(--hub-text-on-dark);
  margin: 4rem 4rem 4rem 6rem;
}
@media (max-width: 900px) {
  .hub-featured { 
    flex-direction: column;
    margin-inline: 0;
  } 
}
.hub-featured-video {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  max-width: 600px;
  width: 100%;
}
.hub-featured-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.hub-featured-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: 0px;
  padding-inline: 2rem 0;
  color: var(--hub-text-default);
}
@media (max-width: 900px) { .hub-featured-text { padding: 48px 24px; } }
.hub-featured-text h2 {
  margin: 0 0 12px;
  font-family: 'Attila Sans Variable', sans-serif;
  font-size: 30px;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
}
.hub-featured-text .lead {
  font-size: 15px; line-height: 1.4;
  margin: 0 0 var(--default-gap);
  color: var(--hub-text-default);
  border-bottom: 1px solid black;
  padding-bottom: var(--default-gap);
  max-width: 380px;
}
.hub-featured-text p { line-height: 1.6; margin: 0 0 28px; max-width: 420px; font-size: 15px; }
.hub-featured-text .cta {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--hub-text-default);
  color: var(--hub-text-default);
  text-decoration: none;
  font-size: 14px; letter-spacing: 0.02em;
  background: transparent;
  align-self: flex-start;
}

/* ======= §7 Members' picks ======= */
.hub-picks { background: var(--hub-beige); }
.hub-picks h2 {
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 48px;
}
/* Pick card content. Whole card is an <a> — link-decoration is suppressed. */
.pick-card {
  text-decoration: none;
  align-items: center;
  text-align: center;
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
}
.pick-card .pick-winery {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  font-size: 24px;
  color: #000;
  margin: 0;
  line-height: 1;
}
.pick-card .pick-name {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  font-size: 24px;
  color: #000;
  margin: 0;
  line-height: 1;
}
.pick-card hr { width: 100%; }
.pick-card img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  width: auto;
  display: block;
  margin: 0px auto 0;
}

/* ======= §8 Meet our founder ======= */
.hub-founder .hub-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 80px;
  
  align-items: stretch;
}
@media (max-width: 900px) {
  .hub-founder .hub-inner { grid-template-columns: 1fr; gap: 32px; }
  .hub-founder .founder-photo { order: -1; }
}
.hub-founder h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 28px; }
.hub-founder .founder-bio { line-height: 1.65; font-size: 16px; margin-bottom: 28px; }
.hub-founder .founder-bio p { margin: 0 0 16px; }
.hub-founder .founder-bio p:last-child { margin-bottom: 0; }
.hub-founder .founder-ctas {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hub-founder .cta {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--hub-text-default);
  color: var(--hub-text-default);
  text-decoration: none;
  font-size: 14px; letter-spacing: 0.02em;
}

.hub-founder .founder-photo {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 12px;
}
.hub-founder .founder-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  
  .hub-founder .founder-photo { position: static; min-height: 0; }
  .hub-founder .founder-photo img { position: static; height: auto; }
}

/* ======= §9 Soundtrack ======= */
.hub-soundtrack { background: var(--hub-beige); }
.hub-soundtrack h2 {
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 48px;
  color: var(--hub-text-on-dark);
}

/* Soundtrack card has two anchors: text→collection page, image→Spotify. */
.soundtrack-card {
  align-items: center;
  text-align: center;
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
}
.soundtrack-card .soundtrack-text,
.soundtrack-card .soundtrack-art {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.soundtrack-card .soundtrack-number {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 300;
  font-size: 24px;
  color: #000;
  margin: 0;
  line-height: 1;
}
.soundtrack-card .soundtrack-name {
  font-family: "Sombra Variable", serif;
  font-variation-settings: unset;
  font-weight: 400;
  font-size: 24px;
  color: #000;
  margin: 0;
  line-height: 1;
}
.soundtrack-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 4px;
  margin-top: 4px;
  transition: transform 0.2s;
}
.soundtrack-card:hover img { transform: scale(1.02); }

/* ======= Footer ======= */
.hub-footer {
  background: #fff;
  text-align: left;
  padding-block-end: 1rem;
  margin: 4rem 0 0 4rem;
}
.hub-footer .hub-footer-logo {
  display: block;
  max-height: 3rem;
  width: auto;
  margin: 0 0 1rem;
}
.hub-footer p {
  margin: 0;
  font-size: 16px;
  color: var(--hub-text-default);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .hub-footer { padding: 8px 20px; margin: 2rem 0 0 0;}
  .hub-footer p { white-space: normal; }
  .hub-footer .hub-footer-logo {max-height: 2rem;}
}


body > footer {
  padding-block: 0 var(--viewport-border);
  padding-inline: 4rem;
}
@media (max-width: 768px) {
  body > footer { padding-inline: 20px; }
}

