/**
 * Benefits Module CSS - Advanced Layouts
 */

/* ============================================
   BASE STYLES
   ============================================ */

.lp-content .lp-benefits-section {
  background: var(--lp-bg-section);
  padding: var(--lp-spacing-2xl) 0;
}

.lp-content .benefit {
  padding: var(--lp-spacing-lg);
  border-radius: var(--lp-radius-xl);
  background: var(--lp-card);
  transition: all 0.3s ease;
  box-shadow: var(--lp-shadow);
  text-align: center;
}

.lp-content .benefit:hover {
  transform: translateY(-8px);
  box-shadow: var(--lp-shadow-xl);
}

.lp-content .benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.lp-content .benefit-icon img {
  max-width: 100%;
  height: auto;
  border-radius: var(--lp-radius-lg);
  object-fit: cover;
}

.lp-content .benefit-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--lp-text-dark);
  font-weight: 600;
}

.lp-content .benefit-description {
  color: var(--lp-text-muted);
  line-height: 1.75;
  font-size: 1rem;
}

.lp-content .benefit-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--lp-brand);
  color: white;
  text-decoration: none;
  border-radius: var(--lp-radius-md);
  font-weight: 600;
  transition: background 0.3s ease;
}

.lp-content .benefit-cta:hover {
  background: var(--lp-brand-dark);
  color: #FFF
}

/* ============================================
   CARD STYLE VARIATIONS
   ============================================ */

/* FEATURED CARD - Large, prominent */
.lp-content .benefit-style-featured {
  padding: var(--lp-spacing-xl);
  background: var(--lp-text-light);
}

.lp-content .benefit-style-featured .benefit-icon {
  font-size: 4rem;
  max-height: 300px;
}

.lp-content .benefit-style-featured .benefit-icon img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}

.lp-content .benefit-style-featured .benefit-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.lp-content .benefit-style-featured .benefit-description {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* HIGHLIGHT CARD - Medium emphasis */
.lp-content .benefit-style-highlight {
  background: var(--lp-card);
}

.lp-content .benefit-style-highlight .benefit-icon {
  font-size: 2.5rem;
}

/* COMPACT CARD - Minimal */
.lp-content .benefit-style-compact {
  padding: var(--lp-spacing-md);
}

.lp-content .benefit-style-compact .benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.lp-content .benefit-style-compact .benefit-title {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ICON ONLY - Just icon and title */
.lp-content .benefit-style-icon-only .benefit-description {
  display: none;
}

.lp-content .benefit-style-icon-only {
  padding: var(--lp-spacing-md);
}

/* WIDE CARD - Full width */
.lp-content .benefit-style-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.lp-content .benefit-style-wide .benefit-icon {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  margin-bottom: 0;
}

.lp-content .benefit-style-wide .benefit-icon img {
  width: 200px;
  height: 200px;
}

/* ============================================
   LAYOUT: HERO SPLIT
   Large hero left, cards stacked right, grid below
   ============================================ */

.lp-content .layout-hero-split .benefits-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-top: var(--lp-spacing-xl);
  margin-bottom: var(--lp-spacing-xl);
}

.lp-content .layout-hero-split .benefits-hero .benefit {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.lp-content .layout-hero-split .benefits-hero .benefit-icon img {
  max-height: 300px;
  width: 100%;
}

.lp-content .layout-hero-split .benefits-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lp-content .layout-hero-split .benefits-sidebar .benefit {
  text-align: left;
  padding: 0;
  display: flex;
  gap: 20px;
  background: transparent;
  box-shadow: none;
}

.lp-content .layout-hero-split .benefits-sidebar .benefit-title{
  margin: 0;
}
.lp-content .layout-hero-split .benefits-sidebar .benefit-description{
  max-width: 85%;
}
.lp-content .layout-hero-split .benefits-sidebar .benefit-icon{margin: 0;}

.lp-content .layout-hero-split .benefits-grid-below {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ============================================
   LAYOUT: FEATURED TOP
   One large card on top, grid below
   ============================================ */

.lp-content .layout-featured-top .benefits-featured-top {
  margin-top: var(--lp-spacing-xl);
  margin-bottom: var(--lp-spacing-xl);
}

.lp-content .layout-featured-top .benefits-featured-top .benefit {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
  padding: var(--lp-spacing-xl);
}

.lp-content .layout-featured-top .benefits-featured-top .benefit-icon {
  flex-shrink: 0;
  width: 350px;
  height: 350px;
  margin-bottom: 0;
}

.lp-content .layout-featured-top .benefits-featured-top .benefit-icon img {
  width: 350px;
  height: 350px;
  object-fit: cover;
}

.lp-content .layout-featured-top .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* ============================================
   LAYOUT: SIDEBAR
   Large card left, flowing cards right
   ============================================ */

.lp-content .layout-sidebar .benefits-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: var(--lp-spacing-xl);
  margin-bottom: var(--lp-spacing-xl);
  align-items: start;
}

.lp-content .layout-sidebar .benefits-hero .benefit {
  text-align: left;
  position: sticky;
  top: 2rem;
}

.lp-content .layout-sidebar .benefits-hero .benefit-icon img {
  max-height: 300px;
  width: 100%;
}

.lp-content .layout-sidebar .benefits-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.lp-content .layout-sidebar .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: var(--lp-spacing-lg);
}

/* ============================================
   LAYOUT: SHOWCASE
   Gallery-style with mixed sizes
   ============================================ */

.lp-content .layout-showcase .benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: var(--lp-spacing-xl);
}

