/* ============================================================================
   home-redesign-legacy.css
   The ORIGINAL (index.php / redesign.css) Booking + Contact sections, scoped
   under .t58-legacy so their warm-brown "cream" theme renders EXACTLY as on the
   live site without leaking into — or being overridden by — the new redesign
   page it is embedded in. Extracted from redesign.css + index.php inline styles.
   ========================================================================== */

@keyframes t58l-pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(30,122,79,.5) } 50%{ box-shadow:0 0 0 6px rgba(30,122,79,0) } }
@keyframes t58l-slideUp { from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:none } }

.t58-legacy{
  /* ── Retheme: match home-redesign's black/white palette (NOT brown/cream).
     --bg and --muted intentionally inherit the page theme (:root / [data-theme]);
     every other legacy token is remapped onto the new palette so these sections
     follow light/dark automatically. Gold accent is kept. ── */
  --bg-soft:var(--band);
  --surface:var(--card);
  --ink:var(--text); --ink-2:var(--text);
  --rule:var(--border);
  --inv-bg:var(--band); --inv-ink:var(--text); --inv-ink2:var(--text); --inv-muted:var(--muted); --inv-rule:var(--border);
  --accent:var(--gold); --hot:#e2664d; --good:#1a9d5a; --warn:var(--gold);
  --f-display:"Bricolage Grotesque",ui-serif,Georgia,serif;
  --f-body:"Geist",ui-sans-serif,system-ui,-apple-system,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --hairline:.5px solid var(--rule);
  --pad-x:clamp(20px,4vw,64px);
  --col-max:1320px;
  --radius:14px;

  background:var(--bg);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"ss01","cv11";
}
.t58-legacy a{ color:inherit; text-decoration:none; }
.t58-legacy img{ display:block; max-width:100%; }
.t58-legacy button{ font-family:inherit; }
.t58-legacy ::selection{ background:var(--accent); color:#fff; }

/* ── atoms ── */
.t58-legacy .mono{ font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.t58-legacy .mono.dark{ color:rgba(35,29,24,.65); }
.t58-legacy .tnum{ font-variant-numeric:tabular-nums; }

.t58-legacy .section{ padding:clamp(64px,8vw,120px) var(--pad-x); border-top:var(--hairline); }
.t58-legacy .section-inner{ max-width:var(--col-max); margin:0 auto; width:100%; }
.t58-legacy .section-head{ display:grid; grid-template-columns:1fr 2.2fr; gap:48px; align-items:end; margin-bottom:56px; }
.t58-legacy .section-head .eyebrow-row{ display:flex; align-items:center; gap:10px; }
.t58-legacy .section-head h2{ font-family:var(--f-display); font-weight:600; font-size:clamp(36px,5vw,64px); line-height:1.02; letter-spacing:-0.025em; margin:0; text-wrap:balance; }
.t58-legacy .section-head h2 em{ font-style:italic; font-weight:500; color:var(--accent); }
.t58-legacy .section-head .lede{ font-size:clamp(16px,1.3vw,19px); color:var(--muted); max-width:52ch; margin:0; text-wrap:pretty; }

.t58-legacy .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block; }
.t58-legacy .dot.hot{ background:var(--hot); }
.t58-legacy .dot.good{ background:var(--good); animation:t58l-pulse 2s ease-in-out infinite; }

/* ── buttons ── */
.t58-legacy .btn{ display:inline-flex; align-items:center; gap:10px; padding:14px 22px; border-radius:999px; border:1px solid transparent; font-weight:500; font-size:15px; cursor:pointer; transition:transform .15s ease, background .15s ease, color .15s ease; white-space:nowrap; text-align:left; }
.t58-legacy a.btn{ cursor:pointer; }
.t58-legacy .btn-primary{ background:var(--ink); color:var(--bg); }
.t58-legacy .btn-primary:hover{ background:var(--accent); }
.t58-legacy .btn-secondary{ background:transparent; color:var(--ink); border-color:var(--ink); }
.t58-legacy .btn-secondary:hover{ background:var(--ink); color:var(--bg); }
.t58-legacy .btn .arrow{ transition:transform .2s; display:inline-block; }
.t58-legacy .btn:hover .arrow{ transform:translateX(3px); }
.t58-legacy .btn[disabled]{ cursor:not-allowed; }

/* ── booking (webinar) ── */
.t58-legacy .webinar-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:0; border:var(--hairline); border-radius:var(--radius); background:var(--surface); overflow:hidden; }
.t58-legacy .webinar-left{ padding:clamp(28px,3vw,44px); display:flex; flex-direction:column; border-right:var(--hairline); }
.t58-legacy .webinar-tag{ display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--good); margin-bottom:24px; }
.t58-legacy .webinar-left h3{ font-family:var(--f-display); font-weight:600; font-size:clamp(28px,3.2vw,44px); line-height:1.04; letter-spacing:-0.025em; margin:0 0 16px; text-wrap:balance; }
.t58-legacy .webinar-left p.desc{ color:var(--muted); margin:0 0 32px; max-width:42ch; }

