*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --surface: #ffffff;
  --surface-alt: #f4f1ec;
  --accent: #1f4f5f;
  --accent-soft: #e4eff2;
  --highlight: #d49b6a;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

.sidebar {
  flex: 0 0 260px;
  padding: 32px 24px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-weight: 600;
  color: var(--ink);
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.nav a:hover {
  background: var(--accent-soft);
}

.sidebar-cta {
  padding: 18px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-cta a {
  background: #fff;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
}

.main {
  flex: 1;
  padding: 32px 28px 120px;
}

.section {
  margin-bottom: 60px;
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.section.alt {
  background: var(--surface-alt);
  box-shadow: none;
}

.section .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--muted);
}

.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.split-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #e4e0da;
}

.hero {
  background: url("assets/hero.svg") right center / cover no-repeat;
  color: #fff;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 38, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.button.primary {
  background: var(--highlight);
  color: #2a1c13;
}

.button.ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.inline-link {
  font-weight: 700;
  color: var(--accent);
}

.service-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e2d9ce;
  background: #fff;
}

.service-card img {
  width: 44px;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.quote {
  font-style: italic;
  font-size: 18px;
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.metric {
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
}

.form-card {
  background: #fff;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid #e6dfd4;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #c9c1b6;
  font-size: 15px;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.sticky-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--accent);
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.footer {
  padding: 28px;
  border-radius: 22px;
  background: #0f1a1f;
  color: #fff;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  bottom: 18px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-width: 320px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  display: none;
  z-index: 20;
}

.cookie-banner.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions button {
  flex: 1;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  background: transparent;
  font-weight: 700;
}

.cookie-actions .accept {
  background: var(--accent);
  color: #fff;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note {
  background: var(--accent-soft);
  padding: 14px;
  border-radius: 14px;
}

.page-hero {
  background: url("assets/library.svg") center / cover no-repeat;
  color: #fff;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 33, 0.65);
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .main {
    padding: 48px 64px 120px;
  }

  .split {
    flex-direction: row;
    align-items: stretch;
  }

  .split > div {
    flex: 1;
  }

  .service-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 240px;
  }

  .metrics {
    flex-direction: row;
  }

  .metric {
    flex: 1 1 180px;
  }

  .contact-grid {
    flex-direction: row;
  }
}

@media (max-width: 820px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
