/* === Tokens === */
:root {
  --color-primary: #1E3A8A;
  --color-secondary: #1E40AF;
  --color-accent: #B45309;
  --color-neutral-dark: #0F172A;
  --color-neutral-light: #F8FAFC;
  --color-muted: #E2E8F0;
  --color-border: rgba(15, 23, 42, 0.12);
  --color-body: #1F2937;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 12px 30px -18px rgba(15, 23, 42, 0.35);
  --shadow-hero: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-neutral-light);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 720px; margin-inline: auto; }
.section { padding-block: 3.5rem; }
.section--muted { background: #EEF2FF; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section__head p { color: #475569; }

/* === 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; gap: 1rem; padding-block: 0.9rem; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 60px; }
.primary-nav { display: none; gap: 1.5rem; align-items: center; }
.primary-nav a { font-weight: 500; color: var(--color-neutral-dark); padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover { text-decoration: none; border-color: var(--color-accent); }
.primary-nav a.is-active { border-color: var(--color-primary); }
.nav-toggle { background: transparent; border: 1px solid var(--color-border); border-radius: 8px; width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-neutral-dark); }
.primary-nav.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; position: absolute; left: 1rem; right: 1rem; top: 72px; padding: 1rem 1.25rem; background: var(--color-neutral-light); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
  .primary-nav { display: flex; position: static; padding: 0; background: transparent; border: none; box-shadow: none; }
  .nav-toggle { display: none; }
}

/* === Hero card === */
.hero-card-section { padding-block: 3rem; background: linear-gradient(180deg, #EEF2FF 0%, var(--color-neutral-light) 100%); }
.hero-card {
  max-width: 880px;
  margin-inline: auto;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-neutral-light);
  box-shadow: var(--shadow-hero);
  text-align: left;
  border: 1px solid var(--color-border);
}
.hero-card .eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--color-accent); margin: 0 0 0.75rem; }
.hero-card h1 { margin-bottom: 0.6em; }
.hero-card__sub { font-size: 1.15rem; color: #475569; max-width: 60ch; }
.hero-card .btn { margin-top: 0.5rem; }
.hero-card__figure { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; }
.hero-card__figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

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

/* === Buttons === */
.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: 8px; font-weight: 600; font-family: var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 10px 20px -12px rgba(30, 58, 138, 0.5); }
.btn--primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn--accent { background: var(--color-accent); color: var(--color-neutral-light); }

/* === Eyebrow === */
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-accent); }

/* === Grid & cards === */
.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--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.card { background: var(--color-neutral-light); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 0.5rem; }
.card .icon { color: var(--color-primary); margin-bottom: 0.25rem; }
.card h3 { margin-bottom: 0.25rem; }
.card p { color: #475569; margin: 0; }
a.card-link { color: inherit; }
a.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.read-more { margin-top: 0.75rem; font-weight: 600; color: var(--color-secondary); }

/* === Editorial split === */
.editorial { display: grid; gap: 2rem; align-items: center; }
.editorial__figure { border-radius: var(--radius); overflow: hidden; }
.editorial__figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .editorial { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* === Testimonial === */
.testimonial { max-width: 780px; margin: 0 auto; text-align: center; padding: 1rem; }
.testimonial__portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.testimonial blockquote { margin: 0; font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--color-neutral-dark); }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { margin-top: 1rem; color: #475569; font-size: 0.95rem; }
.testimonial cite { font-style: normal; font-weight: 600; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: var(--color-neutral-light); padding-block: 3rem; }
.cta-band__inner { text-align: center; max-width: 720px; }
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(248, 250, 252, 0.85); }

/* === Contact card === */
.contact-card { text-align: center; padding: 2rem; background: var(--color-neutral-light); border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); max-width: 640px; margin: 0 auto; }
.contact-card p { margin: 0.5rem 0; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; background: var(--color-neutral-light); border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.95rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea { font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; color: var(--color-neutral-dark); }
.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; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: #475569; flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin-inline: auto; padding: 2.5rem 1rem 4rem; }
.article-detail header { margin-bottom: 2rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; }
.article-detail__sub { font-size: 1.2rem; color: #475569; }
.article-detail__hero { margin-block: 2rem; border-radius: 8px; overflow: hidden; }
.article-detail__hero img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article-detail p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article-detail__foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { font-weight: 600; color: var(--color-secondary); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(248, 250, 252, 0.85); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer h3 { color: var(--color-neutral-light); font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem; }
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer__base { border-top: 1px solid rgba(248, 250, 252, 0.12); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; text-align: center; color: rgba(248, 250, 252, 0.6); }
.site-footer .logo--footer { display: inline-block; margin-bottom: 0.75rem; }

/* === 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 40px -20px rgba(0, 0, 0, 0.5); max-width: 720px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.95rem; color: rgba(248, 250, 252, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button, .cookie-banner__prefs button { font: inherit; padding: 0.55rem 1rem; border-radius: 8px; border: 1px solid rgba(248, 250, 252, 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); }
.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 button[data-cookie-save] { align-self: flex-start; background: var(--color-neutral-light); color: var(--color-neutral-dark); border: none; margin-top: 0.5rem; }
