:root {
  --color-primary: #8B5CF6;
  --color-secondary: #C4B5FD;
  --color-accent: #10B981;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Lora', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 12px;
  --shadow-sm: 0 4px 12px -6px rgba(76, 29, 149, 0.15);
  --shadow-md: 0 20px 40px -20px rgba(76, 29, 149, 0.25);
}

/* === Reset & base === */
*, *::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; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.site-nav { display: none; gap: 1.75rem; align-items: center; }
.site-nav a { color: var(--color-neutral-dark); font-weight: 500; font-size: 0.98rem; }
.site-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: none; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.site-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(76, 29, 149, 0.08); gap: 1rem; }

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

/* === Hero (split) === */
.hero { padding-block: 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  font-weight: 600; color: var(--color-primary); margin: 0 0 1rem;
}
.hero-copy .lede { font-size: 1.15rem; color: rgba(76, 29, 149, 0.8); max-width: 52ch; margin-bottom: 1.75rem; }
.hero-image img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-lede { text-align: center; max-width: 60ch; margin: 0 auto 2rem; color: rgba(76, 29, 149, 0.75); }
.section-intro { text-align: left; }
.section-intro .narrow { text-align: left; }
.section-intro.alt { background: rgba(196, 181, 253, 0.15); }

/* === Grid & cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card {
  background: #fff; padding: 1.75rem; border-radius: var(--radius);
  border: 1px solid rgba(76, 29, 149, 0.08); box-shadow: var(--shadow-sm);
  display: block; color: inherit;
}
.card .icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.card-link { transition: transform .18s ease, box-shadow .18s ease; text-decoration: none; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.card-link .read-more { display: inline-block; margin-top: 0.75rem; font-weight: 600; color: var(--color-primary); }

/* === Testimonial === */
.section-testimonial { padding-block: 4rem; }
.section-testimonial blockquote {
  margin: 0; text-align: center; padding: 2rem 1rem;
  border-top: 1px solid rgba(76, 29, 149, 0.15);
  border-bottom: 1px solid rgba(76, 29, 149, 0.15);
}
.section-testimonial blockquote p {
  font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic; line-height: 1.5; margin-bottom: 1rem;
}
.section-testimonial cite { font-style: normal; font-weight: 600; color: var(--color-primary); }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding-block: 3.5rem; margin-block: 2rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.article-head { margin-bottom: 1.5rem; }
.article-head .eyebrow { margin-bottom: 0.5rem; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-sub { font-size: 1.2rem; color: rgba(76, 29, 149, 0.75); }
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-block: 2rem; border-radius: 8px; }
.article-detail p { font-size: 1.1rem; line-height: 1.75; margin-block: 1.25rem; }
.article-detail h2 { margin-top: 2rem; }
.article-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(76, 29, 149, 0.12); }
.back-link { font-weight: 600; }

/* === Form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.95rem; }
.form-row input, .form-row textarea {
  padding: 0.75rem 0.9rem; border: 1px solid rgba(76, 29, 149, 0.2);
  border-radius: 8px; background: #fff; font-family: inherit; font-size: 1rem;
  color: var(--color-neutral-dark);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; line-height: 1.5; }
.form-consent input { margin-top: 0.25rem; }
.contact-form .btn { align-self: flex-start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(255,255,255,0.85);
  padding-block: 3rem 1.5rem; margin-top: 3rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-grid address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.logo-footer img { height: 60px; width: auto; filter: brightness(0) invert(1); }
.tagline { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* === 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 60px -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: 0.95rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--color-neutral-light); cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 500;
}
.cookie-banner [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; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: 0.5rem; background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* === Responsive === */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo-footer img { height: 72px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
  .hero { padding-block: 5rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section { padding-block: 5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 1.75rem; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
