/* assets/css/style.css - UPDATED WITH MOBILE FIXES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
header {
    background: #000;
    color: #fff;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    height: 45px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

nav a {
    color: #fff;
    margin: 0 8px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

nav a:hover {
    color: #1e3c4f;
}

.profile-btn {
    background: #1e3c4f;
    padding: 6px 12px;
    font-size: 13px;
    color: #fff !important;
    border-radius: 4px;
    white-space: nowrap;
}

.header-contact {
    font-size: 13px;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.header-contact span {
    white-space: nowrap;
}

/* HERO */
.hero {
    height: 90vh;
    background: url('../images/xikolokolo-security-guard-01.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 30px;
}

/* BUTTONS */
.btn-primary {
    background: #1e3c4f;
    padding: 14px 28px;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    border-radius: 4px;
}

.btn-outline {
    border: 2px solid #1e3c4f;
    padding: 12px 24px;
    text-decoration: none;
    color: #1e3c4f;
    display: inline-block;
    margin-top: 20px;
    border-radius: 4px;
}

.btn-outline:hover {
    background: #1e3c4f;
    color: #fff;
}

/* WHO SECTION */
.who-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.who-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: url('../logo/xikolokolo-logo.png') center/contain no-repeat;
    opacity: 0.02;
    pointer-events: none;
}

.who-section .container {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

/* SERVICES */
.services-section {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}

.services-grid {
    display: flex;
    gap: 30px;
}

.service-card {
    flex: 1;
    background: #f9f9f9;
    padding: 40px;
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

/* TACTICAL SECTION */
.tactical-section {
    height: 70vh;
    background: url('../images/tactical-response-unit.jpg') center/cover fixed no-repeat;
    position: relative;
}

.tactical-overlay {
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    align-items: center;
}

.tactical-content {
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

/* WHY SECTION */
.why-section {
    padding: 80px 0;
    background: #f7f7f7;
}

.why-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: #fff;
    padding: 40px;
    flex: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
}

.why-card h3 {
    color: #1e3c4f;
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background: #000;
    color: #fff;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-content h4 {
    color: #1e3c4f;
    margin-bottom: 15px;
}

.powered {
    font-size: 12px;
    opacity: .6;
}

.powered strong {
    color: #1e3c4f;
}

/* ADDITIONAL BLUE ELEMENTS */
.emergency-highlight {
    color: #1e3c4f;
    font-weight: 600;
}

.core-value {
    color: #1e3c4f;
}

.psira-badge {
    color: #1e3c4f;
    margin-top: 15px;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* ============================================ */
/* MOBILE RESPONSIVE FIXES - COMPREHENSIVE */
/* ============================================ */

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 5px 8px;
    }
    
    .header-contact {
        justify-content: center;
        text-align: center;
    }
    
    .services-grid {
        flex-wrap: wrap;
    }
    
    .service-card {
        flex: 1 1 calc(50% - 30px);
        min-width: 250px;
    }
    
    .why-grid {
        flex-wrap: wrap;
    }
    
    .why-card {
        flex: 1 1 calc(50% - 30px);
        min-width: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Landscape (480px to 768px) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
    }
    
    nav a {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .profile-btn {
        display: inline-block;
        width: auto;
        margin: 5px auto;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 5px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .services-grid {
        flex-direction: column;
    }
    
    .service-card {
        width: 100%;
    }
    
    .why-grid {
        flex-direction: column;
    }
    
    .why-card {
        width: 100%;
    }
    
    .who-section, .services-section, .why-section {
        padding: 60px 0;
    }
    
    /* Footer grid for mobile */
    footer [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    /* Director section mobile */
    [style*="display: flex; gap: 60px; align-items: center;"] {
        flex-direction: column !important;
        text-align: center;
    }
    
    /* Service cards grid */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Contact cards grid */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    /* Table responsive */
    table {
        font-size: 14px;
    }
    
    table td, table th {
        padding: 10px !important;
    }
}

/* Mobile Portrait (under 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .btn-primary, .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .who-section, .services-section, .why-section {
        padding: 40px 0;
    }
    
    /* Footer grid becomes 1 column */
    footer [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    /* Service cards become 1 column */
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Table horizontal scroll */
    [style*="overflow-x: auto"] {
        overflow-x: auto;
    }
    
    table {
        min-width: 300px;
    }
    
    /* Director image */
    [style*="max-width: 380px"] {
        max-width: 100% !important;
    }
}

/* Small phones (under 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .container {
        width: 95%;
    }
    
    nav a {
        font-size: 13px;
    }
    
    .profile-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
}