/* ==========================================================
   TARUN FURNITURES & ELECTRONICS - Master Stylesheet
   ========================================================== */

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fcfcfc;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- TOP BAR STYLING --- */
.top-bar {
    background-color: #760303;
    color: #b3b3b3;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    display: inline-block;
}

.top-contact i {
    color: #dc3545;
    margin-right: 5px;
}

.top-contact a:hover {
    color: #ffffff;
}

.top-bar .separator {
    margin: 0 12px;
    color: #555555;
}

/* --- SITE HEADER & NAVIGATION (White/Light Theme) --- */
.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eaeaea;
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-logo img {
    height: 45px;
    object-fit: contain;
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list > li > a {
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-list > li > a:hover {
    color: #dc3545;
}

/* Dropdown Submenu Styling for Light Header (Desktop) */
.dropdown-parent {
    position: relative;
}

.dropdown-arrow {
    font-size: 11px;
    transition: transform 0.2s;
}

.dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 0;
    display: none;
    border: 1px solid #eaeaea;
}

.dropdown-parent:hover .dropdown-submenu {
    display: block;
}

.dropdown-submenu li a {
    display: block;
    padding: 10px 20px;
    color: #444444;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom:1px solid #dc3545;
}

.dropdown-submenu li a:hover {
    background-color: #dc3545;
    color: #ffffff;
    padding-left: 24px;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- HERO SECTION: PROFESSIONAL RESPONSIVE SLIDER --- */
.hero-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #111111;
}

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1500 / 750;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- NAVIGATION ARROWS --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* --- PAGINATION DOTS --- */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    width: 25px;
    background: #ffffff;
}

/* --- STATS BAR SECTION --- */
.stats-bar {
    background-color: #161616;
    color: #ffffff;
    padding: 30px 20px;
    border-bottom: 3px solid #dc3545;
}

.stats-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 32px;
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- GENERAL SECTION STYLING --- */
.section-padding {
    padding: 70px 0;
}

.bg-light {
    background-color:#eceef0;
}

.section-title {
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: #666666;
    font-size: 16px;
}

.text-center {
    text-align: center;
}

/* --- WELCOME SECTION --- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-text-col h2 {
    font-size: 30px;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.welcome-text-col p {
    color: #555555;
    margin-bottom: 20px;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333333;
}

.welcome-features i {
    color: #dc3545;
}

.welcome-img-col img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
}

/* --- DYNAMIC PACKAGES CARD SECTION --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ek row mein 4 cards */
    gap: 20px; /* Gap ko thoda balance kiya hai */
}

.package-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s;
}

.package-card:hover {
    transform: translateY(-5px);
}

.pkg-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.pkg-body {
    padding:15px;
    text-align: center;
}

