/* ========================================
   CORRECTIVE FIXES - DESKTOP LAYOUT
   Fix Alignment | Overlapping | Spacing
   Grid Stability | Professional Layout
   ======================================== */

/* Global box-sizing fix */
* {
    box-sizing: border-box !important;
}

/* Prevent horizontal overflow */
body {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

html {
    overflow-x: hidden !important;
}

/* Container max-width consistency */
.container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Section spacing fixes */
.section {
    padding: 5rem 0 !important;
    width: 100% !important;
    overflow: hidden !important;
}

.section-xl {
    padding: 6rem 0 !important;
}

.section-light {
    background: #ffffff !important;
}

.section-dark {
    background: linear-gradient(135deg, #272147 0%, #3a316a 100%) !important;
    color: #ffffff !important;
}

/* Grid layout fixes */
.features-grid,
.services-grid,
.process-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    width: 100% !important;
}

/* Card alignment fixes */
.feature-card,
.service-card,
.process-card,
.value-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 200px !important;
}

/* Image scaling fixes */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Hero section fixes */
.hero {
    padding: 180px 0 100px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
}

.hero-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #ffffff !important;
}

.hero-subtitle,
.hero-value-prop {
    font-size: 1.2rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Stats grid fixes */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
    width: 100% !important;
}

.stat-item {
    text-align: center !important;
    padding: 1.5rem !important;
}

/* Button alignment fixes */
.hero-buttons,
.cta-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 2rem !important;
}

.btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

/* Section title consistency */
.section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    color: #272147 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.section-dark .section-title {
    color: #ffffff !important;
}

.section-intro {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto 3rem !important;
    color: #2c2c2c !important;
}

.section-dark .section-intro {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Content grid alignment */
.content-grid {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* Gold showcase grid */
.gold-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    width: 100% !important;
}

/* Process steps grid */
.process-steps {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    width: 100% !important;
}

/* Z-index hierarchy fixes */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
}

.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
}

/* Desktop large screen fixes (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px !important;
    }
}

/* Desktop standard fixes (1200px-1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .container {
        max-width: 1140px !important;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .section-title {
        font-size: 2.3rem !important;
    }
}

/* Laptop fixes (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2.1rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .gold-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tablet fixes (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px !important;
    }
    
    .hero {
        padding: 150px 0 80px !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .section {
        padding: 4rem 0 !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .stats-grid,
    .gold-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .process-steps {
        grid-template-columns: 1fr !important;
    }
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, a, span {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Clear floats */
.clearfix::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Ensure all sections are visible */
section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
