/* =========================================================================
   Globic Press — site stylesheet
   Single source of truth for design tokens + components.
   Sections: 1 Tokens  2 Reset/base  3 Layout  4 Header/nav  5 Buttons
             6 Hero  7 Sections & cards  8 Books  9 Forms  10 Footer
             11 Utilities  12 Responsive  13 Motion
   ========================================================================= */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Brand colors (from Brand Guidelines.pdf) */
  --color-violet:   #7543FF;
  --color-blue:     #4359FF;
  --color-ink:      #231F20;
  --color-lavender: #DBDDFF;
  --color-mist:     #F7F7F7;
  --color-white:    #FFFFFF;

  /* Derived */
  --ink-soft:   #4a4548;
  --ink-mute:   #6b656a;
  --line:       #e7e7ef;
  --gradient:   linear-gradient(120deg, var(--color-violet) 0%, var(--color-blue) 100%);
  --gradient-soft: linear-gradient(160deg, #f3f1ff 0%, #eef0ff 100%);

  /* Type */
  --font-head: "Sora", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing / shape */
  --container: 1180px;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px -12px rgba(35,31,32,.18);
  --shadow-lg: 0 24px 60px -20px rgba(67,89,255,.30);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* 2. RESET / BASE ------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-violet); }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--color-ink); overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--color-violet); outline-offset: 3px; border-radius: 4px; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--mist { background: var(--color-mist); }
.section--tint { background: var(--gradient-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--color-violet);
  display: inline-block; margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* 4. HEADER / NAV ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }  /* secondary horizontal lockup (logo-header.png) */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  color: var(--color-ink); padding: 10px 14px; border-radius: 8px;
}
.nav-links a:hover { background: var(--color-lavender); color: var(--color-ink); }
.nav-links a[aria-current="page"] { color: var(--color-violet); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links .btn--primary { display: none; }  /* shown only inside mobile menu (see 760px query) */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-ink); margin: 5px auto; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* 5. BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-lg); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--color-violet); color: var(--color-violet); }
.btn--light { background: #fff; color: var(--color-violet); }
.btn--light:hover { color: var(--color-violet); transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* 6. HERO --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--color-ink); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 78% -10%, rgba(117,67,255,.55), transparent 60%),
              radial-gradient(800px 600px at 8% 110%, rgba(67,89,255,.45), transparent 55%),
              var(--color-ink);
}
.hero > .container { position: relative; padding-block: clamp(70px, 12vw, 130px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .hero-sub { color: #d8d6e8; font-size: 1.22rem; max-width: 54ch; margin-top: 22px; }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .hero-eyebrow { color: #c9bfff; }

/* 7. SECTIONS & CARDS --------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--color-lavender); color: var(--color-violet); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }

/* subject mini-cards */
.subject { text-align: left; }
.subject .num { font-family: var(--font-head); font-weight: 700; color: var(--color-violet); font-size: .85rem; letter-spacing: .1em; }

/* value props with left rule */
.value { padding-left: 20px; border-left: 3px solid var(--color-lavender); }
.value h3 { font-size: 1.15rem; }
.value p { font-size: .98rem; margin-top: 6px; }

/* 8. BOOKS -------------------------------------------------------------- */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 28px; }
.book { display: flex; flex-direction: column; }
.book .cover {
  border-radius: var(--radius-sm); overflow: hidden; background: var(--gradient-soft);
  box-shadow: var(--shadow); aspect-ratio: 2/3; display: grid; place-items: center; margin-bottom: 16px;
}
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .tag {
  display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--color-violet);
  background: var(--color-lavender); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start;
}
.book h3 { font-size: 1.08rem; }
.book .author { color: var(--ink-mute); font-size: .92rem; margin-top: 2px; }
.book p { font-size: .92rem; margin-top: 10px; }

.placeholder-note {
  border: 1.5px dashed var(--color-lavender); border-radius: var(--radius);
  background: var(--gradient-soft); padding: 40px; text-align: center;
}

/* 9. FORMS / CONTACT ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--color-ink); background: #fff; transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-violet); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card .row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .k { font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.contact-card .v { font-size: 1.05rem; margin-top: 2px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .96rem; margin-top: 2px; }

/* checklist */
.check { list-style: none; padding: 0; display: grid; gap: 12px; }
.check li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.check li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--color-lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237543FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* 10. CTA BAND + FOOTER ------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--gradient); color: #fff; border-radius: 24px; padding: clamp(40px,6vw,72px); text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 14px auto 28px; }

.site-footer { background: var(--color-ink); color: #cfccd6; padding: 64px 0 32px; }
.site-footer a { color: #cfccd6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: #9a96a4; font-size: .95rem; max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #8c889a; font-size: .88rem; }

/* 11. UTILITIES --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--color-ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 12. RESPONSIVE -------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--3, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-actions .btn { display: none; }     /* CTA lives inside mobile menu */
  .nav-links .btn--primary { display: inline-flex; justify-content: center; margin-top: 8px; }
}
@media (max-width: 560px) {
  .grid--3, .grid--5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero .hero-cta .btn { width: 100%; justify-content: center; }
}

/* 13. MOTION ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cookie-banner { transition: none; }
}

/* 14. COOKIE CONSENT ---------------------------------------------------- */
/* Bottom floating bar. Injected by main.js; GA4 loads only after Accept. */
.cookie-banner {
  position: fixed; z-index: 200;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  background: var(--color-white); color: var(--color-ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-banner.in { opacity: 1; transform: none; }
.cookie-banner__text { flex: 1 1 320px; font-size: .8rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.cookie-banner__text a { font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner .btn { padding: 10px 22px; font-size: .95rem; box-shadow: none; }
.cookie-banner .btn--primary:hover { transform: translateY(-1px); }

/* footer legal links */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

/* 15. LEGAL / POLICY PAGES ---------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 40px; margin-bottom: 10px; font-size: 1.4rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 22px; margin-bottom: 6px; font-size: 1.08rem; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; padding: 0; }
.legal li { margin-bottom: 8px; color: var(--ink-soft); }
.legal .updated { color: var(--ink-mute); font-size: .92rem; margin-bottom: 8px; }

/* 16. FORMS — status message, honeypot, consent note -------------------- */
/* Honeypot: kept off-screen so people don't see it but bots still fill it. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .95rem; }
.form-status[hidden] { display: none; }
.form-status.error { background: #fdecec; border: 1px solid #f3c2c2; color: #8a1f1f; }
.form-consent { font-size: .82rem; color: var(--ink-mute); margin-top: 14px; }
.form-consent a { color: var(--color-blue); }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  /* In the stacked layout, drop the 320px flex-basis so the text box is only
     as tall as its content (otherwise it becomes a ~320px-tall empty block). */
  .cookie-banner__text { flex: 0 0 auto; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
