/* ======================
   REUSABLE SECTION COMPONENT - RESPONSIVE STANDARDS
   Follows Navigation Standards: Fluid Design, Mobile-First, Performance Optimized
   ====================== */

/* Base Section - Mobile First */
.section {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  
  /* Performance optimizations */
  contain: layout;
  will-change: auto;
  
  /* Base responsive design */
  overflow: hidden; /* Prevent horizontal scroll */
}

/* Allow overflow for hero sections to show ellipse effects */
.section.variant-hero {
  overflow: visible;
}

/* ======================
   CONTAINER SYSTEM - Fluid & Responsive
   ====================== */
.container {
  /* width: 100%; */
  max-width: min(1680px, 100vw);

  margin: 0 auto;
  box-sizing: border-box;
  
  /* Mobile-first: Tighter padding to match Figma */
  /* padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px); */
  padding: clamp(16px, 2vw, 24px) clamp(20px, 4vw, 120px);

  
  /* Default max-width for readability */
  max-width: min(1680px, 100vw);
}

.content {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ======================
   CONTAINER VARIANTS
   ====================== */

/* Narrow container for content-focused sections */
.container-narrow .container {
  max-width: min(900px, 100vw);
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* Wide container for feature-rich sections */
.container-wide .container {
  max-width: min(1920px, 100vw);
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

/* Full-width container (edge to edge) */
.container-full .container {
  max-width: 100vw;
  padding-left: 0;
  padding-right: 0;
}

/* ======================
   SPACING VARIANTS
   ====================== */

/* Default spacing - More controlled and closer to Figma */
.spacing-default {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

/* Compact spacing for tighter sections */
.spacing-compact {
  padding-top: clamp(12px, 2vw, 16px);
  padding-bottom: clamp(12px, 2vw, 16px);
}

/* Large spacing for hero sections - Better control */
.spacing-large {
  padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(16px, 2vw, 24px);
}

/* No vertical spacing */
.spacing-none {
  padding-top: 0;
  padding-bottom: 0;
}

/* ======================
   SECTION VARIANTS
   ====================== */

/* Default section */
.variant-default {
  display: block;
}

/* Full viewport height section */
.variant-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.variant-full .container {
  display: flex;
  align-items: center;
  min-height: inherit;
}

.variant-full .content {
  width: 100%;
}

/* Hero section with enhanced styling */
.variant-hero {
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible; /* Allow ellipse effects to extend outside */
  
  /* Minimal padding for hero - let content control spacing */
  /* padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(16px, 2vw, 24px); */
}

.variant-hero .container {
  display: flex;
  align-items: center;
  min-height: inherit;
}

/* Compact section for cards/features */
.variant-compact {
  display: block;
}

/* ======================
   BACKGROUND VARIANTS
   ====================== */

/* Default background (from design system - Figma Primary Colors/Background) */
.background-default {
  background-color: var(--background, #FCF9F8);
  color: var(--foreground, #333f5b);
}

/* Muted background */
.background-muted {
  background-color: var(--muted, #f8fafc);
  color: var(--foreground, #333f5b);
}

/* Primary background */
.background-primary {
  background-color: var(--primary, #333f5b);
  color: var(--primary-foreground, #ffffff);
}

/* Accent background */
.background-accent {
  background-color: #3495ff;
  color: #ffffff;
}

/* Transparent background */
.background-transparent {
  background-color: transparent;
  color: var(--foreground, #333f5b);
}

/* White background */
.background-white {
  background-color: #ffffff;
  color: var(--foreground, #333f5b);
}

/* Dark background */
.background-dark {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* No background (transparent with default text) */
.background-none {
  background-color: transparent;
  color: var(--foreground, #333f5b);
}

/* ======================
   RESPONSIVE BREAKPOINTS
   Following updated breakpoint system with better Figma alignment
   ====================== */

/* Tablet: 481px – 1024px */
@media (min-width: 481px) and (max-width: 1024px) {
  /* .container {
    padding-left: clamp(20px, 4vw, 32px);
    padding-right: clamp(20px, 4vw, 32px);
  } */
  
  .spacing-default {
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(24px, 4vw, 40px);
  }
  
  .spacing-large {
    padding-top: clamp(32px, 5vw, 48px);
    padding-bottom: clamp(32px, 5vw, 48px);
  }
}

/* Laptop: 1025px – 1366px */
@media (min-width: 1025px) and (max-width: 1366px) {
  /* .container {
    padding-left: clamp(32px, 5vw, 60px);
    padding-right: clamp(32px, 5vw, 60px);
  } */
  
  .spacing-default {
    padding-top: clamp(40px, 6vw, 60px);
    padding-bottom: clamp(40px, 6vw, 60px);
  }
  
  .spacing-large {
    padding-top: clamp(20px, 3vw, 32px);
    padding-bottom: clamp(20px, 3vw, 32px);
  }
/*   
  .variant-hero {
    padding-top: clamp(16px, 2vw, 24px);
    padding-bottom: clamp(16px, 2vw, 24px);
  } */
}

/* Desktop: 1367px – 1920px */
@media (min-width: 1367px) and (max-width: 1920px) {
  /* .container {
    padding-left: clamp(60px, 6vw, 100px);
    padding-right: clamp(60px, 6vw, 100px);
  } */
  
  .spacing-default {
    padding-top: clamp(60px, 7vw, 80px);
    padding-bottom: clamp(60px, 7vw, 80px);
  }
  
  .spacing-large {
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(24px, 3vw, 40px);
  }
  
  /* .variant-hero {
    padding-top: clamp(20px, 2.5vw, 32px);
    padding-bottom: clamp(20px, 2.5vw, 32px);
  } */
}

/* Large Desktop: 1921px+ */
@media (min-width: 1921px) {
  /* .container {
    max-width: 1680px;
    padding-left: 120px;
    padding-right: 120px;
  } */
  
  .spacing-default {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .spacing-large {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  /* .variant-hero {
    padding-top: 32px;
    padding-bottom: 32px;
  } */
}

/* ======================
   ACCESSIBILITY & PERFORMANCE
   ====================== */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .section {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .section {
    border: 2px solid;
  }
  
  .background-primary,
  .background-accent {
    border-color: currentColor;
  }
}

/* Print styles */
@media print {
  .section {
    background: white !important;
    color: black !important;
    break-inside: avoid;
  }
}

@media (max-width: 1024px) {
  .wrapperLine5 {
    display: none !important;
  }
}
.wrapperLine5 {
  position: absolute;
  margin: 0 !important;
  top: -125px;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}
.wrapperLine5Child {
  width: auto;
  height: 100%;
  min-width: 100%;
  overflow: hidden;
  object-fit: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wrapperLineRight5 {
  position: absolute;
  margin: 0 !important;
  top: -10px;
  right: -600px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}
.wrapperLineRight5Child {
  width: auto;
  height: 100%;
  min-width: 100%;
  overflow: hidden;
  object-fit: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ======================
   LINESPACE VARIANTS - Background Line Positioning
   ====================== */

/* Default LineSpace positioning */
.LineSpace-default {
  top: -125px;
}

/* Compact LineSpace - closer to content */
.LineSpace-compact {
  top: -75px;
}

/* Large LineSpace - more distance from content */
.LineSpace-large {
  top: 350px;
  left: -20px;
}

/* No LineSpace offset */
.LineSpace-none {
  top: 0;
}

/* ======================
   MOBILE VERTICAL CARD LAYOUT
   ====================== */
@media (max-width: 767px) {
  .mobileVerticalCards {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 4vw, 24px);
    width: 100%;
    padding: 0;
  }
  
  .mobileVerticalCards .cardContainer {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
  }
}

/* Desktop: Horizontal layout */
@media (min-width: 768px) {
  .mobileVerticalCards {
    display: flex;
    flex-direction: row;
    gap: clamp(24px, 3vw, 32px);
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .mobileVerticalCards .cardContainer {
    flex: 1;
    min-width: 300px;
    max-width: 540px;
  }
}
