/* ============================================================
   ENDURAMAN CORPORATION — enduraman.com
   Design system: extends the LeanIX Expert brand
   - Deep navy #0A2252, monochromatic precision, opacity layers
   - Instrument Sans (voice) + Jura (instrument labels)
   - Gold accent reserved for calls to action and key numerals
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --navy:        #0A2252;   /* primary brand — from the LeanIX Expert mark */
  --navy-deep:   #061633;   /* dark sections, footer */
  --navy-bright: #143A7E;   /* hovers, gradients */
  --gold:        #C9962E;   /* the payoff accent — CTAs, key numerals */
  --gold-bright: #E3B84A;   /* gold on dark backgrounds */
  --paper:       #F6F7FA;   /* light section background */
  --white:       #FFFFFF;
  --ink:         #16223B;   /* body text on light */
  --muted:       #55617B;   /* secondary text on light */
  --line:        #DDE2EC;   /* hairlines on light */
  --line-dark:   rgba(255, 255, 255, 0.16);
  --text-dark-1: rgba(255, 255, 255, 0.94); /* primary text on navy */
  --text-dark-2: rgba(255, 255, 255, 0.72); /* secondary text on navy */
  --text-dark-3: rgba(255, 255, 255, 0.45); /* tertiary text on navy */

  /* Type */
  --font-sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Jura", "Instrument Sans", system-ui, sans-serif;

  /* Rhythm */
  --container: 1140px;
  --radius: 6px;
  --section-pad: clamp(64px, 9vw, 120px);
  --shadow-card: 0 1px 2px rgba(6, 22, 51, 0.05), 0 8px 28px rgba(6, 22, 51, 0.07);
  --shadow-lift: 0 2px 4px rgba(6, 22, 51, 0.08), 0 18px 44px rgba(6, 22, 51, 0.16);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-bright); }

main { display: block; }

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

.section { padding: var(--section-pad) 0; }
.section--paper { background: var(--paper); }
.section--navy  { background: var(--navy); color: var(--text-dark-1); }
.section--deep  { background: var(--navy-deep); color: var(--text-dark-1); }

.section--navy h2, .section--deep h2,
.section--navy h3, .section--deep h3 { color: var(--white); }
.section--navy p, .section--deep p { color: var(--text-dark-2); }

/* ---------- 3. Brand devices ---------- */

/* Overline label — Jura, tracked out, flanking dots (echoes the EXPERT
   treatment in the LeanIX Expert wordmark) */
.overline {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.overline::before, .overline::after {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.overline--plain::before, .overline--plain::after { display: none; }

/* The 2px rule — from the wordmark, flush with its heading */
.rule {
  width: 64px; height: 2px;
  background: var(--gold);
  border: 0; margin: 22px 0 26px;
}
.rule--center { margin-left: auto; margin-right: auto; }
.rule--navy { background: var(--navy); }

/* Corner registration marks — from the profile-icon design */
.reg {
  position: relative;
}
.reg::before, .reg::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  opacity: 0.22;
  pointer-events: none;
}
.reg::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.reg::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* Section heading group */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .rule { margin-left: auto; margin-right: auto; }
.section-head .lede { font-size: 1.12rem; color: var(--muted); }
.section--navy .section-head .lede,
.section--deep .section-head .lede { color: var(--text-dark-2); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover { background: var(--gold-bright); color: var(--navy-deep); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-bright); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 34, 82, 0.35);
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--line-dark);
}
.btn--ghost-light:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

/* Wordmark: cropped runner mark + ENDURAMAN (Instrument Sans) / CORPORATION (Jura) */
.brand { display: inline-flex; flex-direction: row; align-items: center; gap: 12px; line-height: 1; }
.brand__logo { height: 42px; width: auto; display: block; flex: none; }
.brand__lockup { display: inline-flex; flex-direction: column; gap: 4px; }
.brand__name {
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand__name .lx { opacity: 0.55; }
.brand__tag {
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 12px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 6. Hero (home) ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(20, 58, 126, 0.55), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(20, 58, 126, 0.35), transparent 60%),
    var(--navy-deep);
  color: var(--text-dark-1);
  padding: clamp(72px, 10vw, 132px) 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .lede {
  font-size: 1.16rem;
  color: var(--text-dark-2);
  max-width: 56ch;
}
.hero .btn-row { margin-top: 34px; }
.hero__note {
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--text-dark-3);
}
.hero__note a { color: var(--text-dark-2); text-decoration: underline; }

