/* ==========================================================================
   HousingMaterial.com - Custom Components & Services Carousel Stylesheet
   ========================================================================== */

/* 1. Services Section Base */
.services-carousel-section {
    background-color: #F8FAFC;
    overflow: hidden;
}

/* 2. Swiper Custom Controls */
.services-swiper-prev,
.services-swiper-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #CBD5E1;
    background-color: #FFFFFF;
    color: var(--brand-primary, #0A192F);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.services-swiper-prev:hover,
.services-swiper-next:hover {
    background-color: var(--brand-primary, #0A192F);
    color: #FFFFFF;
    border-color: var(--brand-primary, #0A192F);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.services-swiper-prev:active,
.services-swiper-next:active {
    transform: translateY(0);
}

/* 3. Service Card Container */
.service-card-link {
    color: inherit;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-link:hover .service-card {
    transform: translateY(-8px);
    border-color: rgba(255, 87, 34, 0.3) !important;
    box-shadow: 0 20px 35px -10px rgba(10, 25, 47, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04) !important;
}

/* 4. Service Card Image Wrapper */
.service-card-img-wrap {
    height: 220px;
    background-color: var(--brand-secondary, #1E293B);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-link:hover .service-card-img {
    transform: scale(1.09);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0.05) 60%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-card-link:hover .service-card-overlay {
    opacity: 0.85;
}

/* Service Card Icon Badge */
.service-card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.service-card-link:hover .service-card-icon-box {
    background-color: var(--brand-accent, #FF5722) !important;
    color: #FFFFFF !important;
    transform: scale(1.1) rotate(-5deg);
}

/* 5. Typography & Hover Effects */
.service-title-hover {
    transition: color 0.25s ease;
}

.service-card-link:hover .service-title-hover {
    color: var(--brand-accent, #FF5722) !important;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. Card Footer CTA */
.service-card-footer {
    border-color: #F1F5F9 !important;
}

.btn-arrow-icon {
    width: 32px;
    height: 32px;
    background-color: var(--brand-accent-light, #FFF3E0);
    color: var(--brand-accent, #FF5722);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card-link:hover .btn-arrow-icon {
    background-color: var(--brand-accent, #FF5722);
    color: #FFFFFF;
    transform: translateX(4px);
}

/* 7. Swiper Pagination Styling */
.services-swiper-pagination {
    position: relative !important;
    margin-top: 1.5rem;
    bottom: 0 !important;
}

.services-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #94A3B8;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 5px !important;
}

.services-swiper-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 10px;
    background-color: var(--brand-accent, #FF5722);
    opacity: 1;
}

/* 8. Responsiveness tweaks */
@media (max-width: 767.98px) {
    .service-card-img-wrap {
        height: 200px;
    }
    .services-swiper-prev,
    .services-swiper-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   9. B2B Directory & Procurement Styling Extensions
   ========================================================================== */
:root {
    --brand-primary: #0F172A;
    --brand-secondary: #1E293B;
    --brand-accent: #FF5722;
    --brand-accent-hover: #E64A19;
    --brand-blue: #2563EB;
    --brand-success: #10B981;
    --brand-warning: #F59E0B;
    --brand-light-bg: #F8FAFC;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #F8FAFC;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Hero & Quick RFQ Card */
.hero-b2b-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F2847 100%);
    position: relative;
    overflow: hidden;
}

.hero-b2b-bg::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.quick-rfq-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pincode-pill {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pincode-pill:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* HM Verified Badge */
.badge-hm-verified {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

.badge-gstin-verified {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Live RFQ Activity Ticker */
.ticker-container {
    background-color: #0F172A;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: tickerScroll 30s linear infinite;
}

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

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    color: #CBD5E1;
    font-size: 0.875rem;
    border-right: 1px dashed rgba(255, 255, 255, 0.15);
}

.ticker-badge {
    background-color: rgba(255, 87, 34, 0.2);
    color: #FF5722;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

/* Supplier Vendor Cards */
.vendor-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.vendor-card:hover {
    transform: translateY(-5deg);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.vendor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #1E293B;
}

/* Material Calculator Card */
.calc-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.calc-output-box {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 12px;
    color: #FFFFFF;
    padding: 20px;
}

/* Multi-Step Modal Wizard */
.wizard-step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 25px;
}

.wizard-step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 2px;
    background-color: #E2E8F0;
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    transition: all 0.3s ease;
}

.wizard-step-dot.active {
    background-color: #FF5722;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.2);
}

.wizard-step-dot.completed {
    background-color: #10B981;
    color: #FFFFFF;
}

/* Category Vertical Pill Buttons */
.nav-vertical-pill .nav-link {
    color: #475569;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.nav-vertical-pill .nav-link.active, .nav-vertical-pill .nav-link:hover {
    background-color: #EFF6FF;
    color: #2563EB;
}

/* Global Anti-Overflow Fix */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

/* ==========================================================================
   10. Fractional Spacing Utilities (Bootstrap 5 Enhancements)
   ========================================================================== */
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5, .gap-1-5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5, .gap-2-5 { gap: 0.625rem !important; }
.gap-3 { gap: 1rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-1\.5, .me-1-5 { margin-right: 0.4rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-2\.5, .me-2-5 { margin-right: 0.625rem !important; }
.me-3 { margin-right: 1rem !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-1\.5, .ms-1-5 { margin-left: 0.4rem !important; }
.ms-2 { margin-left: 0.5rem !important; }

.px-2\.5, .px-2-5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.py-1\.5, .py-1-5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.px-3\.5, .px-3-5 { padding-left: 0.9rem !important; padding-right: 0.9rem !important; }

/* Custom Button Sizing */
.btn-sm-custom {
    font-size: 0.82rem;
    padding: 0.32rem 0.8rem;
    border-radius: 50rem;
}
.btn-xs {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
}
.focus-none:focus {
    box-shadow: none !important;
}

/* ==========================================================================
   11. Enterprise Top Announcement & Utility Bar
   ========================================================================== */
.top-bar-sticky {
    background-color: #0A192F !important;
    color: #F1F5F9;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1045;
}

.topbar-pill-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #F1F5F9;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
.topbar-pill-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.topbar-phone-link {
    color: #E2E8F0;
    font-weight: 600;
    font-size: 0.82rem;
    transition: color 0.2s ease;
    text-decoration: none;
}
.topbar-phone-link:hover {
    color: #FF5722;
}

.topbar-wa-btn {
    background: #10B981;
    border: none;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.topbar-wa-btn:hover {
    background: #059669;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   12. Modern Navbar & Navigation Links
   ========================================================================== */
.navbar-main {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar-main-brand {
    transition: transform 0.2s ease;
}
.navbar-main-brand:hover {
    transform: scale(1.02);
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-link-main {
    color: #1E293B !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.nav-link-main.dropdown-toggle::after {
    display: none !important;
}

.nav-link-main i {
    font-size: 0.9rem;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 0.15rem;
}

.nav-link-main .nav-chevron {
    font-size: 0.68rem;
    opacity: 0.6;
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
}

.nav-link-main:hover,
.nav-link-main.active,
.has-megamenu:hover > .nav-link-main {
    color: #FF5722 !important;
    background-color: rgba(255, 87, 34, 0.07);
}

.has-megamenu:hover > .nav-link-main .nav-chevron {
    transform: rotate(180deg);
}

/* Header Action Buttons */
.header-btn-vendor {
    border: 1.5px solid #0F172A;
    color: #0F172A;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 50rem;
    padding: 0.38rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.header-btn-vendor:hover {
    background-color: #0F172A;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.header-btn-quote {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    border: none;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 50rem;
    padding: 0.4rem 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
    white-space: nowrap;
}
/* Compact Nav Scaling for Mid-Sized Laptops (992px - 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
    .nav-link-main {
        font-size: 0.82rem !important;
        padding: 0.38rem 0.45rem !important;
        gap: 0.25rem !important;
    }
    .nav-link-main i {
        font-size: 0.85rem !important;
    }
    .header-btn-vendor {
        font-size: 0.78rem !important;
        padding: 0.34rem 0.75rem !important;
    }
    .header-btn-quote {
        font-size: 0.78rem !important;
        padding: 0.36rem 0.85rem !important;
    }
    .brand-logo-img {
        height: 38px !important;
    }
}

.header-btn-quote:hover {
    background: linear-gradient(135deg, #F4511E 0%, #D84315 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 87, 34, 0.45);
}

/* ==========================================================================
   13. Mega Menu Dropdown Architecture
   ========================================================================== */
.has-megamenu {
    position: static !important;
}

.megamenu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: #FFFFFF;
    border: none;
    border-top: 3px solid #FF5722;
    box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.18);
    padding: 1.75rem 0;
    border-radius: 0 0 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    pointer-events: none;
    margin-top: 0;
    z-index: 1050;
}

@media (min-width: 1200px) {
    .has-megamenu:hover .megamenu-dropdown,
    .has-megamenu:focus-within .megamenu-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.mega-column-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0A192F;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.mega-item-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}
.mega-item-link:hover {
    background-color: #F8FAFC;
    transform: translateX(4px);
}
.mega-item-link .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.mega-item-link .title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.25;
    margin-bottom: 2px;
}
.mega-item-link .subtitle {
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.2;
}

.mega-featured-card {
    background: linear-gradient(135deg, #0A192F 0%, #152238 60%, #1E293B 100%);
    border-radius: 14px;
    padding: 1.35rem;
    color: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px -5px rgba(10, 25, 47, 0.25);
}

/* ==========================================================================
   14. Mobile Offcanvas Navigation Experience
   ========================================================================== */
.mobile-nav-offcanvas {
    max-width: 380px;
    border-left: none;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
}

.mobile-nav-offcanvas .offcanvas-header {
    background: #0A192F;
    color: #FFFFFF;
    padding: 1rem 1.25rem;
}

.mobile-nav-offcanvas .offcanvas-body {
    padding: 1rem 1.25rem;
    background-color: #F8FAFC;
}

.mobile-nav-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
    margin: 1.2rem 0 0.5rem 0.25rem;
}

.mobile-nav-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1E293B;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}
.mobile-nav-item:hover, .mobile-nav-item:active {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
    transform: translateX(3px);
}
.mobile-nav-item .mobile-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mobile-accordion-btn {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1E293B;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.mobile-accordion-btn[aria-expanded="true"] {
    background: #FFF7ED;
    border-color: #FDBA74;
    color: #C2410C;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.mobile-accordion-body {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 0.5rem 0.75rem 0.75rem;
    margin-bottom: 0.5rem;
}

/* Mobile Header Bar Adjustments */
@media (max-width: 575.98px) {
    .brand-logo-img {
        height: 34px !important;
    }
    .top-bar-sticky {
        font-size: 0.76rem;
    }
}