/* cream card (no image) */
.t58-legacy .webinar-left.cream-card{ background:#F4E8D0 !important; color:#231D18 !important; }
.t58-legacy .webinar-left.cream-card .webinar-tag{ color:#231D18; }
.t58-legacy .webinar-left.cream-card h3{ color:#231D18 !important; }
.t58-legacy .webinar-left.cream-card p.desc{ color:#5a4a35 !important; }
.t58-legacy .webinar-left.cream-card .webinar-meta{ gap:12px !important; }
.t58-legacy .webinar-left.cream-card .webinar-meta-cell{ background:#0D0A08 !important; border:1px solid #0D0A08 !important; border-radius:12px !important; padding:14px 16px !important; box-shadow:0 6px 18px -8px rgba(13,10,8,.45), 0 1px 0 rgba(255,255,255,.04) inset !important; transition:transform .18s ease, box-shadow .18s ease; }
.t58-legacy .webinar-left.cream-card .webinar-meta-cell:hover{ transform:translateY(-2px); box-shadow:0 12px 26px -10px rgba(13,10,8,.60), 0 1px 0 rgba(255,255,255,.06) inset !important; }
.t58-legacy .webinar-left.cream-card .webinar-meta-cell .k{ color:#E8B547 !important; font-family:var(--f-mono); font-size:10.5px !important; font-weight:600 !important; letter-spacing:.16em !important; text-transform:uppercase; }
.t58-legacy .webinar-left.cream-card .webinar-meta-cell .v{ color:#F4E8D0 !important; font-family:var(--f-display); font-weight:700 !important; font-size:17px !important; letter-spacing:-0.01em; margin-top:4px; }

/* cream card WITH background image → dark glass */
.t58-legacy .webinar-left.cream-card.has-bg-image{ position:relative; background-color:#0D0A08 !important; background-image:var(--webinar-bg-image) !important; background-size:cover !important; background-position:center !important; background-repeat:no-repeat !important; color:#fff !important; }
.t58-legacy .webinar-left.cream-card.has-bg-image::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(13,10,8,.66) 0%, rgba(13,10,8,.42) 45%, rgba(13,10,8,.74) 100%); }
.t58-legacy .webinar-left.cream-card.has-bg-image > *{ position:relative; z-index:1; }
.t58-legacy .webinar-left.cream-card.has-bg-image .webinar-tag{ color:#E8B547 !important; font-weight:700; }
.t58-legacy .webinar-left.cream-card.has-bg-image h3{ color:#fff !important; font-weight:700 !important; text-shadow:0 2px 14px rgba(0,0,0,.55); }
.t58-legacy .webinar-left.cream-card.has-bg-image p.desc{ color:rgba(255,255,255,.88) !important; font-weight:500; text-shadow:0 1px 8px rgba(0,0,0,.5); }
.t58-legacy .webinar-left.cream-card.has-bg-image .course-summary{ background:rgba(255,255,255,.10); -webkit-backdrop-filter:blur(14px) saturate(1.25); backdrop-filter:blur(14px) saturate(1.25); border:1px solid rgba(255,255,255,.25); border-radius:14px; box-shadow:0 12px 32px -14px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.12) inset; }
.t58-legacy .webinar-left.cream-card.has-bg-image .course-summary-title{ color:#7FE0A8; font-weight:700; }
.t58-legacy .webinar-left.cream-card.has-bg-image .course-summary-row{ border-top:1px solid rgba(255,255,255,.16); }
.t58-legacy .webinar-left.cream-card.has-bg-image .course-summary-row:first-child{ border-top:none; }
.t58-legacy .webinar-left.cream-card.has-bg-image .course-summary-row dt{ color:rgba(255,255,255,.72); font-weight:600; }
.t58-legacy .webinar-left.cream-card.has-bg-image .course-summary-row dd{ color:#fff; font-weight:700; text-shadow:0 1px 6px rgba(0,0,0,.45); }
.t58-legacy .webinar-left.cream-card.has-bg-image .webinar-meta-cell{ background:rgba(13,10,8,.72) !important; border:1px solid rgba(255,255,255,.18) !important; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }

.t58-legacy .course-summary{ border:var(--hairline); border-radius:12px; padding:18px 20px; margin:0 0 28px; }
.t58-legacy .course-summary-title{ display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--good); margin-bottom:12px; }
.t58-legacy .course-summary-list{ margin:0; }
.t58-legacy .course-summary-row{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:7px 0; border-top:var(--hairline); }
.t58-legacy .course-summary-row:first-child{ border-top:none; }
.t58-legacy .course-summary-row dt{ font-family:var(--f-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); white-space:nowrap; }
.t58-legacy .course-summary-row dd{ margin:0; font-weight:600; font-size:14px; text-align:right; }

.t58-legacy .webinar-meta{ display:grid; grid-template-columns:1fr 1fr; gap:0; border-top:var(--hairline); margin-top:auto; }
.t58-legacy .webinar-meta-cell{ padding:18px 0; border-right:var(--hairline); padding-right:16px; }
.t58-legacy .webinar-meta-cell:last-child{ border-right:none; padding-right:0; padding-left:16px; }
.t58-legacy .webinar-meta-cell .k{ font-family:var(--f-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.t58-legacy .webinar-meta-cell .v{ font-family:var(--f-display); font-size:22px; font-weight:600; letter-spacing:-0.015em; font-variant-numeric:tabular-nums; }

.t58-legacy .webinar-right{ padding:clamp(28px,3vw,44px); display:flex; flex-direction:column; background:var(--bg); }
.t58-legacy .reserve-head{ font-family:var(--f-display); font-weight:600; font-size:clamp(20px,1.8vw,26px); letter-spacing:-0.015em; margin:0 0 20px; }
.t58-legacy .seats-bar{ display:flex; flex-direction:column; gap:8px; margin-bottom:28px; }
.t58-legacy .seats-bar .row{ display:flex; justify-content:space-between; align-items:baseline; }
.t58-legacy .seats-bar .row .val{ font-family:var(--f-display); font-size:28px; font-weight:600; font-variant-numeric:tabular-nums; }
.t58-legacy .seats-bar .row .val .total{ color:var(--muted); font-weight:400; }
.t58-legacy .seats-bar .track{ height:6px; background:rgba(244,232,208,.10); border-radius:999px; overflow:hidden; }
.t58-legacy .seats-bar .fill{ height:100%; background:var(--accent); border-radius:999px; transition:width .4s ease; }
.t58-legacy .soldout-tag{ display:inline-block; margin-top:8px; font-family:var(--f-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; background:var(--hot); color:var(--bg); padding:5px 10px; border-radius:4px; }
.t58-legacy .redirect-note, .t58-legacy .zoom-note{ font-size:12.5px; color:var(--muted); margin:8px 0 0; line-height:1.45; }
.t58-legacy .zoom-note{ margin-top:10px; padding-top:10px; border-top:1px dashed var(--rule); }

/* ── fields (reset new-page .field leaks: gap) ── */
.t58-legacy .field{ display:flex; flex-direction:column; gap:0; margin-bottom:14px; position:relative; font-size:inherit; font-weight:400; }
.t58-legacy .field label{ font-family:var(--f-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.t58-legacy .field input, .t58-legacy .field textarea, .t58-legacy .field select{ font-family:var(--f-body); font-size:15px; padding:12px 14px; border:1px solid var(--rule); background:rgba(244,232,208,.06); border-radius:10px; color:var(--ink); outline:none; transition:border-color .15s, box-shadow .15s, background .15s; }
.t58-legacy .field input::placeholder, .t58-legacy .field textarea::placeholder{ color:var(--muted); opacity:.7; }
.t58-legacy .field input:focus, .t58-legacy .field textarea:focus, .t58-legacy .field select:focus{ border-color:var(--ink); background:rgba(244,232,208,.12); box-shadow:0 0 0 3px rgba(232,181,71,.25); }
.t58-legacy .field.error input, .t58-legacy .field.error textarea, .t58-legacy .field.error select{ border-color:var(--hot); background:rgba(255,123,92,.10); }
.t58-legacy .field.error label{ color:var(--hot); }
.t58-legacy .field.valid input, .t58-legacy .field.valid textarea, .t58-legacy .field.valid select{ border-color:var(--good); }
.t58-legacy .submit-row{ display:flex; align-items:center; gap:14px; margin-top:8px; }

/* ── contact ── */
.t58-legacy .contact-grid{ display:grid; grid-template-columns:1fr 1.4fr; gap:64px; align-items:start; }
.t58-legacy .response-pill{ display:inline-flex; align-items:center; gap:10px; padding:10px 16px; background:var(--surface); border:var(--hairline); border-radius:999px; margin-bottom:28px; font-size:13.5px; }
.t58-legacy .response-pill strong{ font-family:var(--f-display); font-weight:600; color:#D2AA38; }
.t58-legacy .response-pill .mono{ font-size:10.5px; }
.t58-legacy .contact-left .channels{ display:flex; flex-direction:column; gap:0; border-top:var(--hairline); margin-top:32px; }
/* channel (reset new-page .channel leaks: border/radius/bg/shadow/transform) */
.t58-legacy .channel{ display:grid; grid-template-columns:44px 1fr auto !important; align-items:center; padding:20px 0; border:0; border-bottom:var(--hairline); border-radius:0; background:transparent; box-shadow:none; gap:16px; transition:none; }
.t58-legacy .channel:hover{ transform:none; box-shadow:none; }
.t58-legacy .channel .arrow-pill{ font-family:var(--f-mono); font-size:12px; padding:8px 12px; border:1px solid var(--ink); border-radius:999px; letter-spacing:.08em; text-transform:uppercase; transition:background .15s, color .15s; color:var(--ink); }
.t58-legacy .channel:hover .arrow-pill{ background:var(--ink); color:var(--bg); }
.t58-legacy .channel-glyph{ width:44px; height:44px; border-radius:50%; background:var(--ink); color:var(--bg); display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-weight:600; font-size:18px; font-style:italic; }
.t58-legacy .channel-glyph svg{ width:22px; height:22px; }
.t58-legacy .channel-glyph.tg{ background:#229ED9; }
.t58-legacy .channel-glyph.ig{ background:linear-gradient(135deg,#F58529,#DD2A7B,#8134AF); }
.t58-legacy .channel-glyph.yt{ background:#FF0000; }
.t58-legacy .channel-glyph.li{ background:#0A66C2; }
.t58-legacy .channel-glyph.tg svg, .t58-legacy .channel-glyph.ig svg, .t58-legacy .channel-glyph.yt svg, .t58-legacy .channel-glyph.li svg{ fill:#fff; }
.t58-legacy .channel:hover .channel-glyph.tg, .t58-legacy .channel:hover .channel-glyph.ig, .t58-legacy .channel:hover .channel-glyph.yt, .t58-legacy .channel:hover .channel-glyph.li{ filter:brightness(1.15); }
.t58-legacy .channel:hover .channel-glyph{ background:var(--accent); color:var(--ink); }
.t58-legacy .channel-body .name{ font-family:var(--f-display); font-size:19px; font-weight:500; }
.t58-legacy .channel-body .handle{ font-family:var(--f-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-top:2px; }

/* contact form on cream (inverse) */
.t58-legacy .contact-form{ background:var(--inv-bg); color:var(--inv-ink); border:1px solid var(--inv-rule); border-radius:var(--radius); padding:clamp(28px,3vw,44px); }
.t58-legacy .contact-form .reserve-head{ color:var(--inv-ink); }
.t58-legacy .contact-form label{ color:var(--inv-muted); }
.t58-legacy .contact-form .field input, .t58-legacy .contact-form .field textarea, .t58-legacy .contact-form .field select{ background:rgba(35,29,24,.04); color:var(--inv-ink); border-color:var(--inv-rule); }
.t58-legacy .contact-form .field input::placeholder, .t58-legacy .contact-form .field textarea::placeholder{ color:var(--inv-muted); opacity:.8; }
.t58-legacy .contact-form .field input:focus, .t58-legacy .contact-form .field textarea:focus, .t58-legacy .contact-form .field select:focus{ border-color:var(--inv-ink); background:rgba(35,29,24,.06); box-shadow:0 0 0 3px rgba(232,181,71,.30); }
.t58-legacy .contact-form .field.error input, .t58-legacy .contact-form .field.error textarea{ border-color:var(--hot); background:rgba(255,123,92,.10); }
.t58-legacy .contact-form .btn-primary{ background:var(--inv-ink); color:var(--inv-bg); border-color:var(--inv-ink); }
.t58-legacy .contact-form .btn-primary:hover{ background:var(--accent); color:var(--inv-ink); }
.t58-legacy .contact-form .row-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.t58-legacy .contact-form .field.valid input, .t58-legacy .contact-form .field.valid textarea, .t58-legacy .contact-form .field.valid select{ border-color:#2E7A52; }

/* toast (contact result) */
.t58-legacy .toast{ background:var(--good); color:var(--bg); padding:12px 16px; border-radius:10px; font-size:14px; margin-top:16px; display:flex; align-items:center; gap:10px; animation:t58l-slideUp .3s ease; }
.t58-legacy .contact-form .toast{ background:#2E7A52; color:var(--inv-bg); }

/* ── responsive ── */
@media (max-width:980px){
  .t58-legacy .webinar-grid{ grid-template-columns:1fr; }
  .t58-legacy .webinar-left{ border-right:none; border-bottom:var(--hairline); }
  .t58-legacy .contact-grid{ grid-template-columns:1fr; gap:40px; }
  .t58-legacy .section-head{ grid-template-columns:1fr; gap:24px; }
}
@media (max-width:560px){
  .t58-legacy .contact-form .row-2{ grid-template-columns:1fr; }
}

/* ===========================================================================
   Black/White retheme overrides — neutralize the few hard-coded cream/brown
   surfaces that don't read from CSS variables, so nothing brown/cream remains.
   =========================================================================== */
.t58-legacy .field input, .t58-legacy .field textarea, .t58-legacy .field select{ background:var(--input-bg); border-color:var(--border-2); color:var(--text); }
.t58-legacy .field input::placeholder, .t58-legacy .field textarea::placeholder{ color:var(--soft); opacity:1; }
.t58-legacy .field input:focus, .t58-legacy .field textarea:focus, .t58-legacy .field select:focus{ background:var(--input-bg); border-color:var(--gold); box-shadow:0 0 0 3px rgba(184,134,11,.20); }
.t58-legacy .seats-bar .track{ background:var(--border); }
/* cream card (no image) → neutral card; the has-bg-image photo variant keeps its dark glass */
.t58-legacy .webinar-left.cream-card{ background:var(--card) !important; color:var(--text) !important; }
.t58-legacy .webinar-left.cream-card .webinar-tag{ color:var(--text); }
.t58-legacy .webinar-left.cream-card h3{ color:var(--text) !important; }
.t58-legacy .webinar-left.cream-card p.desc{ color:var(--muted) !important; }
/* contact form on cream → neutral band card */
.t58-legacy .contact-form .field input, .t58-legacy .contact-form .field textarea, .t58-legacy .contact-form .field select{ background:var(--input-bg); color:var(--text); border-color:var(--border-2); }
.t58-legacy .contact-form .field input::placeholder, .t58-legacy .contact-form .field textarea::placeholder{ color:var(--soft); opacity:1; }
.t58-legacy .contact-form .field input:focus, .t58-legacy .contact-form .field textarea:focus, .t58-legacy .contact-form .field select:focus{ border-color:var(--gold); background:var(--input-bg); box-shadow:0 0 0 3px rgba(184,134,11,.20); }
.t58-legacy .response-pill strong{ color:var(--gold); }

/* ── Spacing: pull up 90px, push 90px gap below (both sections) ── */
#booking.t58-legacy, #contact.t58-legacy{ padding-top:clamp(100px,11vw,176px); margin-top:-90px; margin-bottom:90px; }
