/* ============================================
   MARXWELL FREDERIKSEN — Main Stylesheet
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
  --bg:       #f8f5f0;
  --bg-2:     #f0ece6;
  --bg-3:     #e8e3dc;
  --border:   #ddd8d0;
  --text:     #1a1818;
  --muted:    #8a857e;
  --accent:   #7a4f38;
  --accent-dark: #613d2c;
  --radius:   8px;
  --radius-lg: 12px;
  --max-w:    1100px;
  --nav-h:    72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: #5a5550; max-width: 62ch; }

.accent { color: var(--accent); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 24px);
}

section { padding: clamp(64px, 10vw, 100px) 0; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(248, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--muted); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 80px));
  padding-bottom: clamp(60px, 8vw, 100px);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 820px; }
.hero-tag {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 { margin-bottom: 24px; }
.hero p {
  font-size: 1.15rem;
  color: #6a6560;
  margin-bottom: 40px;
  max-width: 52ch;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================
   PILLARS / CARDS
   ============================================ */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header { margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: #bbb5ac; transform: translateY(-4px); }
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

/* ============================================
   ABOUT STRIP
   ============================================ */
.about-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 7vw, 80px);
  align-items: center;
}
.about-image {
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 420px;
  justify-self: start;
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   COACHING PREVIEW
   ============================================ */
.coaching-preview {
  text-align: center;
}
.coaching-preview .section-header {
  margin: 0 auto 60px;
  max-width: 600px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-bottom: 60px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}
.step { padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 64px;
  height: 64px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 20px;
  color: var(--accent);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; margin: 0 auto; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin: 0 auto 40px; font-size: 1.05rem; }
.cta-section .hero-btns { justify-content: center; }

/* ============================================
   COACHING PAGE
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 80px));
  padding-bottom: clamp(48px, 8vw, 80px);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.15rem; }
.page-hero .hero-btns { margin-top: 32px; }

.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}
.include-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.include-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.include-item h4 { margin-bottom: 4px; font-size: 1rem; }
.include-item p { font-size: 0.9rem; max-width: none; margin: 0; }

/* ============================================
   APPLICATION FORM
   ============================================ */
.form-section { background: var(--bg-2); border-top: 1px solid var(--border); }
.form-wrap { max-width: 620px; }
.form-wrap > p { margin: 16px 0 40px; }
form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.04em; }
input, textarea, select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
select option { background: #fff; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: -8px; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero { padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 80px)); padding-bottom: 0; }
.about-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 7vw, 80px);
  align-items: end;
  padding-bottom: clamp(64px, 10vw, 100px);
  border-bottom: 1px solid var(--border);
}
.about-hero-image {
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 420px;
  justify-self: start;
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.about-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.about-body { max-width: 680px; }
.about-body h2 { margin-bottom: 24px; }
.about-body h3 { margin-top: 48px; margin-bottom: 20px; }
.about-body p { margin-bottom: 20px; }
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.credential {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.credential .number {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.credential .label { font-size: 0.85rem; color: var(--muted); }


/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }

/* ============================================
   RESPONSIVE — nav toggle only
   All layouts use auto-fit + minmax + clamp
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-cta {
    display: block;
    margin: 12px 20px 0;
    padding: 13px 20px;
    text-align: center;
    border-radius: var(--radius);
    border-bottom: none !important;
  }
  .nav-toggle { display: flex; }
  .process-steps::before { display: none; }

  /* Stack and center on mobile */
  .about-strip-inner,
  .about-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about-image,
  .about-hero-image { justify-self: center; }
  .about-tags { justify-content: center; }
  .hero-btns { justify-content: center; }
  .cta-section .hero-btns { justify-content: center; }
}
