:root {
  --color-primary: #0F172A;
  --color-secondary: #1E3A8A;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(2, 6, 23, 0.12);
  --color-muted: #475569;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  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-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* === Layout shell === */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.content {
  flex: 1;
  padding: 2rem 1.25rem 0;
}
.page-header { display: none; }

.logo { display: inline-block; }
.logo img { height: 72px; width: auto; }

.sidebar-nav { position: relative; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.25);
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-neutral-light);
}
.nav-list {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.nav-list.is-open { display: flex; }
.nav-list a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--color-neutral-light);
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}
.nav-list a:hover { color: var(--color-accent); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--color-accent); }
.sidebar-footer {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.55);
  margin: 0;
}

/* === Hero === */
.hero {
  padding: 2rem 0 3rem;
  max-width: 900px;
}
.hero h1 { max-width: 22ch; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero-cta { margin-bottom: 2.5rem; }
.hero-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(2, 6, 23, 0.25);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-neutral-light);
}
.btn-primary:hover { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
}
.btn-accent:hover { background: #a76f03; color: var(--color-neutral-light); }

/* === Sections === */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}
.section.narrow {
  max-width: 68ch;
}
.section h2 { margin-bottom: 1.25rem; }

/* === Grids === */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 10px 30px -15px rgba(2, 6, 23, 0.18); transform: translateY(-2px); }
.icon {
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.96rem; margin: 0; }

/* === Testimonial === */
.testimonial-section { padding: 3.5rem 0; }
.testimonial {
  max-width: 60ch;
  margin: 0 auto;
  padding: 2rem;
  border-left: 3px solid var(--color-accent);
  background: #fff;
  border-radius: 4px;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--color-primary);
  font-style: italic;
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* === 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 { color: rgba(248, 250, 252, 0.8); margin-bottom: 1.5rem; }

/* === Contact band === */
.contact-band {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}
.contact-band h2 { margin-bottom: 0.75rem; }
.contact-band p { color: var(--color-muted); margin: 0; }

/* === Form === */
.contact-form { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.92rem; color: var(--color-primary); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-primary);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  border-color: transparent;
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}
.site-footer nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer nav a { color: var(--color-muted); }
.site-footer nav a:hover { color: var(--color-secondary); }
.site-footer p { color: var(--color-muted); font-size: 0.92rem; margin: 0 0 0.75rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; font-size: 0.85rem; }
.legal-links a { color: var(--color-muted); }
.copyright {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin: 0;
}

/* === 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 1.5rem;
  border-radius: 10px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  max-width: 640px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: var(--color-neutral-light); font-size: 0.92rem; margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  padding: 0.55rem 1rem;
  border-radius: 5px;
  border: 1px solid rgba(248, 250, 252, 0.25);
  background: transparent;
  color: var(--color-neutral-light);
  font-size: 0.88rem;
  font-weight: 500;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  border-color: var(--color-accent);
}
.cookie-banner__actions button:hover { opacity: 0.9; }
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
}
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs button[data-cookie-save] {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

/* === Responsive: tablet === */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === Responsive: desktop === */
@media (min-width: 900px) {
  .layout {
    flex-direction: row;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: 240px;
    min-width: 240px;
    height: 100vh;
    padding: 2rem 1.75rem;
    gap: 2rem;
    justify-content: flex-start;
  }
  .content {
    padding: 3.5rem 3rem 0;
    max-width: calc(100% - 240px);
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
  }
  .sidebar-footer { margin-top: auto; }
  .hero { padding: 3rem 0 4rem; }
  .section { padding: 4rem 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cta-band { padding: 4rem 3rem; }
}

@media (min-width: 1200px) {
  .content { padding: 4rem 4.5rem 0; max-width: 1080px; }
}
