/* ============================================
   ECOMMERCE PAGE - CUSTOM STYLES
   ============================================ */

/* 1. Hero Section - Light Theme */
.hero {
  background: white !important;
}

.hero .hero-title {
  color: var(--navy) !important;
}

.hero .hero-description {
  color: var(--text-secondary) !important;
}

.hero .text-highlight {
  color: var(--primary) !important;
}

/* 2. Hero Image Styling */
.hero .hero-main-image {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  border: none !important;
}

.btn-secondary-outline {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1px solid var(--border-medium) !important;
}

.btn-secondary-outline:hover {
  background: var(--bg-secondary) !important;
  border-color: var(--navy) !important;
  transform: translateY(-2px);
}

/* 2. Problem Section & Cards */
.section-problems {
  padding-top: 100px !important;
}

.glass-card {
  background: white !important;
  border: 1px solid var(--border-light) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.glass-card:hover {
  transform: translateY(-10px) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.red-bg {
  background: #fee2e2;
  color: #dc2626;
}

.orange-bg {
  background: #ffedd5;
  color: #ea580c;
}

.green-bg {
  background: #dcfce7;
  color: #16a34a;
}

/* 3. Logo Grid */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  min-width: 100px;
  text-align: center;
}

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

.logo-item img {
  height: 48px;
  width: auto;
  filter: grayscale(1);
}

.logo-item:hover img {
  filter: grayscale(0);
}

.logo-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 4. Solutions Showcase (Redesigned) */
.solutions-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-category {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.category-info {
  margin-bottom: 24px;
}

.cat-icon-meta {
  width: 56px;
  height: 56px;
  background: rgba(0, 163, 120, 0.08);
  /* Primary color with low opacity */
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.solution-category h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.solution-category p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.solution-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.solution-points li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.solution-points li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary);
  font-size: 0.8rem;
}

/* 5. FAQ Styling Fixed */
.faq-accordion {
  max-width: 900px !important;
  margin: 0 auto;
}

.faq-details {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.faq-details[open] {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 0;
}

.faq-summary::-webkit-details-marker,
.faq-summary::marker {
  display: none;
  content: "";
}

.faq-summary::after {
  content: none !important;
}

.faq-summary h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.faq-summary i {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-details[open] .faq-summary i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0;
}

/* 6. Utility Classes */
.mt-48 {
  margin-top: 48px;
}

.mt-64 {
  margin-top: 64px;
}

.mt-32 {
  margin-top: 32px;
}

.text-center {
  text-align: center;
}

.max-w-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.col-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* 7. Mobile Responsive Overrides */
@media (max-width: 1024px) {
  .solutions-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .solutions-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Mobile Hero - Impactful Visual & Compact Layout */
  .hero {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
  }

  .hero .hero-split-wrapper {
    min-height: auto !important;
    gap: 0 !important;
  }

  .hero .hero-visual-right {
    height: auto !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 !important;
    overflow: hidden;
    /* Prevent horizontal scroll from scaled image */
  }

  .hero .hero-image-container {
    width: 100%;
    max-width: none !important;
    display: flex;
    justify-content: center;
    padding: 60px 0;
    /* Space for scaled image */
  }

  .hero .hero-main-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    transform: scale(2.2);
    /* Zoom past image padding */
    transform-origin: center center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    border: none !important;
  }

  .hero .hero-content-left {
    padding-top: 20px !important;
  }

  .solution-category {
    padding: 24px !important;
  }

  .solution-points li {
    font-size: 0.9rem !important;
    margin-bottom: 8px;
  }

  .col-3 {
    grid-template-columns: 1fr !important;
  }

  .logo-grid {
    gap: 20px;
  }

  .logo-item {
    min-width: 80px;
  }

  .logo-item img {
    height: 32px;
  }

  .section-header .section-title {
    font-size: 1.75rem !important;
  }
}

/* ============================================
   INTEGRATIONS SECTION
   ============================================ */
.integrations {
  padding: 100px 0;
  background: var(--bg-secondary);
  /* Light gray background */
  border: none;
}

.integrations-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left Side: Content */
.integrations-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.integrations-headline {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
  text-align: left;
}

.integrations-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}

.integrations-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.integrations-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

