:root {
  --color-primary: #0EA5E9;
  --color-secondary: #38BDF8;
  --color-accent: #FBBF24;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-text: #0C4A6E;
  --color-muted: #4B6B82;
  --color-border: rgba(12, 74, 110, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 20px 40px -24px rgba(12, 74, 110, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
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; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 0.75rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }

/* === Layout — sidebar shell === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; background: var(--color-neutral-light); padding: 6px 10px; border-radius: 8px; }
.nav-toggle { background: transparent; border: 1px solid rgba(240, 249, 255, 0.4); border-radius: 8px; padding: 0.55rem 0.7rem; cursor: pointer; display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-neutral-light); }
.primary-nav { display: none; flex-direction: column; gap: 0.75rem; width: 100%; padding-top: 1rem; border-top: 1px solid rgba(240, 249, 255, 0.15); }
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-light);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(240, 249, 255, 0.12); color: #ffffff; }
.sidebar-footer { width: 100%; margin: 0; font-size: 0.85rem; color: rgba(240, 249, 255, 0.7); }
.main { padding: 1.5rem 1.25rem 0; max-width: 1100px; margin: 0 auto; }

/* === Sidebar layout — desktop === */
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
  .sidebar {
    position: sticky; top: 0; height: 100vh;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 2rem 1.5rem; gap: 1.25rem;
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: column; width: 100%; padding-top: 0.5rem; border-top: none; gap: 0.35rem; }
  .sidebar-footer { margin-top: auto; }
  .main { padding: 2.5rem 3rem; max-width: 980px; margin: 0; }
}

/* === Hero — editorial === */
.hero-editorial {
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin-bottom: 1.5rem; }
.hero-figure { margin: 2rem 0 0; }
.hero-figure img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--color-primary); color: #ffffff; }
.btn-primary:hover { background: var(--color-neutral-dark); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-dark); }
.btn-accent:hover { background: #eab006; text-decoration: none; }

/* === Sections === */
.section { padding: 2.5rem 0; border-bottom: 1px solid var(--color-border); }
.section:last-of-type { border-bottom: none; }
.section.narrow { max-width: 64ch; }
.sub { color: var(--color-muted); font-size: 1.05rem; margin-bottom: 1.25rem; max-width: 60ch; }

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

/* === Cards === */
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--color-text); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
}
a.card-link { display: block; color: inherit; text-decoration: none; }
a.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); text-decoration: none; }
a.card-link h3 { color: var(--color-neutral-dark); }

/* === Testimonial === */
.testimonial-section { text-align: center; }
.testimonial {
  margin: 0 auto;
  max-width: 60ch;
  padding: 2rem;
  background: var(--color-neutral-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}
.testimonial p { font-family: var(--font-heading); font-size: 1.15rem; font-style: italic; color: var(--color-neutral-dark); }
.testimonial cite { display: block; font-style: normal; color: var(--color-muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2.5rem 0;
}
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* === Contact band === */
.contact-band { background: var(--color-neutral-light); padding: 2rem 1.5rem; border-radius: var(--radius); }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: 0.25rem; }

/* === Article === */
.article { max-width: 65ch; margin: 0 auto; padding: 1rem 0 3rem; }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { 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-hero { margin: 2rem 0; }
.article-hero img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.article h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.article p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.back-link-wrap { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { font-weight: 600; }

/* === Footer === */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.95rem;
}
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer-cols nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-cols a { color: var(--color-neutral-dark); }
.footer-brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.footer-legal { margin-top: 1rem; font-size: 0.85rem; }
.copyright { margin: 0; text-align: center; font-size: 0.85rem; color: var(--color-muted); padding-top: 1rem; border-top: 1px solid var(--color-border); }

/* === 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: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 640px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font-family: var(--font-body);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 249, 255, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: var(--color-neutral-dark); border-color: var(--color-accent); }
.cookie-banner__actions button:hover { background: rgba(240, 249, 255, 0.15); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #eab006; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(240, 249, 255, 0.2); font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; padding: 0.5rem 1rem; border-radius: 8px; border: 0; background: var(--color-accent); color: var(--color-neutral-dark); font-weight: 700; cursor: pointer; }
