/* Trinity Technology Solutions - Consolidated CSS */

/* Hide Button */
.button.is-nav {
  display: none !important;
}

/* Fix Logos */
.partners_comp {
  padding: 2rem 0 !important;
  background: white !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.logos-scroll-container {
  overflow: hidden;
  width: 100%;
  max-width: 1600px;
  margin: 1rem auto;
  padding: 0 3rem;
}

.logos-scroll {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: scroll 20s linear infinite;
  width: max-content;
  padding: 1.5rem 0;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  height: 70px;
  width: auto;
  max-width: 160px;
  min-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
  flex-shrink: 0;
  flex-grow: 1;
  margin: 0 auto;
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Increase Width */
.container-large {
  max-width: 1400px !important;
}

.container-medium {
  max-width: 1200px !important;
}

.container-small {
  max-width: 1000px !important;
}

.nav_container {
  max-width: 1600px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

.nav_brand {
  margin-left: -2rem !important;
}

.nav_menu {
  position: absolute !important;
  left: 82% !important;
  transform: translateX(-50%) !important;
}

.button.is-nav {
  position: absolute !important;
  left: 95% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.nav_logo {
  height: 80px !important;
  width: 400px !important;
}

footer > div:nth-child(2) {
  max-width: 1400px !important;
}

footer img {
  height: 80px !important;
  width: auto !important;
}

/* Fix Who We Are */
.two_column_comp {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.two_column-thumb_wr {
  flex: 1.2;
  max-width: 55%;
  overflow: hidden;
  border-radius: 12px;
}

.two_column_content {
  flex: 0.8;
  max-width: 45%;
  padding-left: 2rem;
}

.two_column-thumb_wr img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover !important;
  border-radius: 12px;
}

/* Fix Header */
.nav_fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: white !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.u-nav-spacer {
  height: 80px !important;
}

.nav_menu_container .button.is-nav:nth-child(3) {
  display: none !important;
}

.nav_container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 2rem !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}

.nav_menu {
  margin-left: auto !important;
}

.nav_menu_container {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
}

.nav-menu-inner {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
}

.main-wrapper {
  padding-top: 0 !important;
}

.section_hero {
  margin-top: 0 !important;
}

/* Responsive */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

* {
  box-sizing: border-box !important;
}

.page-wrapper,
.main-wrapper,
.container-large,
.container-medium,
.container-small {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* New Responsive Header */
.nav_fixed {
  display: none !important;
}

.new-responsive-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  height: 80px;
  border-bottom: 1px solid #e5e7eb;
}

/* Ensure logo visibility */
.new-logo a {
  display: block;
  line-height: 0;
}

.new-logo img {
  visibility: visible !important;
  opacity: 1 !important;
}

.new-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.new-logo {
  flex-shrink: 0;
}

.new-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.new-logo img {
  height: 60px;
  width: auto;
  display: block;
  max-width: 200px;
  object-fit: contain;
}

.new-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: nowrap;
}

.new-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.new-nav a:hover {
  color: #22396b;
}

.new-get-started {
  background: #22396b;
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 600;
}

.new-get-started:hover {
  background: #1a2d5a !important;
  color: white !important;
}

.new-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  justify-content: space-between;
}

.new-hamburger span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body {
  margin: 0;
  padding: 0;
}

/* Section Spacing */
.section-heading {
  margin-bottom: 1rem;
}

.section-subheading {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Mobile Responsive - Enhanced */
@media (max-width: 768px) {
  /* Base container fixes */
  .container-large,
  .container-medium,
  .container-small {
    padding: 0 1rem !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Header improvements */
  .new-responsive-header {
    height: 60px !important;
  }
  
  .new-header-container {
    padding: 0 1rem !important;
  }
  
  .new-logo img {
    height: 45px !important;
  }
  
  .new-hamburger {
    display: flex !important;
  }
  
  .new-nav {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    flex-direction: column !important;
    padding: 1.5rem 1rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    margin-left: 0 !important;
    z-index: 999 !important;
  }
  
  .new-nav.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .new-nav a {
    padding: 0.75rem 0 !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
    width: 100% !important;
  }
  
  .new-get-started {
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
  }
  
  /* Content sections */
  .hero_content h1 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  
  .services-grid-new {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .service-card-new {
    padding: 0.75rem 0.5rem !important;
    height: 50px !important;
    gap: 0.4rem !important;
  }
  
  .service-icon-new {
    width: 28px !important;
    height: 28px !important;
  }
  
  .service-title-new {
    font-size: 0.8rem !important;
    line-height: 1 !important;
  }
  
  .businesses-grid-new {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .four_column_grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  .fifty_fifty-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .cards_grid {
    grid-template-columns: 1fr !important;
  }
  
  .two_column_comp {
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 2rem 1rem !important;
  }
  
  .two_column-thumb_wr,
  .two_column_content {
    max-width: 100% !important;
    flex: none !important;
  }
  
  /* Partner logos */
  .logos-scroll-container {
    padding: 0 1rem !important;
  }
  
  .logos-scroll {
    gap: 1rem !important;
    justify-content: center !important;
  }
  
  .partner-logo {
    height: 40px !important;
    max-width: 100px !important;
    min-width: 80px !important;
  }
  
  /* Section spacing */
  .padding-section-large,
  .padding-section-large-xx {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .padding-section-medium {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile fixes */
  .four_column_grid {
    grid-template-columns: 1fr !important;
  }
  
  .hero_content h1 {
    font-size: 1.5rem !important;
  }
  
  .new-responsive-header {
    height: 50px !important;
  }
  
  .new-header-container {
    padding: 0 0.75rem !important;
  }
  
  .new-logo img {
    height: 35px !important;
  }
  
  .new-nav {
    top: 50px !important;
  }
  
  .logos-scroll {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.8rem !important;
  }
  
  .partner-logo {
    height: 35px !important;
    max-width: 90px !important;
    min-width: 70px !important;
  }
  
  /* Counter grid single column */
  .counter-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Location cards single column */
  .location-cards {
    grid-template-columns: 1fr !important;
  }
  
  /* Tech stack single column */
  .tech-stack-section > div > div > div:nth-child(3),
  .tech-stack-section > div > div > div:nth-child(4) {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  .logos-scroll {
    gap: 1.2rem;
  }
  
  .partner-logo {
    height: 60px;
    max-width: 140px;
    min-width: 100px;
  }
  
  .new-header-container {
    padding: 0 1.5rem;
  }
  
  .new-logo img {
    height: 65px;
  }
  
  .new-nav {
    gap: 2rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .services-grid-new {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .businesses-grid-new {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}