/* INDEX PAGE SPECIFIC STYLES */

/* Remove all underlines from thumbnail links */
.signages-grid a,
.letters-grid a,
.signages-grid a:hover,
.letters-grid a:hover,
.signages-grid a:visited,
.letters-grid a:visited,
.signages-grid a:focus,
.letters-grid a:focus {
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    text-decoration-thickness: 0 !important;
    text-underline-offset: 0 !important;
}

/* Grid Layout */
.signages-grid,
.letters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1404px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* Thumbnail container styling - INDEX PAGE ONLY */
.signages-grid .thumbnail-item,
.letters-grid .thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.signages-grid .thumbnail-item:hover,
.letters-grid .thumbnail-item:hover {
    transform: translateY(-5px);
}

.signages-grid .thumbnail-item,
.letters-grid .thumbnail-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.signages-grid .thumbnail-container,
.letters-grid .thumbnail-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    background-color: #ffffff;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    border: 3px solid #ffffff;
    text-decoration: none;
}

.signages-grid .thumbnail-container:hover,
.letters-grid .thumbnail-container:hover {
    transform: scale(1.05);
    border: 6px solid #ffffff !important;
}

.signages-grid .thumbnail-item .thumbnail-container:hover,
.letters-grid .thumbnail-item .thumbnail-container:hover {
    border: 6px solid white !important;
}


.signages-grid .thumbnail-container img,
.letters-grid .thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
    border-radius: 8px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.signages-grid .thumbnail-name,
.letters-grid .thumbnail-name,
.signages-grid .thumbnail-item .thumbnail-name,
.letters-grid .thumbnail-item .thumbnail-name {
    margin-top: 0px !important;
    text-align: center !important;
    font-weight: normal !important;
    font-size: 22px !important;
    color: #ffffff !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    opacity: 0.9 !important;
}

.thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(230, 13, 46, 0.15);
    text-decoration: none;
}

.thumbnail-container:hover {
    text-decoration: none;
}

.thumbnail-container img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-container:hover img {
    transform: scale(1.02);
}

/* Contact Info Styling */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quote-section .contact-item {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
}

.contact-item a {
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0f4392 !important;
}

