:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --max: 1120px;
  --radius: 8px;
}

/* === 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: #2b1a4d;
  background: var(--color-neutral-light);
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-neutral-dark); }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-top: 0; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); font-weight: 700; color: var(--color-neutral-dark); }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* === Layout === */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(76, 29, 149, 0.1);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-neutral-dark);
}
.primary-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-neutral-light);
  padding: 1.25rem;
  border-bottom: 1px solid rgba(76, 29, 149, 0.1);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-neutral-dark);
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 820px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    gap: 2rem;
    border: 0;
    background: transparent;
  }
}

/* === Hero (stacked) === */
.hero-stacked { padding-block: 3rem 2.5rem; }
.hero-stacked h1 { max-width: 22ch; }
.hero-figure {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(76, 29, 149, 0.35);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-sub {
  font-size: 1.2rem;
  color: #4c3a75;
  max-width: 62ch;
}
.hero-cta { margin-top: 1.75rem; }

@media (min-width: 820px) {
  .hero-stacked { padding-block: 5rem 4rem; }
  .hero-figure { margin-block: 3rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 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: #0b3320;
}
.btn-accent:hover { background: #17a34a; color: #fff; }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-alt { background: #fff; border-block: 1px solid rgba(76, 29, 149, 0.08); }
.section-narrow .container { max-width: 780px; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head p { color: #5a4680; max-width: 60ch; margin-inline: auto; }

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

/* === Card grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .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: 0 12px 30px -24px rgba(76, 29, 149, 0.35);
}
.card h3 { margin-top: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { color: var(--color-primary); }

a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(76, 29, 149, 0.35);
}
a.card-link h3 { color: var(--color-neutral-dark); }

/* === Testimonial === */
.testimonial-section { background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.12)); }
.testimonial {
  text-align: center;
  margin: 0;
  padding: 2rem 0;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-neutral-dark);
  font-style: italic;
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #5a4680;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding-block: 3.5rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ece5ff; max-width: 60ch; margin-inline: auto; }
.cta-band .btn-accent { margin-top: 0.75rem; }

/* === Contact page === */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid address { font-style: normal; line-height: 1.8; }
.hours { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid rgba(76, 29, 149, 0.08); }
.hours th { font-weight: 400; color: #5a4680; }

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

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.article-detail h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-sub {
  font-size: 1.2rem;
  color: #4c3a75;
  margin-bottom: 1.5rem;
}
.article-hero {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-detail h2 { margin-top: 2.25rem; }
.article-detail p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-block: 1.15rem;
}
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(76, 29, 149, 0.12); }
.back-link { text-decoration: none; font-weight: 700; color: var(--color-primary); }
.back-link:hover { color: var(--color-neutral-dark); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: #e9def9;
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.site-footer a { color: #d4c3f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-tagline { color: #cdb9f0; font-style: italic; margin-top: 0.75rem; }
.footer-legal { margin-top: 1rem; font-size: 0.9rem; }
.logo-footer img { height: 64px; filter: brightness(0) invert(1); }
.site-footer address { font-style: normal; line-height: 1.7; color: #d4c3f5; }
.copyright {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #b9a5e0;
}

/* === 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 1.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 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.6rem;
}
.cookie-banner button {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--color-neutral-light);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-banner button[data-cookie-accept] {
  background: var(--color-accent);
  color: #0b3320;
  border-color: var(--color-accent);
}
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs [data-cookie-save] {
  align-self: flex-start;
  margin-top: 0.5rem;
}
