:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1F1147;
  --color-muted: #6B5B95;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 10px 30px -18px rgba(76, 29, 149, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 600; line-height: 1.2; }

/* === Layout helpers === */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 720px; }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(76, 29, 149, 0.12);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.nav-toggle {
  background: none; border: 0; padding: .5rem; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 5px;
}
.nav-toggle span { display:block; width: 26px; height: 2px; background: var(--color-neutral-dark); }
.primary-nav { display: none; width: 100%; }
.primary-nav.is-open { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-direction: column; gap: .75rem; }
.primary-nav a {
  font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-neutral-dark);
  text-decoration: none; padding: .25rem 0;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; width: auto; }
  .primary-nav ul { flex-direction: row; gap: 2rem; padding: 0; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 0; cursor: pointer;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--color-neutral-dark); color: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: #08351A; }
.btn--accent:hover { background: #16a34a; color: #fff; transform: translateY(-1px); }

/* === Hero (centered) === */
.hero { padding-block: 3.5rem; text-align: center; background: linear-gradient(180deg, #F3EBFF 0%, var(--color-neutral-light) 100%); }
.hero h1 {
  max-width: 22ch; margin: 0 auto 1rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.01em;
}
.hero__sub {
  max-width: 52ch; margin: 0 auto 2rem;
  color: var(--color-muted); font-size: 1.15rem;
}
.hero__cta { margin-bottom: 2.5rem; }
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%; max-width: 1140px; margin-inline: auto;
  aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .hero { padding-block: 6rem; } }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section--intro { text-align: center; }
.section--intro h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }
.section--intro p { max-width: 62ch; margin-inline: auto; font-size: 1.075rem; }
.section--alt { background: #F5EEFF; }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.section__sub { color: var(--color-muted); max-width: 60ch; margin-inline: auto; }

/* === Highlights grid / cards === */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid--two { grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid--two { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff; border: 1px solid rgba(76, 29, 149, 0.10);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card h3 { margin: .5rem 0 .5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--color-ink); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(124, 58, 237, 0.10); color: var(--color-primary);
}
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-link:hover ~ *, .card:has(.card-link:hover) { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.card:has(.card-link:hover) h3 { color: var(--color-primary); }

/* === Testimonial === */
.section--testimonial { background: #F5EEFF; text-align: center; }
.section--testimonial h2 { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.testimonial { margin: 0; }
.testimonial p {
  font-family: var(--font-heading); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--color-neutral-dark); max-width: 60ch; margin: 0 auto 1rem;
  line-height: 1.5;
}
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 60ch; margin: 0 auto 1.5rem; }

/* === Contact band === */
.section--contact-band { text-align: center; background: #F5EEFF; }
.contact-line { color: var(--color-muted); margin-block: 1rem 1.5rem; }

/* === Contact form === */
.section--form { }
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-family: var(--font-heading); font-size: .95rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid rgba(76, 29, 149, 0.25); border-radius: 8px;
  background: #fff; color: var(--color-ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; }
.form-consent a { color: var(--color-primary); }

/* === Article detail === */
.article {
  max-width: 65ch; margin-inline: auto;
  padding: 2.5rem 1rem 3.5rem;
}
.article__header { margin-bottom: 1.5rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; color: var(--color-primary); font-weight: 600;
  margin: 0 0 .75rem;
}
.article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; margin: 0 0 1rem;
}
.article__lede { font-size: 1.2rem; color: var(--color-muted); margin: 0 0 1.5rem; }
.article__figure { margin: 0 0 2rem; }
.article__figure img { aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.article p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(76, 29, 149, 0.15); }
.back-link { font-family: var(--font-heading); font-weight: 600; text-decoration: none; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: #EDE4FF;
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.site-footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__col a { color: #EDE4FF; text-decoration: none; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__heading { color: #fff; font-size: 1.05rem; margin: 0 0 .75rem; }
.site-footer__tagline { color: #D8C7FF; margin: .75rem 0 0; font-size: .95rem; }
.logo--footer img { height: 60px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__legal { margin-top: 1rem !important; padding-top: 1rem !important; border-top: 1px solid rgba(255,255,255,0.15); font-size: .9rem; }
.site-footer__copy {
  text-align: center; margin: 2rem 0 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: .9rem; color: #C6B5F0;
}

/* === 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 50px -20px rgba(0,0,0,0.5);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  font: inherit; padding: .6rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.10); color: var(--color-neutral-light);
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: #08351A; font-weight: 600; }
.cookie-banner__actions button:hover { filter: brightness(1.1); }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button {
  justify-self: start; margin-top: .5rem;
  padding: .5rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-primary); color: #fff; font: inherit;
}
