/* TrustedGEO brand overrides — light theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --font-main: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
  --text-body: #1e293b;
  --text-secondary: #475569;
  --text-muted-on-dark: #64748b; /* legacy name: muted body on light */
  --nav-link: rgba(15, 23, 42, 0.82);
  --nav-link-active: #0c4a6e;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(14, 116, 144, 0.22);
  --surface-muted: #eef2f7;
  --btn-ink: #0a1220;
}

/* Bootstrap 5 light theme */
[data-bs-theme="light"],
body.light-theme {
  --bs-body-color: var(--text-body);
  --bs-body-bg: #f5f7fb;
  --bs-secondary-color: var(--text-muted-on-dark);
  --bs-tertiary-color: var(--text-secondary);
  --bs-heading-color: #0f172a;
  --bs-link-color: #0c4a6e;
  --bs-link-hover-color: #082f49;
  color: var(--text-body);
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a !important;
}

.logo-badge {
  background: var(--gradient-primary);
  color: #0a1220;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar-brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(420px, 88vw);
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 460px;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

@media (max-width: 576px) {
  .navbar-brand-logo {
    height: 36px;
    max-width: 300px;
  }

  .footer-brand-logo {
    height: 40px;
    max-width: 320px;
  }
}

/* ===== NAV ===== */
.header .navbar,
.navbar.navbar-light {
  --bs-navbar-color: var(--nav-link);
  --bs-navbar-hover-color: #0c4a6e;
  --bs-navbar-disabled-color: rgba(15, 23, 42, 0.35);
  --bs-navbar-active-color: var(--nav-link-active);
  --bs-navbar-brand-color: #0f172a;
  --bs-navbar-brand-hover-color: #0f172a;
  --bs-navbar-toggler-border-color: rgba(15, 23, 42, 0.18);
}

.header .nav-link,
.navbar .nav-link,
.navbar-nav .nav-link {
  color: var(--nav-link) !important;
}

.header .nav-link:hover,
.header .nav-link:focus,
.header .nav-link:active,
.header .nav-link.active,
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link:active,
.navbar .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:visited,
.header .nav-link:visited {
  color: var(--nav-link-active) !important;
}

.header .btn-link {
  color: var(--nav-link) !important;
  text-decoration: none;
}

.header .btn-link:hover,
.header .btn-link:focus,
.header .btn-link:active {
  color: #0c4a6e !important;
}

.navbar-toggler {
  background: transparent !important;
  color: #0f172a !important;
}

.navbar-toggler-icon {
  filter: none;
}

/* ===== BODY / SECONDARY COPY ===== */
.text-muted,
.small.text-muted,
p.text-muted,
.hero-visual-card .text-muted,
.principle-card .text-muted,
.step-card .text-muted,
.case-card .text-muted,
.contact-panel .text-muted,
.feature-description,
.section-subtitle,
.hero-description,
.footer-description,
.clients-section .text-muted,
.compare-table td,
.list-unstyled.text-muted,
ul.text-muted,
ol.text-muted {
  color: var(--text-muted-on-dark) !important;
}

.feature-title,
.step-card h3,
.case-card h3,
.principle-card h3,
.compare-table td:first-child {
  color: #0f172a !important;
}

.hero-title,
.section-title {
  color: #0f172a;
}

.hero-description strong {
  color: #0f172a;
}

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

.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  color: var(--text-body);
}

