:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1235;
  --color-muted: #5B4B7A;
  --color-border: rgba(76, 29, 149, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 12px;
  --container: 1120px;
}

/* === 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: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.8vw, 4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }

/* === 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: .75rem; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-neutral-dark); padding: .4rem .5rem; border-radius: 8px;
  cursor: pointer;
}
.primary-nav { display: none; flex-direction: column; gap: .25rem; width: 100%; padding-top: .75rem; }
.primary-nav.is-open { display: flex; }
.primary-nav a {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  text-decoration: none;
  padding: .5rem .25rem;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .site-header__inner { flex-wrap: nowrap; padding-block: 1rem; }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; flex-direction: row; gap: 1.75rem; width: auto; padding-top: 0; align-items: center; }
  .primary-nav a { border: none; padding: .25rem 0; }
}

/* === Hero (centered) === */
.hero { padding-block: 3.5rem; text-align: center; background: linear-gradient(180deg, var(--color-neutral-light), #fff); border-bottom: 1px solid var(--color-border); }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--color-primary); font-weight: 600; margin: 0 0 1rem; }
.hero h1 { max-width: 28ch; }
.hero__sub { max-width: 52ch; font-size: 1.15rem; color: var(--color-muted); margin-inline: auto; margin-bottom: 1.75rem; }
.hero__cta { margin-bottom: 2.5rem; }
.hero__image { width: 100%; margin-top: 1rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -30px rgba(76, 29, 149, .35); }
.hero__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 768px) { .hero { padding-block: 6rem; } }

/* === Section === */
.section { padding-block: 3.5rem; }
.section--narrow { padding-block: 3rem; }
.section--narrow .container { max-width: 70ch; }
.section--muted { background: #fff; border-block: 1px solid var(--color-border); }
.section__header { text-align: center; max-width: 60ch; margin: 0 auto 2.25rem; }
.section__sub { color: var(--color-muted); font-size: 1.05rem; margin: 0; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

/* === Cards grid === */
.grid { display: grid; gap: 1.25rem; }
.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); } }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card__icon { color: var(--color-primary); margin-bottom: .75rem; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--color-text); }

/* === Testimonial === */
.testimonial {
  max-width: 60ch; margin: 0 auto; text-align: center;
  font-family: var(--font-heading); font-style: italic;
  font-size: 1.3rem; line-height: 1.5; color: var(--color-neutral-dark);
}
.testimonial p { margin-bottom: 1rem; }
.testimonial cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .95rem; color: var(--color-muted); letter-spacing: .02em; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
  text-align: center;
  padding-block: 3.5rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(250, 245, 255, .9); max-width: 55ch; margin-inline: auto; }

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  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: #fff; }
.btn--primary:hover { background: var(--color-neutral-dark); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #d95c0a; color: #fff; }

/* === Contact form === */
.contact-form { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 600; color: var(--color-neutral-dark); font-size: .95rem; }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .7rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
}
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--color-muted); line-height: 1.5; flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; }

/* === Contact band === */
.contact-band { text-align: center; max-width: 70ch; margin: 0 auto; }
.contact-band .btn { margin-top: 1rem; }

/* === FAQ === */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.faq summary {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  cursor: pointer;
  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: 0; color: var(--color-primary); font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--color-text); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding-block: 3rem 1.5rem;
  margin-top: 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.site-footer a { color: var(--color-secondary); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.logo--footer img { height: 60px; background: var(--color-neutral-light); padding: .35rem .6rem; border-radius: 6px; }
.tagline { color: rgba(250, 245, 255, .8); margin-top: .75rem; font-size: .95rem; }
.footer-nav, .legal-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .legal-nav li { margin-bottom: .4rem; }
.legal-nav { margin-top: 1rem; font-size: .88rem; }
address { font-style: normal; color: var(--color-neutral-light); font-size: .95rem; line-height: 1.7; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(250, 245, 255, .15); font-size: .85rem; color: rgba(250, 245, 255, .7); }

/* === 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;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.4);
  max-width: 640px; margin-inline: auto;
  font-size: .95rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 245, 255, .3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(250, 245, 255, .15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { margin-top: .5rem; background: var(--color-primary); border-color: var(--color-primary); align-self: flex-start; }
