/* ============================================
   LearntoLift.com — Global Styles
   Modern Athletic Minimalism
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #4361ee;
  --color-accent: #ff6b35;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #2b2d42;
  --color-text-light: #6c757d;
  --color-success: #06d6a0;
  --color-border: #e0e0e0;
  --color-card-shadow: rgba(0, 0, 0, 0.06);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 12px var(--color-card-shadow);
  --shadow-card-hover: 0 6px 24px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
  --content-width: 800px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.4em; }
h4 { font-size: 1.15rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }

/* --- Layout Containers --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.content-container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }

/* --- Header / Navigation --- */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--color-accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 12px; }

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--color-white); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Hero Sections --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 { color: var(--color-white); max-width: 720px; margin: 0 auto 16px; }

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.6;
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 { color: var(--color-white); margin-bottom: 12px; }

.page-hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: #e55a2b; color: var(--color-white); }

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}
.btn-secondary:hover { background: #3451d1; color: var(--color-white); }

.btn-dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-dark:hover { background: #2b2d42; color: var(--color-white); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-secondary), #6b83f7);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 16px; }

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}
.card-link:hover { color: var(--color-accent); }

/* --- Section Spacing --- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 8px auto 0;
  font-size: 1.05rem;
}

/* --- Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- Content Pages --- */
.page-content {
  padding: 48px 0;
}

.page-content h2 {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--color-border);
}

.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-content h3 { margin-top: 1.5em; }

.page-content ul, .page-content ol { margin-bottom: 1.2em; }

/* --- Workout Tables --- */
.workout-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.workout-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.95rem;
}

.workout-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.workout-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workout-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.workout-table tbody tr:nth-child(even) {
  background: #f8f9fb;
}

.workout-table tbody tr:hover {
  background: #eef1f6;
}

/* --- Product / Recommendation Cards --- */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.product-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.badge-premium { background: #eef0ff; color: var(--color-secondary); }
.badge-budget { background: #e8faf3; color: #059669; }
.badge-best { background: #fff3ed; color: var(--color-accent); }

.product-card h4 { margin-bottom: 4px; }

.product-card .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.product-card .description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-card .btn { width: 100%; justify-content: center; }

/* --- Callout / Tip Boxes --- */
.callout {
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.callout-tip {
  background: #eef0ff;
  border-left: 4px solid var(--color-secondary);
}

.callout-warning {
  background: #fff8f0;
  border-left: 4px solid var(--color-accent);
}

.callout-success {
  background: #e8faf3;
  border-left: 4px solid var(--color-success);
}

.callout-product {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.callout h4 { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* --- Accordion (details/summary) --- */
details {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

details summary {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-primary);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '\2212';
}

details .details-content {
  padding: 0 24px 24px;
}

/* --- Quiz Styles --- */
.quiz-container {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.quiz-progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  transition: background 0.3s;
}

.quiz-progress-step.active { background: var(--color-secondary); }
.quiz-progress-step.done { background: var(--color-success); }

.quiz-question { display: none; }
.quiz-question.active { display: block; }

.quiz-question h3 {
  text-align: center;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  padding: 16px 20px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--color-secondary);
  background: #eef0ff;
}

.quiz-option.selected {
  border-color: var(--color-secondary);
  background: #eef0ff;
}

.quiz-result {
  display: none;
  text-align: center;
}

.quiz-result.active { display: block; }

.quiz-result h3 { color: var(--color-success); margin-bottom: 12px; }

.quiz-result .program-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.quiz-result p { color: var(--color-text-light); margin-bottom: 24px; }

/* --- Tier Selector --- */
.tier-selector {
  display: flex;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 32px;
}

.tier-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: var(--color-text-light);
  text-align: center;
}

.tier-btn:hover { background: var(--color-bg); }

.tier-btn.active {
  background: var(--color-secondary);
  color: var(--color-white);
}

.tier-content { display: none; }
.tier-content.active { display: block; }

/* --- FAQ --- */
.faq-section details {
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.faq-section details + details { margin-top: -1px; }
.faq-section details:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.faq-section details:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }

.faq-section details summary {
  font-size: 1rem;
  padding: 18px 24px;
}

/* --- Comparison Table --- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* --- Affiliate Disclosure Banner --- */
.affiliate-disclosure {
  background: #f0f1f5;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  text-align: center;
}

/* --- Last Updated / Meta --- */
.content-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-light); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* --- Print Styles --- */
@media print {
  .site-header, .site-footer, .btn, .quiz-container, .tier-selector { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
