/* ============================================================
   INTELIZEST — SCREEN FIT OVERRIDE
   Use this AFTER intelizest-styles.css on all pages.
   Purpose:
   - remove extra left/right spacing on large screens
   - keep layout fluid on laptop, monitor, 4K, 8K, TV
   - preserve safe padding on mobile/tablet
   ============================================================ */

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

/* ============================================================
   1. GLOBAL SIDE SPACING
   Smaller side gaps on big screens, safe padding on mobiles
   ============================================================ */
body section,
body nav,
body footer,
body .hero,
body .page-hero,
body .cta-section,
body .ai-section,
body .customers-section,
body .industries-section,
body .products-section,
body .investor-section,
body .contact-section,
body .about-section,
body .solutions-section,
body .features-section,
body .overview-section,
body .why-section,
body .benefits-section,
body .demo-section,
#iz-p1 .hero,
#iz-p1 > div[style*="padding:0 5rem"] {
    padding-left: clamp(12px, 2vw, 40px) !important;
    padding-right: clamp(12px, 2vw, 40px) !important;
    box-sizing: border-box !important;
}

#iz-p1 .hero {
    padding-top: clamp(5.5rem, 8vh, 10rem) !important;
    padding-bottom: clamp(3rem, 5vh, 5rem) !important;
    overflow: hidden !important;
}

#iz-p1 > div[style*="padding:0 5rem"] {
    padding-bottom: clamp(2.5rem, 4vh, 5rem) !important;
}

/* ============================================================
   2. REMOVE WIDTH CAPS / CENTER LOCKS
   ============================================================ */
body .customers-section,
body .hero-content,
body .hero-two-col,
body .hero-metrics,
body .ai-inner,
body .prod-layout,
body .industry-detail,
body .inv-grid,
body .inv-inner,
body .footer-grid,
body .footer-bottom,
body .prod-tabs,
body .prod-panel,
body .logo-scroll-wrap,
body .industries-scroll,
body .section-sub,
body .section-title,
body .section-tag,
body .carousel-shell,
body .carousel-viewport,
body .carousel-outer,
body .logo-grid,
body .customers-grid,
body .page-hero > *,
body .cta-section > *,
body section > .container,
body section > .wrapper,
body section > .inner,
#iz-p1 > div,
#iz-p1 > div > div,
#iz-p1 > div[style*="padding:0 5rem"] > div,
#iz-p1 > div[style*="padding:0 5rem"] > div > div {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body .customers-section {
    max-width: none !important;
    margin: 0 !important;
    padding-top: clamp(3rem, 5vh, 5rem) !important;
    padding-bottom: clamp(2.5rem, 4vh, 4rem) !important;
}

/* ============================================================
   3. HERO LAYOUT
   ============================================================ */
body .hero .hero-two-col,
.hero-two-col {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(16px, 3vw, 48px) !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

body .hero .hero-content,
.hero .hero-content,
.hero-content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

body .hero .hero-img-col,
.hero .hero-img-col,
.hero-img-col {
    flex: 0 0 40% !important;
    width: 40% !important;
    max-width: 40% !important;
    min-width: 320px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

body .hero .hero-img-carousel,
.hero-img-carousel {
    width: 100% !important;
    max-width: none !important;
    min-height: unset !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

body .hero .hic-slide {
    position: absolute !important;
    inset: 0 !important;
}

body .hero .hic-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ============================================================
   4. HERO TYPOGRAPHY
   ============================================================ */
body .hero h1 {
    font-size: clamp(2rem, 4.2vw, 5.2rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.04em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    margin-bottom: 1.25rem !important;
}

body .hero h1 .hero-line {
    display: block !important;
    white-space: normal !important;
}

body .hero .hero-sub {
    font-size: clamp(0.95rem, 1.15vw, 1.35rem) !important;
    line-height: 1.7 !important;
    max-width: none !important;
}

body .hero .hero-badge {
    font-size: clamp(0.68rem, 0.8vw, 0.95rem) !important;
}

body .hero .hero-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

/* ============================================================
   5. HERO METRICS
   ============================================================ */
body .hero-metrics {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 3rem !important;
    border-top: 1.5px solid var(--border) !important;
}

body .metric {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: clamp(1rem, 1.8vw, 1.8rem) clamp(12px, 1.6vw, 24px) !important;
    border-right: 1.5px solid var(--border) !important;
}

body .metric:last-child {
    border-right: none !important;
}

body .metric-val {
    font-size: clamp(1.5rem, 2vw, 3.5rem) !important;
}

body .metric-label {
    font-size: clamp(0.75rem, 0.9vw, 1.1rem) !important;
}

/* ============================================================
   6. BRAND STRIP / CUSTOM INLINE BLOCKS
   ============================================================ */
#iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] {
    display: flex !important;
    align-items: center !important;
    gap: clamp(16px, 3vw, 48px) !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] > div:first-child {
    flex: 0 0 35% !important;
    width: 35% !important;
    max-width: 35% !important;
}

#iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] > div:last-child {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

#iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] > div:last-child > p {
    max-width: none !important;
}

#iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] > div:last-child h3 {
    font-size: clamp(1.6rem, 3vw, 4rem) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
}

/* ============================================================
   7. COMMON SECTIONS
   ============================================================ */
body .section-title {
    font-size: clamp(1.9rem, 3vw, 4.8rem) !important;
    max-width: none !important;
}

body .section-sub {
    font-size: clamp(0.95rem, 1.05vw, 1.4rem) !important;
    max-width: none !important;
}

body .section-tag {
    font-size: clamp(0.65rem, 0.8vw, 1rem) !important;
}

body .ai-inner {
    display: grid !important;
    grid-template-columns: 55% 45% !important;
    gap: clamp(16px, 3vw, 48px) !important;
    align-items: center !important;
    width: 100% !important;
}

body .prod-layout {
    display: grid !important;
    grid-template-columns: 57% 43% !important;
    gap: clamp(16px, 3vw, 48px) !important;
    align-items: start !important;
    width: 100% !important;
}

body .industry-detail,
body .inv-grid {
    width: 100% !important;
    max-width: none !important;
}

body .prod-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .4rem !important;
}

