:root {
  --color-primary: #4F46E5;
  --color-secondary: #6366F1;
  --color-accent: #F97316;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 20px 50px -30px rgba(49,46,129,0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-neutral-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
ul { padding: 0; margin: 0; list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* === Logo === */
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo--footer img { height: 64px; }

/* === Layout with sidebar === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(49,46,129,0.12);
  padding: 1rem 1.25rem;
}
.sidebar__top { display: flex; align-items: center; }
.sidebar__nav { margin-top: 0.5rem; }
.sidebar__nav ul { display: none; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.sidebar__nav ul.is-open { display: flex; }
.sidebar__nav a {
  display: block;
  padding: 0.5rem 0.25rem;
  color: var(--color-neutral-dark);
  font-weight: 500;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
}
.sidebar__nav a[aria-current="page"] { border-left-color: var(--color-accent); color: var(--color-primary); }
.sidebar__nav a:hover { color: var(--color-primary); text-decoration: none; }
.nav-toggle {
  background: transparent; border: 1px solid rgba(49,46,129,0.2);
  color: var(--color-neutral-dark); border-radius: 8px;
  padding: 0.4rem 0.6rem; cursor: pointer;
}
.sidebar__foot { display: none; font-size: 0.85rem; color: rgba(49,46,129,0.7); margin: 0; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
  .sidebar {
    position: sticky; top: 0; height: 100vh;
    border-bottom: none; border-right: 1px solid rgba(49,46,129,0.1);
    display: flex; flex-direction: column; padding: 2rem 1.5rem;
  }
  .sidebar__top { margin-bottom: 2rem; }
  .nav-toggle { display: none; }
  .sidebar__nav ul { display: flex !important; margin-top: 0; }
  .sidebar__foot { display: block; margin-top: auto; }
}

.main { min-width: 0; }

/* === Hero === */
.hero { padding: 3rem 1.25rem 2rem; max-width: 1000px; margin: 0 auto; }
.hero__title { max-width: 22ch; }
.hero__sub { font-size: 1.125rem; color: var(--color-secondary); max-width: 55ch; margin-bottom: 1.5rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 600;
  color: var(--color-accent); margin: 0 0 1rem;
  font-family: var(--font-body);
}
.hero__cta { margin-bottom: 2rem; }
.hero__figure {
  margin: 2rem 0 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 768px) {
  .hero { padding: 4.5rem 2.5rem 3rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.85rem 1.5rem;
  font-weight: 600; font-family: var(--font-body);
  border-radius: 8px; border: none;
  cursor: pointer; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(49,46,129,0.4); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; }

/* === Sections === */
.section {
  padding: 3rem 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.section--narrow { max-width: 720px; }
.section__sub {
  font-size: 1.05rem; color: var(--color-secondary);
  margin: -0.25rem 0 1.5rem;
}
@media (min-width: 768px) {
  .section { padding: 4rem 2.5rem; }
}

/* === Cards === */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.cards--two { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards--two { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff;
  border: 1px solid rgba(49,46,129,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(79,70,229,0.25); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: rgba(49,46,129,0.85); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--color-neutral-light); color: var(--color-primary);
  margin-bottom: 0.85rem;
}
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.card-link h3 { color: var(--color-primary); }

/* === Quote === */
.section--quote { background: var(--color-neutral-light); max-width: none; margin: 0; }
.quote {
  max-width: 720px; margin: 0 auto; padding: 0 1.25rem;
  text-align: center; font-family: var(--font-heading);
}
.quote p {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5; font-style: italic;
  color: var(--color-neutral-dark);
}
.quote cite {
  display: block; margin-top: 1rem;
  font-style: normal; font-family: var(--font-body);
  font-size: 0.95rem; color: var(--color-secondary);
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; text-align: center;
  padding: 3rem 1.5rem;
}
.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 { margin-top: 1.5rem; }
.faq details {
  border: 1px solid rgba(49,46,129,0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 600;
  color: var(--color-neutral-dark);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--color-accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.75rem 0 0; color: rgba(49,46,129,0.85); }

/* === Contact === */
.contact-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.hours { border-collapse: collapse; width: 100%; margin-top: 0.5rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px dashed rgba(49,46,129,0.15); font-weight: 400; }
.hours th { color: var(--color-secondary); font-weight: 500; }

/* === Form === */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; font-weight: 500; font-size: 0.95rem; gap: 0.35rem; }
.form input, .form textarea {
  font: inherit; padding: 0.75rem 0.85rem;
  border: 1px solid rgba(49,46,129,0.2); border-radius: 8px;
  background: #fff; color: var(--color-neutral-dark);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: 0.6rem !important; font-size: 0.9rem; font-weight: 400; }
.form-consent input { margin-top: 0.2rem; }
.form-consent span { flex: 1; }

/* === Article === */
.article {
  max-width: 65ch; margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
.article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; margin-bottom: 1rem;
}
.article__lede {
  font-size: 1.2rem; color: var(--color-secondary);
  margin-bottom: 2rem;
}
.article__hero {
  margin: 2rem 0; border-radius: var(--radius);
  overflow: hidden;
}
.article__hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article h2 {
  margin-top: 2.5rem; margin-bottom: 1rem;
  font-size: 1.65rem;
}
.article p { font-size: 1.075rem; line-height: 1.75; margin-block: 1.25rem; }
.article__cta {
  background: var(--color-neutral-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}
.article__cta h2 { margin-top: 0; }
.back-link { margin-top: 2rem; font-weight: 500; }

/* === Footer === */
.footer {
  background: var(--color-neutral-dark); color: rgba(238,242,255,0.9);
  padding: 3rem 1.5rem 1.5rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer { grid-template-columns: 1.2fr 1fr 1.3fr; padding: 4rem 3rem 1.5rem; }
}
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.footer a { color: rgba(238,242,255,0.9); }
.footer a:hover { color: var(--color-accent); }
.footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.footer__legal { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__copy {
  grid-column: 1 / -1;
  margin: 2rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(238,242,255,0.15);
  font-size: 0.85rem; color: rgba(238,242,255,0.7);
}
.footer .logo--footer img { filter: brightness(0) invert(1); }

/* === 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);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.5);
  max-width: 640px;
}
@media (min-width: 768px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font: inherit; padding: 0.55rem 1rem;
  border-radius: 6px; border: 1px solid rgba(238,242,255,0.3);
  background: transparent; color: var(--color-neutral-light);
  cursor: pointer; font-weight: 500; font-size: 0.9rem;
}
.cookie-banner button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner button:hover { background: rgba(238,242,255,0.1); }
.cookie-banner button[data-cookie-accept]:hover { background: var(--color-accent); opacity: 0.9; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { margin-top: 0.5rem; align-self: flex-start; }
