:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --shadow-sm: 0 2px 12px rgba(76, 29, 149, 0.08);
  --shadow-md: 0 12px 32px rgba(76, 29, 149, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.28);
}

/* === 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-neutral-dark);
  background: var(--color-neutral-light);
  -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, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section-alt { background: linear-gradient(180deg, rgba(167,139,250,0.08), rgba(124,58,237,0.04)); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-header p { color: rgba(76,29,149,0.72); }

/* === 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, background .3s;
}
.site-header.scrolled { background: rgba(250,245,255,0.92); box-shadow: 0 6px 24px rgba(76,29,149,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent; border: 0; color: var(--color-neutral-dark);
  padding: .5rem; cursor: pointer; border-radius: 10px;
}
.nav-toggle:hover { background: rgba(124,58,237,0.08); }
.primary-nav { display: none; }
.primary-nav a {
  position: relative;
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: .5rem 0;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .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); }
.primary-nav.is-open {
  display: flex; flex-direction: column; gap: .25rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(76,29,149,0.08);
  box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; gap: 2rem; }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(124,58,237,0.6);
}
.btn-primary:hover { box-shadow: 0 16px 32px -8px rgba(124,58,237,0.7); }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(249,115,22,0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border: 1.5px solid rgba(76,29,149,0.2);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* === Hero Card === */
.hero-card-section {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero-card-section::before {
  content: '';
  position: absolute; inset: -20% -10% 0 -10%;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(249,115,22,0.14), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(167,139,250,0.28), transparent 55%),
    linear-gradient(180deg, rgba(124,58,237,0.06), transparent 70%);
  z-index: -1;
}
.hero-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem 1.75rem;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(167,139,250,0.25);
  text-align: left;
}
.hero-card .eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: .78rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: .75rem;
}
.hero-card h1 { margin-bottom: 1.25rem; }
.hero-card .lede {
  font-size: 1.15rem;
  color: rgba(76,29,149,0.78);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-card__figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(167,139,250,0.15);
}
.hero-card__figure img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .hero-card { padding: 3.5rem 3rem; }
  .hero-card-section { padding: 4.5rem 0 6rem; }
}

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

/* === Cards === */
.card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167,139,250,0.22);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .5rem; }
.card p { color: rgba(76,29,149,0.78); font-size: .97rem; margin: 0; }
.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.14), rgba(249,115,22,0.14));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial {
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(167,139,250,0.22);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: '\201E';
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  position: absolute;
  top: -.25rem; left: 1rem;
}
.testimonial p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-neutral-dark);
  max-width: 60ch;
  margin: 0 auto 1rem;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

/* === CTA Band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(249,115,22,0.35), transparent 55%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin: 0 auto 1.5rem; }

/* === FAQ === */
.faq details {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  border: 1px solid rgba(167,139,250,0.22);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  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: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--color-primary); transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; color: rgba(76,29,149,0.78); }

/* === Contact form === */
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(167,139,250,0.22); }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-family: var(--font-heading); font-weight: 500; font-size: .95rem; margin-bottom: .35rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid rgba(76,29,149,0.15);
  border-radius: 12px;
  font: inherit;
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  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 4px rgba(124,58,237,0.15);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: rgba(76,29,149,0.78);
  margin: 1rem 0 1.25rem;
}
.form-consent input { margin-top: .25rem; }

/* === Map === */
.map-placeholder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(167,139,250,0.18);
  box-shadow: var(--shadow-sm);
}
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  color: var(--color-accent);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .4rem; }
.footer-logo img { height: 64px; margin-bottom: .5rem; filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.legal-links li { margin: 0; }
.copy { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: .875rem; color: rgba(255,255,255,0.6); }

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

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

/* === 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: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  max-width: 520px;
  margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  border: 0; padding: .55rem 1rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: .88rem; cursor: pointer;
  background: rgba(255,255,255,0.15); color: #fff;
  transition: background .2s;
}
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.25); }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #ea6a10; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs [data-cookie-save] {
  margin-top: .5rem; align-self: start;
  background: var(--color-accent); color: #fff;
  border: 0; padding: .5rem 1rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; cursor: pointer;
}
