﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
}

/* ===== Header ===== */
header {
    background: linear-gradient(90deg, #fff, #f9f9f9);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    header img {
        height: 60px;
    }

nav {
    display: flex;
    gap: 22px;
}

    nav a {
        text-decoration: none;
        font-weight: 600;
        color: #333;
        font-size: 15px;
        position: relative;
    }

        nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 3px;
            background: #c4161c;
            transition: .3s;
            border-radius: 3px;
        }

        nav a:hover::after, nav a.active::after {
            width: 100%;
        }

        nav a:hover, nav a.active {
            color: #c4161c;
        }

/* ===== Page Title ===== */
.page-title {
    background: linear-gradient(135deg, #c4161c, #7a0f12);
    color: #fff;
    text-align: center;
    padding: 30px 10px;
}

    .page-title h1 {
        margin: 0;
        font-size: 34px;
    }

    .page-title p {
        margin-top: 10px;
        font-size: 16px;
    }

/* ===== Gallery ===== */
.container {
    max-width: 95%;
    margin: 30px auto 10px auto; /* 60px top, auto horizontal, 20px bottom */
    padding: 10px 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,.08);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: .3s;
    padding-bottom: 38px;
}

    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 25px rgba(0,0,0,.15);
    }

    .gallery-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .gallery-item h3 {
        margin: 12px 10px 0;
        padding-bottom: 10px;
        font-size: 16px;
        color: #c4161c;
        text-align: center;
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(196,22,28,.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transition: .3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

    .modal-content h2 {
        color: #c4161c;
    }

    .modal-content p {
        font-size: 15px;
        line-height: 1.6;
    }

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.call-btn, .whatsapp-btn-modal {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.call-btn {
    background: #c4161c;
}

.whatsapp-btn-modal {
    background: #25D366;
}

.close-btn {
    margin-top: 15px;
    display: inline-block;
    background: #c4161c;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== Service Card ===== */
.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    height: 480px;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 35px rgba(0,0,0,0.15);
    }

.service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-content {
    display: flex;
    flex-direction: column;
    height: 70%;
    box-sizing: border-box;
    padding: 16px 16px 20px;
    text-align: left;
}

    .service-content h3 {
        margin: 8px 0;
        font-size: 17px;
        color: #c4161c;
        line-height: 1.4;
    }

.view-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #c4161c;
    padding: 4px 10px;
    margin-left: 8px;
    border: 1px solid #c4161c;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .view-details:hover {
        background: #c4161c;
        color: #fff;
    }

.service-short-desc {
    font-size: 14px;
    color: #666;
    margin: 8px 0 14px;
}

.order-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 0;
    background: linear-gradient(135deg, #c4161c, #9f1015);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(196,22,28,0.35);
    transition: all .25s ease;
    margin-top: auto;
}

.offline-btn {
    background: #6c757d !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

#servicesGrid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Price Section ===== */
.price-box {
    margin-top: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #c4161c;
    text-align: left;
}

    .price-box h4 {
        margin: 0 0 6px 0;
        color: #c4161c;
        font-size: 16px;
    }

    .price-box p {
        margin: 0;
        font-size: 15px;
        font-weight: bold;
    }

.price-note {
    margin-top: 6px;
    font-size: 12px;
    color: #555;
}

/* ===== Thumbnail Click Indicator ===== */
.thumb-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #c4161c;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 40px 0;
}

    .pagination button {
        padding: 10px 20px;
        border: 1px solid #c4161c;
        background: #ffffff;
        color: #c4161c;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.25s ease;
    }

        .pagination button:hover:not(:disabled) {
            background: #c4161c;
            color: #ffffff;
            box-shadow: 0 6px 16px rgba(196,22,28,0.35);
            transform: translateY(-1px);
        }

        .pagination button:disabled {
            background: #f3f4f6;
            color: #9ca3af;
            border-color: #d1d5db;
            cursor: not-allowed;
        }

    .pagination span {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
    }

/* ===== Footer & WhatsApp ===== */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 18px;
    margin-top: 40px;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0,0,0,.3);
    z-index: 1000;
}

/* ===============================
   RECTIFIED MEDIA QUERIES 
================================ */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Fixed: Removed flex-direction: column to keep header row */
    header {
        padding: 8px 15px;
    }

    .logo-link {
        align-self: flex-start;
    }

    header img {
        height: 50px;
    }

    nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
        margin-top: 0; /* Keeps it aligned with logo */
    }

        nav a {
            font-size: 13px;
            padding: 4px;
            white-space: nowrap;
        }

    #servicesGrid {
        padding: 0 8px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for better mobile viewing */
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }

    .page-title h1 {
        font-size: 26px;
    }
}
/* ===== PAGE TITLE (Same Red Gradient Style) ===== */
.seo-content {
    max-width: 95%;
    margin: 10px auto;
    padding: 10px 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

    /* Headings */
    .seo-content h1 {
        font-size: 28px;
        color: #1f2937;
        margin-bottom: 15px;
        border-left: 5px solid #2563eb; /* Blue accent */
        padding-left: 12px;
    }

    .seo-content h2 {
        font-size: 22px;
        color: #111827;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    /* Paragraph text */
    .seo-content p {
        font-size: 16px;
        line-height: 1.75;
        color: #374151;
        margin-bottom: 14px;
    }

/* Highlight keywords */
.seo-highlight {
    color: #2563eb;
    font-weight: 600;
}
/* Ensure the modal is the top-most layer */
#serviceModalGallery {
    z-index: 99999 !important; /* Higher than the chatbot z-index */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Darken background to hide chatbot */
    display: none;
    align-items: center;
    justify-content: center;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-height: 85vh; /* Keep it from touching the very bottom */
        overflow-y: auto; /* Enable scroll if content is long */
        margin-bottom: 20px;
        position: relative;
    }

    /* Add extra padding at the bottom of the modal content 
       so the chatbot button doesn't cover the 'Close' button */
    .modal-actions {
        padding-bottom: 15px;
    }

    .close-btn {
        margin-bottom: 10px;
    }
}