:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #F5F3FF;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --max-w: 1160px;
  --max-w-narrow: 720px;
  --radius: 12px;
}

/* === Base === */
*, *::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: #ffffff;
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; height: auto; }
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; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: var(--max-w-narrow); }

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(30,27,75,0.08);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .75rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: transparent; border: 0; padding: .5rem;
  cursor: pointer;
}
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--color-neutral-dark); }

.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid rgba(30,27,75,0.08); }
.primary-nav ul { list-style: none; margin: 0; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 600; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; border: 0; background: transparent; }
  .primary-nav ul { flex-direction: row; padding: 0; gap: 2rem; }
}

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

/* === Hero (centered) === */
.hero { padding-block: 3.5rem; text-align: center; background: var(--color-neutral-light); }
@media (min-width: 768px) { .hero { padding-block: 6rem; } }
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero__sub { max-width: 48ch; margin-inline: auto; color: rgba(30,27,75,0.75); font-size: 1.15rem; margin-bottom: 2rem; }
.hero__cta { margin-bottom: 2.5rem; }
.hero__image { margin: 3rem auto 0; max-width: 960px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px -30px rgba(30,27,75,.3); }
.hero__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* === Section defaults === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-sub { color: rgba(30,27,75,0.7); max-width: 60ch; margin-inline: auto; }
.section-intro { text-align: center; }
.section-intro p { max-width: 65ch; margin-inline: auto; font-size: 1.075rem; }
.section-editorial .inline-image {
  margin: 2rem auto;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.section-editorial .inline-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* === Grid & cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .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: 1px solid rgba(30,27,75,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card__icon { color: var(--color-primary); margin-bottom: .75rem; }
.card p { color: rgba(30,27,75,0.8); margin: 0; }
a.card-link {
  color: inherit; display: block;
}
a.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(30,27,75,.35); border-color: var(--color-secondary); }
a.card-link h3 { color: var(--color-primary); }

/* === Testimonial === */
.section-testimonial { background: var(--color-neutral-light); }
.testimonial {
  margin: 0 auto;
  max-width: 60ch;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-neutral-dark);
}
.testimonial p { font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-family: var(--font-body); font-style: normal; font-size: 1rem; color: rgba(30,27,75,0.7); }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-accent { background: #fff; color: var(--color-primary); }
.cta-band .btn-accent:hover { background: var(--color-neutral-light); }

/* === Contact info & form === */
.section-contact-info p { font-size: 1.075rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 600; font-size: .95rem; }
.form-row input, .form-row textarea {
  border: 1px solid rgba(30,27,75,0.2);
  border-radius: 8px;
  padding: .75rem .9rem;
  font: inherit;
  color: inherit;
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: transparent; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: rgba(30,27,75,0.8); flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; }

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

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: var(--color-neutral-light); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer-heading { font-size: 1rem; font-family: var(--font-heading); color: #fff; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-tag { color: rgba(245,243,255,0.75); }
.footer-legal { margin-top: 1.25rem; font-size: .9rem; opacity: .85; }
.footer-bottom { border-top: 1px solid rgba(245,243,255,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: .875rem; opacity: .8; text-align: center; }
.logo--footer img { height: 64px; }
.site-footer address { font-style: normal; color: rgba(245,243,255,0.85); line-height: 1.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 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: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  border: 0; padding: .6rem 1rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .9rem;
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__actions button[data-cookie-reject] { background: rgba(245,243,255,0.15); color: var(--color-neutral-light); }
.cookie-banner__actions button[data-cookie-settings] { background: transparent; color: var(--color-neutral-light); text-decoration: underline; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(245,243,255,0.15); }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; background: var(--color-accent); color: #fff; border: 0; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; }
