:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(76, 29, 149, 0.08);
  --shadow-md: 0 12px 30px -20px rgba(76, 29, 149, 0.35);
}

/* === Reset & base === */
*, *::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-neutral-dark);
  background: var(--color-neutral-light);
}
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.75rem; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

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

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  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 {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 26px;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-neutral-dark);
  border-radius: 2px;
}
.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding-top: 0.75rem;
}
.site-nav.open { display: flex; }
.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-neutral-dark);
  padding: 0.5rem 0;
}
.site-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    padding-top: 0;
    gap: 1.75rem;
  }
}

/* === Hero (stacked) === */
.hero-stacked { padding-block: 3rem 2rem; }
.hero-inner { max-width: 780px; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero h1 { margin-bottom: 2rem; }
.hero-figure {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hero-sub {
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--color-neutral-dark) 78%, transparent);
  margin-bottom: 1.5rem;
}
.hero-cta { margin-top: 1.5rem; }
@media (min-width: 768px) {
  .hero-stacked { padding-block: 5rem 3rem; }
  .hero h1 { margin-bottom: 2.5rem; }
  .hero-figure { margin-bottom: 2.5rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #ea580c; text-decoration: none; transform: translateY(-1px); }

/* === Sections === */
.section { padding-block: 3rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section-sub {
  color: color-mix(in srgb, var(--color-neutral-dark) 65%, transparent);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.section.intro { background: var(--color-neutral-light); }
.section.intro.alt { background: #fff; }

/* === Grid & cards === */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card .icon {
  color: var(--color-primary);
  margin-bottom: 0.9rem;
  width: 28px;
  height: 28px;
}
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  margin: -1.75rem;
  padding: 1.75rem;
  border-radius: var(--radius);
}
.card-link:hover { text-decoration: none; }
.card:has(.card-link:hover) { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* === Testimonial === */
.testimonial-section { background: #fff; }
.testimonial {
  margin: 0;
  text-align: center;
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--color-neutral-light) 70%, transparent);
  border-radius: var(--radius);
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-neutral-dark);
}
.testimonial cite {
  display: block;
  font-style: normal;
  margin-top: 1rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

/* === 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, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

/* === Contact page === */
.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; }
}
.contact-block { font-style: normal; line-height: 1.7; }
.hours { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours th, .hours td {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  text-align: left;
  font-size: 0.95rem;
}
.hours th { font-family: var(--font-heading); font-weight: 500; }
.hours td { text-align: right; color: color-mix(in srgb, var(--color-neutral-dark) 75%, transparent); }

/* === Form === */
.contact-form .field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(76, 29, 149, 0.2);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-neutral-dark);
}
.contact-form input:focus,
.contact-form 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.9rem;
  margin: 1.25rem 0 1.5rem;
  line-height: 1.5;
}
.form-consent input { margin-top: 0.25rem; }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1.25rem 4rem;
}
.article-detail header .eyebrow { color: var(--color-accent); }
.article-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-sub {
  font-size: 1.2rem;
  color: color-mix(in srgb, var(--color-neutral-dark) 70%, transparent);
  margin-bottom: 1.5rem;
}
.article-hero-figure {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.article-hero-figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-detail h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}
.article-detail p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-block: 1.25rem;
}
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(76,29,149,0.1); }
.back-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.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.7; margin-bottom: 1rem; }
.tagline { color: rgba(255,255,255,0.75); font-style: italic; margin-top: 0.5rem; }
.legal-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.9rem; }
.logo-footer img { height: 64px; filter: brightness(0) invert(1); }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* === 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: var(--radius);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.35);
  max-width: 560px;
  margin-left: 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; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner__actions button {
  font-family: var(--font-heading);
  font-weight: 600;
  border: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}
.cookie-banner__actions [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__actions [data-cookie-reject] { background: rgba(255,255,255,0.15); color: #fff; }
.cookie-banner__actions [data-cookie-settings] { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner__prefs [data-cookie-save] {
  margin-top: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}
