:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #F97316;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 10px;
  --shadow-card: 0 8px 24px -12px rgba(12, 74, 110, 0.18);
  --max-width: 1160px;
}

/* === Reset === */
*, *::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-neutral-dark);
  background: #ffffff;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-neutral-dark); }
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; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
blockquote { margin: 0; }
address { font-style: normal; line-height: 1.7; }

/* === Layout === */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section--narrow .container { max-width: 760px; }
.section--tinted { background: var(--color-neutral-light); }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section__sub { color: rgba(12,74,110,0.75); font-size: 1.05rem; }
.section__center { text-align: center; max-width: 640px; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(12,74,110,0.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; gap: 1rem; }
.logo { display: inline-block; line-height: 0; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(12,74,110,0.2); border-radius: 8px; padding: .5rem; color: var(--color-neutral-dark); cursor: pointer; }
.primary-nav { display: none; flex-direction: column; gap: .25rem; width: 100%; padding-top: 1rem; }
.primary-nav.is-open { display: flex; }
.primary-nav a { text-decoration: none; padding: .6rem .25rem; font-weight: 500; color: var(--color-neutral-dark); border-bottom: 1px solid rgba(12,74,110,0.08); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

/* === Hero (stacked) === */
.hero-stacked { padding-block: 3rem 2rem; }
.hero__inner { max-width: 760px; margin-inline: auto; }
.hero__title { margin-bottom: 1.5rem; }
.hero__figure { margin: 2rem 0; }
.hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.hero__sub { font-size: 1.2rem; color: rgba(12,74,110,0.85); max-width: 60ch; margin-bottom: 1.75rem; }
.hero__cta { margin-top: 1.5rem; }

/* === Buttons === */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; transition: transform .15s ease, background .15s ease, color .15s ease; border: 1px solid transparent; }
.btn--primary { background: var(--color-primary); color: #ffffff; }
.btn--primary:hover { background: var(--color-neutral-dark); color: #ffffff; transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: #ffffff; }
.btn--accent:hover { background: #ea580c; color: #ffffff; transform: translateY(-1px); }

/* === Grids & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { background: #ffffff; border: 1px solid rgba(12,74,110,0.1); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease; }
.card h3 { margin-top: .5rem; }
.card p { margin: 0; color: rgba(12,74,110,0.85); }
.card__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--color-neutral-light); color: var(--color-primary); margin-bottom: .5rem; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(12,74,110,0.25); }
.card__more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--color-primary); }

/* === Quote === */
.quote { max-width: 720px; margin: 0 auto; text-align: center; padding: 1rem; }
.quote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: var(--color-neutral-dark); font-style: italic; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .95rem; color: rgba(12,74,110,0.75); font-family: var(--font-body); }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #ffffff; padding-block: 3.5rem; }
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 60ch; margin-inline: auto; }
.cta-band__inner { text-align: center; }
.cta-band__meta { font-size: .9rem; opacity: .85; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 600; font-size: .95rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea { font: inherit; padding: .75rem .9rem; border: 1px solid rgba(12,74,110,0.2); border-radius: 8px; background: #ffffff; color: var(--color-neutral-dark); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; border-color: var(--color-secondary); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; line-height: 1.5; color: rgba(12,74,110,0.85); }
.form-consent input { margin-top: .25rem; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin-inline: auto; padding: 2.5rem 1.25rem 4rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-detail__sub { font-size: 1.2rem; color: rgba(12,74,110,0.75); margin-bottom: 1.5rem; }
.article-detail__figure { margin: 2rem 0; }
.article-detail__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.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(12,74,110,0.15); }
.back-link { text-decoration: none; font-weight: 600; color: var(--color-primary); }
.back-link:hover { color: var(--color-neutral-dark); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(240,249,255,0.85); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer h3 { color: #ffffff; font-family: var(--font-body); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: rgba(240,249,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer__tagline { font-family: var(--font-heading); font-style: italic; margin-top: .75rem; color: rgba(240,249,255,0.7); }
.logo--footer img { height: 60px; filter: brightness(0) invert(1); }
.footer-nav, .legal-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.legal-nav { margin-top: 1rem; font-size: .9rem; }
.site-footer__copyright { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(240,249,255,0.15); font-size: .85rem; color: rgba(240,249,255,0.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; border-radius: var(--radius); box-shadow: 0 20px 50px -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 .9rem; font-size: .92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { font: inherit; font-size: .88rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(240,249,255,0.3); background: transparent; color: var(--color-neutral-light); cursor: pointer; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #ffffff; font-weight: 600; }
.cookie-banner__actions button:hover { background: rgba(240,249,255,0.12); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #ea580c; }
.cookie-banner__prefs { margin-top: .9rem; display: grid; gap: .5rem; padding-top: .9rem; border-top: 1px solid rgba(240,249,255,0.2); font-size: .9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button { justify-self: start; margin-top: .3rem; padding: .5rem .9rem; border-radius: 999px; border: 0; background: var(--color-accent); color: #ffffff; font: inherit; font-weight: 600; cursor: pointer; }

/* === Responsive === */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; width: auto; padding-top: 0; }
  .primary-nav a { border-bottom: 0; padding: .25rem 0; }
  .hero-stacked { padding-block: 5rem 3rem; }
  .section { padding-block: 5rem; }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 420px; margin: 0; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 3.75rem; }
}
