:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --shadow-card: 0 30px 60px -30px rgba(30, 27, 75, 0.25);
  --shadow-soft: 0 10px 30px -12px rgba(30, 27, 75, 0.15);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 .75rem; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

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

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(30, 27, 75, 0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
.site-nav { display: none; gap: 1.75rem; }
.site-nav a { color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem; }
.site-nav a.is-active { color: var(--color-primary); }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  background: transparent; border: 0; padding: .5rem; cursor: pointer; width: 40px; height: 40px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-neutral-dark); display: block; }
.site-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(30,27,75,0.08); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .site-nav { display: flex !important; position: static; padding: 0; flex-direction: row; background: transparent; border: 0; }
  .nav-toggle { display: none; }
}

/* === Hero card === */
.hero.hero-card { padding-block: 3rem; }
.hero-card__card {
  max-width: 880px; margin-inline: auto;
  padding: 2.5rem 1.75rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.hero-card__card .eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
  color: var(--color-primary); font-weight: 600; margin-bottom: .75rem;
}
.hero-card__card h1 { margin-bottom: 1rem; }
.hero-card__card .lede { font-size: 1.125rem; color: rgba(30,27,75,0.75); max-width: 60ch; }
.hero-card__card .cta-row { margin-top: 1.5rem; }
.hero-card__figure { margin: 2rem 0 0; border-radius: 16px; overflow: hidden; }
.hero-card__figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

@media (min-width: 768px) {
  .hero.hero-card { padding-block: 5rem; }
  .hero-card__card { padding: 4rem; }
}

/* Subtle background for hero band */
.hero { background: linear-gradient(180deg, rgba(167,139,250,0.15), rgba(250,245,255,0) 70%); }

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .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; }
.cta-row { margin: 0; }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section.alt { background: rgba(167,139,250,0.08); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .sub, .section-intro .sub { color: rgba(30,27,75,0.65); font-size: 1.05rem; margin-top: -.25rem; }
.section-intro { text-align: left; }
.section-intro .container.narrow > h2 { margin-bottom: .5rem; }
.section-intro p { font-size: 1.05rem; line-height: 1.75; }

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* === Grid / cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30,27,75,0.06);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: .5rem; margin-bottom: .5rem; }
.card p { color: rgba(30,27,75,0.75); margin: 0; }
.card .icon { width: 32px; height: 32px; color: var(--color-primary); }

.card-link { color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(30,27,75,0.25); text-decoration: none; }

/* === Quote === */
.section-quote { text-align: center; }
.section-quote h2 { margin-bottom: 2rem; }
.quote {
  margin: 0 auto; max-width: 640px;
  font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.55; color: var(--color-neutral-dark);
  position: relative;
}
.quote p { font-style: italic; margin-bottom: 1rem; }
.quote cite { font-style: normal; font-family: var(--font-body); font-size: .9rem; color: rgba(30,27,75,0.6); }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding-block: 3.5rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 55ch; margin-inline: auto; }
.cta-band .btn-accent { margin-top: .75rem; }

/* === Article layout === */
.article { max-width: 65ch; margin-inline: auto; padding: 3rem 1.25rem 4rem; }
.article header { margin-bottom: 2rem; }
.article .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--color-primary); font-weight: 600; margin-bottom: .75rem; }
.article h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; }
.article .sub { font-size: 1.2rem; color: rgba(30,27,75,0.7); }
.article-hero { margin: 2rem 0; border-radius: 8px; overflow: hidden; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article > p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(30,27,75,0.1); }
.back-link { font-weight: 500; }

/* === Form === */
.section-form { padding-block: 3rem 5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 500; font-size: .9rem; }
.field input, .field textarea {
  font: inherit; padding: .8rem .9rem;
  border: 1px solid rgba(30,27,75,0.15); border-radius: 10px;
  background: var(--color-neutral-light); color: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: rgba(30,27,75,0.75); }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--color-neutral-light); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; padding-block: 1rem 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.site-footer .logo img { height: 60px; }
.site-footer .tagline { color: rgba(250,245,255,0.7); font-size: .95rem; margin-top: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.75; font-size: .95rem; color: rgba(250,245,255,0.85); margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; font-size: .85rem; }
.legal-links a { color: rgba(250,245,255,0.65); }
.copyright { border-top: 1px solid rgba(250,245,255,0.12); padding-top: 1.25rem; font-size: .85rem; color: rgba(250,245,255,0.6); text-align: center; }
.copyright p { margin: 0; }

/* === 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: 14px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.35);
  max-width: 640px; margin-inline: auto;
  font-size: .9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; color: rgba(250,245,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { font: inherit; cursor: pointer; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(250,245,255,0.3); background: transparent; color: var(--color-neutral-light); }
.cookie-banner__actions button[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: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; padding: .5rem 1rem; border-radius: 999px; border: 0; background: var(--color-accent); color: #fff; font: inherit; cursor: pointer; }

/* === Utilities === */
.visually-centered { text-align: center; }
