/* ═══════════════════════════════════════════════════════════════════════════
   MasterTheKick — shared stylesheet
   Used by: index.html, playbook.html, our-story.html, under-40.html, about.html
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────── Reset & base ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  /* Backgrounds */
  --bg-base:        #111827;
  --bg-card:        #1F2937;
  --bg-section:     rgba(0, 0, 0, 0.20);
  --bg-nav-mobile:  rgba(17, 24, 39, 0.90);
  --bg-input:       rgba(255, 255, 255, 0.05);
  --bg-modal:       rgba(0, 0, 0, 0.75);

  /* Text */
  --text-primary:   #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-muted:     #9CA3AF;
  --text-faint:     #6B7280;
  --text-white:     #FFFFFF;

  /* Brand */
  --brand:          #D97706;
  --brand-hover:    #B45309;
  --brand-disabled: #9CA3AF;

  /* Borders */
  --border:         #374151;
  --border-input:   rgba(255, 255, 255, 0.10);

  /* Feedback */
  --success-bg:     rgba(34, 197, 94, 0.20);
  --success-text:   #86EFAC;
  --error-bg:       rgba(239, 68, 68, 0.20);
  --error-text:     #FCA5A5;

  /* Shadows */
  --shadow-card:    0 10px 15px -3px rgba(217, 119, 6, 0.10), 0 4px 6px -2px rgba(217, 119, 6, 0.05);
  --shadow-button:  0 10px 15px -3px rgba(0, 0, 0, 0.30);
  --shadow-image:   0 10px 15px -3px rgba(0, 0, 0, 0.40);

  /* Layout */
  --container:      72rem;  /* 1152px */
  --container-wide: 56rem;  /* 896px  — max-w-4xl */
  --container-med:  48rem;  /* 768px  — max-w-3xl */
  --container-narrow: 42rem; /* 672px — max-w-2xl */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* Generic utility: hidden via JS toggle */
.hidden { display: none !important; }

/* Screen-reader only (for input labels) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ───────── Containers ───────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide   { max-width: calc(var(--container-wide) + 3rem); margin: 0 auto; padding: 0 1.5rem; }
.container-med    { max-width: calc(var(--container-med) + 3rem);  margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: calc(var(--container-narrow) + 3rem); margin: 0 auto; padding: 0 1.5rem; }

/* ───────── Brand text accent ───────── */
.brand-text { color: var(--brand); }

/* ───────── Site header ───────── */
.site-header {
  background-color: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

/* Hero variant of the header (index.html only) */
.site-header-hero {
  background-color: var(--bg-base);
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 1)),
    url('https://placehold.co/1920x1080/1a202c/718096?text=Resilience');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.site-header-hero .site-nav-wrapper {
  background-color: rgba(17, 24, 39, 0.5);
}

.site-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--brand); }
.nav-link.is-active {
  color: var(--text-white);
  font-weight: 600;
}

/* Mobile menu */
.mobile-menu-button {
  display: inline-flex;
  color: var(--text-white);
}
.mobile-menu-button:focus { outline: none; }
.mobile-menu-button svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) {
  .mobile-menu-button { display: none; }
}

.mobile-menu {
  background-color: var(--bg-nav-mobile);
}
@media (min-width: 768px) {
  .mobile-menu { display: none; }
}
.mobile-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--text-white); }
.mobile-menu a.is-active {
  color: var(--text-white);
  font-weight: 600;
}

/* ───────── Hero (index.html) ───────── */
.hero-banner {
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero-banner { padding: 6rem 1.5rem; }
}

.hero-brand {
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}
@media (min-width: 768px) { .hero-brand { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-brand { font-size: 4.5rem; } }

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-secondary);
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-tagline {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .hero-tagline { font-size: 1.5rem; } }
@media (min-width: 1024px) { .hero-tagline { font-size: 1.875rem; } }

.hero-tagline .emphasis { font-weight: 700; }

.hero-motto {
  margin-top: 3rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand);
}
@media (min-width: 768px) { .hero-motto { font-size: 2.25rem; } }

/* ───────── Sections ───────── */
.section {
  padding: 5rem 0;
}
@media (min-width: 640px) {
  .section { padding: 6rem 0; }
}

.section-divider-wrap { padding: 0 1.5rem; max-width: var(--container); margin: 0 auto; }
.section-divider { border-top: 1px solid var(--border); }

