/* ==========================================================================
   Indo Printographic Pvt. Ltd. — Responsive Stylesheet
   Follows Bootstrap 5.3 breakpoints: sm 576 / md 768 / lg 992 / xl 1200 / xxl 1400
   ========================================================================== */

/* Wide screens — floating contact bar centred on the left page margin
   ========================================================================== */
@media (min-width: 1200px) {
    .footer-main .footer-col {
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-main .footer-col--first {
        padding-left: 0;
    }

    .footer-main .footer-col--last {
        padding-right: 0;
    }
}

@media (min-width: 1400px) {
    .footer-main .footer-col {
        padding-left: 40px;
        padding-right: 40px;
    }

    .footer-main .footer-col--first {
        padding-left: 0;
    }

    .footer-main .footer-col--last {
        padding-right: 0;
    }
}

/* LG and up — footer column separators (fading vertical rule, none after the last column)
   ========================================================================== */
@media (min-width: 992px) {
    /* Image columns stretch to the full height of the text column beside them */
    .section-media-row .custom-visual,
    .section-media-row .quality-visual {
        height: 100%;
        min-height: 460px;
    }

    .section-media-row .custom-visual img,
    .section-media-row .quality-visual img {
        height: 100%;
        aspect-ratio: auto;
    }

    /* Footer columns: equal spacing either side of each separator,
       flush outer edges, no separator after the last column */
    .footer-col {
        position: relative;
        padding-left: 28px;
        padding-right: 28px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Short gold accent at the top of each separator, level with the column titles */
    .footer-col::after {
        content: "";
        position: absolute;
        top: 0;
        right: -1px;
        width: 1px;
        height: 44px;
        background: var(--ip-gold);
    }

    .footer-col--first {
        padding-left: 0;
    }

    .footer-col--last {
        padding-right: 0;
        border-right: 0;
    }

    .footer-col--last::after {
        display: none;
    }
}

/* XL and up — desktop navigation & mega menu
   ========================================================================== */
@media (min-width: 1200px) {
    /* Glass header on scroll (desktop only: a backdrop-filter would trap the
       mobile offcanvas, which is position: fixed inside the header) */
    .site-header.is-scrolled {
        background: rgba(255, 255, 255, 0.86);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        backdrop-filter: blur(14px) saturate(160%);
    }

    .main-nav .nav-link {
        padding: 33px 13px;
    }

    .main-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 13px;
        right: 13px;
        bottom: 24px;
        height: 2px;
        background: linear-gradient(90deg, var(--ip-maroon), var(--ip-gold));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--ip-transition);
    }

    .main-nav .nav-link:hover::after,
    .main-nav .nav-link.active::after,
    .main-nav .nav-link.show::after {
        transform: scaleX(1);
    }

    .main-nav .dropdown-menu {
        margin-top: 0;
        min-width: 300px;
        padding: 10px;
        border: 1px solid var(--ip-grey-200);
        border-top: 3px solid var(--ip-maroon);
        box-shadow: var(--ip-shadow-lg);
    }

    /* Services mega menu spans the header container */
    .main-nav .dropdown-mega {
        position: static;
    }

    .main-nav .mega-menu {
        left: 12px;
        right: 12px;
        top: 100%;
        padding: 18px;
    }

    .mega-inner {
        display: flex;
        gap: 18px;
    }

    .mega-list {
        display: flex;
        flex-wrap: wrap;
        flex: 1 1 auto;
        align-content: flex-start;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mega-list li {
        width: 50%;
        padding: 2px;
    }

    .mega-list .dropdown-item {
        padding: 10px 12px;
    }

    .mega-promo {
        flex: 0 0 300px;
    }

    .header-cta {
        margin-left: 16px;
    }
}

@media (min-width: 1200px) and (max-width: 1299.98px) {
    .brand-logo {
        width: 270px;
    }

    .main-nav .nav-link {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-nav .nav-link::after {
        left: 10px;
        right: 10px;
    }

    .mega-promo {
        flex-basis: 260px;
    }
}

/* Below XL — offcanvas navigation
   ========================================================================== */
@media (max-width: 1199.98px) {
    :root {
        --ip-header-height: 78px;
    }

    .brand-logo {
        width: 260px;
    }

    .site-header .offcanvas {
        width: min(380px, 90vw);
    }

    .site-header .offcanvas-header {
        padding: 18px 20px;
        border-bottom: 1px solid var(--ip-grey-200);
    }

    .site-header .offcanvas-body {
        padding: 10px 20px 28px;
    }

    .main-nav .nav-item {
        border-bottom: 1px solid var(--ip-grey-200);
    }

    .main-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 4px;
        font-size: 1rem;
        text-align: left;
    }

    .main-nav .dropdown-toggle .bi {
        font-size: 0.8rem;
    }

    .main-nav .dropdown-menu {
        margin: 0 0 12px;
        padding: 6px;
        border: 0;
        border-radius: 10px;
        background: var(--ip-cream);
    }

    .mega-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-nav .dropdown-item {
        padding: 9px 10px;
        font-size: 0.92rem;
    }

    .mega-title {
        white-space: normal;
    }

    .mega-desc {
        display: none;
    }

    .menu-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .header-cta {
        width: 100%;
        margin-top: 22px;
    }

    .hero-fact {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }
}

/* Below LG
   ========================================================================== */
@media (max-width: 991.98px) {
    :root {
        --ip-section-space: 80px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-facts {
        margin-top: 40px;
    }

    .about-visual {
        max-width: 620px;
        margin: 0 auto;
    }

    .quality-visual,
    .custom-visual {
        max-width: 620px;
        margin: 0 auto;
    }

    .machine-panel {
        padding: 34px 28px;
    }

    /* Stacked layout: reveal upwards instead of sideways */
    .js [data-reveal="left"],
    .js [data-reveal="right"] {
        transform: translateY(32px);
    }

    .cta-card {
        padding: 36px 28px;
    }

    .footer-main {
        padding-top: 52px;
    }
}

/* Below MD
   ========================================================================== */
@media (max-width: 767.98px) {
    :root {
        --ip-section-space: 66px;
    }

    .hero {
        padding: 48px 0 32px;
    }

    .about-img-main {
        aspect-ratio: 1 / 1;
    }

    .hero .btn {
        width: 100%;
    }

    .hero-card {
        padding: 26px 22px;
    }

    .hero-fact {
        padding: 18px 14px;
        gap: 10px;
    }

    .hero-fact-icon {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .hero-fact strong {
        font-size: 0.88rem;
    }

    .hero-fact p {
        font-size: 0.75rem;
    }

    .about-visual {
        padding: 0 36px 44px 0;
    }

    .about-visual::before {
        top: -14px;
        left: -10px;
        width: 120px;
        height: 120px;
    }

    .about-badge {
        top: 14px;
        left: 14px;
        padding: 10px 14px;
    }

    .about-badge .year {
        font-size: 1.5rem;
    }

    .about-badge .label {
        font-size: 0.68rem;
    }

    .about-iso-pill {
        left: 14px;
        bottom: 56px;
        font-size: 0.7rem;
    }

    .about-img-inset {
        border-width: 5px;
    }

    .quality-seal {
        right: 8px;
        top: -16px;
        width: 96px;
        height: 96px;
    }

    .quality-seal strong {
        font-size: 0.8rem;
    }

    .cta-band {
        padding: 66px 0;
    }

    .cta-card .btn {
        width: 100%;
    }

    .policy-quote {
        padding: 64px 22px 22px;
    }

    .policy-quote::before {
        left: 22px;
        top: 20px;
    }

    .float-contact {
        left: 12px;
        gap: 8px;
    }

    .float-btn,
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .back-to-top {
        right: 12px;
    }
}

/* Below SM
   ========================================================================== */
@media (max-width: 575.98px) {
    :root {
        --ip-header-height: 70px;
    }

    .brand-logo {
        width: 215px;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .machine-panel {
        padding: 30px 20px;
    }

    .custom-visual-tag {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
    }

    .footer-logo-plate img {
        width: 220px;
    }
}

@media (max-width: 359.98px) {
    .brand-logo {
        width: 180px;
    }
}