.lp-content .layout-showcase .benefit-style-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.lp-content .layout-showcase .benefit-style-highlight {
  grid-column: span 2;
}

/* ============================================
   LAYOUT: HIGHLIGHT ROWS
   Alternating featured and grid rows
   ============================================ */

.lp-content .layout-highlight-rows .benefits-row {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.lp-content .layout-highlight-rows .row-featured {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lp-content .layout-highlight-rows .row-standard {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lp-content .layout-highlight-rows .row-featured .benefit {
  padding: var(--lp-spacing-xl);
}

/* ============================================
   LAYOUT: MASONRY
   Pinterest-style varied heights
   ============================================ */

.lp-content .layout-masonry .benefits-grid {
  column-count: 3;
  column-gap: 2rem;
  margin-top: var(--lp-spacing-xl);
}

.lp-content .layout-masonry .benefit {
  break-inside: avoid;
  margin-bottom: 2rem;
  display: inline-block;
  width: 100%;
}

/* ============================================
   STANDARD GRID LAYOUTS
   ============================================ */

.lp-content .layout-grid-3 .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--lp-spacing-xl);
}

.lp-content .layout-grid-2 .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: var(--lp-spacing-xl);
}

.lp-content .layout-grid-4 .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: var(--lp-spacing-xl);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .lp-content .layout-hero-split .benefits-wrapper,
  .lp-content .layout-sidebar .benefits-wrapper {
    grid-template-columns: 1fr;
  }
  
  .lp-content .layout-featured-top .benefits-featured-top .benefit {
    flex-direction: column;
    text-align: center;
  }
  
  .lp-content .layout-showcase .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lp-content .layout-masonry .benefits-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .lp-content .benefits-grid,
  .lp-content .layout-grid-2 .benefits-grid,
  .lp-content .layout-grid-3 .benefits-grid,
  .lp-content .layout-grid-4 .benefits-grid,
  .lp-content .layout-showcase .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .lp-content .benefit-style-featured .benefit-icon,
  .lp-content .layout-hero-split .benefits-hero .benefit-icon,
  .lp-content .layout-sidebar .benefits-hero .benefit-icon {
    max-height: 250px;
  }
  
  .lp-content .benefit-style-wide {
    flex-direction: column;
    text-align: center;
  }
  
  .lp-content .layout-masonry .benefits-grid {
    column-count: 1;
  }
  
  .lp-content .layout-featured-top .benefits-featured-top .benefit-icon {
    width: 100%;
    height: auto;
  }
  
  .lp-content .layout-featured-top .benefits-featured-top .benefit-icon img {
    width: 100%;
    height: auto;
  }
}