/* ============================================
   INCOTEC HERO BANNER
   Shared base styles + layout modifiers:
   --circles, --diagonal, --mosaic
   ============================================ */

/* ──────────────────────────────────────────
   Reset: Break out of Elementor container
   ────────────────────────────────────────── */
.elementor-widget-incotec_hero_banner,
.elementor-widget-incotec_hero_banner .e-con-inner,
.elementor-element:has(.incotec-hero),
.elementor-element:has(.incotec-hero) > .e-con-inner {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

/* ──────────────────────────────────────────
   Base Section
   ────────────────────────────────────────── */
.incotec-hero {
    min-height: 85vh;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ──────────────────────────────────────────
   Container
   ────────────────────────────────────────── */
.incotec-hero__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 48px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ──────────────────────────────────────────
   Eyebrow
   ────────────────────────────────────────── */
.incotec-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.incotec-hero .eyebrow svg {
    width: 16px;
    height: 16px;
}

/* ──────────────────────────────────────────
   Heading
   ────────────────────────────────────────── */
.incotec-hero h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: 24px;
}

.incotec-hero h2 .highlight {
    color: #7AD3C1;
}

/* ──────────────────────────────────────────
   Subheadline
   ────────────────────────────────────────── */
.incotec-hero .subheadline {
    font-size: 20px;
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 40px;
}

/* ──────────────────────────────────────────
   CTA Buttons (shared structure)
   ────────────────────────────────────────── */
.incotec-hero .cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.incotec-hero .btn-primary,
.incotec-hero .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.incotec-hero .btn-primary i,
.incotec-hero .btn-primary svg,
.incotec-hero .btn-secondary i,
.incotec-hero .btn-secondary svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: inherit;
    fill: currentColor;
}

.incotec-hero .btn-primary {
    font-weight: 600;
    border: none;
}

.incotec-hero .btn-secondary {
    font-weight: 500;
}

/* ──────────────────────────────────────────
   Trust Bar
   ────────────────────────────────────────── */
.incotec-hero .trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}

.incotec-hero .trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.incotec-hero .trust-item .number {
    font-size: 24px;
    font-weight: 700;
}

.incotec-hero .trust-item .label {
    line-height: 1.3;
}

/* ──────────────────────────────────────────
   Mobile Image (circles + diagonal)
   Hidden on desktop, shown on mobile
   ────────────────────────────────────────── */
.incotec-hero .mobile-image {
    display: none;
    width: 100%;
    overflow: hidden;
}

.incotec-hero .mobile-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Mobile Mosaic (mosaic layout only)
   Hidden on desktop, shown on mobile */
.incotec-hero .mobile-mosaic {
    display: none;
    gap: 6px;
    padding: 0 6px;
}

