:root {
  --color-primary: #18181B;
  --color-secondary: #3F3F46;
  --color-accent: #2563EB;
  --color-neutral-dark: #09090B;
  --color-neutral-light: #FAFAFA;
  --color-border: rgba(24, 24, 27, 0.12);
  --color-muted: #71717A;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --sidebar-w: 240px;
  --content-max: 780px;
}

/* === 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: var(--color-primary);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
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; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }

/* === Layout: sidebar-nav === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sidebar__header { display: flex; align-items: center; justify-content: space-between; }
.sidebar__footer { display: none; }
.logo img { height: 72px; width: auto; display: block; }
.sidebar__nav { margin-top: .5rem; }
.nav-toggle {
  display: inline-block;
  background: transparent;
  color: var(--color-neutral-light);
  border: 1px solid rgba(250,250,250,0.25);
  padding: .5rem .9rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: none;
  flex-direction: column;
  gap: .25rem;
}
.nav-list.is-open { display: flex; }
.nav-list a {
  color: var(--color-neutral-light);
  display: block;
  padding: .5rem .25rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.nav-list a[aria-current="page"] { color: #93c5fd; }
.nav-list a:hover { text-decoration: none; color: #93c5fd; }

.main {
  padding: 2rem 1.25rem 3rem;
  max-width: 100%;
}

@media (min-width: 900px) {
  .layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .sidebar__footer {
    display: block;
    margin-top: auto;
    font-size: .85rem;
    color: rgba(250,250,250,0.55);
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .nav-list { display: flex !important; }
  .main {
    padding: 3.5rem 3rem 4rem;
    max-width: none;
  }
}

/* === Common === */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 .75rem;
}
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.btn--primary:hover { background: var(--color-secondary); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #1d4ed8; }

/* === Hero === */
.hero {
  max-width: var(--content-max);
  margin: 0 auto 3rem;
  padding-block: 1rem 2rem;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 55ch;
  margin: 0 0 1.5rem;
}
.hero__cta { margin-bottom: 2rem; }
.hero__figure {
  margin: 2rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.hero__figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* === Sections === */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-block: 2.5rem;
}
.section--narrow { max-width: 68ch; }
.section__head { margin-bottom: 2rem; }
.section__sub { color: var(--color-secondary); margin: 0; }

/* === Grid === */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.card h3 { margin: 0 0 .5rem; }
.card p { color: var(--color-secondary); margin: 0; font-size: .98rem; }
.card--link { padding: 0; }
.card-link {
  display: block;
  padding: 1.5rem;
  color: inherit;
  border-radius: 10px;
}
.card-link:hover { text-decoration: none; }
.card--link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(0,0,0,0.25); }
.card-link h3 { color: var(--color-neutral-dark); }
.card-link p { color: var(--color-secondary); }

/* === Testimonial === */
.testimonial { max-width: 720px; }
.testimonial blockquote {
  margin: 0;
  padding: 2rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: #fff;
  border-radius: 6px;
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-neutral-dark);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  color: var(--color-muted);
  font-size: .95rem;
}
.testimonial--with-image { display: grid; gap: 1.5rem; align-items: center; }
.testimonial__portrait img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
@media (min-width: 700px) {
  .testimonial--with-image { grid-template-columns: 120px 1fr; }
}

/* === CTA band === */
.cta-band {
  max-width: var(--content-max);
  margin: 3rem auto;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  border-radius: 12px;
  padding: 2.5rem 1.75rem;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(250,250,250,0.85); max-width: 55ch; margin-left: auto; margin-right: auto; }
.cta-band--inline { margin: 2rem 0; }

/* === Article === */
.article {
  max-width: 65ch;
  margin: 0 auto;
  padding-inline: 0;
}
.article__header { margin-bottom: 1.5rem; }
.article__sub { font-size: 1.2rem; color: var(--color-secondary); margin: 0; }
.article__hero {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.article__hero img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article__back { margin-top: 3rem; }
.back-link {
  display: inline-block;
  font-weight: 600;
  color: var(--color-secondary);
}
.back-link:hover { color: var(--color-accent); }

/* === Contact === */
.contact-info { max-width: 68ch; }
.contact-form-section { max-width: 640px; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 600; font-size: .95rem; color: var(--color-secondary); }
.form-row input, .form-row textarea {
  font: inherit;
  padding: .7rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: transparent;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  color: var(--color-secondary);
  line-height: 1.4;
}
.form-consent input { margin-top: .25rem; }
.contact-form button[type="submit"] { align-self: flex-start; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
  padding: 2.5rem 0 1.5rem;
  font-size: .95rem;
  color: var(--color-secondary);
}
.site-footer__cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
.site-footer__brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--color-neutral-dark); margin: 0 0 .35rem; }
.site-footer nav ul, .legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.site-footer a { color: var(--color-secondary); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; margin-bottom: .75rem; }
.legal-links { margin-top: .75rem; font-size: .88rem; }
.site-footer__copy { margin-top: 2rem; font-size: .85rem; color: var(--color-muted); 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);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; color: rgba(250,250,250,0.9); }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner__actions button {
  font: inherit;
  padding: .55rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(250,250,250,0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner__actions [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; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] {
  align-self: flex-start;
  margin-top: .5rem;
  padding: .5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
@media (min-width: 900px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; }
}
