﻿/* Merchant People - Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0B0D14;
  color: #E5E7EB;
  padding-top: 110px;
}

@media (max-width: 1024px) {
  body { padding-top: 90px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0B0D14; }
::-webkit-scrollbar-thumb { background: #2D3348; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3B4158; }

/* Video Hero */
.video-hero-container {
  width: 100%;
  position: relative;
  line-height: 0;
  background: #030712;
  padding: 60px 0 40px;
}

.video-frame {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 36px;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.08), rgba(20, 20, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  position: relative;
}

.video-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 530px;
  object-fit: contain;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
}

@media (max-width: 992px) {
  .video-hero-container {
    padding: 40px 16px;
  }

  .video-frame {
    padding: 12px;
    border-radius: 24px;
  }

  .video-hero {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .video-hero-container {
    background: #000;
    padding: 0;
  }

  .video-frame {
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .video-hero {
    height: auto; /* Allow natural height on mobile */
    max-height: 600px;
    border-radius: 0;
  }
}

@media (max-width: 900px) {
  .nav-partner-logos {
    display: none !important;
  }
}

.nav-partner-logos span,
.mobile-partner-logos {
  font-size: 0.48rem !important;
  letter-spacing: 0.14em !important;
}

.nav-partner-logos img {
  height: 54px !important;
}

.mobile-partner-logos img {
  height: 38px !important;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.video-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.video-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: scale(1.05);
}

.video-btn svg {
  width: 20px;
  height: 20px;
}

/* Navigation */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  color: #374151;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link:hover { color: #14B8A6; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #14B8A6;
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  max-height: 80vh;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #4B5563;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #F3F4F6;
  color: #14B8A6;
}

/* Multi-column dropdown scrollbar */
.dropdown-menu::-webkit-scrollbar { width: 5px; }
.dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.dropdown-menu::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }

/* Hero */
.hero-gradient {
  background: linear-gradient(135deg, #0B0D14 0%, #111827 40%, #0F172A 70%, #0B0D14 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #0B0D14, transparent);
  pointer-events: none;
}

/* Subtle section card overrides for panel sections */
.section-panel .card,
.section-panel .testimonial-card {
  background: #1A1F2E;
  border-color: #2D3348;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.section-panel .card:hover {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 20px 60px rgba(20, 184, 166, 0.08);
}

/* Page Hero (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, #0B0D14 0%, #111827 50%, #0B0D14 100%);
  position: relative;
  overflow: hidden;
  padding: 200px 0 80px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Contact hero layout */
.contact-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.contact-hero-media {
  aspect-ratio: 4 / 3;
  max-width: 520px;
  margin: 0 auto;
}

.contact-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

@media (max-width: 768px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-hero-media {
    order: -1;
    max-width: 100%;
  }

  .contact-hero-media img {
    min-height: 260px;
  }
}

/* Cards */
.card {
  padding: 32px;
  transition: all 0.4s ease;
}

.card:hover {
  border-color: #14B8A6;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(20, 184, 166, 0.1);
}

.card-dark {
  padding: 32px;
  transition: all 0.4s ease;
}

.card-dark:hover {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Icon container */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.1);
  color: #14B8A6;
  flex-shrink: 0;
}

.icon-box-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #14B8A6, #0D9488);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #D1D5DB;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid #3B4158;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #14B8A6;
  color: #14B8A6;
  transform: translateY(-2px);
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