.incotec-hero .mobile-mosaic__item {
    flex: 1;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.incotec-hero .mobile-mosaic__item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.incotec-hero .mobile-mosaic__item:first-child { border-radius: 12px 4px 4px 12px; }
.incotec-hero .mobile-mosaic__item:nth-child(2) { border-radius: 4px; }
.incotec-hero .mobile-mosaic__item:last-child { border-radius: 4px 12px 12px 4px; }

.incotec-hero .mobile-mosaic__label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 6px;
    background: linear-gradient(0deg, rgba(0,45,71,0.85) 0%, transparent 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}


/* ============================================
   LAYOUT: CIRCLES (heller Hintergrund)
   ============================================ */
.incotec-hero--circles {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

/* Colors: light theme */
.incotec-hero--circles .eyebrow {
    background: rgba(122, 211, 193, 0.2);
    border: 1px solid rgba(122, 211, 193, 0.4);
    color: #002D47;
}

.incotec-hero--circles h2 { color: #002D47; }
.incotec-hero--circles .subheadline { color: #3E5B75; }

.incotec-hero--circles .btn-primary {
    background: #002D47;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 45, 71, 0.3);
}
.incotec-hero--circles .btn-primary:hover {
    background: #0F2439;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 45, 71, 0.4);
    color: #ffffff;
}

.incotec-hero--circles .btn-secondary {
    background: #ffffff;
    color: #002D47;
    border: 2px solid #e2e8f0;
}
.incotec-hero--circles .btn-secondary:hover {
    background: #f8fafc;
    border-color: #7AD3C1;
    color: #002D47;
}

.incotec-hero--circles .trust-item { color: #3E5B75; }
.incotec-hero--circles .trust-item .number { color: #002D47; }

/* Desktop circles */
.incotec-hero--circles .background-circles {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.incotec-hero--circles .bg-circle {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(122, 211, 193, 0.5);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.incotec-hero--circles .bg-circle a {
    display: block;
    width: 100%;
    height: 100%;
}

.incotec-hero--circles .bg-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.incotec-hero--circles .bg-circle-1 {
    width: 750px;
    height: 750px;
    top: -150px;
    right: -50px;
}

.incotec-hero--circles .bg-circle-2 {
    width: 520px;
    height: 520px;
    bottom: -50px;
    right: -50px;
}

/* Circles: narrower screens – shift circles with content */
@media (max-width: 1450px) and (min-width: 1025px) {
    .incotec-hero--circles .background-circles {
        right: auto;
        left: 50%;
        width: 725px;
    }
}


/* ============================================
   LAYOUT: DIAGONAL SPLIT (dunkler Hintergrund)
   ============================================ */
.incotec-hero--diagonal {
    background: #002D47;
}

/* Colors: dark theme */
.incotec-hero--diagonal .eyebrow {
    background: rgba(122, 211, 193, 0.15);
    border: 1px solid rgba(122, 211, 193, 0.4);
    color: #7AD3C1;
}

.incotec-hero--diagonal h2 { color: #ffffff; }
.incotec-hero--diagonal .subheadline { color: rgba(255,255,255,0.7); }

.incotec-hero--diagonal .btn-primary {
    background: #7AD3C1;
    color: #002D47;
    box-shadow: 0 4px 14px rgba(122, 211, 193, 0.4);
}
.incotec-hero--diagonal .btn-primary:hover {
    background: #5ec4ae;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(122, 211, 193, 0.5);
    color: #002D47;
}

.incotec-hero--diagonal .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
}
.incotec-hero--diagonal .btn-secondary:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

.incotec-hero--diagonal .trust-item { color: rgba(255,255,255,0.6); }
.incotec-hero--diagonal .trust-item .number { color: #7AD3C1; }

/* Desktop: diagonal image side */
.incotec-hero--diagonal .hero-image-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.incotec-hero--diagonal .hero-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Diagonal cut over image */
.incotec-hero--diagonal .hero-image-side::before {
    content: '';
    position: absolute;
    top: 0; left: -1px; bottom: 0;
    width: 200px;
    background: #002D47;
    transform: skewX(-6deg);
    transform-origin: top left;
    z-index: 1;
}

/* Teal accent line */
.incotec-hero--diagonal .hero-image-side::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 195px;
    width: 4px;
    background: #7AD3C1;
    transform: skewX(-6deg);
    transform-origin: top left;
    z-index: 2;
}

/* Gradient overlay on image */
.incotec-hero--diagonal .hero-image-side .overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(0,45,71,0.3) 0%, transparent 60%);
    z-index: 1;
}


/* ============================================
   LAYOUT: MOSAIC GRID (heller Hintergrund)
   ============================================ */
.incotec-hero--mosaic {
    background: #f8faf9;
}

/* Colors: light theme (same as circles) */
.incotec-hero--mosaic .eyebrow {
    background: rgba(122, 211, 193, 0.15);
    border: 1px solid rgba(122, 211, 193, 0.3);
    color: #002D47;
}

.incotec-hero--mosaic h2 { color: #002D47; }
.incotec-hero--mosaic .subheadline { color: #3E5B75; }

.incotec-hero--mosaic .btn-primary {
    background: #002D47;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 45, 71, 0.3);
}
.incotec-hero--mosaic .btn-primary:hover {
    background: #0F2439;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 45, 71, 0.4);
    color: #ffffff;
}

.incotec-hero--mosaic .btn-secondary {
    background: #ffffff;
    color: #002D47;
    border: 2px solid #e2e8f0;
}
.incotec-hero--mosaic .btn-secondary:hover {
    border-color: #7AD3C1;
    background: #f8faf9;
    color: #002D47;
}

.incotec-hero--mosaic .trust-item { color: #3E5B75; }
.incotec-hero--mosaic .trust-item .number { color: #002D47; }

/* Desktop mosaic grid – anchored to the centered 1140px container, not the viewport edge */
.incotec-hero--mosaic .mosaic-grid {
    position: absolute;
    top: 50%;
    right: calc(50% - 700px);
    transform: translateY(-50%);
    width: 480px;
    height: 560px;
    z-index: 0;
    pointer-events: none;
}

.incotec-hero--mosaic .mosaic-item {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Allow clicking linked images in the mosaic grid */
a.mosaic-item {
    pointer-events: auto;
}

.incotec-hero--mosaic .mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.incotec-hero--mosaic .mosaic-item:hover img {
    transform: scale(1.05);
}

.incotec-hero--mosaic .mosaic-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px 14px 12px;
    background: linear-gradient(0deg, rgba(0,45,71,0.9) 0%, transparent 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

/* Mosaic: shrink content below 1500px so images don't get clipped */
@media (max-width: 1500px) and (min-width: 1025px) {
    .incotec-hero--mosaic .incotec-hero__container {
        max-width: 50%;
        margin: 0;
        margin-left: max(15px, calc((100% - 1140px) / 2));
        padding-right: 0;
    }

    .incotec-hero--mosaic .mosaic-grid {
        right: 20px;
    }
}

/* Mosaic item positions */
.incotec-hero--mosaic .mosaic-1 {
    width: 280px; height: 340px;
    top: 0; left: 0;
    border-radius: 20px;
}

.incotec-hero--mosaic .mosaic-2 {
    width: 170px; height: 170px;
    top: 20px; right: 0;
    border-radius: 16px;
}

.incotec-hero--mosaic .mosaic-3 {
    width: 220px; height: 180px;
    bottom: 0; right: 30px;
    border-radius: 16px;
}

/* Teal accent box */
.incotec-hero--mosaic .mosaic-accent {
    position: absolute;
    width: 100px; height: 100px;
    background: #7AD3C1;
    border-radius: 16px;
    bottom: 60px; left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(122, 211, 193, 0.4);
    z-index: 2;
}

.incotec-hero--mosaic .accent-number {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #002D47;
    text-align: center;
}

.incotec-hero--mosaic .accent-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    color: #002D47;
    text-align: center;
}

/* Decorative dots */
.incotec-hero--mosaic .deco-dots {
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    opacity: 0.3;
    z-index: -1;
}

.incotec-hero--mosaic .deco-dots span {
    width: 6px; height: 6px;
    background: #7AD3C1;
    border-radius: 50%;
}


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

/* Tablet: hide desktop visuals, show mobile images */
@media (max-width: 1024px) {
    .incotec-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .incotec-hero__container {
        padding-top: 40px;
    }

    /* Circles: hide desktop, show mobile */
    .incotec-hero--circles .background-circles { display: none; }
    .incotec-hero--circles .mobile-image { display: block; }

    /* Diagonal: hide desktop, show mobile */
    .incotec-hero--diagonal .hero-image-side { display: none; }
    .incotec-hero--diagonal .mobile-image { display: block; }

    /* Mosaic: hide desktop grid, show mobile mosaic */
    .incotec-hero--mosaic .mosaic-grid { display: none; }
    .incotec-hero--mosaic .mobile-mosaic { display: flex; }
}

/* Phone */
@media (max-width: 767px) {
    .incotec-hero__container {
        padding: 40px 20px;
    }

    .incotec-hero h2 {
        font-size: 28px;
    }

    .incotec-hero .subheadline {
        font-size: 16px;
    }

    .incotec-hero .cta-group {
        flex-direction: column;
    }

    .incotec-hero .btn-primary,
    .incotec-hero .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .incotec-hero .trust-bar {
        gap: 24px;
    }

    .incotec-hero .mobile-image img {
        height: 200px;
    }
}
