/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1E1B4B;
  --color-muted: #6B5DA1;
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 10px 30px -18px rgba(76, 29, 149, 0.35);
  --sidebar-width: 240px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* === Layout === */
.layout { display: flex; flex-direction: column; min-height: 100vh; }

/* === Sidebar === */
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar__head { display: flex; align-items: center; }
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; display: block; }
.sidebar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.sidebar__nav a { color: var(--color-neutral-light); font-weight: 500; padding: 0.35rem 0; display: inline-block; }
.sidebar__nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--color-accent); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-neutral-light);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.sidebar__foot { font-size: 0.8rem; color: var(--color-secondary); margin: 0; }

/* === Main === */
.main { flex: 1; display: flex; flex-direction: column; }
section { padding: 2.5rem 1.25rem; }

/* === Hero === */
.hero {
  padding: 3rem 1.25rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__sub { font-size: 1.15rem; color: var(--color-muted); max-width: 55ch; }
.hero__cta { margin: 1.75rem 0 2.25rem; }
.hero__figure { margin: 0; }
.hero__figure img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* === Sections === */
.section { max-width: 960px; margin: 0 auto; width: 100%; padding: 3rem 1.25rem; }
.section--muted { background: #fff; max-width: none; }
.section--muted > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.prose p { max-width: 65ch; font-size: 1.05rem; }
.intro { display: grid; gap: 2rem; }
.intro p { max-width: 65ch; font-size: 1.05rem; }
.intro figure { margin: 0; }
.intro figure img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-top: 0.5rem; }
.icon { color: var(--color-primary); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; }

/* === Testimonial === */
.testimonial { text-align: center; }
.testimonial blockquote { margin: 0 auto; max-width: 700px; }
.testimonial p { font-family: var(--font-heading); font-size: 1.35rem; font-style: italic; color: var(--color-neutral-dark); line-height: 1.5; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA Band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 55ch; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.9); }
.cta-band .btn--accent { background: var(--color-accent); }

/* === Contact Band === */
.contact-band {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  text-align: center;
  padding: 2.5rem 1.25rem;
}
.contact-band h2 { color: #fff; }
.contact-band p { max-width: 700px; margin: 0 auto; color: rgba(250, 245, 255, 0.9); }

/* === FAQ === */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid rgba(76, 29, 149, 0.15);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-neutral-dark);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-primary); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Form === */
.form { max-width: 620px; display: grid; gap: 1.25rem; }
.form__field { display: grid; gap: 0.35rem; }
.form__field label { font-weight: 600; font-size: 0.95rem; color: var(--color-neutral-dark); }
.form__field input, .form__field textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(76, 29, 149, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
}
.form__field input:focus, .form__field textarea:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: auto;
}
.site-footer__grid { display: grid; gap: 2rem; max-width: 960px; margin: 0 auto; grid-template-columns: 1fr; }
.site-footer a { color: var(--color-secondary); }
.site-footer a:hover { color: #fff; }
.site-footer__brand { font-family: var(--font-heading); font-size: 1.25rem; color: #fff; margin-bottom: 0.25rem; }
.site-footer nav ul, .site-footer .legal-links { list-style: none; margin: 0; padding: 0; }
.site-footer nav li, .site-footer .legal-links li { margin-bottom: 0.35rem; }
.legal-links { margin-top: 0.75rem; display: flex; gap: 1rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__copy { max-width: 960px; margin: 2rem auto 0; text-align: center; font-size: 0.85rem; color: var(--color-secondary); border-top: 1px solid rgba(167, 139, 250, 0.25); padding-top: 1rem; }

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -20px rgba(0,0,0,0.5);
  max-width: 520px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner button {
  font: inherit;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-secondary);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: 0.5rem; }

/* === Responsive: sidebar layout on desktop === */
@media (min-width: 900px) {
  .layout { flex-direction: row; }
  .sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .sidebar__nav ul { flex-direction: column; gap: 0.5rem; }
  .sidebar__nav a { display: block; padding: 0.4rem 0; }
  .sidebar__foot { margin-top: auto; }
  .main { min-width: 0; flex: 1; }
  .logo img { height: 96px; }
  .hero { padding: 5rem 2rem 3rem; }
  .section { padding: 4rem 2rem; }
  .cta-band, .contact-band { padding: 4rem 2rem; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .intro { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .site-footer { padding: 3.5rem 2rem 1.5rem; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-block; align-self: flex-start; }
  .sidebar__nav ul[hidden] { display: none; }
  .sidebar { padding: 1rem 1.25rem; }
  .sidebar__head { justify-content: space-between; }
}
