/* Upscale navy + mint theme override.
   This file intentionally sits after page-level inline CSS so it can be removed to revert. */

:root {
  --bg: #f7f8fc !important;
  --bg-light: #eef1fb !important;
  --bg-card: rgba(255, 255, 255, 0.72) !important;
  --bg-card-hover: rgba(255, 255, 255, 0.92) !important;
  --gold: #31c7a1 !important;
  --gold-dim: rgba(49, 199, 161, 0.14) !important;
  --gold-glow: rgba(49, 199, 161, 0.28) !important;
  --blue: #272d69 !important;
  --blue-dim: rgba(39, 45, 105, 0.08) !important;
  --white: #171b3f !important;
  --text: #171b3f !important;
  --text-secondary: #59607e !important;
  --text-muted: #697093 !important;
  --border: rgba(35, 41, 95, 0.12) !important;
  --border-light: rgba(35, 41, 95, 0.16) !important;
  --green: #31c7a1 !important;
  --red: #e65f55 !important;
  --shadow-sm: 0 1px 3px rgba(33, 38, 91, 0.08) !important;
  --shadow-md: 0 16px 48px rgba(33, 38, 91, 0.12) !important;
  --shadow-lg: 0 26px 70px rgba(33, 38, 91, 0.14) !important;
  --radius: 8px !important;
  --radius-sm: 8px !important;
}

html,
body {
  background: #f7f8fc !important;
  color: #171b3f !important;
}

body {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.94), transparent 25rem),
    radial-gradient(circle at 82% 18%, rgba(49, 199, 161, 0.20), transparent 21rem),
    radial-gradient(circle at 80% 84%, rgba(242, 184, 75, 0.13), transparent 24rem),
    linear-gradient(135deg, #fbfcff 0%, #eef1fb 48%, #e8ebf7 100%) !important;
}

