/* === Tokens === */
:root {
  --color-primary: #4F46E5;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1F1B4D;
  --color-muted: #5B588A;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 30px 60px -30px rgba(49, 46, 129, 0.35);
  --shadow-soft: 0 12px 30px -18px rgba(49, 46, 129, 0.28);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #FBFAFF;
  line-height: 1.6;
  font-size: 16px;
  -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; }
button { font-family: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 3.5rem; }
.section--narrow { padding-block: 3.5rem; }
.section--narrow .container { max-width: 760px; }
.section--narrow h2 { text-align: center; }
.section--narrow p { max-width: 62ch; margin-inline: auto; font-size: 1.05rem; }
.section--tinted { background: var(--color-neutral-light); }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__sub { color: var(--color-muted); max-width: 52ch; margin-inline: auto; }

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

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  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 img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
}
.nav-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem;
  color: var(--color-neutral-dark);
  display: inline-flex;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--color-neutral-dark);
  padding: 0.65rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.site-nav a:last-child { border-bottom: none; }
.site-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 2rem;
  }
  .site-nav a { border: none; padding: 0.4rem 0; }
  .site-nav a:hover { color: var(--color-primary); text-decoration: none; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-neutral-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover {
  background: #16a34a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* === Hero card === */
.hero-card-wrap {
  padding-block: 3rem 3.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(129, 140, 248, 0.18), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(34, 197, 94, 0.10), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light), #FBFAFF);
}
@media (min-width: 768px) { .hero-card-wrap { padding-block: 5rem 6rem; } }
.hero-card {
  max-width: 880px;
  margin-inline: auto;
  padding: 2.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .hero-card { padding: 4rem 3.5rem; }
}
.hero-card h1 { max-width: 22ch; margin-inline: auto; }
.hero-card__sub {
  max-width: 52ch;
  margin: 1rem auto 1.75rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}
.hero-card__figure {
  margin: 2.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-card__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* === Grid + cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.card__icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: block;
}
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin: 0; }

/* === Stats === */
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1;
}
.stat h3 { margin-bottom: 0.5rem; }
.stat p { color: var(--color-muted); }

/* === Quote === */
.quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}
.quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--color-neutral-dark);
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.quote cite {
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding-block: 3rem;
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cta-band { padding-block: 4rem; }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(238, 242, 255, 0.85); margin: 0; }
.cta-band__meta { font-size: 0.9rem; margin-top: 0.75rem !important; }

/* === Split === */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }
.split__figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.split__figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-neutral-dark);
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Form === */
.form-wrap { max-width: 720px; margin-inline: auto; }
.contact-form {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .contact-form { padding: 2.5rem; } }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-neutral-dark);
  font-size: 0.95rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #FBFAFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(238, 242, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; }
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.logo--footer img { height: 64px; }
@media (min-width: 768px) { .logo--footer img { height: 80px; } }
.site-footer p { color: rgba(238, 242, 255, 0.72); margin: 0.5rem 0 0; }
.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__nav a, .footer__contact a { color: rgba(238, 242, 255, 0.85); }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact address { font-style: normal; line-height: 1.7; }
.footer__legal { margin-top: 1rem; font-size: 0.9rem; }
.footer__copy {
  text-align: center;
  color: rgba(238, 242, 255, 0.55);
  font-size: 0.85rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 242, 255, 0.12);
}

/* === 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 -10px rgba(0,0,0,0.35);
  max-width: 560px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(238, 242, 255, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  font-size: 0.88rem;
  font-weight: 500;
}
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.cookie-banner__actions button:hover { opacity: 0.9; }
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(238, 242, 255, 0.15);
}
.cookie-banner__prefs label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
