:root {
  --color-primary: #1E40AF;
  --color-secondary: #3B82F6;
  --color-accent: #F59E0B;
  --color-neutral-dark: #1E3A8A;
  --color-neutral-light: #F8FAFC;
  --text: #0F172A;
  --muted: #475569;
  --border: rgba(30, 58, 138, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 10px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--color-neutral-light);
  line-height: 1.6;
  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, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; font-weight: 600; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: 3.5rem; }
.section--tint { background: #EEF4FF; border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.section__head p { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-secondary); font-weight: 600; margin: 0 0 1rem; }

/* === Header === */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: none; border: none; color: var(--color-neutral-dark); padding: 0.5rem; cursor: pointer; display: inline-flex; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
.site-nav.is-open { display: flex; }
.site-nav a { padding: 0.65rem 0; font-weight: 600; color: var(--color-neutral-dark); border-bottom: 1px solid var(--border); }
.site-nav a[aria-current="page"] { color: var(--color-primary); }

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

/* === Hero (stacked) === */
.hero-stacked { padding-block: 3rem 2rem; }
.hero__inner { max-width: 780px; margin-inline: auto; }
.hero-stacked h1 { margin-bottom: 1.25rem; }
.hero__image { margin: 2rem 0; }
.hero__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.hero__sub { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero__cta { margin: 0; }

@media (min-width: 768px) {
  .hero-stacked { padding-block: 5rem 3rem; }
  .hero__image { margin: 3rem 0; }
}

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

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

/* === Cards === */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card__icon { color: var(--color-secondary); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; color: var(--color-neutral-dark); }
.card p { color: var(--muted); margin: 0; }
a.card-link { color: inherit; display: block; transition: transform 0.15s, box-shadow 0.15s; }
a.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(30, 58, 138, 0.35); }
a.card-link h3 { color: var(--color-primary); }

/* === Testimonial === */
.testimonial { border-left: 3px solid var(--color-accent); padding: 0.5rem 1.5rem; margin: 0; text-align: left; }
.testimonial p { font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; color: var(--color-neutral-dark); }
.testimonial cite { display: block; font-style: normal; color: var(--muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 640px; margin-inline: auto; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin-inline: auto; padding: 2.5rem 1.25rem 3rem; }
.article-detail header { margin-bottom: 1.5rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-detail__sub { font-size: 1.25rem; color: var(--muted); }
.article-detail__hero img { aspect-ratio: 16/9; object-fit: cover; margin-block: 2rem; border-radius: 8px; width: 100%; }
.article-detail p { font-size: 1.125rem; line-height: 1.7; margin-block: 1.25rem; }
.article-detail h2 { margin-top: 2.5rem; }
.back-link { margin-top: 3rem; }
.back-link a { font-weight: 600; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: #fff; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea { font-family: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }

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

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; }
}

/* === 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: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button { font-family: inherit; font-size: 0.9rem; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; cursor: pointer; font-weight: 600; }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #1a1300; border-color: var(--color-accent); }
.cookie-banner__prefs { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.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; background: var(--color-secondary); border-color: var(--color-secondary); margin-top: 0.4rem; }