@media (max-width: 780px) {
    .contact-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Banner Container Height Control */
.rev_slider_wrapper,
.rev_slider {
    height: 120vh !important;
    max-height: 2000px !important;
    overflow: hidden !important;
}

.rev-slidebg {
    height: auto !important;
    min-height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Banner Overlay Styling */
.banner-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
    width: 100%;
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.banner-text {
    background: rgba(0, 0, 0, 0.6);
    padding: 0;
    border-radius: 0;
    backdrop-filter: blur(5px);
    width: 100%;
    margin: 0;
}

.banner-title {
    font-size: 58px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.banner-experience {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0;
    text-shadow: 6px 6px 12px rgba(0, 0, 0, 0.9);
    line-height: 2.0 !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Montserrat', 'Arial Black', sans-serif !important;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
}

.banner-contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.banner-contact-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.banner-contact-item a {
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.banner-contact-item a:hover {
    color: #0f4392 !important;
}

/* Why Choose Title - Single Line Fix */
.why-choose-title {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: normal !important;
    hyphens: none !important;
    font-size: clamp(26px, 6.5vw, 48px) !important;
}

/* Override text-transform capitalize from page builder */
.why-choose-description p {
    text-transform: none !important;
}

/* Enhanced Mobile Responsiveness for Index Page */
@media (max-width: 1140px) {
    /* Mobile Grid Layouts */
    .signages-grid,
    .letters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(15px, 4vw, 25px) !important;
        padding: 0 clamp(10px, 3vw, 20px) !important;
        margin: clamp(20px, 5vw, 30px) auto !important;
    }
    
    /* Mobile Thumbnail Optimizations */
    .signages-grid .thumbnail-container,
    .letters-grid .thumbnail-container {
        height: clamp(250px, 45vw, 350px) !important;
        margin-bottom: clamp(10px, 2.5vw, 15px) !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Fix images to fit properly in mobile thumbnails */
    .signages-grid .thumbnail-container img,
    .letters-grid .thumbnail-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px !important;
        transition: transform 0.3s ease !important;
    }
    
    .signages-grid .thumbnail-container:hover img,
    .letters-grid .thumbnail-container:hover img {
        transform: scale(1.05) !important;
    }
    
    .signages-grid .thumbnail-name,
    .letters-grid .thumbnail-name {
        font-size: clamp(14px, 3.5vw, 18px) !important;
        margin-top: clamp(8px, 2vw, 12px) !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
    }
    
    /* Mobile Banner Optimizations */
    .rev_slider_wrapper,
    .rev_slider {
        height: clamp(350px, 70vh, 600px) !important;
        max-height: 600px !important;
    }
    
    .banner-overlay-content {
        padding: clamp(15px, 4vw, 25px) !important;
        bottom: clamp(15px, 4vw, 25px) !important;
    }
    
    .banner-text {
        padding: clamp(15px, 4vw, 25px) !important;
        border-radius: clamp(8px, 2vw, 12px) !important;
    }
    
    .banner-experience {
        font-size: clamp(16px, 4.5vw, 24px) !important;
        line-height: 1.4 !important;
        letter-spacing: clamp(1px, 0.3vw, 3px) !important;
        text-transform: uppercase !important;
        font-weight: 800 !important;
    }
    
    /* Mobile Section Spacing */
    .welcome-section,
    .signages-section {
        padding: clamp(30px, 6vw, 50px) 0 !important;
    }
    
    .contact-item {
        font-size: clamp(16px, 4vw, 20px) !important;
        padding: clamp(10px, 2.5vw, 15px) !important;
    }
    
    /* Increase icon sizes in quote section */
    .contact-item i {
        font-size: 28px !important;
        margin-right: 12px !important;
    }
    
    .quote-content p {
        font-size: clamp(18px, 5vw, 28px) !important;
        line-height: 1.4 !important;
        margin-bottom: clamp(20px, 5vw, 30px) !important;
    }
    
    /* Mobile-specific icon sizing */
    .contact-item i {
        font-size: clamp(24px, 6vw, 32px) !important;
        margin-right: clamp(10px, 3vw, 15px) !important;
        width: clamp(30px, 7vw, 40px) !important;
    }
}

/* ===== DESKTOP FOOTER ALIGNMENT ===== */
@media (min-width: 769px) {
    /* Align ORDERS title with HEAD OFFICE alignment */
    .footer-section.footer-head-office .footer-title {
        text-align: left !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        position: relative !important;
    }
    
    /* Ensure ORDERS section content aligns properly */
    .footer-section.footer-head-office {
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        padding-top: 85px !important;
    }
    
    /* Align contact items in ORDERS section */
    .footer-orders-box .contact-item {
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }
    
    /* Align office timings */
    .footer-timings-box .contact-item {
        text-align: left !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    /* Align LINKS section with same top padding and add space from ORDERS */
    .footer-section.footer-links {
        text-align: left !important;
        padding-top: 85px !important;
        margin-left: 40px !important;
    }
    
    /* Decrease gap between LINKS menu items */
    .footer-links ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .footer-links li {
        margin-bottom: 5px !important;
        text-align: left !important;
    }
    
    .footer-links li a {
        color: #666 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        transition: color 0.3s ease !important;
    }
    
    /* Align Connect with us section with same top padding and decrease space from LINKS */
    .footer-section.footer-social {
        text-align: left !important;
        padding-top: 85px !important;
        margin-left: -20px !important;
    }
    
    /* Decrease footer padding for desktop only */
    .footer-main-content {
        padding: 30px 0 20px !important;
    }
    
    .footer-bottom {
        padding: 10px 0 3px 0 !important;
    }
}

/* Social Media Icons - Global Styling (Desktop + Mobile) */
.social-link.facebook i {
    color: #ffffff !important; /* White F icon */
    background-color: #1877F2 !important; /* Facebook Blue background */
    border-radius: 8px !important;
    padding: 10px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

.social-link.youtube i {
    color: #ffffff !important; /* White YouTube icon */
    background-color: #FF0000 !important; /* YouTube Red background */
    border-radius: 8px !important;
    padding: 10px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

.social-link.instagram i {
    color: #ffffff !important; /* White Instagram icon */
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important; /* Instagram gradient */
    border-radius: 8px !important;
    padding: 10px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

/* Hover effects for social icons - Global */
.social-link.facebook:hover i {
    background-color: #166FE5 !important; /* Darker Facebook Blue on hover */
    transform: scale(1.1) !important;
}

.social-link.youtube:hover i {
    background-color: #CC0000 !important; /* Darker YouTube Red background on hover */
    transform: scale(1.1) !important;
}

.social-link.instagram:hover i {
    background: linear-gradient(45deg, #e6683c 0%,#dc2743 25%,#cc2366 50%,#bc1888 75%,#a91679 100%) !important; /* Darker Instagram gradient on hover */
    transform: scale(1.1) !important;
}

@media (max-width: 780px) {
    /* Tablet and smaller mobile adjustments */
    .signages-grid,
    .letters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Force 3 columns for client logos on tablet/mobile */
    .gdlr-core-client-item-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }
    
    /* Client logos styling for tablet/mobile */
    .clients-item {
        padding: 12px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .clients-item:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    }
    
    .clients-item img {
        width: 100% !important;
        height: auto !important;
        max-height: 60px !important;
        object-fit: contain !important;
        filter: grayscale(0) !important;
        opacity: 1 !important;
    }
    
    /* Footer Spacing Adjustments - Mobile Only */
    .footer-section {
        margin-bottom: clamp(25px, 6vw, 40px) !important;
        padding: clamp(15px, 4vw, 25px) !important;
    }
    
    .footer-contact-info .contact-item {
        margin-bottom: clamp(12px, 3vw, 18px) !important;
        padding: clamp(8px, 2vw, 12px) 0 !important;
    }
    
    .footer-orders-box .contact-item,
    .footer-timings-box .contact-item {
        margin-bottom: clamp(10px, 2.5vw, 15px) !important;
        padding: clamp(6px, 1.5vw, 10px) 0 !important;
    }
    
    .social-links {
        display: flex !important;
        gap: clamp(15px, 4vw, 25px) !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        margin-top: clamp(15px, 4vw, 20px) !important;
    }
    
    .footer-links ul li {
        margin-bottom: clamp(8px, 2vw, 12px) !important;
        padding: clamp(4px, 1vw, 8px) 0 !important;
    }
    
    /* Reduce space between RETAIL and ORDERS sections */
    .footer-section.footer-company {
        margin-bottom: clamp(10px, 2vw, 15px) !important;
    }
    
    .footer-section.footer-head-office {
        margin-top: clamp(-10px, -2vw, -5px) !important;
        padding-top: clamp(5px, 1vw, 10px) !important;
    }
    
    /* Adjust spacing between phone and email in ORDERS section */
    .footer-orders-box .contact-item:first-child {
        margin-bottom: clamp(3px, 1vw, 5px) !important;
    }
    
    .footer-orders-box .contact-item:last-child {
        margin-top: clamp(2px, 0.5vw, 3px) !important;
    }
    
    /* Decrease space between Office Timings and Links sections - High Specificity */
    html body .footer-section.footer-head-office {
        margin-bottom: clamp(3px, 1vw, 5px) !important;
        padding-bottom: 0 !important;
    }
    
    html body .footer-section.footer-links {
        margin-top: clamp(-15px, -3vw, -10px) !important;
        padding-top: clamp(2px, 0.5vw, 3px) !important;
    }
    
    /* Override any existing footer section spacing */
    html body .footer-section {
        margin-bottom: clamp(5px, 2vw, 10px) !important;
    }
    
    html body .footer-section.footer-company {
        margin-bottom: clamp(5px, 1vw, 8px) !important;
    }
    
    /* Decrease space between LINKS and Connect with us sections */
    html body .footer-section.footer-links {
        margin-bottom: clamp(3px, 1vw, 5px) !important;
        padding-bottom: 0 !important;
    }
    
    html body .footer-section.footer-social {
        margin-top: clamp(-10px, -2vw, -8px) !important;
        padding-top: clamp(2px, 0.5vw, 3px) !important;
    }
    
    
    .banner-experience {
        font-size: clamp(14px, 4vw, 20px) !important;
        letter-spacing: clamp(0.5px, 0.2vw, 2px) !important;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3) !important;
    }
    
    .banner-contact-info {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .banner-text {
        padding: clamp(10px, 3vw, 20px) !important;
    }
}

@media (max-width: 480px) {
    /* Small mobile - single column */
    .signages-grid,
    .letters-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
    
    .signages-grid .thumbnail-container,
    .letters-grid .thumbnail-container {
        height: clamp(280px, 55vw, 380px) !important;
        aspect-ratio: 4/3 !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Fix images for small mobile screens */
    .signages-grid .thumbnail-container img,
    .letters-grid .thumbnail-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px !important;
        transition: transform 0.3s ease !important;
    }
    
    .signages-grid .thumbnail-container:hover img,
    .letters-grid .thumbnail-container:hover img {
        transform: scale(1.05) !important;
    }
    
    /* Force 3 columns for client logos on small mobile */
    .gdlr-core-client-item-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }
    
    /* Client logos bigger on small screens */
    .clients-item {
        padding: 15px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .clients-item img {
        width: 100% !important;
        height: auto !important;
        max-height: 80px !important;
        object-fit: contain !important;
        filter: grayscale(0) !important;
        opacity: 1 !important;
        transition: all 0.3s ease !important;
    }
    
    .banner-experience {
        font-size: clamp(12px, 3.5vw, 16px) !important;
        letter-spacing: 1px !important;
        -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3) !important;
    }
    
    .rev_slider_wrapper,
    .rev_slider {
        height: clamp(300px, 60vh, 400px) !important;
    }
}

@media (max-width: 360px) {
    /* Extra small mobile */
    .signages-grid,
    .letters-grid {
        padding: 0 10px !important;
        gap: 15px !important;
    }
    
    .welcome-section,
    .signages-section,
    .letters-section {
        padding: 20px 10px !important;
    }
    
    .banner-text {
        padding: 10px !important;
    }
    
    .banner-experience {
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
        line-height: 1.3 !important;
    }
}

/* Text Overlay Styling */
.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white !important;
    padding: 0;
    margin: 0;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.thumbnail-container:hover .thumbnail-overlay {
    transform: translateY(0);
}
