/* ============================================================
   TEMPUS — LAYOUT & COMPONENTS
   Structural styles for the homepage sections and shared UI.
   All values reference tokens.css — no raw hex/px for brand colors.

   NOTE (Kadence child): base/body/link styles and the header/footer
   chrome live in kadence-bridge.css — Kadence's header & footer
   builders replace the legacy tz-header/tz-footer markup. This file
   is tz- components only.
   ============================================================ */

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

.tz-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--margin-desktop); }

/* ---- Scroll-reveal animation ---- */
@keyframes tzUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.tz-reveal { opacity: 0; }
.tz-reveal.is-visible { animation: tzUp .9s var(--ease-out) both; }

/* ============================================================
   BUTTONS
   ============================================================ */
.tz-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius); transition: all var(--dur-fast) var(--ease-out);
  border: 1.5px solid transparent;
}
.tz-btn--lg { height: 54px; padding: 0 32px; font-size: 13px; }
.tz-btn--sm { height: 36px; padding: 0 20px; font-size: 12px; }
.tz-btn--primary { background: var(--gold-tempus); color: var(--near-black); }
.tz-btn--primary:hover { background: var(--gold-deep); color: var(--near-black); }
.tz-btn--secondary { background: transparent; color: var(--white); border-color: var(--outline); }
.tz-btn--secondary:hover { border-color: var(--gold-tempus); color: var(--gold-tempus); }
.tz-btn--full { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.tz-hero {
  position: relative; padding: 120px 0 100px;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--outline-variant);
}
.tz-hero__scrim-1 { position: absolute; inset: 0; background: var(--scrim-top); opacity: .9; }
.tz-hero__scrim-2 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,11,1,.55), rgba(34,11,1,.82)); }
.tz-hero__inner {
  position: relative; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--margin-desktop);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.tz-kicker { font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-tempus); }
.tz-hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(42px, 8vw, 70px); line-height: 1.04; letter-spacing: -.02em;
  color: var(--white); max-width: 820px;
}
.tz-hero__lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-surface); max-width: 520px; }
.tz-hero__cta { display: flex; gap: 16px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   SECTION SCAFFOLD + HEADINGS
   ============================================================ */
.tz-section { padding: var(--section-gap) 0; }
.tz-section--alt {
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant); border-bottom: 1px solid var(--outline-variant);
}
.tz-heading { text-align: center; max-width: 640px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.tz-heading__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1.08; letter-spacing: -.02em; color: var(--white); }
.tz-heading__subtitle { margin: 0;  color: var(--on-surface-variant); }
em { font-style: italic; color: var(--gold-warm); }

/* ============================================================
   THREE PURSUITS
   ============================================================ */
.tz-pursuits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.tz-pursuit { padding: 0 34px; display: flex; flex-direction: column; gap: 14px; }
.tz-pursuit:not(:last-child) { border-right: 1px solid var(--outline-variant); }
.tz-pursuit__num { font-family: var(--font-display); font-size: 30px; color: var(--gold-aged); }
.tz-pursuit__title { margin: 0; font-family: var(--font-display); font-size: 28px; color: var(--white); font-weight: 400; }
.tz-pursuit__desc { margin: 0; font-size: 15px; line-height: 1.7; color: var(--on-surface-variant); }

/* ============================================================
   PRODUCT GRID / CARDS  (used by Featured Bottles + WooCommerce)
   ============================================================ */
.tz-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.tz-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }

.tz-card {
  display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.tz-card:hover { border-color: var(--border-gold-strong); box-shadow: var(--glow-hover); }
.tz-card__media { position: relative; display: block; aspect-ratio: 3/4; padding: 26px; background: linear-gradient(360deg, #000000, #150500); overflow: hidden; }
.tz-card__media img { width: 100%; height: 100%; object-fit: contain; }
.tz-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tz-card__cat { font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-aged); }
.tz-card__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.15; color: var(--white); }
.tz-card__meta { margin: 0; font-size: 13px; color: var(--text-muted); }
.tz-card__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 16px; }
.tz-card__price { font-family: var(--font-display); font-size: 22px; color: var(--gold-tempus); }
.tz-card__actions { display: flex; }
.tz-card__cart {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--gold-tempus); color: var(--gold-tempus); background: transparent;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.tz-card__cart:hover, .tz-card__cart:focus-visible { background: var(--gold-tempus); color: var(--near-black); }

/* Badges */
.tz-badge { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-sm); }
.tz-badge--gold { background: rgba(200,146,42,.15); color: var(--gold-tempus); border: 1px solid var(--border-gold); }
.tz-badge--foil { background: var(--gradient-foil); color: var(--near-black); }
.tz-card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* ============================================================
   MEMBERSHIP
   ============================================================ */
.tz-membership { position: relative; padding: 110px 0; overflow: hidden; }
.tz-membership__ghost { position: absolute; top: 44%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-display); font-size: clamp(120px, 30vw, 340px); line-height: 1; color: var(--white); opacity: .03; letter-spacing: .02em; pointer-events: none; white-space: nowrap; user-select: none; }
.tz-membership__inner { position: relative; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--margin-desktop); display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.tz-membership__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; color: var(--white); }

.tz-tier { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: var(--radius-md); background: var(--espresso); border: 1px solid var(--outline-variant); }
.tz-tier--featured { border: 1.5px solid var(--gold-aged); box-shadow: 0 0 0 1px rgba(239,194,95,.08); }
.tz-tier__name { font-family: var(--font-display); font-size: 26px; color: var(--white); }
.tz-tier__perks { font-size: 13px; letter-spacing: .02em; color: var(--on-surface-variant); }
.tz-tier__price { font-family: var(--font-display); font-size: 30px; color: var(--gold-tempus); }
.tz-tier__cycle { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }

/* Waitlist form */
.tz-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.tz-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tz-input { height: 50px; padding: 0 16px; background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--radius); color: var(--white); font-family: var(--font-ui); font-size: 15px; width: 100%; }
.tz-input:focus { outline: none; border-color: var(--focus-ring); }
.tz-input::placeholder { color: var(--ink-faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tz-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tz-grid-3 { grid-template-columns: 1fr; }
  .tz-pursuits { grid-template-columns: 1fr; gap: 40px; }
  .tz-pursuit { border-right: 0 !important; }
  .tz-membership__inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .tz-grid-4 { grid-template-columns: 1fr; }
  .tz-form__row { grid-template-columns: 1fr; }
  :root { --margin-desktop: 20px; }
}
