/* ==========================================================================
   Indo Printographic Pvt. Ltd. — Home 3 page styles
   Loaded after style.css, responsive.css and home-classic.css on home-3.html.
   ========================================================================== */

/* 1. Hero — text + continuously scrolling product mosaic
   ========================================================================== */
.hero3 {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(200, 164, 100, 0.18), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(148, 29, 43, 0.1), transparent 45%),
        var(--ip-cream);
}

.hero3::before {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -60px;
    width: 260px;
    height: 260px;
    background-image: radial-gradient(var(--ip-maroon-tint) 2px, transparent 2px);
    background-size: 18px 18px;
    opacity: 0.6;
}

.hero3-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 8px;
    margin-bottom: 24px;
    border-radius: 40px;
    background: var(--ip-white);
    border: 1px solid var(--ip-grey-200);
    box-shadow: var(--ip-shadow-sm);
    font-family: var(--ip-font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ip-maroon-deep);
}

.hero3-pill i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ip-maroon);
    color: var(--ip-white);
    font-size: 0.8rem;
}

.hero3-title {
    font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero3-title .accent {
    color: var(--ip-maroon);
}

.hero3-lead {
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    font-weight: 600;
    color: var(--ip-maroon-dark);
    margin-bottom: 14px;
}

.hero3-text {
    max-width: 560px;
    color: #5d5656;
    margin-bottom: 30px;
}

.hero3-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 36px 0 0;
    padding: 24px 0 0;
    list-style: none;
    border-top: 1px solid var(--ip-grey-200);
}

.hero3-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #5d5656;
}

.hero3-facts i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ip-gold-soft);
    color: var(--ip-maroon);
    font-size: 1.15rem;
}

.hero3-facts strong {
    display: block;
    font-family: var(--ip-font-heading);
    font-size: 0.95rem;
    color: var(--ip-charcoal);
}

.hero3-mosaic {
    position: relative;
    display: flex;
    gap: 18px;
    height: 580px;
    overflow: hidden;
    /* Fade the top and bottom edges */
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.mosaic-col {
    flex: 1 1 0;
    min-width: 0;
}

.mosaic-track {
    margin: 0;
    padding: 0;
    list-style: none;
    animation: ip-mosaic-up 38s linear infinite;
}

.mosaic-col--down .mosaic-track {
    animation-direction: reverse;
}

.hero3-mosaic:hover .mosaic-track {
    animation-play-state: paused;
}

/* Items use margin (not gap) so the duplicated half is exactly -50% */
.mosaic-track li {
    margin-bottom: 18px;
    border-radius: var(--ip-radius-lg);
    overflow: hidden;
    background: var(--ip-white);
    border: 1px solid var(--ip-grey-200);
    box-shadow: var(--ip-shadow);
}

.mosaic-track img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@keyframes ip-mosaic-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

.hero3-iso {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 8px rgba(148, 29, 43, 0.12), var(--ip-shadow-lg);
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: var(--ip-font-heading);
    color: var(--ip-maroon-deep);
}

.hero3-iso i {
    font-size: 1.6rem;
    color: var(--ip-maroon);
}

.hero3-iso strong {
    font-size: 0.85rem;
    line-height: 1.2;
}

.hero3-iso span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* 2. About — text + timeline
   ========================================================================== */
.timeline3 {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline3::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--ip-maroon), var(--ip-gold));
}

.timeline3 li {
    position: relative;
    display: flex;
    gap: 22px;
    margin-bottom: 18px;
}

.timeline3 li:last-child {
    margin-bottom: 0;
}

.timeline3-marker {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ip-white);
    border: 2px solid var(--ip-maroon);
    color: var(--ip-maroon);
    font-size: 1.4rem;
    box-shadow: var(--ip-shadow-sm);
}

.timeline3-card {
    flex: 1;
    padding: 18px 22px;
    border-radius: 12px;
    background: var(--ip-white);
    border: 1px solid var(--ip-grey-200);
    transition: transform var(--ip-transition), box-shadow var(--ip-transition);
}

.timeline3-card:hover {
    transform: translateX(6px);
    box-shadow: var(--ip-shadow);
}

.timeline3-card .when {
    display: block;
    font-family: var(--ip-font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ip-gold);
    margin-bottom: 4px;
}

.timeline3-card h3 {
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.timeline3-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #5f5858;
}

/* 3. Highlights — vertical tabs
   ========================================================================== */
.hl-section {
    background:
        radial-gradient(circle at 0% 100%, rgba(200, 164, 100, 0.2), transparent 40%),
        linear-gradient(130deg, var(--ip-maroon-deep), var(--ip-maroon-dark) 60%, var(--ip-maroon));
}

.hl-tabs {
    gap: 10px;
}

.hl-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--ip-font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    transition: background-color var(--ip-transition), color var(--ip-transition), border-color var(--ip-transition), transform var(--ip-transition);
}

.hl-tab i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.15rem;
    transition: background-color var(--ip-transition), color var(--ip-transition);
}

.hl-tab:hover {
    color: var(--ip-white);
    transform: translateX(4px);
}

.hl-tab.active {
    background: var(--ip-white);
    border-color: var(--ip-white);
    color: var(--ip-maroon-deep);
}