body::before {
  background:
    radial-gradient(circle, rgba(39, 45, 105, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 800px 600px at 30% 30%, rgba(49, 199, 161, 0.12), transparent),
    radial-gradient(ellipse 600px 800px at 70% 60%, rgba(39, 45, 105, 0.05), transparent),
    radial-gradient(ellipse 900px 400px at 50% 90%, rgba(242, 184, 75, 0.08), transparent) !important;
  background-size: 32px 32px, 100% 100%, 100% 100%, 100% 100% !important;
}

::selection {
  background: rgba(49, 199, 161, 0.25) !important;
  color: #171b3f !important;
}

.nav {
  background: rgba(247, 248, 252, 0.84) !important;
  border-bottom: 1px solid rgba(35, 41, 95, 0.10) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
}

.nav.scrolled {
  background: rgba(247, 248, 252, 0.94) !important;
  border-bottom-color: rgba(35, 41, 95, 0.14) !important;
  box-shadow: 0 10px 34px rgba(33, 38, 91, 0.08) !important;
}

.nav-mobile,
.nav-dropdown-menu {
  background: rgba(247, 248, 252, 0.96) !important;
  border-color: var(--border) !important;
  box-shadow: 0 18px 42px rgba(33, 38, 91, 0.12) !important;
}

.nav-wordmark {
  align-items: center !important;
  display: inline-flex !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.nav-wordmark img {
  display: block !important;
  height: 38px !important;
  max-width: 176px !important;
  object-fit: contain !important;
  width: auto !important;
}

.nav-wordmark,
.nav-link:hover,
.nav-link.active,
.nav-mobile a,
.heading,
.service-card h3,
.case-card h3,
.ticker-item strong,
.section-title,
.stat-label strong,
.blog-card h2,
.article-title,
.article-content h1,
.article-content h2,
.article-content h3,
.tool-title,
.calc-card h2,
.result-value {
  color: #171b3f !important;
}

.heading-gradient {
  background: linear-gradient(135deg, #171b3f 30%, #272d69 72%, #31c7a1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.btn-gold,
.btn-gold-lg,
.cta-button,
.submit-btn,
button[type="submit"] {
  background: #272d69 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(39, 45, 105, 0.18) !important;
  position: relative;
  overflow: hidden;
}

.btn-gold::after,
.btn-gold-lg::after,
.cta-button::after,
.submit-btn::after,
button[type="submit"]::after {
  background: #31c7a1;
  content: "";
  height: 100%;
  opacity: 0.9;
  position: absolute;
  right: 0;
  top: 0;
  transform: skewX(-16deg) translateX(62%);
  width: 34px;
}

.btn-ghost,
.nav-link,
.hero-sub,
.section-sub,
.service-card p,
.case-card p,
.ticker-item,
.article-content p,
.article-content li,
.blog-card p,
.calc-card p,
.form-note {
  color: #59607e !important;
}

.hero-badge,
.section-label,
.case-tag,
.stat-number,
.case-stat .number,
.hero h1 .gold,
.hero-rotating-item strong,
.nav-wordmark span,
a:not(.btn-gold):not(.btn-gold-lg):not(.btn-ghost):not(.nav-link) {
  color: #31c7a1 !important;
}

.hero-badge,
.case-tag {
  background: rgba(49, 199, 161, 0.14) !important;
  border-color: rgba(49, 199, 161, 0.24) !important;
}

.hero-badge .pulse,
.ticker-item .dot,
.process-num {
  background: #31c7a1 !important;
}

.service-card,
.case-card,
.stat-card,
.blog-card,
.calc-card,
.result-card,
.tool-card,
.faq-item,
.contact-card,
.process-step,
.article-card,
.content-card,
.comparison-table,
.table-wrapper,
.audit-card,
.waste-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(35, 41, 95, 0.12) !important;
  box-shadow: 0 1px 3px rgba(33, 38, 91, 0.08) !important;
}

.service-card:hover,
.case-card:hover,
.blog-card:hover,
.tool-card:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 16px 48px rgba(33, 38, 91, 0.12) !important;
}

.service-card {
  border-top-color: #31c7a1 !important;
}

.case-accent,
.scroll-progress,
.scroll-progress-js {
  background: linear-gradient(to right, #31c7a1, #272d69) !important;
}

.logo-carousel,
.results-ticker,
footer,
.footer {
  background: rgba(255, 255, 255, 0.38) !important;
  border-color: rgba(35, 41, 95, 0.12) !important;
}

.logo-track img {
  opacity: 0.86 !important;
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(35, 41, 95, 0.16) !important;
  color: #171b3f !important;
}

input::placeholder,
textarea::placeholder {
  color: #697093 !important;
}

table,
th,
td {
  border-color: rgba(35, 41, 95, 0.12) !important;
}

th {
  background: rgba(39, 45, 105, 0.06) !important;
  color: #171b3f !important;
}

code,
pre {
  background: rgba(39, 45, 105, 0.08) !important;
  color: #171b3f !important;
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 28px !important;
  }

  .hero h1 {
    margin-bottom: 18px !important;
  }

  .hero-sub {
    margin-bottom: 24px !important;
  }

  .hero-ctas {
    gap: 12px !important;
  }

  .hero-trust-badges {
    gap: 12px 18px !important;
    margin-top: 24px !important;
  }

  .logo-carousel {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: visible !important;
    padding: 34px 0 28px !important;
  }

  .logo-carousel p {
    margin-bottom: 20px !important;
  }

  .logo-track {
    animation: none !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 0 20px !important;
    width: 100% !important;
  }

  .logo-track img {
    background: #ffffff !important;
    border: 1px solid rgba(35, 41, 95, 0.06) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 22px rgba(33, 38, 91, 0.06) !important;
    height: 58px !important;
    object-fit: contain !important;
    opacity: 0.88 !important;
    padding: 10px 12px !important;
    width: 100% !important;
  }

  .logo-track img:nth-child(n + 7) {
    display: none !important;
  }

  .nav-wordmark img {
    height: 34px !important;
    max-width: 154px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 112px 0 24px !important;
  }

  .hero h1 {
    font-size: 1.9rem !important;
    max-width: 350px !important;
  }

  .hero-sub {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .hero-trust-badge {
    font-size: 0.68rem !important;
  }

  .logo-carousel {
    padding-top: 30px !important;
  }

  .logo-track {
    padding: 0 16px !important;
  }

  .logo-track img {
    height: 54px !important;
    padding: 9px 10px !important;
  }
}