body .prod-visual,
body .inv-inner,
body .logo-scroll-wrap,
body .carousel-shell,
body .carousel-viewport {
    width: 100% !important;
    max-width: none !important;
}

body .ai-visual {
    min-height: clamp(280px, 32vw, 720px) !important;
}

body .ai-nodes {
    width: clamp(220px, 28vw, 560px) !important;
    height: clamp(220px, 28vw, 560px) !important;
}

/* ============================================================
   8. TYPOGRAPHY SCALE FOR CONTENT BLOCKS
   ============================================================ */
/* body .ai-title, */
body .prod-name,
body .industry-detail h3 {
    font-size: clamp(1.6rem, 2.5vw, 3.5rem) !important;
}

body .ai-desc,
body .prod-tagline,
body .industry-detail p,
body .mod-body p,
body .ai-pillar p {
    font-size: clamp(0.9rem, 1vw, 1.2rem) !important;
}

body .mod-body h5,
body .ai-pillar h4 {
    font-size: clamp(1rem, 1.2vw, 1.8rem) !important;
}

body .pstat-val,
body .istat-val {
    font-size: clamp(1.2rem, 1.6vw, 2.6rem) !important;
}

body .pstat-label,
body .istat-label {
    font-size: clamp(0.7rem, 0.8vw, 1rem) !important;
}

/* ============================================================
   9. LARGE SCREEN CONTROL
   Prevent giant margins on ultrawide / TV screens
   ============================================================ */
@media (min-width: 1600px) {
    body section,
    body nav,
    body footer,
    body .hero,
    body .page-hero,
    body .cta-section,
    body .ai-section,
    body .customers-section,
    #iz-p1 .hero,
    #iz-p1 > div[style*="padding:0 5rem"] {
        padding-left: clamp(16px, 1.5vw, 36px) !important;
        padding-right: clamp(16px, 1.5vw, 36px) !important;
    }
}

@media (min-width: 2400px) {
    body section,
    body nav,
    body footer,
    body .hero,
    body .page-hero,
    body .cta-section,
    body .ai-section,
    body .customers-section,
    #iz-p1 .hero,
    #iz-p1 > div[style*="padding:0 5rem"] {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* ============================================================
   10. TABLET
   ============================================================ */
@media (max-width: 960px) {
    body nav,
    body section,
    body .hero,
    body .page-hero,
    body footer,
    body .cta-section,
    body .ai-section,
    body .customers-section,
    #iz-p1 .hero,
    #iz-p1 > div[style*="padding:0 5rem"] {
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
    }

    body .hero .hero-two-col,
    .hero-two-col,
    body .ai-inner,
    body .prod-layout,
    body .industry-detail,
    body .inv-grid,
    #iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    body .hero .hero-img-col,
    .hero-img-col,
    #iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] > div:first-child,
    #iz-p1 > div[style*="padding:0 5rem"] > div > div[style*="display:flex"] > div:last-child {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-basis: auto !important;
    }

    body .hero h1 {
        font-size: clamp(2rem, 7vw, 4rem) !important;
    }

    body .hero .hero-sub {
        font-size: clamp(0.95rem, 2vw, 1.2rem) !important;
    }

    body .metric {
        min-width: calc(50% - 1px) !important;
    }
}

/* ============================================================
   11. MOBILE
   ============================================================ */
@media (max-width: 600px) {
    body nav,
    body section,
    body .hero,
    body .page-hero,
    body footer,
    body .cta-section,
    body .ai-section,
    body .customers-section,
    #iz-p1 .hero,
    #iz-p1 > div[style*="padding:0 5rem"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    body .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
    }

    body .hero .hero-sub,
    body .section-sub,
    body .ai-desc,
    body .prod-tagline,
    body .industry-detail p {
        font-size: 0.95rem !important;
    }

    body .section-title,
    /* body .ai-title, */
    body .prod-name,
    body .industry-detail h3 {
        font-size: clamp(1.5rem, 7vw, 2.3rem) !important;
    }

    body .hero-actions {
        flex-direction: column !important;
    }

    body .hero-actions a,
    body .hero-actions button {
        width: 100% !important;
        text-align: center !important;
    }

    body .hero-metrics {
        flex-direction: column !important;
    }

    body .metric {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1.5px solid var(--border) !important;
    }

    body .metric:last-child {
        border-bottom: none !important;
    }

    body .prod-stats,
    body .industry-stats,
    body .inv-metrics,
    body .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