.section-muted { background-color: var(--bg-section); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ───────── Typography: titles & body ───────── */
.page-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
@media (min-width: 768px) { .page-title { font-size: 3rem; } }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

.section-title-lg {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (min-width: 768px) { .section-title-lg { font-size: 3rem; } }

.section-title-sm {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) { .section-title-sm { font-size: 2.25rem; } }

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

.section-body {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .section-body { font-size: 1.25rem; } }

.section-body-plain {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-body-secondary {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.section-cta-note {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-button);
  transition: background-color 0.3s ease;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--brand);
  color: var(--text-white);
}
.btn-primary:hover { background-color: var(--brand-hover); }
.btn-primary:disabled,
.btn-primary[disabled] {
  background-color: var(--brand-disabled);
  cursor: not-allowed;
}

.btn-lg { padding: 0.75rem 2rem; }

.btn-full {
  width: 100%;
}
@media (min-width: 640px) {
  .btn-full-mobile { width: auto; }
}

/* ───────── Challenge grid (index: 2x2 on md) ───────── */
.challenge-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 3rem;
}
@media (min-width: 768px) {
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
}

.challenge-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}
.challenge-body {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.challenge-closer {
  text-align: center;
  margin-top: 4rem;
}

/* ───────── Pillar cards (index: 4-up icon cards) ───────── */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }

.icon-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.icon-card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-card-icon svg {
  width: 3rem;
  height: 3rem;
  color: var(--brand);
}

.icon-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.icon-card-body {
  color: var(--text-muted);
}

/* ───────── Feature cards (playbook: "What You Get") ───────── */
.features-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.5rem;
}
.feature-card-title {
  font-weight: 700;
  color: var(--text-white);
}
.feature-card-body {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ───────── "Why MasterTheKick" list (playbook) ───────── */
.reasons-list {
  margin-top: 2.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.reasons-list .accent {
  font-weight: 700;
  color: var(--text-white);
}

.reasons-closer {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
}

/* ───────── CTA block after playbook features ───────── */
.launch-cta {
  margin-top: 4rem;
  text-align: center;
}
.launch-cta-title {
  font-size: 1.25rem;
  font-weight: 600;
}
.launch-cta .btn {
  margin-top: 1rem;
}

/* ───────── Story page ───────── */
.story-sections {
  max-width: var(--container-med);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .story-item { flex-direction: row; }
  .story-item.reverse { flex-direction: row-reverse; }
}

.story-image {
  width: 12rem;
  height: 12rem;
  border-radius: 0.5rem;
  object-fit: cover;
  box-shadow: var(--shadow-image);
  flex-shrink: 0;
}

.story-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}
.story-body {
  margin-top: 0.5rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.story-centered {
  text-align: center;
}

.story-closer {
  text-align: center;
  padding-top: 2.5rem;
}
.story-closer-title {
  font-size: 1.875rem;
  font-weight: 700;
}
.story-closer-body {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.story-closer .btn {
  margin-top: 2rem;
}

/* ───────── Quote block (our-story) ───────── */
.quote-block {
  margin-top: 1.5rem;
  border-left: 4px solid var(--brand);
  padding: 1rem 1.5rem;
}
.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
}
.quote-author {
  display: block;
  text-align: right;
  margin-top: 1rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ───────── About / founder ───────── */
.founder-name {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ───────── Waitlist form (index inline) ───────── */
.waitlist-form {
  margin-top: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-full { grid-column: span 2; }
}

.form-input {
  width: 100%;
  background-color: var(--bg-input);
  color: var(--text-white);
  padding: 0.75rem 0.875rem;
  border-radius: 0.375rem;
  box-shadow: inset 0 0 0 1px var(--border-input);
  font-size: 0.875rem;
  line-height: 1.5;
  border: none;
  outline: none;
}
.form-input:focus {
  box-shadow: inset 0 0 0 2px var(--brand);
}
.form-input::placeholder { color: var(--text-muted); }

.feedback-message {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 0.375rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}
.feedback-message.is-success {
  background-color: var(--success-bg);
  color: var(--success-text);
}
.feedback-message.is-error {
  background-color: var(--error-bg);
  color: var(--error-text);
}

/* ───────── Modal (playbook) ───────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--text-white); }
.modal-close svg { width: 1.5rem; height: 1.5rem; }

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ───────── Footer ───────── */
.site-footer {
  background-color: var(--bg-base);
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
}
.footer-links {
  margin-bottom: 1rem;
}
.footer-links a {
  display: inline-block;
  padding: 0 1rem;
  color: var(--text-faint);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--brand); }
.site-footer-copy { font-size: 1rem; }
.site-footer-tag {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* ───────── Inline emphasis utilities ───────── */
.emphasis-white {
  color: var(--text-white);
  font-weight: 600;
}

/* ───────── Small utility classes ───────── */
.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* Padding-only section variant (no top padding, preserves bottom spacing) */
.section-bottom {
  padding-bottom: 5rem;
}
@media (min-width: 640px) {
  .section-bottom { padding-bottom: 6rem; }
}

/* Constrained text block (48rem / 768px) centered inside a wider container */
.text-block {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
