/* ===================================================================
   Lens Academy · Become a Navigator
   Theme tokens mirrored from lensacademy.org
   =================================================================== */

:root {
  /* Fonts */
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, serif;

  /* Colors */
  --bg: #faf8f3;          /* warm cream */
  --bg-alt: #fff;         /* white cards / alt sections */
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e8e5df;
  --accent: #b87018;      /* lens-orange-500 */
  --accent-hover: #9a5c10;/* lens-orange-600 */
  --accent-light: #d08838;/* lens-orange-400 */
  --accent-text: #fff;

  /* Layout */
  --nav-h: 4rem;
  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 72rem;   /* 1152px */
  --maxw-narrow: 44rem;
}

/* ===================== Base ===================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container.narrow { max-width: var(--maxw-narrow); }

.center { text-align: center; }
.block { display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Focus states */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }

.icon-sm { width: 1rem; height: 1rem; }

/* ===================== Header / Nav ===================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-logo { height: 2rem; width: auto; }
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* Hide the middle nav links on small screens; keep brand + CTA */
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5.5rem;
  text-align: center;
}

.hero-watermark {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 520px;
  max-width: 90%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 48rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.accent-gradient {
  margin-top: 0.5rem;
  background-image: linear-gradient(100deg, var(--accent-hover), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.lede {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  text-wrap: balance;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===================== Sections ===================== */
.section {
  padding-block: 5rem;
}
.section-alt { background-color: var(--bg-alt); border-block: 1px solid var(--border); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.section-lede {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-wrap: balance;
}
.section-lede.center,
.section-title.center { margin-inline: auto; }
.section-lede.center { max-width: 40rem; }

.section-body {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-body strong { color: var(--text); font-weight: 600; }

/* ===================== Cards ===================== */
.card-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-light); transform: translateY(-2px); }

.card-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); line-height: 1.6; }

/* ===================== Commitment / time breakdown ===================== */
.commitment {
  margin: 3rem auto 0;
  max-width: 30rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.commitment-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.commitment-hours {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.commitment-label {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.commitment-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.commitment-breakdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  border-top: 1px solid var(--border);
}
.commitment-breakdown li:first-child { border-top: none; }
.commit-name { color: var(--text); font-weight: 500; }
.commit-time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
.commitment-note { max-width: 32rem; margin-inline: auto; }

/* ===================== Check list ===================== */
.check-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.check-list li {
  position: relative;
  padding-left: 2.25rem;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  background-color: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b87018' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ===================== Steps ===================== */
.steps {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); line-height: 1.6; }

/* ===================== Apply CTA ===================== */
.apply-section {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.apply-section .section-lede { margin-inline: auto; max-width: 36rem; }
.apply-section .btn { margin-top: 2rem; }

/* ===================== Footer ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text-muted);
  padding-block: 3rem;
}
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.footer-nav a { text-decoration: none; color: var(--text-muted); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--text); }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.footer-legal a { text-decoration: none; color: var(--text-muted); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--text); }

.footer-note { font-size: 0.875rem; }

/* ===================== Responsive spacing ===================== */
@media (max-width: 640px) {
  .section { padding-block: 3.5rem; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 3.5rem; }
  .card { padding: 1.5rem; }
  .footer-nav { gap: 1.25rem; }
}
