/* =====================================================
   Lateral Minds — main stylesheet
   Palette:
     --ink        #312B56  deep violet (text / dark bands)
     --paper      #F7F6FB  cool lavender-white background
     --violet     #5A54A4  mid violet (links, accents)
     --edge       #FFB238  amber "edge" (signature motif)
     --leaf       #3E8E6E  success / eligibility green
     --line       #DDD9EC  hairline borders
   Type:
     Display: Bricolage Grotesque
     Body:    Atkinson Hyperlegible (Braille Institute)
   Signature: the 4° "edge" — angled amber underline & cuts
   ===================================================== */

:root {
  --ink: #312B56;
  --ink-soft: #4A4470;
  --paper: #F7F6FB;
  --card: #FFFFFF;
  --violet: #5A54A4;
  --violet-dark: #453F85;
  --edge: #FFB238;
  --leaf: #3E8E6E;
  --line: #DDD9EC;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(49, 43, 86, 0.07), 0 12px 32px rgba(49, 43, 86, 0.08);
  --wrap: 1120px;
  --edge-angle: -4deg;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--violet-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--edge);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: #fff;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--violet-dark);
  margin-bottom: 0.9rem;
}

/* Signature: angled amber "edge" under a highlighted word */
.edge-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.edge-mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.04em;
  height: 0.32em;
  background: var(--edge);
  transform: rotate(var(--edge-angle));
  z-index: -1;
  border-radius: 2px;
}

/* Angled section cut — used once, on the DSA2 band */
.cut-top { clip-path: polygon(0 2.2rem, 100% 0, 100% 100%, 0 100%); padding-top: 4.5rem !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff !important; }
.btn-primary:hover { background: var(--violet-dark); }
.btn-edge { background: var(--edge); color: var(--ink) !important; }
.btn-edge:hover { background: #ffc35c; }
.btn-outline { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 251, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 10px;
  height: 6px;
  background: var(--edge);
  transform: rotate(var(--edge-angle));
  border-radius: 2px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.05;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}
.main-nav a:hover { color: var(--violet-dark); }
.nav-cta { background: var(--edge); padding: 0.55rem 1.15rem; border-radius: 999px; }
.nav-cta:hover { background: #ffc35c; color: var(--ink) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 840px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.4rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--edge); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 4rem; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.2rem; max-width: 56ch; color: var(--ink-soft); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.hero-badges li::before { content: "✓ "; color: var(--leaf); }

/* ---------- DSA2 band ---------- */
.dsa2-band { background: var(--ink); color: #fff; }
.dsa2-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.dsa2-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 0.3rem; color: #fff; }
.dsa2-band p { margin: 0; color: #D8D4F0; max-width: 58ch; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.4rem; }
.card p { font-size: 1rem; color: var(--ink-soft); }
.card .card-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-dark);
}
.card ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.card ul li { margin-bottom: 0.45rem; font-size: 1rem; }
.card ul li::marker { color: var(--leaf); }

.route-card { display: flex; flex-direction: column; }
.route-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Steps (real sequence) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.2rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--edge);
  border-radius: 12px;
  transform: rotate(var(--edge-angle));
}
.step h3 { margin-bottom: 0.3em; }
.step p { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Standards ---------- */
.standard { border-left: 4px solid var(--edge); padding-left: 1.2rem; }
.standard h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.standard p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
@media (max-width: 900px) { .standards-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.quote-card blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--violet-dark); }
.quote-card cite span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Vacancies ---------- */
.vacancy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  margin-bottom: 1rem;
}
.vacancy h3 { margin: 0; font-size: 1.15rem; }
.vacancy .vacancy-meta { font-size: 0.92rem; color: var(--ink-soft); }
.vacancy .vacancy-meta strong { color: var(--ink); }

/* ---------- Compliance strip ---------- */
.compliance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #EFEDF8; }
.compliance ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
}
.compliance a { font-weight: 700; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 840px) { .contact-panel { grid-template-columns: 1fr; } }
.contact-detail { font-size: 1.05rem; }
.contact-detail dt { font-weight: 700; margin-top: 1.1rem; }
.contact-detail dd { margin: 0.15rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C4E6; padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; margin-bottom: 2rem; }
.site-footer .footer-brand { max-width: 34ch; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin-bottom: 0.5rem; }
.site-footer .footer-legal { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.4rem; font-size: 0.85rem; }

/* ---------- Inner pages / blog ---------- */
.page-hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.entry-content { max-width: 72ch; padding: 2.5rem 0 4rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content img { border-radius: var(--radius); }
.post-list article {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.post-list .post-meta { font-size: 0.88rem; color: var(--ink-soft); }
.pagination { padding: 2rem 0; display: flex; gap: 0.6rem; }
.pagination .page-numbers {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--card);
}
.pagination .current { background: var(--ink); color: #fff; }

/* ---------- Reveal animation (respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
