:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #CA8A04;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Lora', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --border: 1px solid rgba(12, 74, 110, 0.12);
}

/* === Reset === */
* { 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.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
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; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 600; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

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

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

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; position: static; padding: 0; }
  .site-header { padding: 1.25rem 2rem; }
}

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

/* === Hero split === */
.hero {
  padding: 3rem 1.25rem;
  background: var(--color-neutral-light);
}
.hero-split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero__sub { font-size: 1.15rem; color: rgba(12, 74, 110, 0.85); max-width: 48ch; }
.hero__media img { aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; width: 100%; }

@media (min-width: 900px) {
  .hero { padding: 5rem 2rem; }
  .hero-split { grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; }
}

/* === Sections === */
.section {
  padding: 3.5rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section--narrow { max-width: 720px; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section__head p { color: rgba(12, 74, 110, 0.75); }

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

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

.card {
  background: #fff;
  border: var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.card__icon { color: var(--color-primary); margin-bottom: .5rem; }
.card p { color: rgba(12, 74, 110, 0.85); margin: 0; }

a.card-link {
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -25px rgba(12, 74, 110, 0.35);
}
a.card-link h3 { color: var(--color-primary); }

/* === Quote === */
.section--quote {
  max-width: 780px;
  text-align: center;
  padding-block: 3rem;
}
.section--quote blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--color-neutral-dark);
}
.section--quote blockquote p { margin: 0 0 1rem; font-style: italic; }
.section--quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: rgba(12, 74, 110, 0.7);
  letter-spacing: 0.03em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}
.cta-band__inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.article-detail__head { 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.2rem; color: rgba(12, 74, 110, 0.75); }
.article-detail__hero { aspect-ratio: 16/9; object-fit: cover; margin: 2rem 0; border-radius: 8px; width: 100%; }
.article-detail p { font-size: 1.125rem; line-height: 1.75; margin: 1.25rem 0; }
.article-detail h2 { margin-top: 2rem; }
.back-link { margin-top: 2.5rem; }
.back-link a { font-weight: 600; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(12, 74, 110, 0.25);
  border-radius: 6px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}
.form-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: .6rem !important;
  font-weight: 400 !important;
  font-size: .88rem;
  color: rgba(12, 74, 110, 0.85);
}
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240, 249, 255, 0.85);
  padding: 3.5rem 1.25rem 1.5rem;
  margin-top: 3rem;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer a { color: rgba(240, 249, 255, 0.85); display: inline-block; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer nav a { display: block; }
.site-footer address { font-style: normal; line-height: 1.7; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; font-size: .88rem; }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(240, 249, 255, 0.15); font-size: .85rem; color: rgba(240, 249, 255, 0.65); max-width: 1200px; margin: 0 auto; }
.logo--footer img { height: 60px; filter: brightness(0) invert(1); }

@media (min-width: 768px) {
  .site-footer__cols { grid-template-columns: 1.2fr 1fr 1.2fr; }
}

/* === 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: 10px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 640px;
}
@media (min-width: 700px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; }
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(240, 249, 255, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-weight: 600;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .5rem; background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
