/* Smooth in-page anchor scrolling (Explore the Data ↓, etc.) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Fonts */
.barlow { font-family: "Barlow", sans-serif; }
.barlow-condensed { font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.02em; }

/* Hero bg tint */
#counter-section { position: relative; background-size: cover; background-position: center top; }
#counter-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
#counter-section > * { position: relative; z-index: 1; }

/* ======= Number ticker ======= */
/* Mobile-first sizing: 8 digit cols + 2 commas + gaps + padding must fit
   under ~328px (360px viewport minus the section's px-4 padding). */
.number-ticker {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px 12px;
  gap: 4px;
  max-width: 100%;
}
@media (min-width: 768px) {
  .number-ticker { padding: 14px 18px; gap: 6px; }
}
.col-num-container {
  width: clamp(30px, 7vw, 78px);
  height: clamp(44px, 10vw, 110px);
  overflow: hidden;
  position: relative;
  background: #FFD629;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.25);
}
.col-num-comma {
  align-self: flex-end;
  font-family: "Barlow Condensed", sans-serif;
  color: #FFD629;
  font-weight: 800;
  font-size: clamp(28px, 7vw, 90px);
  line-height: 1;
  padding: 0 1px;
}
.digit {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.col-num {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 7.5vw, 96px);
  line-height: 1;
  color: #111;
}

/* ======= Generic ======= */
hr.border-1 { border-top-width: 2px; }
.border-cargo-yellow { border-color: #FFD629; }
.text-cargo-yellow { color: #FFD629; }
.bg-cargo-yellow { background-color: #FFD629; }

/* Footer */
#footer { background: #0b0b0b; color: #aaa; font-size: 0.875rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-cargo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ddd;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.footer-cargo:hover { color: #fff; }
.footer-cargo:hover img { opacity: 1; }
.footer-cargo img {
  height: 22px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.footer-cargo-label {
  font-family: "Barlow", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  line-height: 1;
}
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #888;
  font-size: 0.8125rem;
}
.footer-meta a { color: #ddd; text-decoration: none; transition: color 0.15s ease; }
.footer-meta a:hover { color: #FFD629; }
@media (max-width: 540px) {
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 24px 24px; }
}

/* ======= Charts ======= */
.chart-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}
.chart-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
  margin-bottom: 14px;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}
.chart-wrap-tall {
  position: relative;
  width: 100%;
  height: 500px;
}
@media (min-width: 768px) {
  .chart-wrap-tall { height: 420px; }
}
.chart-caption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 14px;
  line-height: 1.3;
}

/* ======= FAQ accordion ======= */
.faq-item {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.faq-item[open] { background: #fffdf3; border-color: #FFD629; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  color: #888;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; color: #111; }
.faq-item summary h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #111;
  letter-spacing: 0.01em;
  display: inline;
}
.faq-item p {
  padding: 0 22px 20px 22px;
  margin: 0;
  color: #444;
  line-height: 1.55;
}

/* ======= Slider ======= */
.slider-yellow {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 214, 41, 0.25);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.slider-yellow::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFD629;
  border: 3px solid #000;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 214, 41, 0.5);
}
.slider-yellow::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFD629;
  border: 3px solid #000;
  cursor: pointer;
}
