/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --sidebar-w: 240px;
  --radius: 12px;
  --shadow: 0 20px 40px -20px rgba(76, 29, 149, 0.25);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--color-neutral-dark); background: var(--color-neutral-light); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 600; max-width: 22ch; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 0.75rem; }

/* === Layout === */
.layout { min-height: 100vh; }
.main { padding: 2rem 1.25rem 0; max-width: 100%; }

/* === Sidebar (mobile: top bar) === */
.sidebar { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 1rem 1.25rem; }
.sidebar__header { display: flex; align-items: center; justify-content: space-between; }
.sidebar__nav { display: none; flex-direction: column; gap: 0.25rem; margin-top: 1rem; }
.sidebar__nav.is-open { display: flex; }
.sidebar__nav a { color: var(--color-neutral-light); padding: 0.75rem 0.5rem; border-radius: 8px; font-weight: 500; }
.sidebar__nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.sidebar__nav a.is-active { background: var(--color-primary); }
.sidebar__foot { display: none; margin-top: auto; font-size: 0.8rem; opacity: 0.7; }

.logo img { height: 72px; width: auto; display: block; filter: brightness(0) invert(1); }

.nav-toggle { background: transparent; border: 0; width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-neutral-light); }

/* === Hero === */
.hero { padding: 3rem 0 2rem; }
.hero h1 { margin-bottom: 1rem; }
.hero__sub { font-size: 1.15rem; color: var(--color-neutral-dark); opacity: 0.85; max-width: 52ch; margin-bottom: 1.75rem; }
.hero__image { margin: 2.5rem 0 0; padding: 0; }
.hero__image img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }

/* === Buttons === */
.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(124, 58, 237, 0.5); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(34, 197, 94, 0.5); }

/* === Sections === */
.section { padding: 3rem 0; }
.section--narrow { max-width: 62ch; }
.section__header { margin-bottom: 2rem; }
.section__header h2 { margin-bottom: 0.5rem; }
.section__sub { color: var(--color-neutral-dark); opacity: 0.75; max-width: 60ch; margin: 0; }

/* === Grid & cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card { background: #fff; border: 1px solid rgba(76, 29, 149, 0.1); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 1px 2px rgba(76, 29, 149, 0.04); }
.card h3 { margin-top: 0.75rem; }
.card p { margin-bottom: 0; color: var(--color-neutral-dark); opacity: 0.85; font-size: 0.98rem; }
.icon { color: var(--color-primary); }

/* === Quote === */
.quote { border-left: 3px solid var(--color-accent); padding: 0.5rem 0 0.5rem 1.5rem; margin: 0 auto; max-width: 60ch; }
.quote p { font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.95rem; color: var(--color-primary); font-weight: 600; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding: 3rem 1.5rem; border-radius: var(--radius); margin: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 55ch; margin: 0 auto 1.5rem; opacity: 0.92; }

/* === FAQ === */
.faq details { background: #fff; border: 1px solid rgba(76, 29, 149, 0.12); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--color-primary); font-size: 1.25rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 0.75rem; margin-bottom: 0; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.contact-card { background: #fff; padding: 1.5rem; border-radius: var(--radius); border: 1px solid rgba(76, 29, 149, 0.1); }
.contact-card h3 { color: var(--color-primary); margin-bottom: 0.5rem; }
.contact-card p { margin: 0; }

/* === Form === */
.contact-form { max-width: 640px; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field input, .field textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid rgba(76, 29, 149, 0.2); border-radius: 8px; font: inherit; background: #fff; color: var(--color-neutral-dark); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-consent { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }
.form-success { background: rgba(34, 197, 94, 0.12); color: var(--color-accent); padding: 1rem; border-radius: 8px; margin-top: 1rem; }

/* === Footer === */
.footer { margin-top: 4rem; padding: 3rem 0 2rem; border-top: 1px solid rgba(76, 29, 149, 0.12); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer__brand { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin: 0 0 0.25rem; }
.footer__tag { margin: 0; opacity: 0.75; font-size: 0.95rem; }
.footer__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__nav a { color: var(--color-neutral-dark); }
.footer__contact p { margin: 0 0 0.3rem; font-size: 0.95rem; }
.footer__legal { margin-top: 0.75rem; font-size: 0.85rem; opacity: 0.8; }
.footer__copy { margin-top: 2rem; font-size: 0.85rem; opacity: 0.7; }

/* === 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 1.5rem; border-radius: var(--radius); box-shadow: 0 25px 50px -15px rgba(0,0,0,0.4); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button { padding: 0.6rem 1rem; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: var(--color-neutral-light); border-radius: 6px; font-size: 0.9rem; }
.cookie-banner__actions [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 600; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; padding: 0.5rem 1rem; background: var(--color-primary); color: #fff; border: 0; border-radius: 6px; }

/* === Desktop (>= 900px): sidebar layout === */
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; align-items: stretch; }
  .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 2rem 1.5rem; }
  .sidebar__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-toggle { display: none; }
  .sidebar__nav { display: flex !important; margin-top: 2rem; }
  .sidebar__foot { display: block; margin-top: auto; padding-top: 2rem; }
  .logo img { height: 96px; }
  .main { padding: 3rem 3rem 0; max-width: 1000px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .hero { padding: 4rem 0 2rem; }
  .hero__image img { aspect-ratio: 21/9; }
  .cta-band { padding: 4rem 2rem; }
}

@media (min-width: 1200px) {
  :root { --sidebar-w: 260px; }
  .main { padding: 4rem 4rem 0; }
}
