/* ============================================
   DECILION — Design System v4
   Best of v2 + v3
   Headings: Libre Baskerville | Body: Outfit
   Warm cream background | Animated bars + dots
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand from logo */
  --navy: #1B2A4A;
  --navy-deep: #0f1a30;
  --teal: #00B5B4;
  --teal-dark: #009695;
  --teal-muted: #4db8b6;
  --green: #4CAF50;
  --purple: #7B6BA4;
  --orange: #F7941D;
  --yellow: #FFD700;

  /* Functional */
  --ink: #2c2c3a;
  --ink-2: #555568;
  --ink-3: #8e8ea0;
  --cream: #fdfbf7;
  --cream-dark: #f5f0e8;
  --white: #ffffff;
  --warm-border: #e8e2d6;
  --warm-border-light: #f0ebe0;

  /* Type */
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--warm-border-light);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.header__logo img { height: 30px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover, .nav__link--active { color: var(--ink); }

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--warm-border);
}

.lang-switch__btn {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-3);
  background: none;
  border: none;
  padding: 3px 7px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn--active { color: var(--navy); background: rgba(27,42,74,0.06); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

/* =============================================
   HERO — Dots from v3 + Bar chart from v2
   ============================================= */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__text {}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 24px;
  opacity: 0;
  animation: slideUp 0.5s var(--ease) 0.1s forwards;
}

.hero__label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--teal);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 24px;
  opacity: 0;
  animation: slideUp 0.6s var(--ease) 0.2s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--teal-dark);
}

/* Rainbow rule from v3 */
.hero__rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--purple), var(--orange), var(--yellow));
  border: none;
  border-radius: 2px;
  margin-bottom: 24px;
  opacity: 0;
  animation: slideUp 0.5s var(--ease) 0.3s forwards;
}

.hero__desc {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 480px;
  opacity: 0;
  animation: slideUp 0.5s var(--ease) 0.4s forwards;
}

/* Animated bar chart from v2 */
.hero__visual {
  position: relative;
  height: 380px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.5s forwards;
}

.hero__chart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 40px 24px;
}

.hero__bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: growUp 1s var(--ease) forwards;
  opacity: 0.85;
}

/* Floating dots from v3 — behind chart */
.hero__dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: drift 8s ease-in-out infinite;
}

@keyframes growUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--teal);
}

/* =============================================
   SERVICES — v2 style (4-col cards, top border)
   ============================================= */
.services {
  padding: 80px 0;
}

.services__header {
  text-align: center;
  margin-bottom: 48px;
}

.services__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.svc-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  padding: 40px 24px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.svc-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(27,42,74,0.08), 0 2px 8px rgba(27,42,74,0.04);
  transform: translateY(-3px);
  color: inherit;
}

.svc-card:hover::before { transform: scaleX(1); }

.svc-card__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--warm-border);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.35s;
}

.svc-card:hover .svc-card__num { color: var(--teal-muted); }

.svc-card__title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.svc-card__desc {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: gap 0.2s;
}

.svc-card:hover .svc-card__link { gap: 10px; }

/* =============================================
   INSIGHT — v2 style with slider infrastructure
   ============================================= */
.insight-section {
  padding: 80px 0;
  background: var(--cream-dark);
  border-top: 1px solid var(--warm-border-light);
  border-bottom: 1px solid var(--warm-border-light);
}

.insight-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.insight-section__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.insight-section__sub {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Slider wrapper */
.insight-slider {
  position: relative;
}

.insight-slider__viewport {
  overflow: hidden;
}

.insight-slider__track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.insight-slider__slide {
  min-width: 100%;
}

.insight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  overflow: hidden;
}

.insight-card__body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insight-card__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 12px;
}

.insight-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
}

.insight-card__title a { color: var(--navy); transition: color 0.2s; }
.insight-card__title a:hover { color: var(--teal-dark); }

.insight-card__excerpt {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.insight-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: gap 0.2s;
}
.insight-card__link:hover { gap: 10px; }

.insight-card__viz {
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  min-height: 300px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  width: 100%;
  max-width: 280px;
}

.mini-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.mini-chart__bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
}

.mini-chart__lbl {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
}

.mini-chart__title {
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
}

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm-border);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.slider-dot--active { background: var(--teal); transform: scale(1.2); }

/* Slider arrows */
.slider-arrows {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--warm-border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--ink-2);
}

.slider-arrow:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.slider-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   TRUSTED BY — v2 style with carousel
   ============================================= */
.trusted {
  padding: 64px 0 80px;
  text-align: center;
}

.trusted__label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 40px;
}

/* Carousel wrapper */
.trusted__carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.trusted__scroll {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trusted__track {
  display: flex;
  animation: trustedScroll 30s linear infinite;
  width: max-content;
}

.trusted__track:hover {
  animation-play-state: paused;
}

.trusted__slide {
  min-width: 300px;
  padding: 24px 32px;
  text-align: center;
  flex-shrink: 0;
}

@keyframes trustedScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trusted__item {
  padding: 24px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}

.trusted__item:hover { background: var(--cream-dark); }

.trusted__org {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.trusted__program {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.trusted__context {
  font-size: 0.75rem;
  color: var(--teal);
  margin-top: 8px;
  font-weight: 500;
}


/* =============================================
   FOOTER — v3 style (Outfit font)
   ============================================= */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__logo { height: 26px; margin-bottom: 16px; opacity: 0.85; }

.footer__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.footer__social a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.footer__social svg { width: 15px; height: 15px; fill: currentColor; }

.footer__heading {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content { gap: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__visual { height: 240px; }

  .services__grid { grid-template-columns: 1fr; }

  .insight-card { grid-template-columns: 1fr; }
  .insight-card__viz { min-height: 200px; }

  .trusted__slide { min-width: 260px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--warm-border);
  }
  .nav--open { display: flex; }
  .nav__link--active::after { display: none; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: none; padding-top: 12px; border-top: 1px solid var(--warm-border); }
  .nav-toggle { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
