/************************************************************
 * MARKSMAN DIGITAL MEDIA – TRUST BAR V2 (Clean Rebuild)
 * 
 * Complete trust section with heading, description, and logo bar
 * Features:
 * - Perfect mobile scaling
 * - Horizontal scroll on small screens
 * - Grayscale hover effects
 * - Zero GenerateBlocks conflicts
 * 
 * Last Updated: 2025-01-09
 ************************************************************/

/* ==========================================
   SECTION WRAPPER
   ========================================== */

.trust-section {
  width: 100%;
  padding: 80px 20px;
  background: var(--theme-palette-color-6, #f2f5f7);
  position: relative;
}


/* ==========================================
   INTRO (Heading + Description)
   ========================================== */

.trust-intro {
  max-width: 1180px;
  margin: 0 auto 40px auto;
  text-align: center;
  padding: 0 48px;
}

.trust-intro h2 {
  margin: 0 0 1rem 0;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.2;
  color: var(--mdm-text);
}

.trust-intro p {
  margin: 0;
  font-size: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  line-height: 1.6;
  color: var(--mdm-text);
  opacity: 0.9;
  max-width: 800px;
  margin-inline: auto;
}


/* ==========================================
   CONTAINER (Max Width)
   ========================================== */

.trust-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0; /* Remove padding - track will handle it */
  overflow: hidden; /* Critical: prevents track from breaking out */
}


/* ==========================================
   LOGO TRACK (Flex Container)
   ========================================== */

.trust-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 16px; /* Padding moved here from container */
  
  /* Smooth scrolling */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trust-track::-webkit-scrollbar {
  display: none;
}


/* ==========================================
   INDIVIDUAL LOGO CONTAINERS
   ========================================== */

.trust-logo {
  flex: 0 0 auto;
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.trust-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  
  /* Grayscale effect */
  filter: grayscale(100%) opacity(0.85);
  transition: filter 0.3s ease;
}


/* ==========================================
   HOVER EFFECTS (Desktop Only)
   ========================================== */

@media (hover: hover) {
  .trust-logo:hover {
    transform: translateY(-2px);
  }
  
  .trust-logo:hover img {
    filter: grayscale(0%) opacity(1);
  }
}


/* ==========================================
   RESPONSIVE SCALING
   ========================================== */

/* Desktop (1024px+) - Large logos */
@media (min-width: 1024px) {
  .trust-section {
    padding: 80px 20px;
  }
  
  .trust-intro {
    padding: 0 48px;
    margin-bottom: 40px;
  }
  
  .trust-track {
    gap: 36px;
  }
  
  .trust-logo {
    width: 140px;
    height: 46px;
  }
}

/* Tablet (768px - 1023px) - Medium logos */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .trust-section {
    padding: 60px 20px;
  }
  
  .trust-intro {
    padding: 0 36px;
    margin-bottom: 36px;
  }
  
  .trust-track {
    gap: 28px;
    padding-bottom: 30px;
  }
  
  .trust-logo {
    width: 110px;
    height: 36px;
  }
}

/* Large Mobile (481px - 767px) - Smaller logos, scroll enabled */
@media (min-width: 481px) and (max-width: 767.98px) {
  .trust-section {
    padding: 36px 16px;
  }
  
  .trust-intro {
    padding: 0 32px;
    margin-bottom: 32px;
    max-width: 700px;
  }
  
  .trust-container {
    padding: 0 12px; /* Add side padding on container */
  }
  
  .trust-track {
    gap: 20px;
    justify-content: flex-start;
    padding: 10px 0; /* Remove side padding from track */
  }
  
  .trust-logo {
    width: 90px;
    height: 30px;
  }
}

/* Standard Mobile (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
  .trust-section {
    padding: 36px 12px;
  }
  
  .trust-intro {
    padding: 0 24px;
    margin-bottom: 28px;
    max-width: 700px;
  }
  
  .trust-container {
    padding: 0 12px;
  }
  
  .trust-track {
    gap: 16px;
    justify-content: flex-start;
    padding: 10px 0;
  }
  
  .trust-logo {
    width: 80px;
    height: 26px;
  }
}

/* Small Mobile (320px - 375px) */
@media (max-width: 375px) {
  .trust-section {
    padding: 36px 8px;
  }
  
  .trust-intro {
    padding: 0 16px;
    margin-bottom: 24px;
    max-width: 100%;
  }
  
  .trust-container {
    padding: 0 8px;
  }
  
  .trust-track {
    gap: 14px;
    justify-content: flex-start;
    padding: 10px 0;
  }
  
  .trust-logo {
    width: 72px;
    height: 24px;
  }
}

/* Extra Small (below 320px) */
@media (max-width: 319px) {
  .trust-container {
    padding: 0 4px;
  }
  
  .trust-track {
    gap: 12px;
  }
  
  .trust-logo {
    width: 64px;
    height: 22px;
  }
}


/* ==========================================
   ACCESSIBILITY
   ========================================== */

.trust-logo:focus {
  outline: 2px solid var(--mdm-focus, #3A4F66);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trust-track {
    scroll-behavior: auto;
  }
  
  .trust-logo,
  .trust-logo img {
    transition: none;
  }
}


/* ==========================================
   NOTES & CHANGELOG
   ========================================== */

/*
USAGE:
1. Delete old GenerateBlocks trust section
2. Add Custom HTML block in WordPress
3. Paste the HTML from trust-bar-html artifact
4. Save and test!

INCLUDES:
- Intro heading + description (styled to match original)
- 6 tool logos (Google Search Console, GA4, Google Ads, Meta, ChatGPT, WordPress)
- Responsive scaling from 320px to 1920px+
- Horizontal scroll on mobile
- Hover effects on desktop

BENEFITS:
- 90% less CSS than GenerateBlocks version
- Perfect mobile scaling (no more cutoff logos!)
- Clean, semantic HTML
- Easy to add/remove logos
- No inline styles conflicts

CUSTOMIZATION:
- Change .trust-section background color
- Adjust logo sizes at any breakpoint
- Add more logos by copying a .trust-logo div
- Modify gap spacing if needed

CHANGELOG:
- 2025-01-09: Complete rebuild with intro section
- 2025-01-09: Matched original padding and spacing
- 2025-01-09: Fixed mobile scaling issues
*/