/* ==========================================================================
   Biswas Enterprise - Modern D2C Luxury Homepage Stylesheet
   ========================================================================== */

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, #f7faf8 0%, #edf3ef 100%);
    padding: 4.5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 59, 43, 0.08);
    border: 1px solid rgba(27, 59, 43, 0.15);
    color: #1b3b2b;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-badge-pill svg {
    color: #d4af37;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    color: #1a2721;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-title .text-gradient {
    color: #1b3b2b;
}

.hero-description {
    font-size: 1.125rem;
    color: #526358;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #1b3b2b !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 8px 24px rgba(27, 59, 43, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-hero-primary:hover {
    background: #2a523c !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(27, 59, 43, 0.35) !important;
    color: #ffffff !important;
}

.btn-hero-outline {
    background: #ffffff !important;
    color: #1b3b2b !important;
    border: 1.5px solid #1b3b2b !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-hero-outline:hover {
    background: #f0f5f2 !important;
    transform: translateY(-2px) !important;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-float-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-float-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f0eb;
    color: #1b3b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hero-float-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2721;
}

.hero-float-sub {
    font-size: 0.78rem;
    color: #64746b;
}

/* Stats Counter Bar */
.stats-counter-section {
    background: #ffffff;
    border-top: 1px solid #e8eee9;
    border-bottom: 1px solid #e8eee9;
    padding: 2.25rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f2f7f4;
    color: #1b3b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-val {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2721;
    line-height: 1.1;
}

.stat-lbl {
    font-size: 0.8125rem;
    color: #64746b;
    margin-top: 2px;
}

/* Category Grid Overhaul */
.category-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e8eee9;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(27, 59, 43, 0.1);
    border-color: #1b3b2b;
}

.category-image {
    height: 230px;
    width: 100%;
    object-fit: cover;
}

.category-content {
    padding: 1.5rem;
    text-align: left;
}

.category-name {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2721;
    margin-bottom: 0.35rem;
}

.category-desc {
    font-size: 0.875rem;
    color: #64746b;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.category-cta {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1b3b2b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.category-card:hover .category-cta {
    gap: 10px;
    color: #d4af37;
}

