:root {
  --color-primary: #4F46E5;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 30px -18px rgba(49, 46, 129, 0.35);
  --shadow-hero: 0 30px 60px -30px rgba(49, 46, 129, 0.35);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: #ffffff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
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); font-weight: 600; line-height: 1.2; margin: 0 0 .75em; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 720px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(49,46,129,0.08);
  backdrop-filter: blur(8px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }

.nav-toggle {
  background: none; border: 0; padding: .5rem; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-neutral-dark); }
.site-nav { display: none; }
.site-nav.is-open { display: flex; }
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: #fff;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(49,46,129,0.08);
  gap: .25rem;
}
.site-nav a {
  padding: .65rem 0; color: var(--color-neutral-dark);
  font-weight: 500; font-size: 1rem;
}
.site-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 80px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row;
    padding: 0; border: 0; gap: 2rem; background: transparent;
  }
  .site-nav a { padding: .25rem 0; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  font-size: 1rem;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(79,70,229,.6); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(34,197,94,.55); }

/* === Hero card === */
.hero { padding-block: 3rem 2rem; background: linear-gradient(180deg, var(--color-neutral-light), #ffffff); }
.hero-card__box {
  max-width: 880px; margin-inline: auto;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-hero);
  text-align: left;
}
.eyebrow {
  font-family: var(--font-body); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 600; color: var(--color-primary);
  margin: 0 0 .75rem;
}
.hero__sub { font-size: 1.15rem; color: rgba(49,46,129,0.8); max-width: 55ch; }
.hero__cta { margin-top: 1.25rem; }
.hero-card__figure { margin: 2rem 0 0; }
.hero-card__figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .hero { padding-block: 5rem 3rem; }
  .hero-card__box { padding: 3.5rem 3rem; }
}

/* === Sections === */
.section { padding-block: 3rem; }
.section--narrow .container { max-width: 720px; }
.section--muted { background: var(--color-neutral-light); }
.section__header { text-align: center; max-width: 60ch; margin: 0 auto 2rem; }
.section__header h2 { margin-bottom: .5rem; }
.section__header p { color: rgba(49,46,129,0.75); }
.section__title-center { text-align: center; }
@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* === Grid & Cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@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: #ffffff; padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(49,46,129,0.08);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: .5rem;
}
.card h3 { margin: .25rem 0 .25rem; }
.card p { color: rgba(49,46,129,0.8); margin: 0; }
.card .icon { color: var(--color-primary); }

.card-link { color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(49,46,129,.35); }
.card-link:hover h3 { color: var(--color-primary); }

/* === Testimonial === */
.testimonial {
  margin: 0 auto; max-width: 62ch; text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(49,46,129,0.12);
  border-bottom: 1px solid rgba(49,46,129,0.12);
}
.testimonial p {
  font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.5;
  color: var(--color-neutral-dark); font-style: italic; margin: 0 0 1rem;
}
.testimonial cite { font-style: normal; color: rgba(49,46,129,0.7); font-size: .95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3.5rem; }
.cta-band .cta-band__inner { text-align: center; max-width: 720px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* === FAQ === */
.faq details {
  border-top: 1px solid rgba(49,46,129,0.12);
  padding: 1rem 0;
}
.faq details:last-child { border-bottom: 1px solid rgba(49,46,129,0.12); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem;
  list-style: none; position: relative; padding-right: 2rem;
  color: var(--color-neutral-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--color-primary); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: rgba(49,46,129,0.8); }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 500; font-size: .95rem; }
.form-row input, .form-row textarea {
  padding: .75rem .9rem; border-radius: 10px;
  border: 1px solid rgba(49,46,129,0.2);
  font: inherit; color: var(--color-neutral-dark);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: rgba(49,46,129,0.85); flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.85); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: .25rem 0; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer__tag { color: rgba(255,255,255,0.7); font-size: .95rem; }
.footer__legal { margin-top: 1rem; font-size: .9rem; }
.footer__copy { text-align: center; margin: 2rem 0 0; color: rgba(255,255,255,0.6); font-size: .85rem; }
.site-footer .logo--footer img { filter: brightness(0) invert(1); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
}

/* === 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.25rem; border-radius: var(--radius);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .95rem; color: rgba(238,242,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  border: 0; padding: .55rem 1rem; border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-reject] { background: rgba(255,255,255,0.15); }
.cookie-banner [data-cookie-settings] { background: transparent; text-decoration: underline; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; background: var(--color-primary); margin-top: .5rem; }

@media (min-width: 640px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; }
}
