/* === Tokens === */
:root {
  --color-primary: #0369A1;
  --color-secondary: #38BDF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-bg: #FFFFFF;
  --color-text: #0C4A6E;
  --color-muted: #476A82;
  --color-border: rgba(12, 74, 110, 0.12);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(12, 74, 110, 0.06);
  --shadow-md: 0 20px 45px -25px rgba(12, 74, 110, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -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 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout: sidebar-nav === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.sidebar__header .logo { display: inline-block; }
.logo img { height: 72px; width: auto; }
.sidebar__nav { margin-top: 1rem; }
.sidebar__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.sidebar__nav a {
  color: var(--color-neutral-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.sidebar__nav a:hover,
.sidebar__nav a[aria-current="page"] {
  border-bottom-color: var(--color-secondary);
  text-decoration: none;
}
.sidebar__foot { display: none; }

.content { min-width: 0; }

@media (min-width: 900px) {
  .layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .logo img { height: 96px; }
  .sidebar__nav ul { flex-direction: column; gap: 0.4rem; }
  .sidebar__nav a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
  }
  .sidebar__nav a:hover,
  .sidebar__nav a[aria-current="page"] {
    border-left-color: var(--color-secondary);
    color: var(--color-secondary);
  }
  .sidebar__foot {
    display: block;
    font-size: 0.8rem;
    color: rgba(240, 249, 255, 0.6);
  }
  .sidebar__foot p { margin: 0; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-neutral-dark); text-decoration: none; }
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { filter: brightness(0.95); text-decoration: none; }

/* === Hero === */
.hero {
  padding: 2.5rem 1.25rem 3rem;
  max-width: 1100px;
  margin-inline: auto;
}
.hero__text .eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.hero h1 { max-width: 22ch; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero__media {
  margin: 2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

@media (min-width: 900px) {
  .hero {
    padding: 4rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }
  .hero__media { margin: 0; }
  .hero__media img { aspect-ratio: 4/5; }
}

/* === Sections === */
.section {
  padding: 3rem 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
}
.section--narrow { max-width: 760px; }
.section__head { margin-bottom: 2rem; }
.section__head .sub {
  color: var(--color-muted);
  max-width: 60ch;
  margin: 0;
}
@media (min-width: 900px) {
  .section { padding: 4.5rem 2rem; }
}

/* === Grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.card .icon {
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--color-muted); font-size: 0.97rem; }

/* === Split === */
.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.split__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* === Testimonial === */
.testimonial { text-align: center; }
.testimonial blockquote {
  margin: 0 auto;
  max-width: 720px;
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.testimonial p {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-neutral-dark);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial cite {
  font-style: normal;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
  padding: 3.5rem 1.25rem;
  margin-top: 2rem;
}
.cta-band__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(240, 249, 255, 0.9); max-width: 60ch; margin-inline: auto; }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-neutral-dark);
  letter-spacing: 0.02em;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.form-consent input { margin-top: 0.25rem; }

/* === FAQ === */
.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-neutral-dark);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--color-primary);
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq p {
  margin-top: 0.75rem;
  color: var(--color-muted);
}

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240, 249, 255, 0.85);
  padding: 3rem 1.25rem 2rem;
  margin-top: 3rem;
}
.site-footer__cols {
  display: grid;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
.site-footer a { color: var(--color-secondary); }
.site-footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.site-footer nav ul,
.legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.legal-links { margin-top: 0.75rem; }
.site-footer address { font-style: normal; margin-bottom: 0.5rem; }
.site-footer__copy {
  text-align: center;
  margin: 2.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(240, 249, 255, 0.55);
}

/* === 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: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.92rem; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-banner__actions button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 249, 255, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.cookie-banner__prefs {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner__prefs button {
  margin-top: 0.5rem;
  justify-self: start;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-neutral-dark);
  cursor: pointer;
}
