/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #4B4770;
  --color-line: rgba(30, 27, 75, 0.12);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 16px -8px rgba(30, 27, 75, 0.2);
  --shadow-md: 0 20px 40px -24px rgba(30, 27, 75, 0.35);
}

/* === Reset === */
*, *::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);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-neutral-dark);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.logo-footer img { height: 64px; }
.nav-toggle {
  background: transparent; border: 1px solid var(--color-line);
  border-radius: 8px; padding: 0.5rem; color: var(--color-neutral-dark);
  cursor: pointer; display: inline-flex;
}
.primary-nav { display: none; }
.primary-nav.is-open { display: block; width: 100%; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 1rem 0 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.primary-nav a {
  color: var(--color-neutral-dark); text-decoration: none;
  font-weight: 500; padding: 0.4rem 0.2rem;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 860px) {
  .header-inner { flex-wrap: nowrap; }
  .logo img { height: 96px; }
  .logo-footer img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block !important; }
  .primary-nav ul { flex-direction: row; padding: 0; gap: 1.75rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.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: var(--color-neutral-dark); }
.btn-accent:hover { background: #05a3bd; color: var(--color-neutral-dark); }

/* === Hero (centered) === */
.hero {
  padding-block: 3.5rem 2.5rem;
  text-align: center;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 28ch; }
.hero-sub {
  max-width: 52ch; margin-inline: auto;
  color: var(--color-muted); font-size: 1.15rem;
}
.hero-cta { margin-top: 0.4rem; }
.hero-figure {
  margin: 2.5rem 0 0; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 768px) { .hero { padding-block: 5.5rem 3.5rem; } }
@media (min-width: 1024px) { .hero { padding-block: 6.5rem 4rem; } }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-intro { text-align: center; }
.section-intro.alt { background: rgba(167, 139, 250, 0.08); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.lede { color: var(--color-muted); font-size: 1.1rem; max-width: 58ch; margin: 0 auto 1.5rem; }

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

/* === Grids === */
.grid { display: grid; gap: 1.5rem; 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;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card h3 { margin-top: 0.5rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(6, 182, 212, 0.12); color: var(--color-primary);
}
a.card-link {
  text-decoration: none; color: inherit; display: block;
}
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.35);
}
a.card-link h3 { color: var(--color-neutral-dark); }

/* === Testimonial === */
.section-testimonial { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.section-testimonial h2 { color: var(--color-neutral-light); }
.quote {
  margin: 0; padding: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  text-align: center;
  color: var(--color-neutral-light);
}
.quote p { margin-bottom: 1.25rem; }
.quote cite {
  font-family: var(--font-body); font-style: normal;
  font-size: 0.95rem; color: var(--color-secondary);
  letter-spacing: 0.02em;
}

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

/* === Contact band (about page) === */
.section-contact-band { background: rgba(6, 182, 212, 0.08); text-align: center; }
.contact-band-body { color: var(--color-muted); max-width: 68ch; margin-inline: auto; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 600; font-size: 0.95rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font: inherit; color: inherit;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.92rem; color: var(--color-muted);
  line-height: 1.45;
}
.form-consent input { margin-top: 0.25rem; flex-shrink: 0; }
.contact-form .btn { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--color-secondary); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2.25rem;
  grid-template-columns: 1fr;
}
.footer-col h2.footer-heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
  margin-bottom: 0.9rem;
}
.footer-tagline { color: rgba(250, 245, 255, 0.75); margin-top: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; color: rgba(250, 245, 255, 0.85); line-height: 1.7; }
.footer-legal { margin-top: 1rem; }
.copyright {
  text-align: center;
  color: rgba(250, 245, 255, 0.55);
  font-size: 0.85rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 245, 255, 0.1);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; }
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  z-index: 9999;
  max-width: 520px;
  margin-left: auto;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  font-size: 0.94rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; }
.cookie-banner__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.cookie-banner__actions button {
  font: inherit; cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(250,245,255,0.25);
  background: transparent; color: var(--color-neutral-light);
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent); color: var(--color-neutral-dark);
  border-color: var(--color-accent);
}
.cookie-banner__prefs {
  display: grid; gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(250,245,255,0.15);
}
.cookie-banner__prefs label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem;
}
.cookie-banner__prefs button {
  justify-self: start;
  margin-top: 0.35rem;
  font: inherit; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--color-primary); color: #fff; border: none;
}
