:root {
  color-scheme: light dark;
  --font-sans: "Libre Franklin", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  --primary: #2f6f6d;
  --primary-strong: #245755;
  --secondary: #ced4da;

  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-alt: #ece7df;
  --text: #1f2a2d;
  --muted: #5c666a;
  --border: #d7d0c7;
  --shadow: 0 12px 30px rgba(28, 35, 38, 0.08);

  --focus: #8caeb0;
  --radius: 1rem;
}

html[data-theme="dark"] {
  --primary: #6bb6b1;
  --primary-strong: #8ac7c3;
  --secondary: #8b949e;

  --bg: #1f2328;
  --surface: #292f35;
  --surface-alt: #323941;
  --text: #e8ecef;
  --muted: #b7c0c7;
  --border: #444d57;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);

  --focus: #a5d5d1;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 15% 10%, rgba(47, 111, 109, 0.08), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(160, 172, 175, 0.2), transparent 42%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--text);
  letter-spacing: 0.01em;
}

h1,
.h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

h2,
.h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

a {
  color: var(--primary);
}

a:hover,
a:focus {
  color: var(--primary-strong);
}

.container-narrow {
  max-width: 76rem;
}

.site-header {
  background-color: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.theme-toggle {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: var(--primary);
  color: var(--primary);
}

.c-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.c-hero .lead {
  color: var(--muted);
  max-width: 42ch;
}

.brand-stripe {
  display: inline-block;
  width: 4rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--primary);
  margin: 0.75rem 0 1rem;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.surface-soft {
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.media-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius) - 0.2rem);
}

.media-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.metric-list li + li {
  margin-top: 0.75rem;
}

.list-clean {
  padding-left: 1rem;
}

.list-clean li {
  margin-bottom: 0.55rem;
}

.callout {
  border-left: 4px solid var(--primary);
  padding: 1rem 1rem 1rem 1.1rem;
  background: color-mix(in srgb, var(--surface) 96%, var(--primary) 4%);
  border-radius: 0.5rem;
}

.contact-detail {
  font-size: 1.05rem;
}

.form-control,
.form-select {
  border-color: var(--border);
  background-color: var(--surface);
  color: var(--text);
}

.form-control::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-strong);
  --bs-btn-hover-border-color: var(--primary-strong);
  --bs-btn-active-bg: var(--primary-strong);
  --bs-btn-active-border-color: var(--primary-strong);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-strong);
  --bs-btn-active-border-color: var(--primary-strong);
}

footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

footer a {
  color: var(--primary);
}

footer .small {
  color: var(--muted);
}

.focus-ring:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
}

.consent-panel {
  max-width: 72rem;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.consent-settings {
  border-top: 1px dashed var(--border);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
}

.hidden {
  display: none !important;
}

.hero-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .c-hero {
    padding-top: 2rem;
  }

  .theme-toggle {
    margin-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
