/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1B1238;
  --color-muted: #5B4B8A;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(28, 18, 56, 0.06);
  --shadow-md: 0 12px 40px -16px rgba(76, 29, 149, 0.28);
  --shadow-lg: 0 30px 60px -28px rgba(76, 29, 149, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-neutral-dark);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section--alt { background: linear-gradient(180deg, #fff 0%, var(--color-neutral-light) 100%); }
.section--dark {
  background: linear-gradient(135deg, var(--color-neutral-dark) 0%, var(--color-primary) 100%);
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section__head p { color: var(--color-muted); font-size: 1.05rem; }
.section--dark .section__head p { color: rgba(255,255,255,0.85); }

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

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.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: 1rem; gap: 1rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }

.nav-toggle {
  background: transparent; border: 0; padding: 0.5rem;
  color: var(--color-neutral-dark);
}
.primary-nav {
  display: none;
  flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  padding: 0.6rem 0;
  text-decoration: none;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; flex-direction: row;
    gap: 2rem; 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 0.25s var(--ease);
  }
  .primary-nav a:hover { text-decoration: none; }
  .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* === Hero (centered) === */
.hero {
  position: relative;
  padding-block: 4rem 3rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(167, 139, 250, 0.25), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--color-neutral-light) 100%);
}
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } }
.hero--compact { padding-block: 3rem 2rem; }
.hero__glow {
  position: absolute; inset: -20% 0 auto 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.12), transparent 60%);
  pointer-events: none;
}
.hero h1 { max-width: 24ch; margin-inline: auto; }
.hero__sub {
  max-width: 56ch; margin: 1rem auto 2rem;
  font-size: 1.125rem; color: var(--color-muted);
}
.hero__cta {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.hero__media {
  margin: 3rem auto 0; max-width: 1040px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(124, 58, 237, 0.7); text-decoration: none; }
.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); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* === Grid + Cards === */
.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: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.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); margin: 0; }

/* === Quote === */
.quote {
  max-width: 820px; margin: 0 auto;
  text-align: center;
  font-family: var(--font-heading);
  position: relative;
}
.quote p {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--color-neutral-dark);
  font-weight: 500;
}
.quote cite {
  display: block; margin-top: 1.5rem;
  font-style: normal; font-size: 0.95rem;
  color: var(--color-muted); font-family: var(--font-body);
}

/* === CTA Band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-neutral-dark) 100%);
  color: #fff;
  padding-block: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.25), transparent 50%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-band .btn--primary {
  background: #fff; color: var(--color-neutral-dark);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.3);
}
.cta-band .btn--primary:hover { background: var(--color-neutral-light); }

/* === Intro grid === */
.intro-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.intro-grid__media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5; object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* === Stats === */
.stats { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: center; padding: 1rem; }
.stat__num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--color-accent);
  margin: 0 0 0.5rem; letter-spacing: -0.03em;
}
.stat__label { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }

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

/* === Contact === */
.contact-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours th, .hours td { padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.hours th { font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); }
.hours td { color: var(--color-muted); }

.contact-form { padding: 2rem; }
.contact-form h2 { font-size: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-family: var(--font-heading);
  font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem;
  color: var(--color-neutral-dark);
}
.field input, .field textarea {
  width: 100%; font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.field textarea { resize: vertical; min-height: 120px; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3.5rem 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.site-footer__title {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: #fff; margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav li { padding: 0.3rem 0; }
.site-footer__tag { margin-top: 1rem; color: rgba(255,255,255,0.7); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__legal { margin-top: 1rem; }
.site-footer__legal li { padding: 0.25rem 0; font-size: 0.9rem; }
.site-footer__bottom { padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); text-align: center; }
.logo--footer img { height: 64px; }

/* === 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: var(--shadow-lg);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .btn--ghost { color: var(--color-neutral-light); border-color: rgba(255,255,255,0.3); }
.cookie-banner .btn--ghost:hover { background: rgba(255,255,255,0.1); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }

/* === Reveal === */
.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; }
}
