/* ═══════════════════════════════════════════════════════════════════
   HBC WEBSITE · PLATFORM VISUAL ALIGNMENT (17 Oct 2026)
   ═══════════════════════════════════════════════════════════════════
   Loaded AFTER css/styles.css on the nine public marketing pages only.
   The site's demo tasting and reveal pages (/tasting/, /reveal/, reveal.html)
   do not load it, so nothing on those routes changes.

   The tasting platform (sandbox, 17 Oct 2026) is the source of truth.
   Carried over from it:
     · radius family — panels 20px, tiles 16px, buttons 14px, secondary pills round
     · one soft brass hairline at three strengths, one barely-there shadow
     · ONE dominant burgundy action per section; secondary actions are cream pills
       (Cormorant, sentence case); exits and inline links stay as text
     · a "→" only on a primary that takes you to another page
     · fields rounded 12px, charcoal focus ring (the platform's accessibility rule)
   Same fonts, same cream / burgundy / brass / charcoal. No gradients, no new
   colours, no new motion. Presentation only: no element is added or removed here. */

:root {
  --hbp-line: rgba(125, 97, 38, 0.26);
  --hbp-line-soft: rgba(125, 97, 38, 0.14);
  --hbp-line-strong: rgba(125, 97, 38, 0.45);
  --hbp-tint: rgba(125, 97, 38, 0.07);
  --hbp-surface: #FFFDF9;
  --hbp-cream: #FBF7F1;
  --hbp-shadow: 0 1px 2px rgba(40, 24, 14, 0.04), 0 8px 24px rgba(40, 24, 14, 0.05);
  --hbp-shadow-sm: 0 1px 2px rgba(40, 24, 14, 0.04), 0 6px 16px rgba(40, 24, 14, 0.05);
  --hbp-r-card: 20px;
  --hbp-r-tile: 16px;
  --hbp-r-btn: 14px;
  --hbp-focus: #1C1C1C;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn { border-radius: var(--hbp-r-btn); min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  touch-action: manipulation; }
.btn--large { min-height: 54px; }
.btn:focus-visible { outline: 2px solid var(--hbp-focus); outline-offset: 3px; }
.btn--primary { box-shadow: 0 6px 18px rgba(107, 26, 42, 0.16); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(107, 26, 42, 0.22); }
/* forward to another page → the platform's arrow (hidden from screen readers) */
a.btn--primary:not([href^="#"]):not([href^="mailto:"])::after { content: "\2192"; content: "\2192" / ""; letter-spacing: 0; font-weight: 400; }

/* Secondary: the platform's cream pill */
.btn--outline,
.btn--outline-wine {
  background: var(--hbp-cream); color: var(--dark); border: 1px solid var(--hbp-line-strong); border-radius: 999px;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.01em; text-transform: none;
  padding: 0.6rem 1.6rem; box-shadow: 0 1px 2px rgba(40, 24, 14, 0.04);
}
.btn--outline.btn--large, .btn--outline-wine.btn--large { font-size: 1.15rem; padding: 0.7rem 1.9rem; }
.btn--outline:hover, .btn--outline-wine:hover { background: var(--pale2); color: var(--dark); border-color: var(--gold); }

/* On the burgundy band the cream button IS the primary action */
.btn--outline-light { background: var(--hbp-cream); color: var(--wine); border-color: var(--hbp-cream); }
.btn--outline-light:hover { background: #FFFFFF; color: #5a1524; border-color: #FFFFFF; }
.btn--outline-light:focus-visible { outline-color: var(--hbp-cream); }
a.btn--outline-light:not([href^="#"])::after { content: "\2192"; content: "\2192" / ""; letter-spacing: 0; font-weight: 400; }

.btn--text { min-height: 44px; }

.hero__actions { gap: 0.75rem; align-items: center; }

/* Inline links stay text; the arrow just gets its breathing room */
.link-arrow::after { content: "\2192"; content: "\2192" / ""; margin-left: 0.4em; }

/* ── Navigation ──────────────────────────────────────────────────── */
.nav { border-bottom-color: var(--hbp-line-soft); }
.nav.scrolled { box-shadow: 0 1px 2px rgba(40, 24, 14, 0.04), 0 6px 18px rgba(40, 24, 14, 0.05); }
.nav__cta { border-radius: 12px; padding: 0.6rem 1.15rem; display: inline-flex; align-items: center; min-height: 40px; }
.nav__links a:focus-visible, .nav__logo:focus-visible, .nav-paths__link:focus-visible, .nav__toggle:focus-visible {
  outline: 2px solid var(--hbp-focus); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 900px) {
  .nav-paths { border-bottom-color: var(--hbp-line-soft); }
  .nav-paths__link + .nav-paths__link { border-left-color: var(--hbp-line-soft); }
  /* the menu: a soft panel that drops from the bar, not a hard-edged sheet */
  .nav__links {
    left: 0.75rem; right: 0.75rem; padding: 0.5rem 1.4rem 1.25rem;
    background: var(--hbp-surface); border: 1px solid var(--hbp-line); border-top: 0;
    border-radius: 0 0 var(--hbp-r-card) var(--hbp-r-card); box-shadow: var(--hbp-shadow);
  }
  .nav__links a { min-height: 48px; display: flex; align-items: center; border-bottom-color: var(--hbp-line-soft); font-size: 1rem; color: var(--dark); }
  .nav__links li:nth-last-child(2) a { border-bottom: 0; }
  /* Register: the menu's one primary action */
  .nav__cta {
    margin-top: 0.75rem; justify-content: center; min-height: 52px; border-radius: var(--hbp-r-btn);
    background: var(--wine) !important; color: var(--white) !important; border-bottom: 0 !important;
    font-size: 0.8rem !important; letter-spacing: 0.14em !important; text-transform: uppercase !important;
    box-shadow: 0 6px 18px rgba(107, 26, 42, 0.16);
  }
}

/* ── Surfaces · cards and panels ─────────────────────────────────── */
.path-cards { gap: 1.5rem; }
.path-card { border: 1px solid var(--hbp-line); border-radius: var(--hbp-r-card); background: var(--hbp-surface); box-shadow: var(--hbp-shadow); }
.path-card__copy { margin-bottom: 1.75rem; }
.path-card__visual img { border-radius: 0; }

.card { border: 1px solid var(--hbp-line); border-radius: var(--hbp-r-tile); background: var(--hbp-surface); box-shadow: var(--hbp-shadow-sm); }

.price-block { border: 1px solid var(--hbp-line); border-radius: var(--hbp-r-tile); background: var(--hbp-surface); box-shadow: var(--hbp-shadow-sm); }

/* Forms sit on one calm surface, like a platform card */
.form-wrapper { background: var(--hbp-surface); border: 1px solid var(--hbp-line); border-radius: var(--hbp-r-card);
  box-shadow: var(--hbp-shadow); padding: 2.25rem 2rem 2rem; }
@media (max-width: 540px) { .form-wrapper { padding: 1.6rem 1.25rem 1.4rem; } }

.form-group input,
.form-group select,
.form-group textarea { border-radius: 12px; border-color: rgba(125, 97, 38, 0.3); background: #FFFFFF; min-height: 48px; font-size: 1rem; }
.form-group textarea { min-height: 120px; }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { outline: 2px solid var(--hbp-focus); outline-offset: 2px; }
.checkbox-group input[type="checkbox"] { border-radius: 5px; }

/* Age gate: the platform's dialog shape */
.age-gate__box { border-radius: var(--hbp-r-card); }

/* ── Disclosures · the platform chevron ──────────────────────────── */
.page-more { border-color: var(--hbp-line-soft); }
.page-more__summary::after, .page-more[open] > .page-more__summary::after {
  content: ""; flex: none; align-self: center; width: 0.5rem; height: 0.5rem; margin: -0.25rem 0.2rem 0 auto;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.2s ease; }
.page-more[open] > .page-more__summary::after { transform: rotate(-135deg); margin-top: 0.3rem; }
.page-more__summary:focus-visible { outline: 2px solid var(--hbp-focus); outline-offset: -4px; border-radius: 12px; }

/* ── Hairlines: one soft brass family ────────────────────────────── */
.rule { border-top-color: var(--hbp-line-soft); }
.step { border-top-color: var(--hbp-line); }
.faq-item, .faq-item:first-child { border-color: var(--hbp-line-soft); }
.model-table tr, .model-table tr:first-child { border-color: var(--hbp-line-soft); }
.benefit-list li, .benefit-list li:first-child, .not-list li { border-color: var(--hbp-line-soft); }
.section--editorial { border-top-color: var(--hbp-line-soft); }

/* ── Homepage · hidden → revealed (the platform's two approved bottles) ── */
.hbc-journey { display: flex; align-items: flex-end; justify-content: center; gap: 1.25rem; margin: 1.5rem auto 0.5rem; }
.hbc-journey img { height: 132px; width: auto; display: block; }
.hbc-journey__rule { width: 3.5rem; height: 1px; background: var(--gold); opacity: 0.55; margin-bottom: 2.6rem; }
@media (max-width: 540px) { .hbc-journey img { height: 112px; } .hbc-journey__rule { width: 2.5rem; margin-bottom: 2.2rem; } }

/* ── Footer · parchment, not a charcoal slab ─────────────────────── */
.footer { background-color: var(--pale2); color: var(--muted); border-top: 1px solid var(--hbp-line-soft); }
.footer__brand { color: var(--dark); font-weight: 400; }
.footer__tagline { color: var(--muted); }
.footer__col-title { color: var(--gold); }
.footer__links a { color: var(--dark); }
.footer__links a:hover { color: var(--wine); }
.footer__bottom { border-top-color: var(--hbp-line); }
.footer__legal { color: var(--muted); }
.footer__legal a { color: var(--dark); border-bottom-color: var(--hbp-line-strong); }
.footer__legal a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.brand-lockup--footer { filter: none; opacity: 0.55; }
.footer a:focus-visible { outline: 2px solid var(--hbp-focus); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .page-more__summary::after { transition: none; }
}

/* Inner-page heroes: the sub-line had no gap above its buttons (pre-existing) */
.hero--inner .hero__sub + .hero__actions { margin-top: 1.75rem; }
/* A long label wraps as a balanced two-line button, never a cramped one */
.btn { line-height: 1.35; text-wrap: balance; }
@media (max-width: 540px) { .btn--large { padding-left: 1.4rem; padding-right: 1.4rem; } }
.hero--inner .hero__sub + .price-block { margin-top: 1.75rem; }
/* The six bottles: two even rows of three on a phone, not five and one (pre-existing) */
@media (max-width: 540px) {
  .bottle-lineup { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; row-gap: 1.25rem; column-gap: 1.25rem; }
  .bottle-lineup img { height: 140px; }
}
/* Paired fields inside a form: the form's own rhythm, not the page grid's 2–3rem gap */
.form-wrapper .grid-2 { gap: 0 1.25rem; }