.hero-visual-card h3 {
  color: #0f172a;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(12, 74, 110, 0.14), transparent 70%);
  pointer-events: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-tile {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.metric-tile .value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

.metric-tile .label {
  color: var(--text-muted-on-dark);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: rgba(12, 74, 110, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.step-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.case-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
  height: 100%;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.case-card .delta {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.principle-card {
  background: linear-gradient(160deg, rgba(12, 74, 110, 0.1), rgba(91, 33, 182, 0.07));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  color: var(--text-body);
}

.contact-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-strong);
  color: var(--text-body);
  box-shadow: var(--shadow-md);
}

.contact-panel .phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

.contact-panel .phone a,
a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
}

.contact-panel .phone a:hover,
.contact-panel .phone a:focus-visible,
a[href^="tel:"]:hover,
a[href^="tel:"]:focus-visible {
  text-decoration: underline;
}

.faq-item a[href^="tel:"] {
  color: var(--primary);
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-kicker--preserve-case {
  text-transform: none;
}

/* ===== Vertical rhythm ===== */
section {
  padding: 2.75rem 0;
}

.hero-section {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.features-section,
.pricing-section {
  padding: 3rem 0;
}

.clients-section {
  padding: 1.5rem 0 !important;
}

.section-header {
  margin-bottom: 1.75rem;
}

.hero-badge {
  margin-bottom: 1.25rem;
  background: rgba(12, 74, 110, 0.08);
  border: 1px solid var(--border-strong);
}

.hero-description {
  margin-bottom: 1.25rem;
}

.hero-actions {
  margin-bottom: 1.75rem;
}

.hero-stats {
  margin-top: 2rem !important;
}

.metric-grid {
  margin-top: 1.15rem;
  gap: 0.85rem;
}

.step-card,
.case-card,
.principle-card,
.feature-card {
  padding: 1.35rem;
}

.pricing-section .compare-table + .row,
.features-section .row + .text-center {
  margin-top: 1.75rem !important;
}

.footer-bottom {
  margin-top: 2rem !important;
  padding-top: 1.25rem !important;
}

.site-legal .small,
.site-legal .text-muted {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #94a3b8 !important;
}

.site-legal a {
  color: #0c4a6e !important;
  text-decoration: none;
}

.site-legal a:hover,
.site-legal a:focus-visible {
  color: #082f49 !important;
  text-decoration: underline;
}

#eeat,
#entity,
#team,
#credentials,
#locations,
#radar {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 6.25rem;
    padding-bottom: 2.5rem;
  }

  .features-section,
  .pricing-section {
    padding: 2.5rem 0;
  }
}

.footer .copyright,
.footer .copyright a,
.footer-links a,
.footer-heading {
  color: var(--text-muted-on-dark) !important;
}

.footer .logo-text {
  color: #0f172a !important;
}

.client-logo {
  color: var(--text-secondary) !important;
}

.client-logo__icon {
  display: block;
}

.stat-label {
  color: var(--text-muted-on-dark) !important;
}

.stat-number,
.stat-item .value {
  color: #0f172a;
}

/* SEO / GEO */
.brand-definition {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.brand-definition p {
  color: var(--text-body);
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.brand-definition p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.faq-item h2,
.faq-item .h5 {
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.faq-item a {
  color: var(--primary);
}

code {
  color: #0c4a6e;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Sticky CTA */
body.has-coop-sticky-bar {
  --coop-sticky-clearance: 4.75rem;
  padding-bottom: var(--coop-sticky-clearance);
  padding-bottom: calc(var(--coop-sticky-clearance) + constant(safe-area-inset-bottom));
  padding-bottom: calc(var(--coop-sticky-clearance) + env(safe-area-inset-bottom, 0px));
}

#leave-contact {
  scroll-margin-top: 6rem;
}

.coop-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1rem;
  padding-bottom: calc(0.65rem + constant(safe-area-inset-bottom));
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  text-decoration: none;
  color: #f8fafc !important;
  background: linear-gradient(90deg, #0c4a6e 0%, #1e3a8a 55%, #4c1d95 100%);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: filter 0.2s ease, opacity 0.2s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.coop-sticky-bar:hover,
.coop-sticky-bar:focus {
  color: #ffffff !important;
  filter: brightness(1.06);
  text-decoration: none;
}

.coop-sticky-bar__text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.coop-sticky-bar__hint {
  position: relative;
  display: inline-grid;
  justify-items: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 7.5em;
}

.coop-sticky-bar__hint-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
}

.coop-sticky-bar__hint-item.is-active {
  opacity: 0.85;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .coop-sticky-bar__hint-item {
    transition: none;
  }
}

@media (max-width: 576px) {
  body.has-coop-sticky-bar {
    --coop-sticky-clearance: 4.75rem;
  }

  .coop-sticky-bar {
    min-height: 44px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-top: 0.6rem;
    padding-bottom: calc(0.6rem + constant(safe-area-inset-bottom));
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }

  .coop-sticky-bar__text {
    font-size: 0.98rem;
  }

  .coop-sticky-bar__hint {
    font-size: 0.72rem;
    min-width: 6.5em;
  }
}

.trusted-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.92rem;
}

.trusted-subnav a {
  color: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.trusted-subnav a:hover,
.trusted-subnav a:focus-visible {
  color: var(--primary, #0c4a6e);
  border-bottom-color: currentColor;
}

.trusted-subnav__sep {
  color: rgba(15, 23, 42, 0.28);
}

.trusted-block {
  scroll-margin-top: 5.5rem;
}

#trusted {
  scroll-margin-top: 5rem;
}

.header .btn-primary,
.btn.btn-primary {
  color: #ffffff !important;
}

.header .btn-primary:hover,
.header .btn-primary:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  color: #ffffff !important;
}

.metric-card {
  color: var(--btn-ink) !important;
}

input.form-control,
textarea.form-control,
select.form-control,
.lead-form .form-control {
  font-size: 16px !important;
}

.btn,
.navbar-nav .nav-link,
.coop-sticky-bar {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

a[href^="tel:"] {
  -webkit-touch-callout: default;
}

@supports not (padding: max(0px)) {
  .coop-sticky-bar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
