:root {
    --primary-color: #fcc100; /* Safety Yellow */
    --secondary-color: #1a1a1a; /* Charcoal Black */
    --accent-color: #ff4d4d; /* Alert Red */
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --transition: -webkit-transition all 0.3s ease;
    --transition: transition all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Header & Navigation (Legacy - handled by site_header.php now) */

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
    margin-top: 70px; /* Push below the fixed header so the top of the image is seen */
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--white);
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px);
}

/* Services Section */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title .underline {
    width: 80px;
    height: 5px;
    background: var(--primary-color);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    -webkit-transition: var(--transition);
    -webkit-transition: var(--transition);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* WhatsApp Hub Styles */
.whatsapp-hub {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 10000;
    overflow: hidden;   /* keep rounded corners */
    display: none;
    flex-direction: column;
    animation: hubFadeIn 0.3s ease-out;
    border: none;
    max-height: 90vh;   /* never taller than viewport */
}

@keyframes hubFadeIn {
    from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@-webkit-keyframes hubFadeIn {
    from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

.hub-header {
    background: #075E54;
    padding: 20px 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hub-header i { font-size: 2.2rem; }
.hub-header h3 { font-size: 1.1rem; margin: 0; font-weight: 600; }
.hub-header p { font-size: 0.8rem; opacity: 0.9; margin: 2px 0 0 0; }

.hub-body {
    padding: 10px;
    background: #f0f2f5;
    max-height: 450px;
    overflow-y: auto;
    overscroll-behavior: contain;      /* prevent page scroll bleed */
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #111b21;
    transition: 0.2s;
    margin-bottom: 5px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.agent-card:hover {
    background: #f8f9fa;
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dfe5e7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: #54656f;
    position: relative;
    flex-shrink: 0;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-online { background: #25d366; }
.status-offline { background: #8696a0; }

.agent-info { flex: 1; min-width: 0; }
.agent-info h4 { 
    font-size: 0.95rem; 
    margin: 0; 
    color: #111b21; 
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agent-info span { 
    font-size: 0.8rem; 
    color: #667781; 
    display: block;
    margin: 2px 0;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ── WhatsApp Float Button — All Screens ── */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    padding: 13px 26px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    z-index: 10001;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.2s ease,
                box-shadow 0.2s ease;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.2s ease,
                box-shadow 0.2s ease;
    /* Pulse ring */
    outline: 0;
}

/* Animated pulse ring behind the button */
.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 3px solid rgba(37,211,102,0.4);
    animation: waPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 1; }
    70%  { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

.whatsapp-float-btn:hover {
    -webkit-transform: scale(1.06) translateY(-2px);
    -ms-transform: scale(1.06) translateY(-2px);
    transform: scale(1.06) translateY(-2px);
    background-color: #20ba5a;
    box-shadow: 0 10px 28px rgba(37,211,102,0.55);
}

.whatsapp-float-btn:active {
    -webkit-transform: scale(0.97);
    -ms-transform: scale(0.97);
    transform: scale(0.97);
}

/* ── Mobile: full-width bottom-sheet ── */
@media (max-width: 768px) {
    .whatsapp-hub {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        animation: hubSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hero Responsive Fixes */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 280px;
    }
    
    @keyframes hubSlideUp {
        from { opacity: 0; -webkit-transform: translateY(100%); transform: translateY(100%); }
        to   { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
    }
    .hub-header {
        padding: 16px 20px;
        border-radius: 20px 20px 0 0;
    }
    /* pull-bar handle */
    .whatsapp-hub::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.4);
        border-radius: 4px;
        margin: 10px auto -6px;
    }
    .hub-body {
        max-height: calc(80vh - 100px);
        padding: 10px 10px 24px;
    }

    /* Float button: circular icon on mobile */
    .whatsapp-float-btn {
        position: fixed !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: all !important;
        bottom: 24px;
        right: 20px;
        padding: 0;
        border-radius: 50% !important;
        width: 60px;
        height: 60px;
        justify-content: center;
        align-items: center;
        box-shadow: 0 6px 20px rgba(37,211,102,0.5);
        z-index: 99999 !important;
    }
    .whatsapp-float-btn::before {
        inset: -5px;
        border-radius: 50%;
    }
    .whatsapp-float-btn span { display: none !important; }
    .whatsapp-float-btn svg {
        display: block !important;
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0;
        margin: 0 auto;
    }

    /* Small mobile tweaks */
    @media (max-width: 480px) {
        .header .logo span {
            font-size: 1rem !important;
        }
        .hero h1 {
            font-size: 1.8rem !important;
        }
    }
}

/* ── Tablet: smaller pill (768–1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-float-btn {
        bottom: 24px;
        right: 24px;
        padding: 11px 20px;
        font-size: 0.88rem;
        gap: 9px;
    }
}
