/* ==========================================================================
   TRUE STAR VENTURES - SITE FOOTER & CLEAN RESPONSIVE STYLES
   ========================================================================== */

/* --- SITE FOOTER --- */
footer.site-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
  color: #334155;
  padding: 64px 0 0;
  border-top: 4px solid #D4AF37;
  font-family: Montserrat, sans-serif;
  position: relative;
  width: 100%;
}
.site-footer *, .site-footer *::before, .site-footer *::after {
  box-sizing: border-box;
}
.site-footer .sf-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-footer .sf-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #d5deea;
}
.site-footer .sf-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
  text-decoration: none;
}
.site-footer .sf-logo img {
  height: 85px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-footer .sf-about {
  font-size: .88rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 1.25rem;
  max-width: 320px;
}
.site-footer .sf-h {
  color: #B8890F;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 1.25rem;
  padding-bottom: .7rem;
  position: relative;
}
.site-footer .sf-h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: #D4AF37;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .sf-links li {
  margin-bottom: .65rem;
}
.site-footer .sf-links a, .site-footer .sf-contact a {
  color: #334155;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .25s;
  display: inline;
  margin: 0;
}
.site-footer .sf-links a:hover, .site-footer .sf-contact a:hover {
  color: #0F2C93;
  text-decoration: underline;
}
.site-footer .sf-contact li {
  display: flex;
  gap: .8rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  line-height: 1.7;
  color: #334155;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.site-footer .sf-contact a {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.site-footer .sf-contact i {
  color: #B8890F;
  width: 18px;
  text-align: center;
  margin-top: .3rem;
  flex: 0 0 18px;
}
.site-footer .sf-social {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.site-footer .sf-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F2C93;
  color: #fff;
  font-size: .95rem;
  text-decoration: none;
  margin: 0;
  transition: background .25s, color .25s, transform .25s;
}
.site-footer .sf-social a:hover {
  background: #D4AF37;
  color: #0F172A;
  transform: translateY(-3px);
}
.site-footer .sf-bottom {
  padding: 1.4rem 0;
  text-align: center;
  font-size: .82rem;
  color: #64748b;
}

/* ==========================================================================
   PERFECT ZERO-OVERFLOW & ROCK-SOLID MOBILE VIEWPORT LOCK
   Eliminates all horizontal movement, page wiggle, and side panning across all devices
   ========================================================================== */
html {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
  -webkit-text-size-adjust: 100% !important;
}
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  touch-action: pan-y !important; /* CRITICAL: Allows vertical scroll ONLY, blocks all horizontal swipe/wobble */
  overscroll-behavior-x: none !important; /* Disables rubber-banding on horizontal axis */
}
html.no-scroll, body.no-scroll {
  overflow: hidden !important;
  touch-action: none !important;
}

