:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 4px 12px -6px rgba(30, 27, 75, 0.15);
  --shadow-md: 0 20px 40px -20px rgba(30, 27, 75, 0.25);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  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; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
button { font-family: inherit; }

/* === Layout — sidebar-nav === */
.layout { min-height: 100vh; }
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar__brand { display: flex; flex-direction: column; gap: .75rem; }
.sidebar__tagline { margin: 0; font-size: .95rem; color: var(--color-secondary); font-style: italic; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; }
.sidebar__nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.sidebar__nav a {
  color: var(--color-neutral-light);
  padding: .65rem .75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border-left: 3px solid transparent;
  transition: background .2s, border-color .2s;
}
.sidebar__nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.sidebar__nav a.is-active { border-left-color: var(--color-accent); background: rgba(6, 182, 212, .1); }
.sidebar__foot { font-size: .8rem; color: var(--color-secondary); }
.sidebar__foot p { margin: 0; }

.nav-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  border: none;
  border-radius: 10px;
  padding: .6rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.main { padding: 2rem 1.25rem 0; }

/* === Hero === */
.hero {
  padding: 2rem 0 3rem;
  max-width: 900px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: .8rem;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 .75rem;
}
.hero__sub {
  font-size: 1.15rem;
  color: #4c4870;
  max-width: 56ch;
  margin: 0 0 1.5rem;
}
.hero__figure { margin: 2rem 0 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: #6b28d9; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--color-accent); color: var(--color-neutral-dark); }
.btn--accent:hover { background: #0891b2; color: #fff; text-decoration: none; transform: translateY(-1px); }

/* === Sections === */
.section { padding: 3rem 0; }
.section--narrow { max-width: 65ch; }
.section__sub { color: #4c4870; font-size: 1.05rem; margin: -.25rem 0 1.5rem; max-width: 60ch; }

/* === Grid === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid rgba(30, 27, 75, .08);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card__icon { color: var(--color-accent); margin-bottom: .25rem; }
a.card-link {
  color: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
  text-decoration: none;
}
a.card-link h3 { color: var(--color-primary); }

/* === Testimonial === */
.testimonial-section { text-align: center; }
.testimonial {
  max-width: 700px;
  margin: 1rem auto 0;
  padding: 2rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-neutral-dark);
  font-style: italic;
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.testimonial cite { display: block; margin-top: 1rem; font-size: .95rem; color: var(--color-primary); font-style: normal; font-family: var(--font-body); font-weight: 600; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 55ch; margin-inline: auto; }
.cta-band__meta { font-size: .95rem; opacity: .8; margin-bottom: 1.5rem; }

/* === Article === */
.article {
  max-width: 65ch;
  margin: 0 auto;
  padding-block: 2rem 3rem;
}
.article__header { margin-bottom: 1.5rem; }
.article__header h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article__lede { font-size: 1.2rem; color: #4c4870; }
.article__figure { margin: 2rem 0; }
.article__figure img { aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.article p { font-size: 1.1rem; line-height: 1.75; margin-block: 1.25rem; }
.article__foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(30,27,75,.1); }
.back-link { font-weight: 600; }

/* === Contact === */
.contact-block__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-info h3 { margin-top: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: .5rem; }
.hours th, .hours td { padding: .5rem 0; text-align: left; border-bottom: 1px solid rgba(30,27,75,.08); }
.hours th { font-weight: 600; }
.contact-form {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,27,75,.08);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid rgba(30,27,75,.15);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: var(--color-neutral-light);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 1.25rem; font-size: .9rem; line-height: 1.4; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(30,27,75,.1);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.footer nav { display: flex; flex-direction: column; gap: .35rem; }
.footer nav a { color: var(--color-neutral-dark); }
.footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); }
.footer__legal { margin-top: 1rem; font-size: .9rem; }
.footer__copy { text-align: center; font-size: .85rem; color: #6b6890; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(30,27,75,.08); }
.logo--footer img { height: 56px; }

/* === 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: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 620px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .85rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--color-neutral-light);
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: var(--color-neutral-dark); border-color: var(--color-accent); }
.cookie-banner [data-cookie-accept]:hover { background: #0891b2; color: #fff; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .5rem; background: var(--color-primary); border-color: var(--color-primary); }

/* === Mobile-first: mobile sidebar collapses === */
@media (max-width: 899px) {
  .layout { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 90;
    overflow-y: auto;
  }
  .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-md); }
  .main { padding-top: 4.5rem; }
}

/* === Desktop (>= 900px) === */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .layout {
    display: grid;
    grid-template-columns: 260px 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .logo img { height: 96px; }
  .logo--footer img { height: 64px; }
  .main { padding: 3rem 3rem 0; max-width: 1100px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-block__grid { grid-template-columns: 1fr 1.2fr; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; }
  .hero { padding: 3rem 0 4rem; }
}

@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.risk-disclaimer { position: relative; z-index: 1000; background: #fdf7e8; border-bottom: 2px solid #c9a227; color: #4a4335; padding: 0.875rem 1.5rem; }
.risk-disclaimer p { max-width: 68rem; margin: 0 auto; font-size: 0.8125rem; line-height: 1.6; text-align: center; }
.risk-disclaimer strong { text-transform: uppercase; letter-spacing: 0.04em; }
.risk-disclaimer__icon { font-size: 1rem; }
