:root {
  --color-ink: #0c1b2a;
  --color-ink-muted: #40566d;
  --color-teal: #0f9d9a;
  --color-teal-dark: #0b6f6d;
  --color-coral: #ff7a59;
  --color-sand: #f4efe7;
  --color-ice: #f8fafc;
  --color-card: #ffffff;
  --color-border: rgba(12, 27, 42, 0.12);
  --shadow-soft: 0 20px 60px rgba(12, 27, 42, 0.14);
  --shadow-float: 0 12px 28px rgba(12, 27, 42, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Spectral", serif;
  color: var(--color-ink);
  background: var(--color-sand);
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6,
.navbar, .btn, .badge, .pill, .display-font {
  font-family: "Space Grotesk", sans-serif;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
}

p {
  color: var(--color-ink-muted);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-teal-dark);
}

.section-pad {
  padding: 4.5rem 0;
}

.section-pad-lg {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 640px;
}

.navbar {
  backdrop-filter: blur(10px);
  background: rgba(244, 239, 231, 0.88) !important;
  border-bottom: 1px solid rgba(12, 27, 42, 0.08);
}

.navbar-brand img {
  height: 42px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-ink);
}

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

.btn-primary {
  background: var(--color-teal);
  border-color: var(--color-teal);
  box-shadow: 0 12px 24px rgba(15, 157, 154, 0.25);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.pill {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 157, 154, 0.1);
  color: var(--color-teal-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff 0%, #eef6f6 45%, #d7ecec 100%);
  box-shadow: var(--shadow-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(15, 157, 154, 0.12), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 122, 89, 0.15), transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.hero-rotator {
  display: inline-flex;
  min-width: 10ch;
  color: var(--color-teal-dark);
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 27, 42, 0) 35%, rgba(12, 27, 42, 0.4) 100%);
}

.hero-card-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  color: #fff;
  z-index: 1;
  font-family: "Space Grotesk", sans-serif;
}

.card-elevated {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(12, 27, 42, 0.1);
}

.feature-card {
  background: var(--color-card);
  padding: 1.75rem;
  height: 100%;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.metric-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 27, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.metric-number {
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--color-teal-dark);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: rgba(12, 27, 42, 0.12);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -0.1rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-teal-dark);
}

.timeline-item.is-active .timeline-dot {
  background: var(--color-teal-dark);
  box-shadow: 0 0 0 6px rgba(15, 157, 154, 0.2);
}

.timeline-date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.news-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: #fff;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.cta-band {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f9d9a 0%, #0b6f6d 100%);
  color: #fff;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
}

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(12, 27, 42, 0.1);
  background: #f6f2ea;
}

.footer a {
  color: var(--color-ink);
}

.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 27, 42, 0.08);
  margin-right: 0.5rem;
}

.hero-list li {
  margin-bottom: 0.5rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.badge-tag {
  background: rgba(15, 157, 154, 0.12);
  color: var(--color-teal-dark);
  font-weight: 600;
}

.section-divider {
  height: 1px;
  background: rgba(12, 27, 42, 0.08);
  margin: 2rem 0;
}

.hero-image-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hero-image-stack .hero-card {
  height: 220px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 3.5rem;
  }
  .hero-image-stack {
    grid-template-columns: 1fr 1fr;
  }
  .hero-image-stack .hero-card {
    height: 260px;
  }
}

@media (min-width: 992px) {
  .hero-content {
    padding: 4.2rem;
  }
  .section-pad {
    padding: 5.5rem 0;
  }
}

@media (max-width: 575px) {
  .hero-content {
    padding: 2.5rem 1.5rem;
  }
  .cta-band {
    padding: 2rem;
  }
}

.anchor-target {
  scroll-margin-top: 90px;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.hero-highlight {
  background: rgba(255, 122, 89, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: #8f3f2b;
  font-weight: 600;
}

.news-hero {
  padding: 5rem 0 2rem;
}

.news-header,
.news-post-header {
  border-bottom: 1px solid rgba(12, 27, 42, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid rgba(12, 27, 42, 0.12);
  box-shadow: 0 12px 30px rgba(12, 27, 42, 0.18);
  border-radius: 16px;
  padding: 1rem 1.2rem;
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-banner {
    left: auto;
    right: 2rem;
    max-width: 520px;
  }
  .cookie-banner__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

.article-body p {
  margin-bottom: 1.25rem;
}

.form-label {
  font-weight: 600;
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: rgba(12, 27, 42, 0.18);
}

.small-muted {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

.hero-rotator.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-rotator {
  transition: opacity 0.25s ease;
}