.integrations-features-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  /* Green checkmarks */
  flex-shrink: 0;
}

/* Right Side: 6x4 Logo Grid - Scattered Layout */
.integrations-hex-grid {
  position: relative;
  padding: 20px 10px;
  overflow: hidden;
  height: 380px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.hexagon {
  width: 72px;
  height: 72px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  /* Restored card look */
  border-radius: 18px;
  /* Squircle */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
  position: absolute;
}

.hexagon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-color: var(--primary);
}

.hexagon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.hexagon:hover img {
  transform: scale(1.1);
}

/* Structured Offset Grid Layout */
/* Row 1 */
.integrations-hex-grid .hexagon:nth-child(1) {
  left: 0px;
  top: 0px;
}

.integrations-hex-grid .hexagon:nth-child(2) {
  left: 88px;
  top: 12px;
}

.integrations-hex-grid .hexagon:nth-child(3) {
  left: 176px;
  top: 0px;
}

.integrations-hex-grid .hexagon:nth-child(4) {
  left: 264px;
  top: 15px;
}

.integrations-hex-grid .hexagon:nth-child(5) {
  left: 352px;
  top: 0px;
}

.integrations-hex-grid .hexagon:nth-child(6) {
  left: 440px;
  top: 10px;
}

/* Row 2 (Offset by 44px) */
.integrations-hex-grid .hexagon:nth-child(7) {
  left: 44px;
  top: 88px;
}

.integrations-hex-grid .hexagon:nth-child(8) {
  left: 132px;
  top: 100px;
}

.integrations-hex-grid .hexagon:nth-child(9) {
  left: 220px;
  top: 88px;
}

.integrations-hex-grid .hexagon:nth-child(10) {
  left: 308px;
  top: 98px;
}

.integrations-hex-grid .hexagon:nth-child(11) {
  left: 396px;
  top: 88px;
}

.integrations-hex-grid .hexagon:nth-child(12) {
  left: 484px;
  top: 102px;
}

/* Row 3 */
.integrations-hex-grid .hexagon:nth-child(13) {
  left: 0px;
  top: 176px;
}

.integrations-hex-grid .hexagon:nth-child(14) {
  left: 88px;
  top: 190px;
}

.integrations-hex-grid .hexagon:nth-child(15) {
  left: 176px;
  top: 176px;
}

.integrations-hex-grid .hexagon:nth-child(16) {
  left: 264px;
  top: 188px;
}

.integrations-hex-grid .hexagon:nth-child(17) {
  left: 352px;
  top: 176px;
}

.integrations-hex-grid .hexagon:nth-child(18) {
  left: 440px;
  top: 185px;
}

/* Row 4 (Offset) */
.integrations-hex-grid .hexagon:nth-child(19) {
  left: 44px;
  top: 264px;
}

.integrations-hex-grid .hexagon:nth-child(20) {
  left: 132px;
  top: 276px;
}

.integrations-hex-grid .hexagon:nth-child(21) {
  left: 220px;
  top: 264px;
}

.integrations-hex-grid .hexagon:nth-child(22) {
  left: 308px;
  top: 274px;
}

.integrations-hex-grid .hexagon:nth-child(23) {
  left: 396px;
  top: 264px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .integrations-split-layout {
    gap: 60px;
  }

  .integrations-headline {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .integrations-split-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .integrations-headline,
  .integrations-description {
    text-align: center;
  }

  .integrations-content {
    align-items: center;
  }

  .integrations-hex-grid {
    margin-top: 24px;
    height: 320px;
    /* Reduced height on mobile */
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Reset absolute positions for mobile if needed, or just let them scale/overflow gracefully */
  .hexagon {
    transform: scale(0.9);
    /* Scale down slightly for tablet */
  }
}

@media (max-width: 600px) {
  .integrations-hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    height: auto;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    transform: none;
    left: auto;
    margin-left: auto;
  }

  .integrations-hex-grid .hexagon {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 60px;
    height: 60px;
    transform: none !important;
  }

  .integrations-hex-grid .hexagon img {
    width: 28px;
    height: 28px;
  }

  .integrations-features-list {
    align-items: center;
    text-align: center;
  }

  .integrations-hex-grid .hexagon {
    transform: none !important;
    /* Reset tablet scale */
  }
}