/* ═══════════════════════════════════════════════════
   White Theme Override
   Converts dark theme to light for Zola v3
   ═══════════════════════════════════════════════════ */

/* ─── Particle canvas: hide dark particles, use world map instead ─── */
#particle-canvas {
  display: none;
}

.noise-overlay {
  display: none;
}

.cursor-glow {
  display: none;
}

/* ─── World Map Canvas ─── */
#world-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Resources page: sticky map that stays while cards scroll over it */
.page-resources #world-map-canvas {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-top: -120px;
  margin-bottom: -100vh;
}

/* ─── Mobile: replace world map with subtle radial gradient ─── */
@media (max-width: 768px) {
  #world-map-canvas {
    display: none;
  }

  .hero::after,
  .page-resources::after,
  .proposal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 80%;
    background: radial-gradient(
      ellipse at 50% 50%,
      rgba(99, 91, 255, 0.06) 0%,
      rgba(99, 91, 255, 0.03) 35%,
      rgba(99, 91, 255, 0) 70%
    );
    pointer-events: none;
    z-index: 0;
  }
}

/* ─── Navigation ─── */
.nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav__logo img {
  /* Using logo-black.svg directly, no filter needed */
}

.nav__link {
  color: var(--color-text-primary);
  font-size: 0.99rem;
}

.nav__cta {
  background: #1D1D1F;
  color: #ffffff;
  border-color: transparent;
  padding: 11px 26px;
  font-size: 0.935rem;
}

.nav__cta:hover {
  background: #333;
  color: #ffffff;
  border-color: transparent;
}

/* ─── Hero ─── */
.hero {
  background: transparent;
}

/* Soft white vignette behind hero text so dots don't fight with copy */
.hero__content {
  position: relative;
}

.hero__content::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -60px;
  right: -20px;
  bottom: -40px;
  background: radial-gradient(ellipse at 30% 45%, rgba(255,255,255,0.74) 0%, rgba(255,255,255,0.60) 40%, rgba(255,255,255,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero__badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 91, 255, 0.25);
  color: #4A3AFF;
}

.hero__badge-dot {
  background: #635BFF;
  box-shadow: 0 0 6px rgba(99, 91, 255, 0.4);
}

.hero__headline {
  color: #1D1D1F;
}

.hero__headline strong {
  color: #1D1D1F;
}

.hero__headline em {
  color: #635BFF;
}

.hero__subheadline {
  color: #4D5868;
}


/* ─── Buttons ─── */
.btn-primary {
  background: #1D1D1F;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 15px 35px;
  font-size: 1.01rem;
}

.btn-primary:hover {
  background: #333;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  color: #4D5868;
  border-color: rgba(0, 0, 0, 0.12);
  font-size: 0.945rem;
}

.btn-ghost:hover {
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ─── Trust Metrics ─── */
.hero__trust-label {
  color: #4D5868;
  font-size: 0.79rem;
  font-weight: 600;
}

.trust-metric__value {
  color: #1D1D1F;
  font-size: 1.65rem;
  font-weight: 600;
}

.trust-metric__label {
  color: #4D5868;
  font-size: 0.82rem;
}

.trust-metric {
  border-color: rgba(0, 0, 0, 0.06);
}

/* ─── Service Picker ─── */
.service-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
  position: relative;
  margin-left: 40px;
  margin-top: -60px;
}

/* White vignette so dotted map doesn't fight with the cards */
.service-picker::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -80px;
  right: -80px;
  bottom: -60px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 75%);
  z-index: -1;
  pointer-events: none;
}

.service-picker__heading {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.01em;
}

.service-picker__card {
  display: block;
  padding: 20px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.service-picker__card:hover {
  background: rgba(99, 91, 255, 0.04);
}

.service-picker__title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 4px;
}

.service-picker__desc {
  display: block;
  font-size: 0.935rem;
  font-weight: 400;
  color: #6B7685;
}

