:root {
  --color-primary: #1E3A8A;
  --color-secondary: #3B82F6;
  --color-accent: #CA8A04;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #F8FAFC;
  --color-text: #0F1B3D;
  --color-muted: #4B5A7A;
  --color-border: rgba(30, 58, 138, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 4px 20px -12px rgba(15, 27, 61, 0.25);
  --shadow-md: 0 20px 60px -30px rgba(15, 27, 61, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-secondary); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.visually-hidden { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }

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

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; gap: 1rem; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: none; border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--color-primary); }
.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); padding: 0.75rem 1.25rem 1rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.primary-nav a { display: block; padding: 0.5rem 0; text-decoration: none; color: var(--color-text); font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); border-bottom: 2px solid var(--color-accent); display: inline-block; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .primary-nav ul { flex-direction: row; gap: 1.75rem; }
  .logo img { height: 96px; }
}

/* === Hero === */
.hero { padding: 3.5rem 0 2rem; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-muted); font-weight: 600; margin: 0 0 0.75rem; }
.hero h1 { max-width: 22ch; margin-bottom: 1.25rem; }
.hero__sub { max-width: 52ch; font-size: 1.15rem; color: var(--color-muted); margin-bottom: 1.75rem; }
.hero__cta { margin: 0 0 3rem; }
.hero__figure { width: 100%; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.hero__figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

@media (min-width: 768px) {
  .hero { padding: 5.5rem 0 3rem; }
}

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

/* === Sections === */
.section { padding: 3.5rem 0; }
.section--narrow .container { max-width: 780px; }
.section--tinted { background: #EEF3FB; }
.section__title { text-align: center; margin-bottom: 0.5rem; }
.section__lede { text-align: center; max-width: 60ch; margin: 0 auto 2rem; color: var(--color-muted); }

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

/* === Grids === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@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); }
}

/* === Cards === */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.card__icon { color: var(--color-accent); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--color-muted); margin: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.card-link h3 { color: var(--color-primary); }

/* === Testimonial === */
.testimonial { text-align: center; }
.testimonial blockquote { max-width: 68ch; margin: 0 auto; padding: 0 1rem; }
.testimonial blockquote p { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-style: italic; color: var(--color-primary); line-height: 1.5; margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-weight: 600; letter-spacing: 0.02em; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding: 3rem 0; }
.cta-band__inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-band__action { margin: 0; }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* === Article detail === */
.article { max-width: 65ch; margin: 0 auto; padding: 3rem 1.25rem; }
.article__header { margin-bottom: 2rem; }
.article__sub { font-size: 1.2rem; color: var(--color-muted); }
.article__hero { margin: 2rem 0 2.5rem; border-radius: var(--radius); overflow: hidden; }
.article__hero img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article h2 { margin-top: 2.25rem; }
.article p { font-size: 1.1rem; line-height: 1.75; }
.back-link { margin-top: 3rem; font-weight: 600; }
.back-link a { text-decoration: none; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 600; color: var(--color-primary); font-size: 0.95rem; }
.form-row input, .form-row textarea { font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; color: var(--color-text); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; border-color: var(--color-secondary); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: 0.25rem; }
.contact-form .btn { align-self: flex-start; }

/* === FAQ === */
.faq { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.25rem 1.25rem; margin-bottom: 0.75rem; }
.faq summary { padding: 1rem 0; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--color-accent); font-weight: 400; }
.faq[open] summary::after { content: '−'; }
.faq p { padding-bottom: 1rem; color: var(--color-muted); margin: 0; }

/* === Footer === */
.site-footer { background: var(--color-primary); color: rgba(255, 255, 255, 0.85); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer a { color: #fff; }
.footer__brand { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; margin: 0 0 0.35rem; font-weight: 600; }
.footer__tagline { color: rgba(255, 255, 255, 0.75); }
.footer__title { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); margin: 0 0 0.75rem; font-weight: 600; }
.footer__nav, .footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer__legal { margin-top: 1rem; font-size: 0.9rem; }
.site-footer address { font-style: normal; color: rgba(255, 255, 255, 0.85); line-height: 1.7; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 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: 1.25rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  max-width: 520px;
  margin-left: 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 { font: inherit; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: var(--color-neutral-light); cursor: pointer; font-size: 0.9rem; }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 600; }
.cookie-banner [data-cookie-accept]:hover { background: #a56f03; border-color: #a56f03; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: 0.5rem; background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.risk-disclaimer { position: relative; z-index: 1000; background: #f7f4f0; border-bottom: 2px solid #a1887f; color: #4a423c; padding: 0.875rem 1.5rem; }
.risk-disclaimer p { max-width: 68rem; margin: 0 auto; font-size: 0.8125rem; line-height: 1.6; text-align: center; }
.risk-disclaimer strong { text-transform: uppercase; letter-spacing: 0.04em; }
.risk-disclaimer__icon { font-size: 1rem; }
