/* ============================================================
   METRUM TRAININGS PAGE — STYLESHEET (v3 — flowing backgrounds)
   Upload to HubSpot File Manager, then link in Head HTML as:
   <link rel="stylesheet" href="YOUR_URL_HERE">
   ============================================================ */

:root {
  --green:        #3a6b35;
  --green-dark:   #2b5027;
  --green-mid:    #4e8948;
  --green-pale:   #eaf3e9;
  --charcoal:     #1e2820;
  --charcoal-2:   #252f26;
  --charcoal-mid: #3a4a3b;
  --surface-1:    #f4f6f3;
  --surface-2:    #edf0eb;
  --surface-3:    #e4ebe3;
  --white:        #ffffff;
  --rule:         #d2d9d1;
  --muted:        #6a7169;
  --accent:       #c4922a;
  --accent-pale:  #fdf4e3;
  --ink:          #1a221a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--surface-1); color: var(--ink); overflow-x: hidden; }

/* ═══════════════════════════════════════════
   DARK ZONE — banner → hero → interest → countdown
   All one continuous green-charcoal family
   ═══════════════════════════════════════════ */

.page-banner {
  background: linear-gradient(135deg, #1e2820 0%, #263229 100%);
  padding: 16px 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-banner-left { display: flex; align-items: center; gap: 14px; }
.page-banner-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.page-banner-text h1 { font-size: 19px; font-weight: 700; color: #fff; font-family: 'Playfair Display', serif; }
.page-banner-text p { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.page-banner-courses { display: flex; gap: 8px; flex-wrap: wrap; }
.course-pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 600; letter-spacing: .05em; padding: 4px 12px; border-radius: 100px; white-space: nowrap; }

.hero {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(58,107,53,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(196,146,42,0.07) 0%, transparent 55%),
    linear-gradient(160deg, #1a2419 0%, #222d22 50%, #1e2820 100%);
  color: #fff;
  padding: 72px 56px 68px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(58,107,53,0.3); border: 1px solid rgba(100,180,90,0.35); border-radius: 100px; padding: 5px 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7dce74; margin-bottom: 22px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #7dce74; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.35; transform:scale(.65); } }
.hero h2 { font-family: 'Playfair Display', serif; font-size: clamp(30px, 3.8vw, 52px); font-weight: 900; line-height: 1.1; max-width: 640px; margin-bottom: 16px; }
.hero h2 em { font-style: italic; color: #7dce74; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.62); max-width: 540px; line-height: 1.65; margin-bottom: 30px; font-weight: 300; }
.hero-dates { display: flex; flex-direction: column; gap: 6px; margin-bottom: 30px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 7px 14px; font-family: 'DM Mono', monospace; font-size: 13px; color: rgba(255,255,255,0.75); width: fit-content; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-green { background: var(--green); color: #fff; padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block; transition: background .2s, transform .15s; border: none; cursor: pointer; }
.btn-green:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.8); padding: 13px 24px; border-radius: 6px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); display: inline-block; cursor: pointer; transition: all .2s; }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.42); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.hmeta-item { display: flex; gap: 10px; align-items: flex-start; }
.hmeta-icon { width: 34px; height: 34px; border-radius: 7px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.hmeta-text strong { display: block; font-size: 12px; font-weight: 600; color: #fff; }
.hmeta-text span { font-size: 11px; color: rgba(255,255,255,0.42); }

.hero-aside { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; background: #0d160d; overflow: hidden; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #141f13 0%, #0a110a 100%); gap: 12px; cursor: pointer; }
.video-placeholder:hover .vp-play { background: var(--green-mid); transform: scale(1.06); }
.vp-play { width: 60px; height: 60px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.vp-play svg { margin-left: 4px; }
.vp-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62); letter-spacing: .03em; }
.vp-sublabel { font-size: 11px; color: rgba(255,255,255,.28); }
.video-caption { background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.video-caption-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.82); }
.video-caption-sub { font-size: 12px; color: rgba(255,255,255,0.38); }

.interest-strip {
  background: linear-gradient(135deg, #253028 0%, #1e2820 100%);
  padding: 26px 56px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.interest-strip-label { flex-shrink: 0; }
.interest-strip-label strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.interest-strip-label span { font-size: 13px; color: rgba(255,255,255,0.48); }
.interest-fields { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; align-items: center; }
.aside-input { flex: 1; min-width: 160px; padding: 10px 14px; border-radius: 6px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color .2s; }
.aside-input::placeholder { color: rgba(255,255,255,0.28); }
.aside-input:focus { border-color: rgba(100,180,90,0.55); }
.aside-select { flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 6px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.72); font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none; cursor: pointer; -webkit-appearance: none; }
.aside-select option { background: #1e2820; color: #fff; }
.aside-btn { background: var(--green); color: #fff; border: none; border-radius: 6px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.aside-btn:hover { background: var(--green-mid); }
.aside-success { display: none; padding: 10px 16px; background: rgba(58,107,53,0.3); border: 1px solid rgba(100,180,90,0.32); border-radius: 8px; color: #7dce74; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Green line = visual hinge between dark and light zones */
.countdown-bar {
  background: linear-gradient(135deg, #1a2219 0%, #1e2820 100%);
  padding: 18px 56px;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  border-bottom: 3px solid var(--green);
}
.cd-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-right: 6px; }
.cd-units { display: flex; gap: 4px; align-items: center; }
.time-block { text-align: center; background: rgba(0,0,0,0.28); border-radius: 6px; padding: 7px 13px; min-width: 58px; border: 1px solid rgba(255,255,255,0.06); }
.time-block .num { display: block; font-family: 'DM Mono', monospace; font-size: 21px; font-weight: 500; color: #fff; line-height: 1; }
.time-block .unit { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: 3px; }
.time-sep { font-size: 18px; color: rgba(255,255,255,.18); padding-bottom: 8px; }

/* ═══════════════════════════════════════════
   LIGHT ZONE — gentle tonal steps, not hard jumps
   surface-1 → surface-2 → surface-3 and back
   ═══════════════════════════════════════════ */

.section { padding: 64px 56px; background: var(--surface-1); }
.section-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--ink); }
.section-rule { flex: 1; height: 1px; background: var(--rule); }
.section-count { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }

.pricing-banner { background: var(--accent-pale); border: 1px solid rgba(196,146,42,.2); border-radius: 10px; padding: 18px 24px; margin-bottom: 36px; display: flex; gap: 14px; align-items: flex-start; }
.pricing-banner p { font-size: 13px; line-height: 1.6; color: #5a4010; }
.pricing-banner strong { font-weight: 600; }

.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.training-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s; position: relative; overflow: hidden; }
.training-card:hover { box-shadow: 0 8px 32px rgba(30,40,30,.1); transform: translateY(-2px); }
.training-card.featured { border-color: var(--green); border-width: 2px; }
.training-card.featured::after { content: 'NEXT UP'; position: absolute; top: 16px; right: 16px; background: var(--green); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .12em; padding: 3px 9px; border-radius: 100px; }
.card-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; background: var(--green-pale); color: var(--green); width: fit-content; }
.card-tag.bayesian { background: #ede8f7; color: #5b3ea8; }
.card-tag.causal { background: #fef3e2; color: #b06000; }
.card-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.card-subtitle { font-size: 13px; color: var(--muted); font-style: italic; }
.card-dates { display: flex; flex-direction: column; gap: 4px; }
.card-date-row { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); }
.card-outcome { font-size: 13px; color: var(--muted); line-height: 1.55; border-left: 2px solid var(--green-pale); padding-left: 12px; }
.card-footer { display: flex; gap: 9px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.btn-card-reg { background: var(--green); color: #fff; padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; flex: 1; text-align: center; }
.btn-card-reg:hover { background: var(--green-mid); }
.btn-card-detail { background: transparent; color: var(--green); padding: 9px 13px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--green); transition: all .2s; cursor: pointer; white-space: nowrap; font-family: 'DM Sans', sans-serif; }
.btn-card-detail:hover { background: var(--green-pale); }

/* Calendar — one step deeper than upcoming, smooth step not a jump */
.calendar-section { background: var(--surface-2); }
.cal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cal-table thead tr { background: var(--green); color: #fff; }
.cal-table thead th { padding: 13px 18px; text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cal-table tbody tr { border-bottom: 1px solid var(--rule); transition: background .15s; background: var(--white); }
.cal-table tbody tr:hover { background: var(--green-pale); }
.cal-table td { padding: 14px 18px; vertical-align: middle; }
.cal-course-name { font-weight: 600; color: var(--ink); }
.cal-date { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); }
.cal-status { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cal-status.open { background: var(--green-pale); color: var(--green); }
.cal-status.soon { background: #fef3e2; color: #b06000; }
.cal-status.past { background: var(--surface-3); color: var(--muted); }
.cal-reg { background: var(--green); color: #fff; padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s; }
.cal-reg:hover { background: var(--green-mid); }
.cal-reg.disabled { background: var(--rule); color: var(--muted); pointer-events: none; }

/* Testimonials — returns to dark but same green-charcoal family as hero */
.testimonials-section {
  background:
    radial-gradient(ellipse 60% 70% at 90% 30%, rgba(58,107,53,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 5% 70%, rgba(58,107,53,0.1) 0%, transparent 50%),
    linear-gradient(160deg, #1e2820 0%, #222d23 100%);
}
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.testi-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: background .2s; }
.testi-card:hover { background: rgba(255,255,255,0.06); }
.testi-stars { color: #f5c518; font-size: 14px; letter-spacing: 2px; }
.testi-quote { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.75); font-style: italic; }
.testi-quote::before { content: '\201C'; font-size: 28px; line-height: 0; vertical-align: -.5em; color: var(--green-mid); margin-right: 4px; }
.testi-author { display: flex; gap: 12px; align-items: center; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.testi-name { font-size: 13px; font-weight: 600; color: #fff; }
.testi-role { font-size: 11px; color: rgba(255,255,255,.38); }
.section-title-light { color: #fff !important; }
.testimonials-section .section-rule { background: rgba(255,255,255,.1) !important; }
.testimonials-section .section-count { color: rgba(255,255,255,.32) !important; }

/* Past — light zone, slightly greener tint than upcoming */
.past-section { background: var(--surface-3); }
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.past-card { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.past-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--rule); width: fit-content; }
.past-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--ink); }
.past-dates { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }
.past-outcome { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Notify — mid dark, bridges past section back toward CTA */
.notify-section {
  background: linear-gradient(160deg, #222d23 0%, #1e2820 100%);
  padding: 52px 56px;
}
.notify-box { max-width: 680px; margin: 0 auto; text-align: center; }
.notify-box h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.notify-box p { font-size: 15px; color: rgba(255,255,255,0.52); margin-bottom: 28px; line-height: 1.6; }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.notify-input { flex: 1; min-width: 220px; padding: 11px 16px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.14); font-size: 14px; font-family: 'DM Sans', sans-serif; background: rgba(255,255,255,0.07); color: #fff; outline: none; transition: border-color .2s; }
.notify-input::placeholder { color: rgba(255,255,255,0.28); }
.notify-input:focus { border-color: rgba(100,180,90,0.52); }
.notify-btn { background: var(--green); color: #fff; border: none; padding: 11px 24px; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .2s; white-space: nowrap; }
.notify-btn:hover { background: var(--green-mid); }
.notify-success { display: none; margin-top: 16px; padding: 14px 20px; background: rgba(58,107,53,0.28); border: 1px solid rgba(100,180,90,0.28); border-radius: 8px; color: #7dce74; font-weight: 600; font-size: 14px; }

/* Accordion — back to light, easy to read long text */
.detail-section { background: var(--surface-1); border-top: 1px solid var(--rule); }
.accordion-item { border-bottom: 1px solid var(--rule); }
.accordion-trigger { width: 100%; background: none; border: none; padding: 26px 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; text-align: left; }
.accordion-trigger:hover { background: var(--surface-2); }
.acc-trigger-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--ink); }
.acc-chevron { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; transition: transform .3s; flex-shrink: 0; font-size: 12px; color: var(--muted); }
.accordion-item.open .acc-chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 56px 34px; }
.accordion-item.open .accordion-body { display: block; }
.acc-inner { max-width: 760px; font-size: 14px; line-height: 1.8; color: #3a3a3a; }
.acc-inner h3 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; margin: 18px 0 6px; color: var(--green); }
.acc-inner p { margin-bottom: 10px; }
.acc-inner ul { padding-left: 18px; }
.acc-inner li { margin-bottom: 5px; }

/* CTA — rich deep forest green, satisfying endpoint */
.cta-strip {
  background:
    radial-gradient(ellipse 80% 100% at 50% 120%, rgba(58,107,53,0.4) 0%, transparent 60%),
    linear-gradient(135deg, #1a2419 0%, #2b5027 60%, #1e2820 100%);
  padding: 56px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-strip h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: #fff; font-weight: 700; }
.cta-strip p { font-size: 14px; color: rgba(255,255,255,.52); margin-top: 5px; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,22,15,0.62); z-index: 1000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 14px; max-width: 660px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 38px; position: relative; animation: modalIn .2s ease; box-shadow: 0 32px 80px rgba(0,0,0,0.28); }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--surface-2); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.modal-close:hover { background: var(--rule); }
.modal h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.modal-body { font-size: 14px; line-height: 1.8; color: #3a3a3a; }
.modal-body h3 { font-size: 12px; font-weight: 700; margin: 14px 0 5px; text-transform: uppercase; letter-spacing: .07em; color: var(--green); }
.modal-body ul { padding-left: 17px; }
.modal-body li { margin-bottom: 4px; }
.modal-body p { margin-bottom: 8px; }
.modal-footer-row { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; gap: 10px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 920px) { .hero-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .page-banner, .hero, .interest-strip, .section, .accordion-trigger, .accordion-body, .cta-strip, .notify-section, .countdown-bar { padding-left: 20px; padding-right: 20px; }
  .upcoming-grid, .past-grid, .testi-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
