:root {
  --color-primary: #0F172A;
  --color-secondary: #1E3A8A;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-muted: #475569;
  --color-border: rgba(2, 6, 23, 0.12);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --shadow-card: 0 20px 60px -30px rgba(2, 6, 23, 0.25);
  --container: 1160px;
}

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 780px; }
.eyebrow { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-secondary); font-weight: 600; margin: 0 0 1rem; }
.lede { color: var(--color-muted); font-size: 1.1rem; }

/* === Header === */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
}
.logo img { height: 72px; width: auto; display: block; }
.primary-nav { position: relative; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--color-border);
  background: transparent; border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-primary); border-radius: 2px; }
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: none;
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  min-width: 220px;
  z-index: 20;
}
.nav-menu.is-open { display: block; }
.nav-menu li a {
  display: block; padding: .8rem 1.2rem; text-decoration: none; color: var(--color-primary);
  font-weight: 500; border-bottom: 1px solid var(--color-border);
}
.nav-menu li:last-child a { border-bottom: none; }
.nav-menu li a[aria-current="page"] { color: var(--color-secondary); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .site-header { padding: 1.5rem 2rem; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex; position: static; background: transparent; border: none; box-shadow: none; gap: .5rem; padding: 0;
  }
  .nav-menu li a { border: none; padding: .5rem .9rem; border-radius: 8px; }
  .nav-menu li a:hover { background: rgba(30, 58, 138, 0.08); }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-primary:hover { background: var(--color-secondary); color: var(--color-neutral-light); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-light); }
.btn-accent:hover { background: #a76f03; color: var(--color-neutral-light); }
.btn-ghost { background: transparent; color: var(--color-neutral-light); border-color: rgba(248, 250, 252, 0.4); }
.btn-ghost:hover { background: rgba(248, 250, 252, 0.1); }

/* === Hero (hero-card archetype) === */
.hero {
  padding: 2.5rem 1rem 3.5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(30, 58, 138, 0.08), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(202, 138, 4, 0.07), transparent 55%),
    var(--color-neutral-light);
}
.hero-card__inner {
  max-width: 880px; margin-inline: auto;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  text-align: left;
}
.hero__sub { color: var(--color-muted); font-size: 1.15rem; max-width: 60ch; margin-bottom: 1.75rem; }
.hero__cta { margin: 0 0 2rem; }
.hero-card__figure { margin: 2rem 0 0; border-radius: 12px; overflow: hidden; }
.hero-card__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

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

/* === Sections === */
.section { padding: 3.5rem 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .lede { max-width: 55ch; margin-inline: auto; }

.section--intro { background: var(--color-neutral-light); }
.section--intro .container--narrow { text-align: left; }

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

/* === Cards grid === */
.grid { list-style: none; margin: 0; padding: 0; 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); } }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #ffffff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.75rem;
  height: 100%; box-shadow: 0 6px 18px -12px rgba(2, 6, 23, 0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card h3 { margin-top: .75rem; }
.card p { margin: 0; color: var(--color-muted); font-size: .98rem; }
.card .icon { color: var(--color-accent); }

.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover .card { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card-link .card h3 { color: var(--color-primary); }
.card-link:hover .card h3 { color: var(--color-secondary); }

/* === Testimonial === */
.section--testimonial { background: #fff; }
.quote {
  margin: 0; padding: 2rem 1rem; text-align: center;
  font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.5; color: var(--color-primary);
  border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
}
.quote p { margin: 0 0 1rem; }
.quote cite { font-family: var(--font-body); font-style: normal; font-size: .95rem; color: var(--color-muted); }

/* === CTA band === */
.cta-band {
  background: var(--color-primary); color: var(--color-neutral-light);
  padding: 3.5rem 0; text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(248, 250, 252, 0.85); max-width: 55ch; margin-inline: auto; }

/* === Contact form === */
.section--form { background: var(--color-neutral-light); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-primary);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; }

/* === Article detail === */
.article-detail {
  max-width: 65ch; margin-inline: auto; padding: 3rem 1rem;
}
.article-detail > header { margin-bottom: 1.5rem; }
.article-detail 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; border-radius: 8px; overflow: hidden; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-detail h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.article-detail p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { text-decoration: none; font-weight: 600; color: var(--color-secondary); }
.back-link:hover { color: var(--color-primary); }

/* === Contact band (about page) === */
.section--contact-band { background: #fff; text-align: center; border-block: 1px solid var(--color-border); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(248, 250, 252, 0.85);
  padding: 3.5rem 0 1.5rem; margin-top: 4rem;
}
.site-footer h3 { color: var(--color-neutral-light); font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: rgba(248, 250, 252, 0.85); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(248, 250, 252, 0.7); margin-top: .75rem; }
.legal-links { margin-top: 1.25rem; }
.legal-links a { font-size: .9rem; }
.logo--footer img { height: 60px; filter: brightness(0) invert(1); }
.copyright { text-align: center; margin: 2.5rem 0 0; font-size: .85rem; color: rgba(248, 250, 252, 0.55); }

/* === 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: 14px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; color: rgba(248, 250, 252, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn { padding: .55rem 1.05rem; font-size: .85rem; }
.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 .btn { align-self: flex-start; margin-top: .5rem; }
