/* IMBA Dynamics — SpaceX / Tesla refinements + next-step enhancements */

html {
  scroll-behavior: smooth;
}

:root {
  --nav-height: 72px;
  --nav-bg-scrolled: rgba(0, 18, 40, 0.92);
  --color-black: #000000;
  --color-ink: #171a20;
  --color-muted: #5c5e62;
  --color-muted-on-dark: rgba(255, 255, 255, 0.72);
  --color-border-light: rgba(0, 0, 0, 0.1);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --radius-sm: 4px;
  --section-pad-y: clamp(4rem, 8vw, 6.5rem);
  --font-weight-display: 500;
  --tracking-wide: 0.1em;
}

body,
.footer,
.navbar-imba {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body.page-home {
  background-color: var(--color-black);
  color: #fff;
}

body.page-inner {
  background-color: #fff;
  color: var(--color-ink);
}

/* ===== NAV ===== */
.navbar-imba {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: var(--nav-height);
  padding: 0.75rem 0;
  background: transparent;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar-imba.navbar-scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar-imba .container-fluid {
  max-width: 1400px;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.navbar-imba .navbar-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  max-width: none;
  padding: 0;
  margin-right: auto;
}

.navbar-imba .navbar-brand img {
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

.navbar-imba .nav-link-animated {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
}

.navbar-imba .nav-link-animated::after {
  display: none;
}

.navbar-imba .nav-link-animated:hover,
.navbar-imba .nav-link-animated.active {
  color: #fff !important;
}

@media (max-width: 991px) {
  .navbar-imba .navbar-collapse {
    background: rgba(0, 18, 40, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
  }
}

/* ===== CINEMATIC HERO ===== */
.hero-section-cinematic .hero-image-background {
  height: 100vh;
  min-height: 100svh;
  background-position: center 30%;
}

.hero-overlay--cinematic {
  align-items: flex-end;
  justify-content: center;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(4.5rem, 10vh, 6rem);
  background: linear-gradient(
    to bottom,
    rgba(0, 10, 25, 0.12) 0%,
    rgba(0, 10, 25, 0.08) 35%,
    rgba(0, 15, 35, 0.55) 70%,
    rgba(0, 12, 28, 0.88) 100%
  );
}

.hero-content-bottom {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-content-bottom .hero-title-large {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.75);
}

.hero-content-bottom .hero-subtitle-large {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.hero-cta-row .cta-button {
  margin-top: 0;
  min-width: 200px;
}

.page-hero-cinematic {
  position: relative;
  width: 100%;
  min-height: 72vh;
  min-height: 72svh;
  height: 72vh;
  overflow: hidden;
}

.page-hero-slim {
  min-height: 48vh;
  height: 48vh;
}

.page-hero-minimal {
  min-height: auto;
  height: auto;
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 2.5rem;
  background: var(--color-black);
}

.page-hero-minimal .hero-overlay--cinematic {
  position: relative;
  padding: 0;
  background: none;
}

.page-hero-minimal .page-hero-content {
  max-width: 800px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

/* ===== BUTTONS ===== */
.cta-button {
  background: #fff;
  color: var(--color-ink);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid #fff;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cta-button:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: var(--color-ink);
  transform: none;
}

.cta-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  margin-left: 0;
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.about-section .cta-button,
.services-overview .cta-button,
.services-teaser .cta-button--inline,
.impact-section .cta-button {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.cta-button--inline {
  display: inline-block;
  margin-top: 0;
}

/* Pillar teasers (home) */
.services-teaser {
  padding: var(--section-pad-y) 0;
}

.pillar-teaser {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.5rem;
  height: 100%;
  background: #fff;
}

.pillar-teaser h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0.75rem;
}

.pillar-teaser p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Proof section */
.proof-section {
  padding: var(--section-pad-y) 0;
}

.proof-section-lead {
  color: var(--color-muted-on-dark);
}

.proof-card {
  background: linear-gradient(165deg, #4a545c 0%, #3a4249 50%, #2f363c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.5rem;
  height: 100%;
}

.proof-scenario {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.proof-metric {
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.75rem;
}

.proof-detail {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-proof {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.tech-logo-strip .tech-logo {
  height: 36px;
  width: auto;
}

/* ===== SECTION HEADINGS ===== */
.about-section h2,
.trusted-by-section h3,
.impact-section h2,
.tech-summary h3,
.services-overview h2,
.services-teaser h2,
.about-imba-title,
.conversion-cta h3 {
  font-weight: var(--font-weight-display);
  letter-spacing: -0.025em;
}

/* ===== HOME SCROLL SNAP (optional, desktop) ===== */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  body.page-home {
    scroll-snap-type: y proximity;
  }

  body.page-home .hero-section-cinematic,
  body.page-home .trusted-by-section,
  body.page-home .section-band-light,
  body.page-home .section-band-dark,
  body.page-home .section-band-muted,
  body.page-home .conversion-cta {
    scroll-snap-align: start;
  }
}

/* ===== SECTION BANDS ===== */
.section-band-light {
  background: #fff;
  color: var(--color-ink);
}

.section-band-dark {
  background: var(--color-black);
  color: var(--color-muted-on-dark);
}

.section-band-muted {
  background: #f4f4f4;
  color: var(--color-ink);
}

.value-reinforcement.section-band-dark .hero-value-line {
  color: rgba(255, 255, 255, 0.9);
}

.about-section,
.services-overview,
.services-teaser,
.proof-section,
.impact-section {
  padding: var(--section-pad-y) 0;
}

/* ===== STATS BAR (below hero) ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-dark);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.stats-bar .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  animation: none;
  opacity: 1;
}

.stats-bar .stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.75rem, 5.5vw, 3.5rem);
  width: 100%;
}

.stats-bar .stat-number {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
}

.stats-bar .stat-number--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.stats-bar .stat-number-line {
  display: block;
  white-space: nowrap;
}

.stats-bar .stat-label {
  color: var(--color-muted-on-dark);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.65rem;
  line-height: 1.35;
}

.stats-bar .stat-item.animate-on-scroll.ready {
  opacity: 0;
  transform: translateY(24px);
}

.stats-bar .stat-item.animate-on-scroll.ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 575.98px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
  }

  .stats-bar .stat-number--stacked {
    font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  }
}

/* ===== TRUSTED BY (dark) ===== */
.trusted-by-section {
  background: var(--color-black);
  padding: var(--section-pad-y) 0;
  color: var(--color-muted-on-dark);
}

.trusted-by-section h3 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.client-card {
  background: linear-gradient(165deg, #4a545c 0%, #3a4249 50%, #2f363c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 2rem 1.75rem;
  color: #fff;
}

.client-card:hover {
  transform: none;
  background: linear-gradient(165deg, #545f68 0%, #434c54 50%, #383f47 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.client-icon {
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 1.75rem;
  color: #fff;
}

.client-card h4 {
  color: #fff;
  font-weight: 500;
}

.client-description {
  color: rgba(255, 255, 255, 0.82);
}

.client-card .client-result {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.client-card-link {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.client-card-link:hover {
  color: #fff;
  opacity: 0.75;
}

.trusted-by-section .client-card .result-metric {
  color: #fff;
  font-weight: 500;
  font-size: 2.25rem;
}

.trusted-by-section .client-card .result-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ===== IMPACT / SERVICE CARDS ===== */
.impact-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  border-left: none;
  box-shadow: none;
  background: #fff;
}

.impact-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.category-title {
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 500;
}

.service-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: none;
  border-left: none;
}

.service-item:hover {
  transform: none;
  border-color: rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT IMBA ===== */
.about-imba-block {
  background: linear-gradient(165deg, #4a545c 0%, #3a4249 50%, #2f363c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 2rem 1.75rem;
  height: 100%;
}

.about-imba-block:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: linear-gradient(165deg, #545f68 0%, #434c54 50%, #383f47 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.about-imba-block h3 {
  color: #fff;
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.about-imba-block p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.about-imba-block p:last-child {
  margin-bottom: 0;
}

.about-imba-title {
  font-weight: 500;
}

/* ===== CONVERSION + FOOTER ===== */
.conversion-cta {
  background: var(--color-black);
  border-top: 1px solid var(--color-border-dark);
  padding: var(--section-pad-y) 0;
}

.conversion-cta h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.conversion-cta p {
  color: var(--color-muted-on-dark);
}

.footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-border-dark);
}

.footer > .container {
  max-width: 1280px;
}

.footer .row {
  --bs-gutter-x: 2rem;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.footer .row > [class*="col-"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0;
}

.footer-brand h5 {
  margin-bottom: 1rem;
}

.footer-brand img {
  display: block;
  max-width: min(200px, 100%);
  height: auto;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 280px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer-brand {
    padding-right: 1rem;
  }
}

.footer h5 {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
}

.footer .copyright {
  border-top-color: var(--color-border-dark);
}

.footer-link::after {
  background-color: rgba(255, 255, 255, 0.6);
}

/* ===== TECH MARQUEE ===== */
.tech-logos-track {
  animation-duration: 55s;
}

.tech-logo {
  opacity: 1;
  filter: none;
}

.tech-logo:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .tech-logos-marquee {
    overflow: visible;
  }

  .tech-logos-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
  }

  .tech-logos-set {
    display: contents;
    padding: 0;
  }

  .tech-logos-set[aria-hidden="true"] {
    display: none;
  }
}

/* ===== TECH ACCORDION (replaces flip cards) ===== */
.tech-card-column {
  display: none !important;
}

.tech-stack-accordion {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.tech-stack-accordion .accordion-item {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 0;
  margin-bottom: -1px;
}

.tech-stack-accordion .accordion-button {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  box-shadow: none;
  padding: 1.1rem 1.25rem;
}

.tech-stack-accordion .accordion-button:not(.collapsed) {
  background: #f8f8f8;
  color: var(--color-ink);
  box-shadow: none;
}

.tech-stack-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--color-border-light);
}

.tech-stack-accordion .accordion-body {
  color: var(--color-muted);
  line-height: 1.6;
  padding: 0 1.25rem 1.25rem;
}

.tech-stack-accordion .tech-accordion-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.75rem;
  object-fit: contain;
}

.tech-stack-accordion .learn-more-btn {
  margin-top: 1rem;
  background: var(--color-ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* ===== ANIMATIONS (subtle fade only) ===== */
.animate-on-scroll.ready {
  transform: translateY(20px);
  transition-duration: 0.6s;
}

.animate-on-scroll.animate-slide-left.ready,
.animate-on-scroll.animate-slide-right.ready,
.animate-on-scroll.animate-scale.ready {
  transform: translateY(20px);
}

.scroll-indicator {
  font-size: 1.25rem;
  opacity: 0.5;
}

/* ===== LEGAL PAGE HEADER (hide old logo strip) ===== */
.page-inner .header-section:not(.page-hero-minimal) {
  display: none;
}

@media (max-width: 768px) {
  .page-hero-cinematic,
  .page-hero-slim {
    min-height: 58vh;
    height: auto;
  }

  /* Override legacy navbar logo constraints that squash aspect ratio */
  .navbar-imba .navbar-brand {
    max-width: none !important;
  }

  .navbar-imba .navbar-brand img {
    height: 32px !important;
    width: auto !important;
    max-width: min(220px, calc(100vw - 5.5rem)) !important;
  }

  .navbar-imba .navbar-toggler {
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
  }

  .hero-cta-row .cta-button,
  .hero-cta-row .cta-button.cta-button-secondary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .navbar-imba .navbar-brand img {
    height: 28px !important;
    max-width: min(190px, calc(100vw - 4.5rem)) !important;
  }

  .hero-content-bottom .hero-title-large {
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
  }
}

/* ===== SITE-WIDE CONSISTENCY OVERRIDES ===== */
/* Neutralise legacy yellow/gold accents from styles.css */
.stats-bar .stat-number,
.hero-content-bottom .stat-number {
  color: #fff !important;
}

.about-section .stat-number,
.impact-section .stat-number {
  color: var(--color-ink) !important;
}

.service-link,
.service-link:hover {
  color: var(--color-ink) !important;
}

.service-link:hover {
  opacity: 0.75;
}

.tech-details-link {
  color: var(--color-ink) !important;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-details-link:hover {
  opacity: 0.7;
}

.category-title {
  border-bottom-color: var(--color-border-light) !important;
  color: var(--color-ink) !important;
}

.cookie-consent-text h4 {
  color: #fff !important;
}

.cookie-consent-text a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cookie-btn-accept {
  background: #fff !important;
  color: var(--color-ink) !important;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(255, 255, 255, 0.85) !important;
}

.contact-info-card i {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Inner pages: content sections */
.page-inner .about-section,
.page-inner .consultation-intro,
.page-inner .contact-form-section {
  color: var(--color-ink);
}

.page-inner .about-section h1,
.page-inner .about-section h2,
.page-inner .about-section h3 {
  color: var(--color-ink);
}

.services-value-map {
  background: #f4f4f4;
  padding: var(--section-pad-y) 0;
}

.consultation-intro {
  background: #fff;
  padding: var(--section-pad-y) 0;
  color: var(--color-ink);
}

.consultation-intro .lead {
  color: var(--color-muted);
}

.tech-content {
  background: #fff;
  padding-bottom: var(--section-pad-y);
}

.tech-content > .container {
  padding-top: 2rem;
}

.tech-problem-filters p {
  color: var(--color-ink) !important;
}

.tech-intro-section p {
  color: var(--color-muted);
}

.about-imba-section {
  background: var(--color-black);
  padding: var(--section-pad-y) 0;
}

.about-imba-title {
  color: #fff;
  font-weight: 500;
}

/* Thank you page */
.thank-you-section {
  background: #fff;
  color: var(--color-ink);
  min-height: 100vh;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
  display: flex;
  align-items: center;
}

.thank-you-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding: 2.5rem 2rem;
}

.thank-you-title {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.home-button {
  background: var(--color-ink);
  border: 1px solid var(--color-ink);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 1.5rem;
  transform: none;
}

.home-button:hover {
  background: #2d3238;
  border-color: #2d3238;
  color: #fff;
  transform: none;
}

/* Minimal legal heroes */
.page-hero-minimal .hero-title-large {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-hero-minimal .hero-subtitle-large {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Slim heroes: content pages */
.page-hero-slim + .about-section,
.page-hero-cinematic + .about-section {
  padding-top: var(--section-pad-y);
}

/* Flip card learn-more in hidden grid — accordion uses refinements styles */
.learn-more-btn {
  background: var(--color-ink) !important;
  border-radius: var(--radius-sm) !important;
}

.learn-more-btn:hover {
  background: #2d3238 !important;
}

/* Problem filter buttons on tech page */
.problem-filter-btn.active,
.problem-filter-btn:hover {
  background: var(--color-ink) !important;
  border-color: var(--color-ink) !important;
  color: #fff !important;
}

/* Solid nav on pages without a full-bleed image hero */
body.page-inner:has(.thank-you-section) .navbar-imba,
body.page-inner:has(.page-hero-minimal) .navbar-imba {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* FAQ & Support: match site accordion styling */
.page-inner .about-section .accordion-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.page-inner .about-section .accordion-button {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink);
  background: #fff;
  box-shadow: none;
}

.page-inner .about-section .accordion-button:not(.collapsed) {
  background: var(--color-ink);
  color: #fff;
}

.page-inner .about-section .accordion-button:focus {
  border-color: var(--color-border-light);
  box-shadow: none;
}

.page-inner .about-section .accordion-body {
  color: var(--color-muted);
  line-height: 1.65;
}

/* Support cards & form buttons */
.page-inner .about-section .card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.page-inner .about-section .card .text-primary,
.page-inner .about-section .fas.text-primary {
  color: var(--color-ink) !important;
}

.page-inner .btn-primary,
.contact-submit-btn {
  background: var(--color-ink) !important;
  border-color: var(--color-ink) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  transform: none;
}

.page-inner .btn-primary:hover,
.contact-submit-btn:hover {
  background: #2d3238 !important;
  border-color: #2d3238 !important;
  transform: none;
}

.thank-you-icon {
  font-size: 3.5rem;
  color: var(--color-ink);
  margin-bottom: 1.25rem;
}

.page-inner .about-section h3 {
  font-weight: 500;
  color: var(--color-ink);
}

/* Sticky mobile CTA (home) */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  padding: 0.85rem 1rem;
  text-align: center;
  background: var(--color-ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta-bar.is-visible {
  transform: translateY(0);
}

@media (max-width: 768px) {
  body.page-home .sticky-cta-bar {
    display: block;
  }

  body.page-home.has-sticky-cta {
    padding-bottom: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta-bar {
    transition: none;
  }
}
