/* ==========================================================
   A1 CASH & CARRY — HERO SECTION
   Reference style: condensed bold heading, red badge,
   red + outline buttons, left aligned. Fully responsive.

   NOTE: index.html mein ye fonts load hone chahiye:
   Barlow Condensed (heading) aur Inter (baaki text)
========================================================== */

.hero-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d1b2a;
    color: #fff;
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
}


/* ---------- Background slider ---------- */

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Dark navy overlay (text clear padhne ke liye) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(10, 22, 45, 0.82) 0%,
            rgba(10, 22, 45, 0.60) 45%,
            rgba(10, 22, 45, 0.28) 100%
        );
}


/* ---------- Content ---------- */

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 5% 90px;
    box-sizing: border-box;
    text-align: left;
}

/* Red badge: [tag icon] PATNA'S #1 WHOLESALE STORE */
.hero-small {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 10px 16px;
    border-radius: 3px;
    background: #d92b27;
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.hero-small i {
    font-size: 12px;
}

/* Big condensed heading */
.hero-content h1 {
    max-width: 1000px;
    margin: 0 0 22px;
    color: #fff;
    font-family: 'Barlow Condensed', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(46px, 5.3vw, 90px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    overflow-wrap: break-word;
}

/* Sub text */
.hero-content p {
    max-width: 780px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(16px, 1.45vw, 24px);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}


/* ---------- Buttons ---------- */

.hero-buttons {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    min-height: 58px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-sizing: border-box;
    border-radius: 4px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, transform 0.25s ease,
                box-shadow 0.25s ease;
}

.hero-buttons .btn-primary {
    background: #d92b27;
    border: 2px solid #d92b27;
    color: #fff;
}

.hero-buttons .btn-primary i {
    font-size: 15px;
}

.hero-buttons .btn-primary:hover {
    background: #b81f1c;
    border-color: #b81f1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: #fff;
}

.hero-buttons .btn-secondary:hover {
    background: #fff;
    border-color: #fff;
    color: #0d1b2a;
    transform: translateY(-2px);
}


/* ---------- Slider arrows ---------- */

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #d92b27;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-arrow:hover {
    background: #d92b27;
    color: #fff;
}

.hero-prev { left: 22px; }
.hero-next { right: 22px; }


/* ---------- Dots ---------- */

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 28px;
    border-radius: 10px;
    background: #fff;
}


/* ==========================================================
   LARGE LAPTOP
========================================================== */

@media (max-width: 1280px) {

    .hero-section {
        min-height: 600px;
    }

    .hero-content h1 {
        max-width: 820px;
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {

    .hero-section {
        min-height: 540px;
    }

    .hero-content {
        padding: 70px 5% 80px;
    }

    .hero-content h1 {
        max-width: 720px;
        font-size: clamp(44px, 7vw, 64px);
    }

    .hero-content p {
        max-width: 620px;
        font-size: 18px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        min-height: 54px;
        padding: 0 26px;
        font-size: 16px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 21px;
    }

    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .hero-section {
        min-height: 520px;
    }

    .hero-slide {
        background-position: 60% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(10, 22, 45, 0.55) 0%,
                rgba(10, 22, 45, 0.75) 100%
            );
    }

    .hero-content {
        padding: 56px 22px 84px;
    }

    .hero-small {
        margin-bottom: 18px;
        padding: 9px 13px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero-content h1 {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: clamp(40px, 11.5vw, 56px);
        line-height: 1.05;
    }

    .hero-content p {
        max-width: 100%;
        margin-bottom: 26px;
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        min-height: 50px;
        padding: 0 22px;
        font-size: 15px;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 18px;
        top: auto;
        bottom: 16px;
        transform: none;
    }

    .hero-prev { left: 14px; }
    .hero-next { right: 14px; }

    .hero-dots {
        bottom: 26px;
    }
}


/* ==========================================================
   SMALL PHONES
========================================================== */

@media (max-width: 480px) {

    .hero-section {
        min-height: 500px;
    }

    .hero-content {
        padding: 48px 18px 84px;
    }

    .hero-small {
        font-size: 10px;
        padding: 8px 11px;
        letter-spacing: 0.8px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 12vw, 46px);
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 22px;
    }

    /* buttons ek ke neeche ek, poori width */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 330px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        min-height: 50px;
        font-size: 15px;
    }
}


/* ==========================================================
   EXTRA SMALL PHONES
========================================================== */

@media (max-width: 360px) {

    .hero-content h1 {
        font-size: 33px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-small {
        font-size: 9.5px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .hero-dot,
    .hero-arrow,
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        transition: none;
    }
}



/* ==========================================================
   A1 CASH & CARRY — DARK BLUE STATISTICS BAR
   Desktop, Tablet and Mobile Responsive
========================================================== */

.stats-bar {
    width: 100%;
    min-height: 120px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    background: #1b2948;
    color: #ffffff;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    box-sizing: border-box;
    overflow: hidden;
}

.stats-item {
    min-width: 0;
    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 18px 12px;
    text-align: center;
    box-sizing: border-box;

    border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.stats-item:last-child {
    border-right: none;
}

.stats-item h2 {
    margin: 0 0 7px;
    color: #ffa500;

    font-family: 'Barlow Condensed', 'Oswald',
                 'Arial Narrow', Arial, sans-serif;

    font-size: clamp(27px, 2.3vw, 38px);
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
}

.stats-item p {
    margin: 0;
    color: #c5ccda;

    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.4px;
}

/* Laptop */
@media (max-width: 1024px) {
    .stats-bar,
    .stats-item {
        min-height: 105px;
    }

    .stats-item {
        padding: 15px 8px;
    }

    .stats-item h2 {
        font-size: clamp(25px, 2.7vw, 32px);
    }

    .stats-item p {
        font-size: 12px;
    }
}

/* Mobile: two columns and two rows */
@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: auto;
    }

    .stats-item {
        min-height: 94px;
        padding: 16px 6px;

        border-right: 1px solid rgba(255, 255, 255, 0.09);
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .stats-item:nth-child(2n) {
        border-right: none;
    }

    .stats-item:nth-child(n + 3) {
        border-bottom: none;
    }

    .stats-item h2 {
        margin-bottom: 6px;
        font-size: clamp(25px, 6.5vw, 31px);
    }

    .stats-item p {
        font-size: 11px;
        letter-spacing: 0.25px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .stats-item {
        min-height: 86px;
        padding: 12px 4px;
    }

    .stats-item h2 {
        font-size: 23px;
    }

    .stats-item p {
        font-size: 10px;
    }
}