/* ============================================================
   I&T WebDesign - Stage 23 Final Visual Fix
   Fixes:
   - Removes the amateur CSS/vector device mockup.
   - Uses a polished generated device composition without cropped screenshot borders.
   - Restores visible header/footer logos.
   ============================================================ */

:root {
    --itwd-navy-900: #02132c;
    --itwd-navy-800: #052756;
    --itwd-blue-600: #075fce;
    --itwd-orange-500: #ff6508;
    --itwd-orange-400: #ff8a1b;
}

/* Header logo: clean image, no clipped white card */
.logo.logo-image-link {
    width: 286px !important;
    flex: 0 0 286px !important;
    height: 86px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.logo.logo-image-link img {
    width: 268px !important;
    max-width: 268px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter: drop-shadow(0 5px 9px rgba(3, 28, 67, .12)) !important;
    background: transparent !important;
}

.nav-inner {
    min-height: 92px !important;
    align-items: center !important;
}

.site-header::after {
    height: 10px !important;
    background: linear-gradient(180deg, rgba(0, 19, 47, .14), rgba(0, 19, 47, 0)) !important;
}

/* Hero: keep the approved left-side typography and replace only the bad device scene */
.hero {
    min-height: 468px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 76% 30%, rgba(23, 120, 236, .36), transparent 28%),
        radial-gradient(circle at 46% 70%, rgba(0, 136, 255, .18), transparent 24%),
        linear-gradient(115deg, #020f22 0%, #031a3d 38%, #063874 74%, #03182f 100%) !important;
}

.hero-grid {
    grid-template-columns: minmax(560px, .94fr) minmax(650px, 1.06fr) !important;
    gap: 24px !important;
    min-height: 468px !important;
    padding: 34px 0 30px !important;
    align-items: center !important;
}

.hero-text {
    z-index: 5 !important;
}

.hero-text h1 {
    margin-bottom: 18px !important;
    font-size: clamp(58px, 4.7vw, 72px) !important;
    line-height: .96 !important;
    letter-spacing: .1px !important;
}

.hero-text h1 .hero-line {
    display: block !important;
    white-space: nowrap !important;
}

.hero-text p {
    max-width: 575px !important;
    font-size: 23px !important;
    line-height: 1.27 !important;
}

/* Kill older failed mockups/cached classes */
.hero-devices-stage22,
.hero-devices-built,
.device-scene,
.device,
.device-keyboard,
.device-mouse,
.device-glow {
    display: none !important;
}

/* Professional device artwork */
.hero-devices-stage23 {
    position: relative !important;
    z-index: 4 !important;
    min-height: 430px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: visible !important;
    pointer-events: none !important;
}

.hero-devices-stage23 img {
    width: min(820px, 116%) !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    transform: translate(26px, 4px) !important;
    filter: drop-shadow(0 30px 32px rgba(0, 0, 0, .28)) !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
}

/* Compact/inner-page heroes */
.hero.compact .hero-devices-stage23,
.pricing-hero .hero-devices-stage23 {
    min-height: 366px !important;
}

.hero.compact .hero-devices-stage23 img,
.pricing-hero .hero-devices-stage23 img {
    width: min(690px, 108%) !important;
    transform: translate(18px, 2px) !important;
}

/* Footer logo: no more white blank box */
.footer-brand img,
.footer-brand img.footer-logo-stage23 {
    width: 230px !important;
    max-width: 230px !important;
    height: auto !important;
    display: block !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    filter: drop-shadow(0 9px 16px rgba(0, 0, 0, .18)) !important;
    object-fit: contain !important;
}

.footer-main {
    align-items: start !important;
}

.footer-brand {
    min-width: 0 !important;
}

.footer-brand p {
    max-width: 335px !important;
}

/* Keep footer CTA buttons visually balanced */
.footer-contact-buttons a {
    min-height: 54px !important;
    border-radius: 8px !important;
    font-weight: 900 !important;
}

@media (max-width: 1360px) {
    .hero-grid {
        grid-template-columns: minmax(520px, .92fr) minmax(590px, 1.08fr) !important;
    }

    .hero-devices-stage23 img {
        width: min(770px, 116%) !important;
        transform: translate(18px, 6px) !important;
    }

    .hero-text h1 {
        font-size: clamp(54px, 4.65vw, 66px) !important;
    }
}

@media (max-width: 1180px) {
    .logo.logo-image-link {
        width: 238px !important;
        flex-basis: 238px !important;
    }

    .logo.logo-image-link img {
        width: 225px !important;
        max-width: 225px !important;
    }

    .hero-grid {
        grid-template-columns: minmax(450px, .95fr) minmax(500px, 1.05fr) !important;
    }

    .hero-devices-stage23 img {
        width: min(690px, 116%) !important;
        transform: translate(12px, 7px) !important;
    }

    .hero-text h1 .hero-line {
        white-space: normal !important;
    }
}

@media (max-width: 960px) {
    .logo.logo-image-link {
        width: 220px !important;
        flex-basis: 220px !important;
        height: 74px !important;
    }

    .logo.logo-image-link img {
        width: 210px !important;
        max-width: 210px !important;
    }

    .hero,
    .hero.compact {
        min-height: auto !important;
    }

    .hero-grid,
    .hero.compact .hero-grid,
    .pricing-hero .hero-grid {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 40px 0 32px !important;
    }

    .hero-devices-stage23,
    .hero.compact .hero-devices-stage23,
    .pricing-hero .hero-devices-stage23 {
        min-height: 330px !important;
        justify-content: center !important;
    }

    .hero-devices-stage23 img,
    .hero.compact .hero-devices-stage23 img,
    .pricing-hero .hero-devices-stage23 img {
        width: min(720px, 106%) !important;
        transform: translate(0, 0) !important;
    }
}

@media (max-width: 620px) {
    .logo.logo-image-link {
        width: 188px !important;
        flex-basis: 188px !important;
    }

    .logo.logo-image-link img {
        width: 180px !important;
        max-width: 180px !important;
    }

    .hero-text h1 {
        font-size: 39px !important;
        line-height: .99 !important;
    }

    .hero-text p {
        font-size: 18px !important;
    }

    .hero-devices-stage23,
    .hero.compact .hero-devices-stage23,
    .pricing-hero .hero-devices-stage23 {
        min-height: 250px !important;
    }

    .hero-devices-stage23 img,
    .hero.compact .hero-devices-stage23 img,
    .pricing-hero .hero-devices-stage23 img {
        width: 580px !important;
        max-width: 122% !important;
    }

    .footer-brand img,
    .footer-brand img.footer-logo-stage23 {
        width: 205px !important;
        max-width: 205px !important;
    }
}