/* Guard all sections, headers, and main containers */
section, header, nav, main, footer, article, aside {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: clip !important;
}
.container {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
img, video, iframe {
  max-width: 100% !important;
}


/* --- TABLET ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .site-footer .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* --- MOBILE HEADER NAVIGATION STRIP (Always visible in Header on mobile) --- */
.mobile-nav-strip {
  display: none;
}
@media (max-width: 1023px) {
  .mobile-nav-strip {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.35rem 0.85rem 0.45rem !important;
    background: #ffffff !important;
    border-top: 1px solid #eef2f6 !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }
  .mobile-nav-strip::-webkit-scrollbar {
    display: none !important;
  }
  .mob-strip-link {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-decoration: none !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
  }
  .mob-strip-link:hover,
  .mob-strip-link.active {
    color: #0F172A !important;
    background: linear-gradient(135deg, rgba(212,175,55,0.22) 0%, rgba(212,175,55,0.06) 100%) !important;
    border-color: #D4AF37 !important;
    font-weight: 800 !important;
  }
}

/* ==========================================================================
   MOBILE-ONLY RULES (max-width: 768px)
   These rules strictly apply to phones/small tablets. Desktop is NEVER affected.
   ========================================================================== */
@media (max-width: 768px) {
  /* Navbar */
  #navbar {
    min-height: auto !important;
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06) !important;
  }
  .navbar-brand-logo {
    height: 44px !important;
    width: auto !important;
  }

  /* Fullscreen Mobile Drawer */
  #mob-menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s ease-in-out !important;
    overflow-y: auto !important;
    padding: 5rem 1.5rem 3rem !important;
    box-shadow: -5px 0 35px rgba(0,0,0,0.15) !important;
  }
  #mob-menu.open {
    transform: translateX(0) !important;
  }
  #mob-menu button[onclick*="toggleMob"] {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    font-size: 1.35rem !important;
    color: #0F172A !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000000 !important;
  }
  #mob-menu .nav-link {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    text-decoration: none !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 30px !important;
    text-align: center !important;
  }
  #mob-menu .nav-link:hover, #mob-menu .nav-link.active {
    color: #D4AF37 !important;
    background: rgba(212,175,55,0.08) !important;
  }

  /* Swiper: Hide navigation arrows on mobile so text is never obstructed */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  .swiper-pagination {
    bottom: 12px !important;
  }

  /* Swiper Container: Responsive Small Viewport Height */
  .hero-wrap.swiper {
    height: 100svh !important;
    min-height: 560px !important;
    max-height: none !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .hero-wrap .swiper-slide {
    height: 100% !important;
    min-height: 560px !important;
    padding: 105px 1.25rem 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-text {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 5 !important;
  }
  .hero-title {
    font-size: clamp(1.45rem, 5.2vw, 1.95rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.65rem !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    color: #ffffff !important;
  }
  .hero-sub {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.15rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 100% !important;
  }
  .hero-text div[style*="display:flex"],
  .hero-text div[style*="display: flex"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .hero-text .btn-gold,
  .hero-text .btn-outline {
    flex: 1 1 auto !important;
    min-width: 130px !important;
    max-width: 220px !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.68rem 1rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  /* Subpage Hero adjustment */
  section.hero-wrap:not(.swiper) {
    padding: 125px 1.25rem 50px !important;
  }

  /* Why TSV negative margin fix on mobile */
  div[style*="left: -30px"],
  div[style*="left:-30px"],
  div[style*="left: -20px"],
  div[style*="left:-20px"],
  div[style*="bottom: -30px"],
  div[style*="bottom:-30px"] {
    position: relative !important;
    left: 0 !important;
    bottom: 0 !important;
    margin: 1.25rem 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Disable horizontal translation from AOS library on mobile to eliminate 100px body expansion */
  [data-aos="fade-left"],
  [data-aos="fade-right"],
  [data-aos^="fade-"][data-aos$="-left"],
  [data-aos^="fade-"][data-aos$="-right"] {
    transform: translate3d(0, 20px, 0) !important;
  }
  [data-aos].aos-animate {
    transform: translate3d(0, 0, 0) !important;
  }
  [data-aos] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Compact mobile section padding & typography */
  section[style*="padding: 100px"],
  section[style*="padding: 80px"],
  section[style*="padding:100px"],
  section[style*="padding:80px"],
  .cap-section {
    padding: 48px 0 !important;
  }
  .sec-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .mb-16 {
    margin-bottom: 1.75rem !important;
  }
  .mb-14 {
    margin-bottom: 1.5rem !important;
  }
  .container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  /* Prevent iOS automatic input zoom */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .c-input,
  .form-control,
  .fi,
  .fs,
  .ft {
    font-size: 16px !important;
  }
}

/* --- SMALL PHONE FOOTER (max-width: 600px) --- */
@media (max-width: 600px) {
  footer.site-footer {
    padding: 40px 0 0 !important;
  }
  .site-footer .sf-wrap {
    padding: 0 1.15rem !important;
  }
  .site-footer .sf-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }
  .site-footer .sf-logo img {
    height: 58px !important;
    width: auto !important;
  }
  .site-footer .sf-about {
    max-width: 100% !important;
    margin-bottom: 1rem !important;
    font-size: 0.84rem !important;
  }
  .site-footer .sf-social {
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
  }
  .site-footer .sf-social a {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
  }
  .site-footer .sf-bottom {
    padding: 1.2rem 1rem 4.5rem !important;
    font-size: 0.78rem !important;
  }
  .site-footer .sf-contact li,
  .site-footer .sf-contact a {
    font-size: 0.82rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

/* ==========================================================================
   GLOBAL TECHNOLOGY ECOSYSTEM RUNNING MARQUEE
   ========================================================================== */
.logo-rows { display: grid; gap: 1.1rem; margin-top: 2.5rem; width: 100%; max-width: 100% !important; overflow: hidden !important; box-sizing: border-box !important; }
.logo-marquee { overflow: hidden !important; width: 100%; max-width: 100% !important; padding: .6rem 0; box-sizing: border-box !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
#ecosystem, #partners { overflow: hidden !important; max-width: 100% !important; box-sizing: border-box !important; }
.logo-track { display: flex; width: max-content; animation: logoScroll 60s linear infinite; }
.logo-track.rev { animation-direction: reverse; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-track .brand-logo-card { flex: 0 0 200px; margin-right: 1.1rem; padding: .7rem 1rem; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 768px) {
  .logo-track .brand-logo-card { flex: 0 0 140px !important; margin-right: 0.75rem !important; padding: 0.4rem !important; }
  .logo-rows { gap: 0.75rem !important; margin-top: 1.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none !important; flex-wrap: wrap !important; width: auto !important; justify-content: center !important; }
}

/* ==========================================================================
   GLOBAL TSV GOLD/YELLOW ICON STANDARD
   Guarantees icons across all solution and service pages are rich TSV Gold/Yellow
   ========================================================================== */
.svc-icon {
  color: #D4AF37 !important;
  transition: transform .3s ease, color .3s ease;
}
.svc-icon:hover,
div:hover > .svc-icon {
  color: #f0c040 !important;
}
.step-num {
  background: linear-gradient(135deg, #D4AF37, #f0c040) !important;
  color: #0F172A !important;
  box-shadow: 0 4px 15px rgba(212,175,55,0.4) !important;
}
.step-num i {
  color: #0F172A !important;
}
.sub-list i {
  color: #D4AF37 !important;
}
.div-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #D4AF37, #f0c040);
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(212,175,55,0.35);
  flex-shrink: 0;
}