/* ─── Footer ─── */
.footer {
  background: linear-gradient(to bottom, #ffffff, #f0f2f5);
  color: #1D1D1F;
  border-top: none;
}

.footer__inner {
  padding: 20px clamp(24px, 4vw, 64px) 12px;
}

.footer__grid {
  margin-bottom: 12px;
  gap: 24px;
}

.footer__bottom {
  padding-top: 12px;
}

.footer__logo img {
  filter: none;
}

.footer__tagline {
  color: #6B7685;
}

.footer__col-title {
  color: #1D1D1F;
}

.footer__link {
  color: #6B7685;
}

.footer__link:hover {
  color: #1D1D1F;
}

.footer__social {
  color: #6B7685;
  background: #e8ebef;
  border-radius: 50%;
  border: none;
}

.footer__social:hover {
  color: #1D1D1F;
  background: #dde1e6;
}

.footer__bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
  color: #97A2AF;
}

.footer__contact-input {
  background: #e8ebef;
  border: none;
  color: #1D1D1F;
}

.footer__contact-input::placeholder {
  color: #97A2AF;
}

.footer__contact-input:focus {
  background: #e2e5ea;
}

.footer__contact-submit {
  background: #1D1D1F;
  color: #ffffff;
  border: none;
}

.footer__contact-submit svg {
  color: #ffffff;
}

.footer__contact-submit:hover {
  background: #333;
}

.footer__contact-submit:hover svg {
  color: #ffffff;
}

/* ─── Proposal Page ─── */
.proposal__card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.proposal__title {
  color: #1D1D1F;
}

.proposal__subtitle {
  color: #4D5868;
}

.proposal__disclaimer {
  color: #97A2AF;
}

.form-field__input {
  color: #1D1D1F;
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.form-field__label {
  color: #97A2AF;
}

.form-field__line {
  background: #635BFF;
}

.proposal__submit {
  background: #1D1D1F;
  color: #ffffff;
}

.proposal__submit:hover {
  background: #333;
}

/* ─── Resources Page ─── */

/* Base card — clean, elevated, square */
.resource-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.35s var(--ease-out-expo);
}

.resource-card::after {
  border-radius: 0;
}

.resource-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

.resource-card:hover .resource-card__title {
  color: #635BFF;
}

.resource-card__title {
  color: #1D1D1F;
  font-weight: 600;
}

.resource-card__excerpt {
  display: none;
}

.resource-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.resource-card__category {
  align-self: flex-start;
}

.resource-card__meta {
  margin-top: auto;
}

.resource-card__date {
  font-size: 0.82rem;
}

.resource-card__arrow {
  font-size: 0.92rem;
}

.resource-card__category {
  color: #635BFF;
  background: rgba(99, 91, 255, 0.06);
  border: 1px solid rgba(99, 91, 255, 0.12);
}

.resource-card__date {
  color: #97A2AF;
}

.resource-card__meta {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.resource-card__arrow {
  color: #1D1D1F;
  font-weight: 500;
}

.resource-card:hover .resource-card__arrow {
  color: #635BFF;
}

/* Override base hover: match service-picker card style */
.resource-card:hover {
  transform: none;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.02);
  background: rgba(99, 91, 255, 0.04);
}

.resource-card:hover::before,
.resource-card:hover::after {
  opacity: 0;
}

/* ─── Featured Card ─── */
.resource-card--featured {
  grid-column: 1 / -1;
  min-height: 240px;
  padding: 48px 56px;
}

.resource-card--featured .resource-card__category--featured {
  color: #8B6914;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(184, 143, 30, 0.08));
  border: 1px solid rgba(184, 143, 30, 0.25);
}

.resource-card--featured .resource-card__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  color: #1D1D1F;
  letter-spacing: -0.02em;
}

/* Resources grid — fixed 3 columns */
.resources-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Article Page ─── */

/* Article title — larger, bolder */
.article__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #1D1D1F;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

/* Body text — darker, heavier, larger */
.article__content {
  color: #2c2c2e;
  font-weight: 400;
  line-height: 1.75;
}

