﻿/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --primary-red: #c4161c;
    --dark-red: #8b0000;
    --accent-red: #ff4d4d;
    --bg-main: #f8fafc;
    --slate-900: #0f172a;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --border-light: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0; /* Remove any default margin applied to the body */
    padding: 0; /* Remove any default padding */
    background-color: var(--bg-main);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--slate-900);
    line-height: 1.5;
}

.container {
    width: 100%; /* Allow the container to stretch fully */
    max-width: 95%; /* Control maximum width to 95% of the viewport */
    margin: 0 auto; /* Center the container */
    padding: 15px 15px; /* Add padding for spacing */
}

/* ===== 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;
}

/* =========================================
   3. THE EXECUTIVE TILE GRID
   ========================================= */
/* --- Wrapper & Grid Logic --- */
.services-wrapper {
    width: 100%;
    padding: 20px 0 60px 0;
}

.services-grid {
    display: grid;
    /* Force 4 columns on Desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

/* --- Responsive Breakpoints for 4 Columns --- */

/* Desktop to Tablet (Switch to 3 columns) */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet to Large Mobile (Switch to 2 columns) */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (Switch to 1 column) */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-tile {
        padding: 20px; /* Slimmer padding for small screens */
    }
}

.service-tile {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

    .service-tile:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-red);
    }

/* --- Header Elements --- */
.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.tile-icon {
    width: 60px;
    height: 60px;
    background: #fff1f2;
    color: var(--primary-red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid rgba(196, 22, 28, 0.1);
}

.status-indicator {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-600);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .status-indicator::before {
        content: "";
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
        box-shadow: 0 0 8px #10b981;
    }

/* --- Content --- */
.tile-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--slate-900);
}

.service-description {
    font-size: 15px;
    color: var(--slate-600);
    margin-bottom: 20px;
    min-height: 45px;
}

.feature-tags {
    margin-bottom: 30px;
    flex-grow: 1;
}

    /* Logic for RenderFeatures tags */
    .feature-tags span {
        display: inline-block;
        background: #f8fafc;
        border: 1px solid var(--border-light);
        color: var(--slate-600);
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 12px;
        margin: 4px 4px 4px 0;
        font-weight: 500;
    }

/* =========================================
   4. THE HIGH-INTENSITY BLINKING BUTTON
   ========================================= */
.tile-footer {
    border-top: 1px dashed var(--border-light);
    padding-top: 24px;
}

.action-btn-pulse {
    width: 100%;
    background: var(--primary-red);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    /* The Blinking Animation */
    animation: intense-blink 2s infinite;
}

    .action-btn-pulse:hover {
        animation: none; /* Stabilize for click */
        background: var(--dark-red);
        transform: scale(1.02);
    }

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.action-btn-pulse:hover .btn-arrow {
    transform: translateX(5px);
}

/* --- ANIMATIONS --- */

/* 1. The Color & Glow Blink */
@keyframes intense-blink {
    0%, 100% {
        background-color: var(--primary-red);
        box-shadow: 0 4px 15px rgba(196, 22, 28, 0.2);
    }

    50% {
        background-color: var(--accent-red);
        box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
    }
}

/* 2. The Glossy Shimmer Swipe */
.action-btn-pulse::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient( to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100% );
    transform: skewX(-25deg);
    animation: shimmer-swipe 4s infinite;
}

@keyframes shimmer-swipe {
    0% {
        left: -100%;
    }

    15%, 100% {
        left: 150%;
    }
}

/* =========================================
   5. PAGINATION & RESPONSIVE
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.pag-btn {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .pag-btn:hover:not(:disabled) {
        border-color: var(--primary-red);
        color: var(--primary-red);
    }

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .intro-section h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   5. PAGINATION & RESPONSIVE
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.pag-btn {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .pag-btn:hover:not(:disabled) {
        border-color: var(--primary-red);
        color: var(--primary-red);
    }

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .intro-section h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================== 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; /* pill shape */
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.25s ease;
    }
        /* Hover */

        .pagination button:hover:not(:disabled) {
            background: #c4161c;
            color: #ffffff;
            box-shadow: 0 6px 16px rgba(196,22,28,0.35);
            transform: translateY(-1px);
        }
        /* Disabled state */

        .pagination button:disabled {
            background: #f3f4f6;
            color: #9ca3af;
            border-color: #d1d5db;
            cursor: not-allowed;
            box-shadow: none;
        }
    /* Page info text */

    .pagination span {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
    }
