:root {
  --color-primary: #1E40AF;
  --color-secondary: #3B82F6;
  --color-accent: #F59E0B;
  --color-neutral-dark: #1E3A8A;
  --color-neutral-light: #F8FAFC;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --border-soft: rgba(30, 58, 138, 0.12);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
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);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem 0; }

/* === Layout: sidebar nav === */
.layout { display: block; }
.sidebar { display: none; }

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-neutral-light);
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  padding: 1.5rem 1rem 0;
  max-width: 100%;
}

/* === Sidebar overlay for mobile === */
.sidebar.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-neutral-light);
  padding: 2rem 1.5rem;
}
.sidebar.is-open .sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.sidebar.is-open .sidebar-nav li { margin-bottom: 1rem; }
.sidebar.is-open .sidebar-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-neutral-dark);
}
.sidebar-foot {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--color-secondary);
}

/* === Hero === */
.hero {
  padding: 2rem 0 3rem;
  max-width: 900px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.25rem;
  color: var(--color-neutral-dark);
  opacity: 0.85;
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-cta { margin-bottom: 2.5rem; }
.hero-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-neutral-light);
}
.btn-primary:hover {
  background: var(--color-neutral-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
}
.btn-accent:hover {
  background: #d97706;
  color: var(--color-neutral-light);
  text-decoration: none;
}

/* === Prose sections === */
.prose {
  max-width: 68ch;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-soft);
}
.prose p { font-size: 1.0625rem; line-height: 1.75; }
.prose-p { max-width: 60ch; margin-bottom: 1.5rem; }

/* === Grid sections === */
.grid-section { padding: 3rem 0; border-top: 1px solid var(--border-soft); }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-plain {
  background: transparent;
  border: none;
  padding: 1rem 0;
}
.card .icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-neutral-dark); opacity: 0.8; font-size: 0.95rem; margin: 0; }

/* === Quote / testimonial === */
.quote-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-soft);
}
.quote-section blockquote {
  margin: 0;
  max-width: 60ch;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
}
.quote-section blockquote p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--color-neutral-dark);
}
.quote-section cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 700;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding: 3rem 1.5rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { opacity: 0.9; margin-bottom: 1.5rem; }

/* === Contact band === */
.contact-band {
  padding: 3rem 0;
  border-top: 1px solid var(--border-soft);
}
.contact-band .grid-3 {
  grid-template-columns: 1fr;
}

/* === Form === */
.form-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-soft);
  max-width: 640px;
}
.contact-form { margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-neutral-dark);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.foot-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-neutral-dark);
}
.site-footer nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav li { margin-bottom: 0.4rem; }
.legal-links { font-size: 0.8rem; margin-top: 1rem; }
.copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-secondary);
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
}

/* === 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: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  max-width: 520px;
  font-size: 0.9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem 0; }
.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cookie-banner__actions button {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--color-neutral-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  border-color: var(--color-accent);
  font-weight: 700;
}
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cookie-banner__prefs label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
}
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

/* === Desktop layout === */
@media (min-width: 900px) {
  .layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
  }
  .nav-toggle, .mobile-header { display: none; }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.75rem;
    border-right: 1px solid var(--border-soft);
    background: var(--color-neutral-light);
  }
  .logo img { height: 96px; }
  .sidebar-nav { margin-top: 3rem; }
  .sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
  .sidebar-nav li { margin-bottom: 1.25rem; }
  .sidebar-nav a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-neutral-dark);
    display: block;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: border-color 0.2s, color 0.2s;
  }
  .sidebar-nav a:hover,
  .sidebar-nav a.active {
    border-left-color: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
  }
  .sidebar-foot {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--color-secondary);
    padding-top: 2rem;
  }
  .content {
    padding: 3rem 4rem;
    max-width: 1000px;
  }
  .hero { padding: 2rem 0 4rem; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .contact-band .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 4rem 2rem; }
}

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