:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-page: #FBFBFE;
  --color-text: #1F1D3A;
  --color-muted: #5C5A85;
  --color-line: rgba(49, 46, 129, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 20px 50px -30px rgba(49, 46, 129, 0.35);
  --maxw: 1120px;
  --maxw-narrow: 720px;
}

/* === 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-text);
  background: var(--color-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Eyebrow === */
.eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 1rem;
}

/* === Header === */
.site-header {
  background: var(--color-page);
  border-bottom: 1px solid var(--color-line);
  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; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: .25rem;
  position: absolute;
  right: 1rem;
  top: 100%;
  background: var(--color-page);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow-soft);
  min-width: 220px;
}
.primary-nav__list.is-open { display: flex; }
.primary-nav__list a {
  display: block;
  padding: .5rem .75rem;
  text-decoration: none;
  color: var(--color-neutral-dark);
  border-radius: 6px;
  font-weight: 600;
}
.primary-nav__list a:hover,
.primary-nav__list a[aria-current="page"] { background: var(--color-neutral-light); }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle__bar { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav__list {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    gap: .5rem;
    min-width: 0;
  }
  .primary-nav__list a { padding: .5rem .9rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  line-height: 1.2;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-neutral-dark); color: #fff; }
.btn--accent { background: var(--color-accent); color: #06231A; }
.btn--accent:hover { background: #16A34A; color: #fff; }
.btn--ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-neutral-dark); }
.btn--ghost:hover { background: var(--color-neutral-dark); color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

/* === Hero (stacked) === */
.hero {
  padding-block: 3rem 2rem;
  background: linear-gradient(180deg, var(--color-neutral-light) 0%, var(--color-page) 100%);
}
.hero__inner { max-width: var(--maxw-narrow); margin-inline: auto; text-align: left; }
.hero__title { max-width: 22ch; margin-bottom: 1.5rem; }
.hero__media {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 55ch;
  margin-bottom: 1.75rem;
}
.hero__cta { margin: 0; }
@media (min-width: 768px) {
  .hero { padding-block: 5rem 3rem; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
.section--narrow .container { max-width: var(--maxw-narrow); }
.section--tint { background: var(--color-neutral-light); }
.section--quote { background: var(--color-page); padding-block: 3rem; }
.section__header { text-align: left; margin-bottom: 2rem; max-width: 60ch; }
.section__title { margin-bottom: .5rem; }
.section__lede { color: var(--color-muted); font-size: 1.05rem; margin: 0; }
.prose { font-size: 1.05rem; color: var(--color-text); max-width: 68ch; }
.prose a { color: var(--color-primary); }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

/* === Cards grid === */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.grid--cards { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--cards { grid-template-columns: repeat(4, 1fr); } .grid--two { grid-template-columns: repeat(2, 1fr) !important; } }

.card {
  background: var(--color-page);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: rgba(99, 102, 241, 0.4); box-shadow: var(--shadow-soft); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card__title { color: var(--color-neutral-dark); }
.card__body { color: var(--color-muted); font-size: .98rem; margin: 0; }
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-link:hover { color: inherit; }
.card > .card-link { margin: -1.6rem; padding: 1.6rem; border-radius: var(--radius-lg); }

/* Cards that are themselves links — apply hover lift via wrapping .card */
.card:has(.card-link):hover { transform: translateY(-2px); }

/* === Quote === */
.quote {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
}
.quote p {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--color-neutral-dark);
  margin: 0 0 1rem;
  font-style: italic;
}
.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  color: var(--color-muted);
  font-size: .95rem;
  letter-spacing: 0.02em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding-block: 3.5rem;
}
.cta-band__inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band__title { color: #fff; margin-bottom: .75rem; }
.cta-band__sub { color: rgba(238, 242, 255, 0.85); margin-bottom: 1.75rem; }
.cta-band__cta { margin: 0; }

/* === Article-detail === */
.article {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1rem 4rem;
}
.article__header { margin-bottom: 1.75rem; }
.article__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.article__sub {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin: 0;
}
.article__media {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.article__media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article__body p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-block: 1.25rem;
  color: var(--color-text);
}
.article__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-line); }
.back-link { text-decoration: none; color: var(--color-primary); font-weight: 600; }
.back-link:hover { color: var(--color-neutral-dark); }

/* === Contact form === */
.form-wrap { max-width: var(--maxw-narrow); }
.contact-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-page);
  color: var(--color-text);
  width: 100%;
}
.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: .9rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.form-consent input { margin-top: .25rem; }
.form-consent a { color: var(--color-primary); }

/* === 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); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer__heading {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-heading);
  margin: 0 0 .75rem;
}
.site-footer__tagline { color: rgba(238, 242, 255, 0.8); margin: 1rem 0 0; }
.site-footer__nav, .site-footer__legal { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer__legal { margin-top: 1rem; font-size: .9rem; opacity: .85; }
.site-footer__address { font-style: normal; color: rgba(238, 242, 255, 0.85); line-height: 1.7; }
.site-footer .logo--footer img { height: 60px; filter: brightness(0) invert(1); }
.site-footer__base {
  border-top: 1px solid rgba(238, 242, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: .85rem;
  opacity: .8;
}
.site-footer__base 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.1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.45);
  max-width: 620px;
  margin-inline: auto;
  font-size: .93rem;
  line-height: 1.55;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .85rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn--ghost { color: var(--color-neutral-light); border-color: rgba(238,242,255,0.35); }
.cookie-banner__actions .btn--ghost:hover { background: rgba(238,242,255,0.1); color: #fff; }
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(238,242,255,0.2);
  display: grid;
  gap: .5rem;
}
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.cookie-banner__prefs button { margin-top: .5rem; justify-self: start; }