/* Image */
.service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Add popup banner */
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.6);
    display: none; /* keep hidden initially */
    justify-content: center;
    align-items: center;
    z-index: 2147483647 !important; /* MAX z-index */
}

    .popup-overlay.show {
        opacity: 1;
    }
/* Container */
.popup-container {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    font-family: 'Segoe UI', sans-serif;
    animation: fadeInPopup 0.3s ease;
    max-width: 480px;
    width: 90%; /* Limit width to 90% of screen on mobile */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy pop-in */
    transform: translateY(20px) scale(0.98);
}

.popup-overlay.show .popup-container {
    transform: scale(1);
}
/* Header */
.popup-header {
    background: #f5f5f5;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.popup-header-title {
    background: #fdecea;
    color: #d32f2f;
    padding: 2px 2px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
}

.popup-title {
    font-weight: 600;
    font-size: 16px;
}

.popup-close {
    cursor: pointer;
    font-size: 20px;
}

/* Body */
.popup-body {
    padding: 10px;
}

.popup-banner {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 2px;
}

.popup-text h3 {
    margin: 5px 0;
    font-size: 18px;
    color: #222;
}

.popup-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Footer */
.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 15px;
    border-top: 1px solid #ddd;
}

/* Buttons */
.btn-primary {
    background: #0078D4;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-secondary {
    background: #e0e0e0;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
}

.banner-wrapper {
    position: relative;
}

.service-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0078D4;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
}

.countdown-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    text-align: center;
    background: #fff7e6;
    border: 1px solid #ffe0b2;
}

.countdown-label {
    display: block;
    font-size: 13px;
    color: #856404;
    font-weight: 600;
    margin-bottom: 5px;
}

.countdown-timer {
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f;
    letter-spacing: 1px;
}

.message-points {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    /* Each point */
    .message-points li {
        position: relative;
        padding-left: 26px;
        margin-bottom: 8px;
        font-size: 14px;
        color: #374151;
        line-height: 1.5;
    }

        /* Custom bullet icon */
        .message-points li::before {
            content: "✔";
            position: absolute;
            left: 0;
            top: 0;
            color: #0078D4;
            font-size: 14px;
        }

        /* Highlight deadline */
        .message-points li.deadline {
             background: #eef6ff;
            padding: 6px 8px 6px 26px;
            border-radius: 5px;
            font-weight: 500;
            
        }

        /* Warning style */
        .message-points li.warning {
            color: #d32f2f;
            font-weight: 500;
        }

        /* Optional: last item spacing */
        .message-points li:last-child {
            margin-bottom: 0;
        }

body.popup-active {
    overflow: hidden; /* Disable scrolling when popup is open */
}

    body.popup-active #popupOverlay {
        opacity: 1;
        transform: scale(1); /* Popup slides into view */
    }

    body.popup-active .popup-container {
        transform: translateY(0) scale(1);
    }

    /* 4. Main Content: Subtle dimming without the jarring heavy blur */
    body.popup-active .main-content {
        filter: brightness(0.5) blur(3px); /* Darken and blur everything except the popup */
        transition: all 0.3s ease;
    }

/* Popup itself stays clear and slides in */
#popupOverlay {
    z-index: 999999 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Modern Glassmorphism Effect */
    background: rgba(15, 23, 42, 0.5); /* Deep slate with 50% opacity */
    backdrop-filter: blur(8px) saturate(180%); /* Modern blur and color boost */
    -webkit-backdrop-filter: blur(8px) saturate(180%); /* Safari support */

    display: none; /* Controlled by JS flex */
    justify-content: center;
    align-items: center;
    /* Animation Properties */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Popup on smaller screens (mobile) */
/* FadeIn animation for popup */
@keyframes fadeInPopup {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Book Now */
.btn-book {
    background: #ffc107;
    color: #212529;
    border: 1px solid #e0a800;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .btn-book:hover {
        background: #ffb300;
    }
/* Mobile responsiveness for small screens */
@media (max-width: 480px) {
    .popup-container {
        width: 90%; /* Make popup container responsive */
        max-width: 400px; /* Optional: limit max width */
    }

    /* Smaller close button */
    .popup-close {
        font-size: 18px; /* Smaller close button for mobile */
    }

    /* Smaller font for header and title */
    .popup-header-title {
        font-size: 12px;
    }

    .popup-text h3 {
        font-size: 16px;
    }

    .popup-footer button {
        font-size: 12px; /* Smaller footer buttons */
        padding: 6px 12px; /* Adjust button padding */
    }

    .countdown-timer {
        font-size: 14px; /* Adjust countdown font size */
    }
}