.article__content p {
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* H2 — clear section breaks */
.article__content h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1D1D1F;
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* H3 — distinct sub-sections */
.article__content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1D1D1F;
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.3;
}

/* Lists — match body size */
.article__content li {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* Strong text — bolder contrast */
.article__content strong {
  color: #1D1D1F;
  font-weight: 600;
}

/* Meta — slightly more visible */
.article__meta span {
  color: #6B7685;
}

/* Back link */
.article__back {
  color: #6B7685;
}

.article__back:hover {
  color: #1D1D1F;
}

/* Tags */
.article__tag {
  color: #6B7685;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Article category badge */
.article__category {
  color: #635BFF;
  background: rgba(99, 91, 255, 0.06);
  border: 1px solid rgba(99, 91, 255, 0.12);
}

/* Resources header polish */
.resources-header {
  position: relative;
}

.resources-header::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -60px;
  right: -20px;
  bottom: -40px;
  background: radial-gradient(ellipse at 30% 45%, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.60) 40%, rgba(255,255,255,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.resources-header__title {
  color: #1D1D1F;
  letter-spacing: -0.03em;
}

.resources-header__subtitle {
  color: #4D5868;
  font-weight: 400;
}

/* Filter pills — match hero badge style */
.filter-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.10);
  color: #6B7685;
  font-weight: 500;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.18);
  color: #1D1D1F;
}

.filter-btn--active {
  background: #1D1D1F;
  color: #ffffff;
  border-color: #1D1D1F;
}

/* Search input — larger, more prominent */
.resources-search__input {
  width: 340px;
  padding: 12px 20px 12px 44px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1D1D1F;
}

.resources-search__icon {
  left: 16px;
  width: 18px;
  height: 18px;
  color: #6B7685;
}

.resources-search__input:focus {
  border-color: rgba(99, 91, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.06);
  background: #ffffff;
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .service-picker {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav__cta {
    padding: 9px 18px;
    font-size: 0.84rem;
  }

  /* Resources grid — override the 3-column desktop rule */
  .resources-grid {
    grid-template-columns: 1fr;
  }

  /* Featured card */
  .resource-card--featured {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 0;
    min-height: auto;
  }

  .resource-card--featured .resource-card__excerpt {
    grid-column: 1;
    grid-row: auto;
    border-left: none;
    padding-left: 0;
    margin-bottom: 24px;
  }

  .resource-card--featured .resource-card__title {
    font-size: 1.3rem;
  }

  /* Search */
  .resources-search__input {
    width: 100%;
  }

  /* Proposal form */
  .proposal__card {
    margin: 0 auto;
  }

  /* Footer */
  .footer__inner {
    padding: 32px clamp(16px, 4vw, 64px) 16px;
  }
}

@media (max-width: 480px) {
  /* Nav — compact CTA, smaller logo */
  .nav__cta {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .nav__cta svg {
    display: none;
  }

  .nav__logo img {
    height: 36px;
  }

  /* Hero — full-width buttons */
  .btn-primary {
    padding: 14px 24px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Service picker */
  .service-picker__heading {
    font-size: 1.15rem;
  }

  .service-picker__card {
    padding: 16px 20px;
  }

  .service-picker__title {
    font-size: 1rem;
  }

  .service-picker__desc {
    font-size: 0.85rem;
  }

  /* Resources featured card */
  .resource-card--featured {
    padding: 24px 20px;
  }

  .resource-card--featured .resource-card__title {
    font-size: 1.15rem;
  }

  /* Article page */
  .article__content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
  }

  .article__content h3 {
    font-size: 1.2rem;
    margin-top: 32px;
  }

  .article__content p {
    font-size: 1rem;
  }

  .article__content li {
    font-size: 1rem;
  }

  /* Footer contact form — stack inputs on small screens */
  .footer__contact-row {
    flex-direction: column;
  }

  .footer__contact-submit {
    width: 100%;
    border-radius: var(--radius-md);
  }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar-track {
  background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
}