.hl-tab.active i {
    background: var(--ip-maroon);
    color: var(--ip-white);
}

.hl-panel {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    border-radius: var(--ip-radius-lg);
    background: var(--ip-white);
    overflow: hidden;
    box-shadow: var(--ip-shadow-lg);
}

.hl-panel-media {
    width: 42%;
    min-height: 320px;
    background: var(--ip-white);
}

.hl-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hl-panel-body {
    width: 58%;
    padding: 40px 36px;
    align-self: center;
}

.hl-panel-body .num {
    display: block;
    font-family: var(--ip-font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ip-maroon-soft);
    margin-bottom: 10px;
}

.hl-section .hl-panel-body h3 {
    color: var(--ip-charcoal);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.hl-section .hl-panel-body p {
    margin: 0;
    color: var(--ip-text);
}

.hl-section .tab-pane.active .hl-panel {
    animation: ip-fade-up 0.6s var(--ip-ease) both;
}

/* 4. Labels printing solutions — overlay tiles
   ========================================================================== */
.label-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--ip-radius-lg);
    overflow: hidden;
    background: var(--ip-white);
    border: 1px solid var(--ip-grey-200);
    color: var(--ip-white);
    text-decoration: none;
    isolation: isolate;
}

.label-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ip-ease);
}

.label-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(77, 15, 23, 0) 35%, rgba(77, 15, 23, 0.92) 100%);
    transition: background-color var(--ip-transition);
}

.label-tile-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px;
}

.label-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: var(--ip-gold);
    color: var(--ip-maroon-deep);
    font-size: 1.05rem;
}

.label-tile .h3 {
    margin: 0;
    font-family: var(--ip-font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--ip-white);
}

/* Description slides open on hover / keyboard focus */
.label-tile-desc {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
    transition: max-height 0.45s var(--ip-ease), opacity 0.35s ease, margin 0.35s ease;
}

.label-tile:hover img,
.label-tile:focus-visible img {
    transform: scale(1.08);
}

.label-tile:hover .label-tile-desc,
.label-tile:focus-visible .label-tile-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 8px;
}

.label-tile:hover::after,
.label-tile:focus-visible::after {
    background-color: rgba(77, 15, 23, 0.3);
}

/* 5. Capabilities — numbered process steps
   ========================================================================== */
.steps3 {
    position: relative;
}

.step3 {
    position: relative;
    height: 100%;
    text-align: center;
}

.step3-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--ip-maroon);
    border: 5px solid var(--ip-white);
    box-shadow: 0 0 0 2px var(--ip-maroon-tint);
    color: var(--ip-white);
    font-family: var(--ip-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    transition: background-color var(--ip-transition), color var(--ip-transition);
}

.step3:hover .step3-num {
    background: var(--ip-gold);
    color: var(--ip-maroon-deep);
}

.step3-media {
    aspect-ratio: 4 / 3;
    padding: 16px;
    border-radius: var(--ip-radius-lg);
    background: var(--ip-white);
    border: 1px solid var(--ip-grey-200);
    overflow: hidden;
    transition: transform var(--ip-transition), box-shadow var(--ip-transition);
}

.step3-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step3:hover .step3-media {
    transform: translateY(-6px);
    box-shadow: var(--ip-shadow-lg);
}

.step3 h3 {
    margin: 18px 0 0;
    font-size: 1.05rem;
}

/* 6. CTA
   ========================================================================== */
.cta3 {
    padding: 0 0 90px;
}

.cta3-box {
    position: relative;
    padding: 56px 52px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    color: var(--ip-white);
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 164, 100, 0.3), transparent 40%),
        linear-gradient(120deg, var(--ip-maroon-deep), var(--ip-maroon));
    box-shadow: var(--ip-shadow-lg);
}

.cta3-box::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    z-index: -1;
    width: 240px;
    height: 240px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2px);
    background-size: 16px 16px;
}

.cta3-box h2 {
    color: var(--ip-white);
    font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.cta3-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

/* 7. Responsive
   ========================================================================== */
@media (min-width: 992px) {
    /* Dashed connector between the four step numbers */
    .steps3::before {
        content: "";
        position: absolute;
        left: 12.5%;
        right: 12.5%;
        top: 29px;
        border-top: 2px dashed var(--ip-maroon-tint);
    }
}

@media (max-width: 991.98px) {
    .hero3 {
        padding: 50px 0 40px;
    }

    .hero3-mosaic {
        height: 420px;
        margin-top: 10px;
    }

    .hl-panel-media,
    .hl-panel-body {
        width: 100%;
    }

    .hl-panel-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .hl-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .hl-tabs::-webkit-scrollbar {
        display: none;
    }

    .hl-tab {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .hero3 .btn {
        width: 100%;
    }

    .hero3-mosaic {
        height: 340px;
        gap: 12px;
    }

    .mosaic-track li {
        margin-bottom: 12px;
    }

    .hero3-iso {
        width: 104px;
        height: 104px;
    }

    .hl-panel-body {
        padding: 28px 22px;
    }

    .cta3-box {
        padding: 40px 24px;
    }

    .cta3-box .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mosaic-track {
        animation: none;
    }
}
