/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1F1147;
  --color-muted: #5b4b7d;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 6px 20px -12px rgba(76, 29, 149, 0.35);
  --shadow-md: 0 20px 50px -30px rgba(76, 29, 149, 0.45);
  --max-w: 1140px;
  --max-w-narrow: 720px;
}

/* === Base === */
*, *::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-ink);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* === Layout === */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: var(--max-w-narrow); margin-inline: auto; }
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
}
.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; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.nav-toggle {
  background: transparent; border: 1px solid rgba(76, 29, 149, 0.2);
  color: var(--color-neutral-dark);
  padding: 0.4rem 0.55rem; border-radius: 8px; cursor: pointer;
}
.primary-nav {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  padding: 0.5rem 1.25rem 1rem;
  gap: 0.25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a { color: var(--color-neutral-dark); padding: 0.6rem 0; font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--color-accent); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; flex-direction: row; position: static; gap: 1.75rem;
    background: transparent; border: 0; padding: 0;
  }
  .primary-nav a { padding: 0; }
}

/* === Hero (centered) === */
.hero-centered { text-align: center; padding-block: 4rem 3rem; }
@media (min-width: 768px) { .hero-centered { padding-block: 6rem 4rem; } }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.8rem; color: var(--color-accent); font-weight: 600;
  margin: 0 0 1rem;
}
.hero-centered h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub {
  max-width: 52ch; margin: 1rem auto 2rem;
  color: var(--color-muted); font-size: 1.15rem;
}
.hero-figure { margin: 3rem auto 0; max-width: 960px; }
.hero-figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px; box-shadow: var(--shadow-md);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.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: #a86f00; color: #fff; }

/* === Intro sections === */
.section-intro h2 { text-align: left; }
.container-narrow > h2, .container-narrow > p { text-align: left; }
.section-intro .container-narrow { text-align: left; }
.section-intro p { color: var(--color-ink); font-size: 1.075rem; }
.section-with-figure .split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) {
  .section-with-figure .split { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
.split-figure img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-sm); }

/* === Highlights grid === */
.section-highlights { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-sub { color: var(--color-muted); margin-top: -0.25rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .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: var(--color-neutral-light);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(76, 29, 149, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(202, 138, 4, 0.14); color: var(--color-accent);
  margin-bottom: 1rem;
}
.card h3 { color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.98rem; }

/* === Testimonial === */
.section-testimonial { background: var(--color-neutral-light); }
.testimonial {
  margin: 0; padding: 2rem 0;
  text-align: center;
  position: relative;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.4vw + 1rem, 1.75rem);
  line-height: 1.4;
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal; font-weight: 500;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn-accent { background: var(--color-accent); color: #fff; }

/* === Contact band === */
.contact-band { background: #fff; text-align: center; }
.contact-band h2 { color: var(--color-neutral-dark); }
.contact-band p { color: var(--color-muted); }

/* === FAQ === */
.section-faq details {
  border-top: 1px solid rgba(76, 29, 149, 0.12);
  padding: 1rem 0;
}
.section-faq details:last-of-type { border-bottom: 1px solid rgba(76, 29, 149, 0.12); }
.section-faq summary {
  font-family: var(--font-heading);
  font-size: 1.1rem; color: var(--color-neutral-dark);
  cursor: pointer; list-style: none;
  padding-right: 2rem; position: relative;
  font-weight: 600;
}
.section-faq summary::-webkit-details-marker { display: none; }
.section-faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem;
  color: var(--color-accent); font-family: var(--font-body); line-height: 1;
}
.section-faq details[open] summary::after { content: "–"; }
.section-faq details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Form === */
.section-form { background: #fff; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; color: var(--color-neutral-dark); font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(76, 29, 149, 0.2);
  border-radius: 8px;
  background: var(--color-neutral-light);
  color: var(--color-ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-accent); outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; color: var(--color-muted); line-height: 1.4;
}
.form-consent input { margin-top: 0.2rem; }

/* === 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; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.6; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.legal-links li { list-style: none; }
.footer-tagline { color: rgba(255,255,255,0.75); font-size: 0.95rem; max-width: 32ch; }
.footer-logo img { filter: brightness(0) invert(1); height: 60px; }
.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
}

/* === 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: 12px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 560px;
}
@media (min-width: 640px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font: inherit; padding: 0.55rem 1rem;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--color-neutral-light);
  cursor: pointer; font-weight: 500;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #a86f00; border-color: #a86f00; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: 0.4rem; background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
