/* ══════════════════════════════════════
   LOEP — Shared Stylesheet
   loeptraining.nl
══════════════════════════════════════ */

:root {
  --navy:     #0D1B2A;
  --graphite: #1E2D3D;
  --steel:    #4A6070;
  --amber:    #E8A020;
  --chalk:    #F4F1EA;
  --white:    #FFFFFF;

  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-text:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max-width: 1400px;
  --gutter:    clamp(24px, 5vw, 72px);
  --section-gap: clamp(64px, 10vw, 120px);

  /* ── Spacing scale (4-px base) ── */
  --s-1:  4px;  --s-2:  8px;  --s-3:  12px; --s-4:  16px; --s-5:  20px;
  --s-6:  24px; --s-8:  32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-32: 128px; --s-40: 160px;

  /* ── Extended type scale ── */
  --fs-h3:    20px;  --fs-lead:  18px;
  --fs-label: 11px;  --fs-meta:  10px;
  --lh-body:  1.7;
  --track-h1:         -0.03em;
  --track-mono-loose:  0.20em;
  --track-mono-tight:  0.10em;

  /* ── Shape & borders ── */
  --r-pill: 9999px;
  --bw-bar: 3px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* ── Shadows ── */
  --shadow-lift: 0 8px 24px rgba(13,27,42,0.08);

  /* ── Semantic aliases ── */
  --accent:           var(--amber);
  --fg:               var(--navy);
  --fg-on-dark:       var(--white);
  --fg-muted:         var(--steel);
  --fg-on-dark-muted: rgba(255,255,255,0.82);
  --amber-hi:         #C88A18;
  --amber-lo:         #B07A10;
  --page-max:         var(--max-width);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── PAGE WRAPPER ── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(26px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
p  { line-height: 1.7; color: var(--steel); }

/* ── NAVIGATION ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}
.nav-wordmark .dot { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: transparent;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 9px 18px;
  font-size: 14px !important;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9999px;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.45); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s;
}

.nav-mobile {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px var(--gutter);
  flex-direction: column;
  gap: 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
}
.nav-mobile .nav-cta {
  align-self: flex-start;
  color: var(--white) !important;
  padding: 12px 24px;
  margin-top: 4px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); }

/* ── SECTION LABEL ── */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(13,27,42,0.12);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}
.section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: rgba(13,27,42,0.10);
  margin: var(--section-gap) 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 48px var(--gutter);
  margin-top: var(--section-gap);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.12);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-text);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-top: 8px;
}

/* ── MAIN OFFSET FOR FIXED NAV ── */
main { padding-top: 64px; }

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(13,27,42,0.2);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
  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='%234A6070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  h1 { font-size: clamp(32px, 8vw, 52px); }
}