/* Section */
.section { padding: 60px 0; }
.section-dark { background: #0B0D14; }
.section-darker { background: #050608; }
.section-panel { background: #111827; }
.section-light { background: #FFFFFF; }

.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section headers */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  color: #14B8A6;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Section image containers */
.section-img {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #1A1F2E;
  border: 1px solid #2D3348;
}

.section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.section-img:hover img {
  transform: scale(1.05);
}

.section-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(20,184,166,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Float animation */
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-anim {
  animation: floatUp 4s ease-in-out infinite;
}

.float-anim-delay {
  animation: floatUp 4s ease-in-out 1s infinite;
}

/* Slide in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Glow effects */
.glow-teal {
  box-shadow: 0 0 60px rgba(20, 184, 166, 0.15);
}

.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #14B8A6, transparent);
  opacity: 0.3;
}

/* Grid pattern background */
.grid-bg {
  background-image: 
    linear-gradient(rgba(45, 51, 72, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 51, 72, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #0B0D14 0%, #111827 40%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Testimonial */
.testimonial-card {
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: rgba(20, 184, 166, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Stats */
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #14B8A6, #2DD4BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* Section */
.section { padding: 40px 0; }
.section-dark { background: #0B0D14; }

/* Logo Scroller */
.logo-scroller {
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
  position: relative;
  background: #FFFFFF;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.logo-scroller::before,
.logo-scroller::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.logo-scroller::before {
  left: 0;
  background: linear-gradient(to right, #FFFFFF 0%, transparent 100%);
}

.logo-scroller::after {
  right: 0;
  background: linear-gradient(to left, #FFFFFF 0%, transparent 100%);
}

.logo-scroller-track {
  display: inline-flex;
  gap: 80px;
  align-items: center;
  animation: scroll 30s linear infinite;
}

.logo-scroller-track img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.logo-scroller-track img:hover {
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 40px)); } /* -50% of total width minus half the gap */
}

/* Pricing table */
.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #1E2230;
}

.pricing-row:last-child { border-bottom: none; }

/* Form */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: #161A24;
  border: 1px solid #2D3348;
  border-radius: 12px;
  color: #E5E7EB;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-input::placeholder { color: #6B7280; }

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #D1D5DB;
  font-weight: 500;
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-bottom-color: #14B8A6;
  background: rgba(20, 184, 166, 0.05); /* Subtle background for active state */
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #E5E7EB;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.faq-question:hover { color: #14B8A6; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: #9CA3AF;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

/* Footer */
.footer {
  background: #080A10;
  border-top: 1px solid #1E2230;
  padding: 60px 0 30px;
}

.footer a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer a:hover { color: #14B8A6; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid #E5E7EB;
}

.mobile-menu.open { right: 0; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid #E5E7EB;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover { color: #14B8A6; }

.mobile-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 1px solid #E5E7EB;
  color: #374151;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-content.open {
  max-height: 65vh;
  overflow-y: auto;
}

.mobile-dropdown-content a {
  display: block;
  padding: 10px 0 10px 20px;
  color: #6B7280;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.mobile-dropdown-content a:hover { color: #14B8A6; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0F172A 0%, #111827 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Partner logos */
.partner-logo {
  opacity: 0.4;
  transition: opacity 0.3s ease;
  filter: grayscale(100%) brightness(2);
}

.partner-logo:hover { opacity: 0.8; }

.partner-logo-clean {
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-logo-clean:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
}

/* Authorized Partners Section Cards */
.partner-card {
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 140px;
  position: relative;
  z-index: 1;
}

.partner-card img {
  max-width: 140px;
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-8px);
}

.partner-card:hover img {
  transform: scale(1.05);
}

/* Brand specific hover effects */
.partner-card.clover:hover {
  box-shadow: 0 30px 80px rgba(20,184,166,0.15);
  border-color: rgba(20,184,166,0.2);
}

.partner-card.genius:hover {
  box-shadow: 0 30px 80px rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.2);
}

.partner-card.square:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.1);
}

/* Tabs */
.tab-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid #2D3348;
  border-radius: 999px;
  color: #9CA3AF;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: #14B8A6;
  color: #14B8A6;
}

/* Blog card */
.blog-card {
  background: #161A24;
  border: 1px solid #2D3348;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.b

.blog-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1E2230, #2D3348);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3B4158;
}

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .page-hero { padding: 140px 0 50px; }
  .stat-number { font-size: 2.2rem; }
  .hero-gradient { min-height: auto; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary, .btn-amber {
    padding: 12px 24px;
    font-size: 0.875rem;
    justify-content: center;
  }
}

/* =============================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   Covers all inline grid/flex patterns
   ============================================= */

@media (max-width: 900px) {
  /* Any 2-col or 3-col grid collapses to single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr;"],
  [style*="grid-template-columns: 1fr 1fr;"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Solutions/services page: container-custom used directly as grid */
  .container-custom[style*="display:grid"],
  .container-custom[style*="display: grid"] {
    display: block !important;
  }
  .container-custom[style*="display:grid"] > *,
  .container-custom[style*="display: grid"] > * {
    margin-bottom: 32px;
  }

  /* Reduce large gaps on mobile */
  [style*="gap:80px"],
  [style*="gap: 80px"] { gap: 40px !important; }

  [style*="gap:60px"],
  [style*="gap: 60px"] { gap: 32px !important; }

  [style*="gap:40px"],
  [style*="gap: 40px"] { gap: 24px !important; }

  /* Hero section inner grid */
  .hero-gradient [style*="display:grid"],
  .hero-gradient [style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Hero images now visible on mobile - removed display:none rules */

  /* auto-fit grids with large minimums — force single col */
  [style*="minmax(300px,1fr)"],
  [style*="minmax(320px,1fr)"],
  [style*="minmax(340px,1fr)"],
  [style*="minmax(280px,1fr)"],
  [style*="minmax(260px,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Page hero padding */
  .page-hero { padding: 130px 0 40px !important; }

  /* Section padding */
  .section { padding: 40px 0 !important; }

  /* Reduce huge top padding from hero sections */
  [style*="padding:100px 0"],
  [style*="padding: 100px 0"] { padding: 40px 0 !important; }

  [style*="padding:120px 0"],
  [style*="padding: 120px 0"] { padding: 40px 0 30px !important; }

  [style*="padding:80px 0 40px"],
  [style*="padding: 80px 0 40px"] { padding: 40px 0 30px !important; }

  /* Container padding */
  .container-custom { padding: 0 16px !important; }

  /* Benefits rows */
  .section [style*="max-width:1100px"] [style*="display:grid"],
  .section [style*="max-width: 1100px"] [style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 48px !important;
  }

  /* Any flex row that should wrap */
  [style*="display:flex"][style*="gap:40px"],
  [style*="display: flex"][style*="gap: 40px"] {
    flex-wrap: wrap !important;
    gap: 20px !important;
  }

  /* Stat blocks inline flex */
  [style*="display:flex;gap:40px"],
  [style*="display:flex; gap:40px"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  /* CTA button groups */
  .cta-section [style*="display:flex"],
  .cta-section [style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Omnichannel/split sections */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:80px"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap: 80px"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Tables / pricing rows */
  .pricing-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Text sizing */
  h1 { font-size: clamp(1.8rem, 6vw, 2.6rem) !important; }
  h2 { font-size: clamp(1.5rem, 5vw, 2.2rem) !important; }
}

@media (max-width: 640px) {
  /* Body top padding for smaller nav */
  body { padding-top: 100px !important; }

  /* Page hero text */
  .page-hero [style*="max-width:900px"],
  .page-hero [style*="max-width: 900px"] {
    max-width: 100% !important;
  }

  /* Section badge wrap */
  .section-badge { font-size: 0.7rem !important; }

  /* Cards full width */
  .card { padding: 24px !important; }

  /* Content grid for solutions/partner cards */
  [style*="grid-template-columns:repeat(auto-fit,minmax(320px,1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:repeat(auto-fit,minmax(250px,1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:repeat(auto-fit,minmax(240px,1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* CTA/hero button stacks */
  [style*="display:flex;flex-wrap:wrap;gap:16px"],
  [style*="display:flex; flex-wrap:wrap; gap:16px"],
  [style*="display:flex;flex-wrap:wrap;justify-content:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Testimonials auto-fit */
  [style*="grid-template-columns:repeat(auto-fit,minmax(320px,1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat strip on homepage */
  [style*="display:flex;gap:40px;margin-top"] {
    gap: 20px !important;
    flex-wrap: wrap !important;
  }

  /* Section images: reduce aspect ratio on small screens */
  .section-img[style*="aspect-ratio:4/3"],
  [style*="aspect-ratio:4/3"] {
    aspect-ratio: 3/2 !important;
  }

  /* Benefits rows on homepage: reduce divider margin */
  [style*="margin-bottom:80px"] { margin-bottom: 40px !important; }

  /* FAQs */
  .faq-question { font-size: 0.9rem !important; padding: 16px !important; }

  /* Footer grid: single column on mobile */
  .footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Footer logo section: centered with better spacing */
  .footer .footer-logo-section {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(20,184,166,0.15);
    margin-bottom: 8px;
  }

  /* Reduce logo size in footer on mobile */
  .footer .footer-logo {
    height: 140px !important;
    margin: 0 auto 12px !important;
  }

  /* Footer headings: better styling on mobile */
  .footer .footer-heading {
    font-size: 1.05rem !important;
    color: #14B8A6 !important;
    margin-bottom: 20px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(20,184,166,0.2);
  }

  /* Footer links: better spacing */
  .footer a[style*="display:block"] {
    margin-bottom: 14px !important;
    font-size: 0.95rem !important;
    padding-left: 4px;
  }

  /* Footer sections: better spacing */
  .footer .footer-grid > div {
    padding: 16px 0;
  }

  /* Footer padding: more breathing room */
  .footer {
    padding: 48px 0 32px !important;
  }

  /* Contact / form grids */
  [style*="grid-template-columns:1fr 1fr;gap:24px"] {
    grid-template-columns: 1fr !important;
  }

  /* Additional auto-fit minmax patterns used in services pages */
  [style*="minmax(260px,1fr)"],
  [style*="minmax(220px,1fr)"],
  [style*="minmax(200px,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Page hero on small screens — stack layout */
  .page-hero .container-custom > div,
  .page-hero .container-custom > div[style*="display:grid"] {
    display: block !important;
  }
  .page-hero .container-custom > div > div:last-child {
    display: block !important;
    margin-top: 32px;
  }
  .page-hero .container-custom > div > div:first-child {
    display: block !important;
  }
}

@media (max-width: 480px) {
  /* Footer logo: more compact on small phones */
  .footer .footer-logo {
    height: 100px !important;
  }

  /* Footer headings: slightly smaller */
  .footer .footer-heading {
    font-size: 0.95rem !important;
  }

  /* Footer compliance icons: smaller on tiny screens */
  .footer [style*="width:24px;height:24px"] {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 400px) {
  /* Tighten card padding on very small phones */
  .card, .card-dark { padding: 18px !important; }

  /* Ensure buttons don't overflow */
  .btn-primary, .btn-secondary, .btn-amber {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Logo scroller gaps */
  .logo-scroller-track { gap: 40px !important; }
  .logo-scroller-track img { height: 36px !important; }
}
