/* ==========================================================================
   Amber Desk — stylesheet
   Self-contained: no external fonts, no CDN, no remote requests.
   (Remote font/CSS loading is both a page-speed cost and, for EU traffic,
   a GDPR exposure. Everything here ships from your own origin.)
   ========================================================================== */

:root {
  --ink:            #1b1a17;
  --ink-soft:       #4a463f;
  --ink-faint:      #6d675d;
  --line:           #e3ded4;
  --line-soft:      #efebe3;
  --paper:          #ffffff;
  --paper-warm:     #faf8f4;
  --paper-warmer:   #f4f0e8;
  --accent:         #a8641b;
  --accent-dark:    #8a5115;
  --accent-wash:    #fdf4e8;
  --focus:          #1d63c4;

  --wrap:      1120px;
  --wrap-text: 720px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(27, 26, 23, .06), 0 1px 3px rgba(27, 26, 23, .04);
  --shadow-md: 0 2px 4px rgba(27, 26, 23, .05), 0 8px 24px rgba(27, 26, 23, .07);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Times New Roman", serif;
}

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

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

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

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.16rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
h4 { font-size: 1rem;    font-family: var(--sans); font-weight: 650; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

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

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

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--text { max-width: var(--wrap-text); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem;
  padding: .5rem .68rem; border-radius: 7px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--paper-warmer); }

/* `.nav a` (0,1,1) outranks `.btn--primary` (0,1,0), so without these rules the
   nav CTA inherits --ink-soft on the accent fill — about 2:1 contrast. Keep
   them whenever a button lives inside .nav. */
.nav .btn--primary { color: #fff; background: var(--accent); }
.nav .btn--primary:hover { color: #fff; background: var(--accent-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: .5rem .6rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem .5rem; border-radius: 0; }
  .nav .btn { margin-top: .5rem; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .96rem; font-weight: 600;
  padding: .72rem 1.35rem; border-radius: 8px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-warm); color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { font-size: 1.02rem; padding: .85rem 1.7rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 2rem + 4vw, 5.25rem) 0; }
.section--warm { background: var(--paper-warm); border-block: 1px solid var(--line-soft); }
.section--tint { background: var(--accent-wash); border-block: 1px solid #f2e3cd; }

.section__head { max-width: 660px; margin-bottom: 2.5rem; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .7rem;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2.75rem, 2rem + 4vw, 5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.hero__lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero__note { margin-top: 1.15rem; font-size: .87rem; color: var(--ink-faint); max-width: 46ch; }

.hero__panel {
  background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.hero__panel h2 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin-bottom: 1rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: .96rem; color: var(--ink-soft); }
.checklist svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card__icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: .9rem; }

.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 700; margin-bottom: .9rem;
}

/* ---------- Curriculum ---------- */

.module {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.module:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .module { grid-template-columns: 1fr; gap: .5rem; } }

.module__tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); padding-top: .2rem;
}
.module p { color: var(--ink-soft); font-size: .96rem; }
.module ul { margin: .6rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); font-size: .93rem; }
.module li { margin-bottom: .3rem; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.15rem 2.25rem 1.15rem 0; position: relative;
  font-weight: 600; font-size: 1.01rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.5rem;
  width: 9px; height: 9px; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 2.25rem 1.3rem 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Disclaimer callout ---------- */

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--paper-warm); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem; font-size: .93rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }
.callout--plain { border-left-color: var(--line); }

/* ---------- Form ---------- */

.form-shell {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .38rem; }
.field .hint { font-size: .82rem; color: var(--ink-faint); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  padding: .68rem .8rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: 2px solid rgba(168, 100, 27, .18); outline-offset: 0;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #b4342a;
}

.consent { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; }
.consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); }
.consent label { font-size: .87rem; font-weight: 400; color: var(--ink-soft); line-height: 1.5; margin: 0; }

.error-msg { display: none; color: #a62c22; font-size: .84rem; margin-top: .3rem; }
.error-msg.is-shown { display: block; }

/* Honeypot — hidden from humans, catches naive bots. Not a CAPTCHA. */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: .93rem; padding: .85rem 1rem; border-radius: 8px; display: none; }
.form-status.is-shown { display: block; }
.form-status--ok  { background: #eef6ed; border: 1px solid #cfe4cc; color: #2c5828; }
.form-status--err { background: #fdf0ef; border: 1px solid #f0d2cf; color: #93261d; }

/* ---------- Confirmation modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem; background: rgba(27, 26, 23, .58);
}
.modal.is-open { display: flex; }

.modal__box {
  background: var(--paper); border-radius: var(--radius-lg);
  max-width: 510px; width: 100%; padding: 2.1rem;
  box-shadow: 0 14px 50px rgba(27, 26, 23, .3);
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal__check {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem;
}
.modal__check svg { width: 24px; height: 24px; }
.modal__box h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.modal__box p { font-size: .96rem; color: var(--ink-soft); }
.modal__list { margin: 1.15rem 0 0; padding-left: 1.15rem; font-size: .91rem; color: var(--ink-soft); }
.modal__list li { margin-bottom: .4rem; }
.modal__actions { margin-top: 1.6rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Legal / prose pages ---------- */

.prose { font-size: 1rem; }
.prose h2 { font-size: 1.32rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.02rem; margin-top: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: .45rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.2rem 0; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-warm); font-weight: 650; }
.table-scroll { overflow-x: auto; }

.page-head { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.page-head p { color: var(--ink-faint); font-size: .92rem; margin: .4rem 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-warm); border-top: 1px solid var(--line);
  padding: 3rem 0 2rem; font-size: .91rem; margin-top: 0;
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); text-decoration: underline; }
.site-footer__brand p { color: var(--ink-faint); max-width: 34ch; font-size: .89rem; }

.site-footer__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: .84rem;
}
.site-footer__legal p { margin-bottom: .6rem; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(27, 26, 23, .1);
  padding: 1.15rem 0; display: none;
}
.cookie-banner.is-shown { display: block; }
.cookie-banner__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-banner p { font-size: .89rem; color: var(--ink-soft); margin: 0; flex: 1 1 380px; min-width: 260px; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn { font-size: .89rem; padding: .58rem 1.1rem; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--ink-faint); }
.small { font-size: .87rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
