:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1E1B34;
  --color-muted: #6B6789;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 20px rgba(28, 15, 71, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.25);
  --shadow-lg: 0 30px 80px -30px rgba(76, 29, 149, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 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-ink);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -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; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em;
  font-weight: 700;
}
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; }

/* === Layout === */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  transition: box-shadow .3s var(--ease-hover), background .3s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.site-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; } }
.logo, .logo:hover { text-decoration: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(76,29,149,0.15);
  color: var(--color-neutral-dark); padding: 0.5rem;
  border-radius: var(--radius-sm); cursor: pointer;
}
.primary-nav {
  display: none;
  flex-direction: column; gap: 0.25rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(76,29,149,0.1);
  padding: 1rem 1.25rem 1.5rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark); font-weight: 500;
  padding: 0.5rem 0; position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; flex-direction: row; align-items: center;
    gap: 2rem; position: static; padding: 0; background: transparent; border: 0;
  }
  .primary-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--color-primary); transform: scaleX(0);
    transform-origin: left; transition: transform .25s var(--ease-hover);
  }
  .primary-nav a:hover { text-decoration: none; }
  .primary-nav a:hover::after { transform: scaleX(1); }
  .primary-nav a.btn::after { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.95rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s var(--ease-hover);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.5);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(124, 58, 237, 0.6); color: #fff; }
.btn--accent {
  background: var(--color-accent); color: #052e16;
  box-shadow: 0 8px 24px -8px rgba(34, 197, 94, 0.5);
}
.btn--accent:hover { color: #052e16; }
.btn--ghost {
  background: transparent; color: var(--color-neutral-dark);
  border-color: rgba(76,29,149,0.25);
}
.btn--ghost:hover { background: rgba(124,58,237,0.08); color: var(--color-neutral-dark); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.875rem; }

/* === Eyebrow === */
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; }

/* === Hero (hero-card archetype) === */
.hero.hero-card { position: relative; padding-block: 3rem 4rem; overflow: hidden; }
@media (min-width: 768px) { .hero.hero-card { padding-block: 4.5rem 6rem; } }
.hero-card__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34,197,94,0.10), transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(167,139,250,0.28), transparent 60%),
    linear-gradient(180deg, #F3EBFF 0%, var(--color-neutral-light) 100%);
  z-index: -1;
}
.hero-card__inner {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(124,58,237,0.08);
}
@media (min-width: 768px) {
  .hero-card__inner { padding: 3.75rem 4rem; }
}
.hero-card__inner h1 { margin-bottom: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 2rem; }
.hero-card__figure {
  margin: 2rem 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-card__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* === Intro === */
.intro h2 { margin-bottom: 1.25rem; }
.intro p { font-size: 1.075rem; color: var(--color-ink); }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(76,29,149,0.06);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover { text-decoration: none; }
a.card-link h3 { color: var(--color-primary); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,197,94,0.12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.98rem; margin: 0; }

/* === Testimonial === */
.testimonial blockquote {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(76,29,149,0.06);
}
.testimonial .quote-mark {
  color: var(--color-secondary);
  opacity: 0.4;
  margin: 0 auto 0.5rem;
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--color-neutral-dark);
  font-weight: 500;
}
.testimonial cite {
  display: block; margin-top: 1.25rem;
  font-style: normal; font-weight: 600;
  color: var(--color-muted); font-size: 0.95rem;
}

/* === CTA band === */
.cta-band { padding-block: 2.5rem; }
@media (min-width: 768px) { .cta-band { padding-block: 4rem; } }
.cta-band__inner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: grid; gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .cta-band__inner { grid-template-columns: 1fr auto; padding: 3rem 3.5rem; gap: 2rem; }
}
.cta-band__inner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band__inner p { color: rgba(255,255,255,0.85); margin: 0; }

/* === Stats === */
.stats__grid { text-align: center; }
.stat {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(76,29,149,0.06);
  box-shadow: var(--shadow-sm);
}
.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat p { color: var(--color-muted); margin: 0; font-size: 0.95rem; }

/* === Team === */
.team-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(76,29,149,0.06);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card__photo {
  aspect-ratio: 1/1; overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background: rgba(124,58,237,0.06);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 0.5rem; }
.team-card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* === Contact === */
.contact-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid rgba(76,29,149,0.06);
  box-shadow: var(--shadow-sm);
}
.contact-card address { font-style: normal; line-height: 1.85; color: var(--color-ink); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid rgba(76,29,149,0.08); font-weight: 400; }
.hours th { color: var(--color-neutral-dark); font-weight: 600; }
.hours td { color: var(--color-muted); }

/* === Contact form === */
.contact-form form { background: #fff; padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(76,29,149,0.06); }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(76,29,149,0.18);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--color-ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

/* === FAQ === */
.faq details {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(76,29,149,0.08);
  box-shadow: var(--shadow-sm);
}
.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: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--color-primary); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 3rem; }
}
.site-footer h4 {
  color: #fff; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer address { font-style: normal; line-height: 1.75; margin-bottom: 1rem; }
.tagline { color: rgba(255,255,255,0.7); font-style: italic; margin-top: 0.5rem; }
.logo--footer img { filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; }
.legal-links li { display: inline-block; margin-right: 1rem; font-size: 0.88rem; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem; padding-top: 1.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  text-align: center;
}

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* === 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);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.5; }
.cookie-banner__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.cookie-banner button {
  font-family: var(--font-heading); font-weight: 600;
  border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.2); background: transparent;
  color: var(--color-neutral-light); cursor: pointer;
  transition: background .2s, transform .2s;
}
.cookie-banner button:hover { background: rgba(255,255,255,0.08); }
.cookie-banner [data-cookie-accept] {
  background: var(--color-accent); color: #052e16; border-color: transparent;
}
.cookie-banner [data-cookie-accept]:hover { background: #16a34a; }
.cookie-banner__prefs {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.cookie-banner__prefs label { font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner__prefs [data-cookie-save] {
  margin-top: 0.5rem; align-self: flex-start;
  background: var(--color-primary); border-color: transparent; color: #fff;
}
