:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #F5F3FF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --border: rgba(49, 46, 129, 0.12);
}

/* === 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: #ffffff;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.01em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

/* === Layout / Sidebar === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-light);
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; }
.sidebar-nav { margin-top: 1rem; }
.nav-toggle {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--color-neutral-dark);
  padding: .5rem .9rem;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.sidebar-nav ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: .25rem;
}
.sidebar-nav ul.is-open { display: flex; }
.sidebar-nav a {
  display: block;
  padding: .55rem .25rem;
  color: var(--color-neutral-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav a[aria-current="page"] { color: var(--color-primary); }
.sidebar-foot { display: none; font-size: .85rem; color: var(--color-secondary); margin-top: 1.5rem; }
.main { padding: 2rem 1.25rem 0; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
  .sidebar {
    position: sticky; top: 0; align-self: start;
    height: 100vh;
    display: flex; flex-direction: column;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .sidebar-nav ul { display: flex !important; margin-top: 2rem; }
  .sidebar-nav a { border-bottom: none; padding: .4rem 0; }
  .sidebar-nav a:hover { color: var(--color-primary); text-decoration: none; }
  .sidebar-foot { display: block; margin-top: auto; }
  .main { padding: 3rem 3rem 0; max-width: 1000px; }
}

/* === Hero === */
.hero { padding: 1rem 0 3rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: .78rem;
  color: var(--color-secondary);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-neutral-dark);
  opacity: .85;
  max-width: 55ch;
  margin: 0 0 1.5rem;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 2rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #0e9c6e; }

/* === Sections === */
.section { padding: 3rem 0; border-top: 1px solid var(--border); }
.section.narrow { max-width: 65ch; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--color-secondary); }

/* === Grids / Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--color-neutral-light);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.card svg { color: var(--color-primary); margin-bottom: .75rem; }
.card h3 { font-family: var(--font-heading); }
.card p { margin: 0; font-size: .97rem; }
a.card-link {
  color: inherit;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -18px rgba(49,46,129,0.25);
}

/* === Testimonial === */
.testimonial blockquote {
  margin: 0 auto;
  max-width: 60ch;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-neutral-dark);
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-style: normal;
  color: var(--color-secondary);
}

/* === CTA Band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .cta-meta { font-size: .9rem; opacity: .85; margin-bottom: 1.25rem; }
.cta-band .btn-accent { margin-top: .5rem; }

/* === Article-detail === */
.article { max-width: 65ch; margin-inline: auto; padding: 1rem 0 3rem; }
.article header { margin-bottom: 1.5rem; }
.article h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.article-sub { font-size: 1.2rem; color: var(--color-secondary); }
.article-hero { aspect-ratio: 16/9; object-fit: cover; margin: 2rem 0; border-radius: 8px; width: 100%; }
.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 var(--border); }
.back-link { font-weight: 500; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--color-secondary);
  flex-wrap: wrap;
}
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { font-family: var(--font-heading); font-size: 1.35rem; margin: 0 0 .3rem; color: var(--color-neutral-dark); }
.site-footer nav ul, .site-footer .legal { list-style: none; padding: 0; margin: 0; }
.site-footer nav a, .site-footer .legal a { color: var(--color-neutral-dark); }
.site-footer nav li, .site-footer .legal li { padding: .2rem 0; }
.site-footer address { font-style: normal; margin-bottom: 1rem; font-size: .93rem; }
.legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.copyright {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .85rem;
  color: var(--color-secondary);
  text-align: center;
}

/* === 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: 12px;
  max-width: 640px;
  margin-inline: auto;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
  font-size: .93rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; color: var(--color-neutral-light); }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner button {
  font: inherit;
  padding: .55rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(245,243,255,0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .5rem; background: var(--color-primary); border-color: var(--color-primary); }