.pkg-body h3 {
    font-size:15px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pkg-body p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-outline {
    display: inline-block;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #dc3545;
    border-top: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.review-text {
    font-style: italic;
    color: #444444;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.customer-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
}

/* --- FOOTER STYLING --- */
.site-footer {
    background-color: #141414;
    color: #cccccc;
    padding: 40px 0 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
    height: 40px;
    object-fit: contain;
    display: block;
}

.footer-contact-info span {
    font-size: 14px;
    color: #cccccc;
}

.footer-contact-info i {
    color: #dc3545;
    margin-right: 6px;
}

.footer-contact-info .separator {
    margin: 0 15px;
    color: #444444;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888888;
}

.footer-links a {
    color: #aaaaaa;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links .separator {
    margin: 0 10px;
    color: #444444;
}

/* Back to Top Floating Button */
.back-to-top-btn {
    position: absolute;
    right: 30px;
    bottom: 25px;
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
    transition: background-color 0.2s, transform 0.2s;
}

.back-to-top-btn:hover {
    background-color: #b02a37;
    transform: translateY(-3px);
}

/* --- MOBILE-ONLY STICKY BOTTOM BUTTONS --- */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111111;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
}

.call-btn {
    background-color: #0d6efd;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-btn {
    background-color: #25d366;
}

/* Testimonials Slider Styles */
.testimonials-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.testimonial-card-item {
    flex: 0 0 50%; /* Desktop par ek baar mein 2 cards (50% width each) */
    max-width: 50%;
    padding: 0 15px; /* Cards ke beech gap ke liye */
    box-sizing: border-box;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #dc3545;
    border-top: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    height: 100%;
}
.testimonial-card small
{   float:right;
    font-weight:700;
    font-style: italic;
    color:#dc3545;}


/* --- ABOUT PAGE STYLING --- */
.inner-banner {
    background: #111111;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid #dc3545;
}

.inner-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.breadcrumb-text {
    color: #b3b3b3;
    font-size: 14px;
}

.breadcrumb-text a {
    color: #ffffff;
}

.breadcrumb-text span {
    color: #dc3545;
}

/* 8:4 Grid Layout */
.about-layout-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Components */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-img-frame {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-packages-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.sidebar-packages-box h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 15px;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 8px;
}

.sidebar-pkg-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-pkg-list li {
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 8px;
}

.sidebar-pkg-list li a {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.sidebar-pkg-list li a:hover {
    color: #dc3545;
}

.sidebar-pkg-list li a i {
    color: #dc3545;
    margin-right: 8px;
    font-size: 12px;
}

.sidebar-pkg-list .no-pkg {
    color: #666666;
    font-size: 14px;
}

/* --- CONTACT PAGE STYLING --- */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
    align-items: start;
}

.contact-form-col h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #666666;
    font-size: 15px;
    margin-bottom: 25px;
}

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #dc3545;
}

.btn-submit {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #b02a37;
}

/* Contact Info Sidebar Card */
.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.info-card h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 8px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-list li i {
    color: #dc3545;
    font-size: 18px;
    margin-top: 3px;
}

.info-list li strong {
    font-size: 14px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 2px;
}

.info-list li p,
.info-list li a {
    font-size: 14px;
    color: #666666;
    transition: color 0.2s;
}

.info-list li a:hover {
    color: #dc3545;
}

/* --- CONTACT PAGE MAP STYLING --- */
.map-card {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.map-frame {
    width: 100%;
    height: 250px;
    border-radius: 6px;
    overflow: hidden;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}







/* ==========================================================
   MEDIA QUERIES FOR RESPONSIVENESS
   ========================================================== */

@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet par 2 columns */
    }
}

@media (max-width: 992px) {
    .stats-flex {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .welcome-grid, 
    .packages-grid, 
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-top-row, 
    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-contact-info .separator {
        display: none;
    }

    .footer-contact-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .about-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) 
{
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        border-top: 1px solid rgba(170, 168, 168, 0.3);
    }

    .site-nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
    }

    .nav-list > li {
        width: 100%;
        text-align: left;
    }

    .nav-list > li > a {
        padding: 12px 20px;
        display: block;
        border-bottom: 1px solid #ccc;
    }

    /* --- CRITICAL MOBILE DROPDOWN STABILITY FIXES --- */
    .dropdown-parent:hover .dropdown-submenu {
        display: none; /* Disables desktop hover interference on mobile touch */
    }

    .dropdown-submenu {
        position: static;
        box-shadow: none;
        background-color: #ececec;
        color: #333333;
        width: 100%;
        display: none; /* Hidden by default on mobile */
    }

    /* Force dropdown visible when JavaScript toggles the open class */
    .dropdown-parent.submenu-open .dropdown-submenu {
        display: block !important;
    }
    /* ----------------------------------------------- */

    .hero-slider {
        aspect-ratio: 4 / 3;
        max-height: 400px;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    body {
        padding-bottom: 55px;
    }

    .back-to-top-btn {
        bottom: 70px;
        right: 20px;
    }
    .packages-grid {
        grid-template-columns: 1fr; /* Mobile par single column */
    }
    .testimonial-card-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}