/* FAQ Accordion Styling */
.faq-section {
    background: #f7faf8;
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5ebe7;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item.active {
    border-color: #1b3b2b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a2721;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: #1b3b2b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    color: #526358;
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

/* =========================================
   MOBILE RESPONSIVE — HOME PAGE
   ========================================= */

@media (max-width: 992px) {
    /* Hero — text first, image second, both full width */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-content {
        order: 1; /* Text always first */
        width: 100%;
        max-width: 100%;
    }
    .hero-image-wrapper {
        order: 2; /* Image below text */
        width: 100%;
        max-height: none;     /* Remove any height cap */
        aspect-ratio: 16 / 9; /* Full-width cinematic ratio */
    }
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .hero-description {
        font-size: 1rem;
    }

    /* Stats grid from sections.css override */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats counter card (inline-defined in index.php) */
    .stats-counter-card {
        padding: 22px 20px !important;
        margin-top: 28px !important;
    }
    .stats-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Company Glimpse */
    .company-glimpse-wrapper {
        padding: 28px 24px !important;
    }
    .glimpse-split-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .glimpse-right-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Bulk Quote */
    .bulk-quote-section {
        padding: 36px 24px !important;
    }
    .bulk-quote-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}

@media (max-width: 575px) {
    /* ---- HERO ---- */
    .hero-section {
        padding: 2rem 0 2.5rem;
    }
    .hero-title {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
        line-height: 1.18;
    }
    .hero-badge-pill {
        font-size: 0.65rem;
        padding: 5px 12px;
    }
    .hero-description {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* ---- SECTION HEADERS ---- */
    .section-header h2 {
        font-size: clamp(1.3rem, 5.5vw, 1.75rem);
    }
    .section-header p {
        font-size: 0.875rem;
    }
    .eyebrow {
        font-size: 0.65rem !important;
    }

    /* ---- STATS COUNTER CARD ---- */
    .stats-counter-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }
    .stats-grid-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .stat-item-cell {
        gap: 8px !important;
    }
    .stat-icon-circle {
        width: 34px !important;
        height: 34px !important;
    }
    /* Inline stat values */
    .stat-item-cell > div > div:first-child {
        font-size: 1rem !important;
    }
    .stat-item-cell > div > div:last-child {
        font-size: 0.68rem !important;
    }

    /* ---- COMPANY GLIMPSE ---- */
    .company-glimpse-wrapper {
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }
    .glimpse-verified-badge {
        font-size: 0.65rem !important;
    }
    .glimpse-card-label {
        font-size: 0.6rem !important;
    }
    .glimpse-card-val {
        font-size: 0.8rem !important;
    }
    .glimpse-interactive-card {
        padding: 12px 10px !important;
    }

    /* ---- BULK QUOTE ---- */
    .bulk-quote-section {
        padding: 24px 14px !important;
    }

    /* ---- FAQ ---- */
    .faq-section {
        padding: 3rem 0;
    }
    .faq-question {
        padding: 14px 16px;
        font-size: 0.875rem;
    }
    .faq-answer {
        font-size: 0.875rem;
        padding: 0 16px;
    }
    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }

    /* ---- PRODUCT CARDS ---- */
    .product-title {
        font-size: 0.875rem;
    }
    .product-category {
        font-size: 0.68rem;
    }
    .price-current {
        font-size: 1rem;
    }
    .price-original {
        font-size: 0.78rem;
    }
    .prod-specs-pill {
        font-size: 0.68rem !important;
    }
    .btn-add-cart {
        font-size: 0.78rem;
        padding: 0.55rem 0.75rem;
    }

    /* ---- CATEGORY CARDS ---- */
    .category-name {
        font-size: 0.95rem;
    }
    .category-desc {
        font-size: 0.78rem;
    }
    .category-cta {
        font-size: 0.72rem;
    }
    .category-image {
        height: 170px;
    }

    /* ---- SECTION PADDING ---- */
    .section-padding {
        padding: 2.5rem 0;
    }
}

@media (max-width: 640px) {
    /* Hero section padding */
    .hero-section {
        padding: 2.5rem 0 3rem;
    }
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    .hero-badge-pill {
        font-size: 0.7rem;
    }
    .hero-description {
        font-size: 0.9375rem;
    }
    .hero-image-wrapper {
        max-height: 280px;
    }

    /* Stats counter card — single column on mobile */
    .stats-counter-card {
        padding: 18px 16px !important;
        border-radius: 14px !important;
    }
    .stats-grid-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .stat-item-cell {
        gap: 10px !important;
    }
    .stat-icon-circle {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    /* Stats grid override */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Company glimpse */
    .company-glimpse-wrapper {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }
    .glimpse-right-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .glimpse-interactive-card {
        padding: 14px 12px !important;
    }

    /* Bulk Quote */
    .bulk-quote-section {
        padding: 28px 16px !important;
        border-radius: 18px !important;
        margin-top: 40px !important;
    }

    /* FAQ */
    .faq-section {
        padding: 3.5rem 0;
    }
    .faq-question {
        padding: 16px 18px;
        font-size: 0.9375rem;
    }

    /* Section padding reduction */
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 475px) {
    /* Hero float card — compact on small phones */
    .hero-float-card {
        padding: 10px 12px;
        border-radius: 12px;
        bottom: 12px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }
    .hero-float-info {
        gap: 8px;
    }
    .hero-float-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        flex-shrink: 0;
    }
    .hero-float-title {
        font-size: 0.75rem;
    }
    .hero-float-sub {
        font-size: 0.65rem;
    }
    /* Hide the organic badge pill to prevent overflow */
    .hero-float-card .account-role-badge {
        display: none !important;
    }
}

@media (max-width: 400px) {
    /* Very small phones */
    .stats-grid-row {
        grid-template-columns: 1fr !important;
    }
    .glimpse-right-cards {
        grid-template-columns: 1fr !important;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .stats-counter-card {
        padding: 14px 12px !important;
    }
}

@media (max-width: 375px) {
    /* ---- HERO ---- */
    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.2;
    }
    .hero-badge-pill {
        font-size: 0.58rem !important;
        padding: 4px 10px !important;
    }
    .hero-description {
        font-size: 0.8rem !important;
        line-height: 1.55;
    }

    /* ---- SECTION HEADERS ---- */
    .section-header h2 {
        font-size: 1.25rem !important;
    }
    .section-header p {
        font-size: 0.8rem !important;
    }
    .eyebrow {
        font-size: 0.6rem !important;
    }

    /* ---- STATS COUNTER ---- */
    .stat-item-cell > div > div:first-child {
        font-size: 0.9rem !important;
    }
    .stat-item-cell > div > div:last-child {
        font-size: 0.62rem !important;
    }
    .stat-icon-circle {
        width: 30px !important;
        height: 30px !important;
    }

    /* ---- COMPANY GLIMPSE ---- */
    .glimpse-card-label {
        font-size: 0.55rem !important;
    }
    .glimpse-card-val {
        font-size: 0.72rem !important;
    }
    .glimpse-verified-badge {
        font-size: 0.58rem !important;
    }

    /* ---- BULK QUOTE ---- */
    .bulk-quote-section {
        padding: 20px 12px !important;
    }

    /* ---- FAQ ---- */
    .faq-question {
        font-size: 0.8rem !important;
        padding: 12px 14px !important;
    }
    .faq-answer {
        font-size: 0.8rem !important;
    }

    /* ---- PRODUCT CARDS ---- */
    .product-title {
        font-size: 0.8rem !important;
    }
    .product-category {
        font-size: 0.62rem !important;
    }
    .price-current {
        font-size: 0.9rem !important;
    }
    .price-original {
        font-size: 0.72rem !important;
    }
    .prod-specs-pill {
        font-size: 0.62rem !important;
    }
    .btn-add-cart {
        font-size: 0.72rem !important;
        padding: 0.5rem 0.6rem !important;
    }

    /* ---- CATEGORY CARDS ---- */
    .category-name {
        font-size: 0.875rem !important;
    }
    .category-desc {
        font-size: 0.72rem !important;
    }
    .category-cta {
        font-size: 0.65rem !important;
    }
    .category-image {
        height: 150px !important;
    }

    /* ---- HERO FLOAT CARD ---- */
    .hero-float-card {
        padding: 8px 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    .hero-float-title {
        font-size: 0.68rem !important;
    }
    .hero-float-sub {
        font-size: 0.58rem !important;
    }
    .hero-float-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }

    /* ---- BUTTONS ---- */
    .btn-modern-primary,
    .btn-modern-outline,
    .btn-whatsapp-direct {
        font-size: 10px !important;
        padding: 8px 12px !important;
        gap: 5px !important;
    }

    /* ---- SECTION PADDING ---- */
    .section-padding {
        padding: 2rem 0 !important;
    }
    .faq-section {
        padding: 2.5rem 0 !important;
    }
}