/* Launch badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(227, 184, 74, 0.4);
  border-radius: 100px;
  padding: 9px 18px;
  margin-bottom: 26px;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
}

/* ---------- 7. Book cover (CSS-rendered placeholder)
     Swap for the production cover: replace .book-cover markup with
     <img src="assets/cover.jpg" alt="..."> when the file is available.
   ---------- */
.book-cover-wrap {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
/* Real cover image — inherits the tilt + shelf shadow of the CSS placeholder */
.book-cover-img {
  width: min(340px, 80vw);
  height: auto;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    inset 14px 0 22px -16px rgba(0, 0, 0, 0.65),
    var(--shadow-lift);
  transform: rotateY(-9deg) rotateX(1.5deg);
}

.book-cover {
  width: min(330px, 78vw);
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, #10306e 0%, var(--navy) 46%, #071a3e 100%);
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    inset 14px 0 22px -16px rgba(0, 0, 0, 0.65),  /* spine shading */
    var(--shadow-lift);
  transform: rotateY(-9deg) rotateX(1.5deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 30px 30px;
  position: relative;
}
.book-cover::before { /* spine highlight */
  content: "";
  position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.book-cover__author {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
}
.book-cover__title {
  text-align: center;
  color: var(--white);
}
.book-cover__title .t1 {
  display: block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.book-cover__title .t2 {
  display: block;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.book-cover__title .t2 em {
  font-style: normal;
  color: var(--gold-bright);
}
.book-cover__rule {
  width: 56px; height: 2px;
  background: var(--gold-bright);
  margin: 18px auto;
}
.book-cover__sub {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  max-width: 30ch;
  margin: 0 auto;
}
.book-cover__foot {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.book-cover__foot::before, .book-cover__foot::after {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* ---------- 8. Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--navy);
  padding: 34px 28px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 10px;
}
.stat__label {
  font-size: 0.92rem;
  color: var(--text-dark-2);
  line-height: 1.45;
}
.stats-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dark-3);
}
.stats-note a { color: var(--text-dark-2); text-decoration: underline; }

/* ---------- 9. Cards & grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; }
.card .card__kicker {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }
.card--navy {
  background: var(--navy);
  border-color: transparent;
  color: var(--text-dark-2);
}
.card--navy h3 { color: var(--white); }

/* Numbered pattern cards (the book's diagnostic patterns) */
.pattern-card .num {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0; padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.section--navy .checklist li::before,
.section--deep .checklist li::before { border-color: var(--gold-bright); }

/* Definition rows (instruments, capabilities) */
.def-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px 34px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.def-row:last-child { border-bottom: 1px solid var(--line); }
.def-row dt {
  font-weight: 600;
  color: var(--navy);
}
.def-row dd { margin: 0; color: var(--muted); }

/* Quote block */
.quote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 500;
  max-width: 38em;
}
.quote footer {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 14px;
}
.section--navy .quote, .section--deep .quote { color: var(--white); }
.section--navy .quote footer, .section--deep .quote footer { color: var(--text-dark-2); }

/* ---------- 10. Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0;
}
.page-hero h1 { max-width: 18em; }
.page-hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 11. FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 14px;
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 20px 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-label);
  font-size: 1.2rem;
  color: var(--gold);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- 12. CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(20, 58, 126, 0.6), transparent 60%),
    var(--navy-deep);
  color: var(--text-dark-1);
  text-align: center;
  padding: var(--section-pad) 0;
}
.cta-band h2 { color: var(--white); max-width: 22em; margin: 0 auto 0.4em; }
.cta-band p { color: var(--text-dark-2); max-width: 52ch; margin: 0 auto 1.4em; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-dark-2);
  padding: 64px 0 36px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-dark-2); }
.site-footer a:hover { color: var(--white); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__tag { color: var(--text-dark-3); }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--text-dark-3); }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  font-size: 0.78rem;
  color: var(--text-dark-3);
  line-height: 1.7;
}
.footer-legal p { margin-bottom: 6px; }

/* ---------- 14. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.calendly-frame {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

/* ---------- 15. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .book-cover { transform: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .def-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Mobile navigation */
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1.05rem; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
}
