:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-muted: #4C4A7A;
  --color-border: rgba(49, 46, 129, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 10px;
  --shadow-sm: 0 6px 20px -12px rgba(49, 46, 129, 0.25);
  --shadow-md: 0 18px 40px -22px rgba(49, 46, 129, 0.35);
}

/* === Base === */
*, *::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.65;
  color: var(--color-text);
  background: #FBFBFE;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 0.75rem; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-primary); font-weight: 600; margin: 0 0 0.75rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-neutral-dark);
  border-radius: 8px; padding: 0.5rem; cursor: pointer;
}
.primary-nav { display: none; flex-direction: column; gap: 0.5rem; width: 100%; padding: 0.75rem 0; }
.primary-nav.is-open { display: flex; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: 0.35rem 0; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; width: auto; padding: 0; gap: 1.75rem; }
}

/* === Hero (stacked) === */
.hero { padding-block: 3rem 2rem; }
.hero-inner { max-width: 780px; margin-inline: auto; }
.hero h1 { margin-block: 0.25rem 1.5rem; }
.hero-figure { margin: 2rem 0; }
.hero-figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; }
.hero-cta { margin-top: 1.5rem; }

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

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

/* === Sections === */
.section { padding-block: 3rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-head p { color: var(--color-muted); }

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

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; }
.card-icon { color: var(--color-primary); display: inline-flex; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.read-more { color: var(--color-primary); font-weight: 600; margin-top: 1rem; display: inline-block; }

/* === Testimonial === */
.testimonial { margin: 0; padding: 2rem 1rem; text-align: center; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.testimonial p { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.5; color: var(--color-neutral-dark); font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0; }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 768px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* === Article detail === */
.article-detail { max-width: 65ch; margin-inline: auto; padding: 2.5rem 1.25rem 1rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; }
.article-sub { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.article-hero { margin-block: 2rem; }
.article-hero img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: 8px; box-shadow: var(--shadow-md); }
.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 { color: var(--color-primary); font-weight: 600; }

/* === Forms === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border); border-radius: 8px; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-secondary); border-color: var(--color-secondary); }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo img { height: 60px; margin-bottom: 0.5rem; filter: brightness(0) invert(1); }
.tagline { color: rgba(238,242,255,0.75); font-style: italic; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 0.5rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; margin-top: 2rem; text-align: center; }
.copyright p { margin: 0; font-size: 0.88rem; color: rgba(238,242,255,0.7); }

/* === Cookie banner === */
.consent-panel {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding: 1rem 1.25rem; border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  max-width: 640px; margin-inline: auto;
}
.consent-panel.is-visible { display: block; }
.consent-panel p { margin: 0 0 0.85rem; font-size: 0.92rem; }
.consent-panel__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-panel button {
  font: inherit; font-size: 0.9rem; padding: 0.55rem 1rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  background: transparent; color: var(--color-neutral-light);
}
.consent-panel [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.consent-panel__prefs { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
.consent-panel__prefs label { display: flex; gap: 0.5rem; align-items: center; }
.consent-panel__prefs [data-cookie-save] { align-self: flex-start; margin-top: 0.35rem; background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
