/* ═══════════════════════════════════════════════════════════
   GREAT NORTHERN GAINS — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --gold:     #C9A84C;
  --dark:     #0E0E0E;
  --charcoal: #111111;
  --light:    #F0EEE9;
  --muted:    #888888;
  --green:    #4CAF76;
  --red:      #E74C3C;
  --radius:   4px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--light);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
input, select, textarea, button { font-family: inherit; }
a { color: var(--gold); text-decoration: none; }

/* ── Typography ── */
h1, h2, h3 { font-weight: 700; line-height: 1.1; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.mb-8   { margin-bottom: 8px; }
.mb-12  { margin-bottom: 12px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mb-48  { margin-bottom: 48px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ── Layout ── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }
.page-inner       { max-width: 860px;  margin: 0 auto; padding: 48px 24px 80px; }
.page-inner-wide  { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.flex-between     { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.flex-center      { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.grid-2           { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1A1A1A;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 0.06em; cursor: pointer;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  background: none; border: none; color: var(--muted);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  padding: 8px 14px; cursor: pointer; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--light); background: rgba(255,255,255,0.04); }
.nav-cta {
  background: var(--gold); color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 20px; border: none; border-radius: var(--radius); cursor: pointer;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-logo { font-size: 16px; }
}

/* ── Admin Bar ── */
.admin-bar {
  background: #1A0A00; border-bottom: 1px solid #3A2000;
  padding: 8px 24px; display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--gold);
}
.admin-bar.hidden { display: none; }
.admin-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 4px; }

/* ── Hero ── */
#hero {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center;
  padding: 80px 24px;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.04) 0%, transparent 60%);
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-line { width: 40px; height: 2px; background: var(--gold); }
.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 14vw, 160px);
  letter-spacing: 0.02em;
  line-height: 0.88;
  margin-bottom: 28px;
}
.line2 { color: var(--gold); }
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid #1A1A1A;
}
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--gold); line-height: 1; }
.stat-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-placeholder { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: #222; line-height: 1; }
.admin-hint { font-size: 10px; color: #444; margin-top: 2px; }

/* ── Buttons ── */
.btn-primary {
  background: var(--gold); color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 28px; border: none; border-radius: var(--radius);
  cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; }
.btn-outline {
  background: transparent; color: var(--light);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 28px; border: 1px solid rgba(240,238,233,0.3); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--light); }
.btn-ghost {
  background: transparent; color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 20px; border: 1px solid #2A2A2A; border-radius: var(--radius);
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--light); border-color: #444; }

/* ── Tags & Pills ── */
.tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 10px; border-radius: 2px;
}
.pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.pill-green  { background: rgba(76,175,118,0.15); color: #4CAF76; }
.pill-gold   { background: rgba(201,168,76,0.15); color: var(--gold); }
.pill-red    { background: rgba(231,76,60,0.15);  color: #E74C3C; }

/* ── Cards ── */
.card {
  background: #111; border: 1px solid #222;
  border-radius: var(--radius); padding: 24px;
}
.card-dark {
  background: #0A0A0A; border: 1px solid #1A1A1A;
  border-radius: var(--radius); padding: 16px;
}
.program-card {
  background: #111; border: 1px solid #222;
  border-radius: var(--radius); padding: 28px;
}

/* ── Section Titles ── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.04em; line-height: 1;
}

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: #111; border: 1px solid #1E1E1E;
  border-radius: var(--radius); padding: 28px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover { border-color: rgba(201,168,76,0.3); background: #131313; }
.feature-num { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: #1E1E1E; line-height: 1; margin-bottom: 4px; }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.feature-badge { margin-top: auto; }

/* ── Gen Layout (Meal Planner) ── */
.gen-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .gen-layout { grid-template-columns: 1fr; } }
.sidebar {
  background: #0D0D0D; border: 1px solid #1E1E1E;
  border-radius: var(--radius); padding: 20px;
  position: sticky; top: 80px;
}
.sidebar-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); display: block; }
.sidebar-section { margin-bottom: 20px; }
.results-area { min-width: 0; }
.calorie-display {
  background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px; text-align: center;
}
.calorie-num { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--gold); line-height: 1; }
.calorie-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ── Macro Bar ── */
.macro-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #1A1A1A; margin-bottom: 16px; }
.macro-protein { background: #4ECDC4; transition: width 0.4s; }
.macro-carbs   { background: var(--gold); transition: width 0.4s; }
.macro-fat     { background: #E74C3C; transition: width 0.4s; }
.macro-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; text-align: center; }
.macro-item { }
.macro-val { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1; }
.macro-key { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Meal Cards ── */
.meal-card {
  background: #111; border: 1px solid #1E1E1E;
  border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.meal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.meal-type-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meal-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.price-tag { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--gold); }
.meal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.meal-tag { font-size: 10px; padding: 2px 8px; background: #1A1A1A; border-radius: 2px; color: var(--muted); letter-spacing: 0.06em; }
.difficulty-dots { display: flex; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #222; }
.dot.filled { background: var(--gold); }

/* ── Chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #141414; border: 1px solid #2A2A2A;
  color: var(--muted); font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 20px; cursor: pointer;
  transition: all 0.15s; user-select: none;
}
.chip.active { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.4); color: var(--gold); }
.chip-check { font-size: 10px; }
.chip.active .chip-check::before { content: '✓ '; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  background: #0D0D0D; border: 1px solid #2A2A2A; color: var(--light);
  padding: 10px 14px; border-radius: var(--radius); font-size: 14px;
  transition: border-color 0.15s; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(201,168,76,0.5);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea { resize: vertical; }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #111; border: 1px solid #2A2A2A;
  border-radius: 6px; padding: 32px;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 2px;
}
.modal-close:hover { color: var(--light); }
.modal-step { display: none; }
.modal-step.active { display: block; }
.step-indicator { display: flex; gap: 6px; margin-bottom: 28px; }
.step { height: 3px; flex: 1; background: #2A2A2A; border-radius: 2px; transition: background 0.2s; }
.step.active { background: var(--gold); }
.step.done   { background: rgba(201,168,76,0.4); }

/* ── Toggles ── */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #2A2A2A; border-radius: 22px;
  transition: background 0.2s; cursor: pointer;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #666; bottom: 3px; left: 3px;
  transition: transform 0.2s, background 0.2s;
}
.toggle input:checked + .toggle-slider { background: rgba(201,168,76,0.2); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--gold); }
.toggle-row { display: flex; align-items: center; gap: 12px; }

/* ── Unit Toggle ── */
.unit-toggle { display: flex; background: #0D0D0D; border: 1px solid #2A2A2A; border-radius: 3px; overflow: hidden; }
.unit-btn { background: none; border: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; padding: 6px 14px; cursor: pointer; transition: all 0.15s; }
.unit-btn.active { background: rgba(201,168,76,0.15); color: var(--gold); }

/* ── Warning / Info Boxes ── */
.warning-box {
  background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 12px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px;
}
.rate-notice {
  background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.2);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 12px; color: #E74C3C; margin-bottom: 12px;
}

/* ── Funnel Page ── */
.funnel-hero { text-align: center; padding: 100px 24px 60px; background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.06) 0%, transparent 65%); }
.interview-box {
  background: #111; border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius); padding: 40px;
  margin-bottom: 48px; text-align: center;
}
.program-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; text-align: left; margin: 24px 0; }
.program-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.check { color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #1A1A1A; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 15px;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--gold); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 14px; color: var(--muted); line-height: 1.8;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-a.open { max-height: 400px; padding-bottom: 18px; }

/* ── Testimonials ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.testimonial {
  background: #111; border: 1px solid #1E1E1E;
  border-radius: var(--radius); padding: 24px;
}
.stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.testimonial-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-result { font-size: 12px; color: var(--gold); margin-top: 4px; }

/* ── Workout program (old preview, kept for compatibility) ── */
.week-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.day-pill { background: #0D0D0D; border: 1px solid #222; border-radius: var(--radius); padding: 10px 6px; text-align: center; }
.day-pill.rest { opacity: 0.4; }
.day-name { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.day-type { font-size: 11px; color: var(--light); line-height: 1.3; }
.exercise-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1A1A1A; }
.exercise-row:last-child { border-bottom: none; }
.exercise-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.exercise-note { font-size: 12px; color: var(--muted); }
.exercise-sets { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.program-name { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }

/* ── New Workout Week/Day Accordion ── */
.workout-week { border: 1px solid #252525; border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.workout-week-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; background: #0E0E0E; transition: background 0.15s; user-select: none; }
.workout-week-header:hover { background: #141414; }
.workout-day-row { border-top: 1px solid #1A1A1A; }
.workout-day-header { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; cursor: pointer; transition: background 0.15s; user-select: none; }
.workout-day-header:hover { background: rgba(201,168,76,0.03); }
.workout-day-pill { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 2px; text-transform: uppercase; }
.workout-day-pill.active { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.25); }
.workout-day-pill.rest   { background: rgba(78,205,196,0.10); color: #4ECDC4; border: 1px solid rgba(78,205,196,0.2); }
.workout-day-body { background: #0A0A0A; }

/* ── PDF Viewer Frame ── */
#pdfViewerFrame { display: flex; flex-direction: column; }
#pdfViewerFrame iframe { display: block; flex: 1; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid #1A1A1A; margin: 20px 0; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 24px; }

/* ── Footer ── */
footer a { color: var(--muted); font-size: 12px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: #2A2A2A; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3A3A3A; }
