/* ============================================================
   PsyntaxLabs Academy — shared styles
   Palette: ink base, amber-gold accent, cream paper, warm neutrals
   ============================================================ */

:root {
  --ink:        #14110d;   /* near-black warm charcoal */
  --ink-2:      #211c16;   /* raised surface */
  --ink-3:      #2e2820;   /* borders on dark */
  --paper:      #f6f1e7;   /* warm cream */
  --paper-2:    #efe7d7;   /* slightly deeper cream */
  --amber:      #e8a020;   /* signature gold */
  --amber-deep: #c9821a;   /* pressed / hover */
  --ember:      #d4642a;   /* secondary warm accent */
  --sage:       #7d8a6a;   /* muted supportive green */
  --text:       #2a241d;   /* body on light */
  --text-soft:  #6b6255;   /* muted body on light */
  --text-inv:   #f3ede1;   /* body on dark */
  --text-inv-soft: #b3a893;
  --line:       #ded3bf;   /* hairline on light */
  --ok:         #4f7a4a;

  --maxw: 1200px;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 18px 50px -22px rgba(20,17,13,.35);
  --shadow-sm: 0 6px 20px -12px rgba(20,17,13,.4);

  --ff-display: "Fraunces", Georgia, serif;
  --ff-hero: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--ff-hero); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { color: var(--text-soft); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.on-dark .eyebrow { color: var(--amber); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--text-inv); }
.on-dark p { color: var(--text-inv-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 600; font-size: .98rem;
  padding: 15px 26px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #241a06; box-shadow: 0 10px 26px -12px rgba(232,160,32,.9); }
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(232,160,32,.9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.on-dark .btn-ghost { color: var(--text-inv); border-color: var(--ink-3); }
.on-dark .btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-arrow svg { transition: transform .18s ease; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,241,231,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(20,17,13,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--ink); position: relative; display: grid; place-items: center;
}
.brand-mark::before { content: ">_"; font-family: var(--ff-mono); font-size: .82rem; color: var(--amber); font-weight: 700; }

/* Footer logo badge: white background to match the white wordmark on the dark footer */
.site-footer .brand-mark { background: #fff; }
.site-footer .brand-mark::before { color: var(--amber-deep); }
.brand .brand-name { display: inline; }
.brand .brand-name span { color: var(--amber-deep); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--amber); transition: width .2s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; border-radius: 2px; }

.nav-book-mobile { display: none; }

@media (max-width: 900px) {
  .nav-book-mobile { display: block; width: 100%; max-width: var(--maxw); margin: 8px auto 0; padding: 15px 24px; color: var(--amber-deep); font-weight: 700; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 0 18px; transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 15px 24px; max-width: var(--maxw); margin: 0 auto; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; }

.bg-ink { background: var(--ink); }
.bg-paper2 { background: var(--paper-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv); padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ink-3); }
.footer-brand .brand { color: var(--text-inv); margin-bottom: 16px; }
.footer-brand p { color: var(--text-inv-soft); font-size: .95rem; max-width: 280px; }
.footer-col h4 { font-family: var(--ff-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--amber); margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--text-inv-soft); font-size: .95rem; margin-bottom: 11px; transition: color .18s; }
.footer-col a:hover { color: var(--amber); }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid var(--ink-3); border-radius: 9px; display: grid; place-items: center; color: var(--text-inv-soft); transition: .18s; }
.footer-socials a:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; }
.footer-bottom p { color: var(--text-inv-soft); font-size: .86rem; }
.footer-bottom .reg { font-family: var(--ff-mono); font-size: .78rem; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col { grid-column: auto; }
}
.footer-grid > * { min-width: 0; }
.footer-grid a, .footer-grid p { overflow-wrap: anywhere; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line); color: var(--text-soft); background: rgba(255,255,255,.4); }
.on-dark .pill { border-color: var(--ink-3); color: var(--text-inv-soft); background: rgba(255,255,255,.03); }
.pill.gold { border-color: var(--amber); color: var(--amber-deep); background: rgba(232,160,32,.1); }

/* Star rating */
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; }

/* Utility */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
