/* =====================================================
   1. ROOT VARIABLES (BRAND SYSTEM)
===================================================== */
:root {
    --primary: #0B1C2D;
    --secondary: #111111;
    --accent: #C9A227;
    --danger: #B30000;
    --light: #F4F6F9;
}

/* =====================================================
   2. GLOBAL RESET & BASE STYLES
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--light);
    color: #222;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =====================================================
   3. NAVIGATION BAR
===================================================== */
.navbar {
    background: var(--primary);
    padding: 0; /* remove vertical spacing */
    height: auto; /* let image define height */
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 95%;
        max-width: 1400px;
        margin: auto;
        padding: 0; /* very important */

    }

    .navbar a {
        color: white;
        text-decoration: none;
        
        font-weight: 500;
    }

        .navbar a:hover {
            color: var(--accent);
        }

/* Desktop Nav Layout */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}
/* Logo */
.logo {
    margin: 0;
    padding: 0;
    line-height: 0; /* removes tiny top spacing issue */
}
.logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* Primary Button */
.btn-primary {
    background: var(--danger);
    color: white;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

    .btn-primary:hover {
        background: #8f0000;
    }

/* Secondary Button */
.btn-secondary {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s ease;
}

    .btn-secondary:hover {
        background: white;
        color: var(--primary);
    }

/* =====================================================
   4. MOBILE NAVIGATION (DRAWER)
===================================================== */
.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 1200;
}

/* Overlay (dark background) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    transition: opacity 0.3s ease;
}
@media (max-width: 900px) {

    /* Hide horizontal nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: var(--primary);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 120px 30px;
        gap: 25px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

        /* Slide in */
        .nav-links.active {
            right: 0;
        }
    .navbar {
        position: relative;
        z-index: 1000;
    }
    /* Remove horizontal spacing */
    .navbar a {
        margin-left: 0;
        width: 100%;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
        font-size: 30px;
        z-index: 1100;
    }

    /* Shrink logo for mobile */
    .logo img {
        height: 70px;
    }
}
/* =====================================================
   5. HERO SECTION (HOME)
===================================================== */

.hero {
    position: relative;
    padding: 180px 0;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to right, rgba(11,28,45,0.9), rgba(11,28,45,0.75) );
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-sub {
    font-size: 18px;
    margin-bottom: 30px;
    color: #E0E6ED;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

    .hero-badges span {
        background: rgba(255,255,255,0.1);
        padding: 8px 16px;
        border: 1px solid var(--accent);
        border-radius: 4px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

/* =====================================================
   HERO BACKGROUNDS PER PAGE
===================================================== */

.hero-home {
    background-image: url('/images/hero/hero-security-johannesburg.jpeg');
}

.hero-about {
    background-image: url('/images/hero/hero-security-johannesburg.jpeg');
}

.hero-services {
    background-image: url('/images/hero/hero-security-johannesburg.jpeg');
}

.hero-compliance {
    background-image: url('/images/hero/hero-security-johannesburg.jpeg');
}

.hero-gallery {
    background-image: url('/images/hero/hero-security-johannesburg.jpeg');
}

.hero-contact {
    background-image: url('/images/hero/hero-security-johannesburg.jpeg');
}

/* =====================================================
   6. TRUST STRIP
===================================================== */

.trust-strip {
    background: var(--primary);
    color: white;
    padding: 25px 0;
    text-align: center;
    border-top: 4px solid var(--accent);
}

    .trust-strip p {
        margin: 0;
        font-weight: 600;
        font-size: 16px;
        letter-spacing: 0.5px;
    }

/* =====================================================
   7. SERVICES (HOME PREVIEW)
===================================================== */

.services-preview {
    padding: 100px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

    .section-header h2 {
        font-size: 36px;
        color: var(--primary);
        margin-bottom: 20px;
    }

    .section-header p {
        font-size: 17px;
        color: #555;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 35px 30px;
    border-top: 4px solid var(--accent);
    background: #f9fafc;
    transition: 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

.service-number {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    font-size: 15px;
    color: #444;
}

.services-cta {
    text-align: center;
    margin-top: 60px;
}

/* =====================================================
   8. GENERIC GRID & CARD SYSTEM
===================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* =====================================================
   9. PAGE HEADER (INNER PAGES)
===================================================== */

.page-header {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* =====================================================
   10. ABOUT PAGE (MATCHED TO HOME DESIGN SYSTEM)
===================================================== */

/* MAIN SECTIONS */

.about-section {
    padding: 100px 0;
    background: #ffffff;
}

    /* SECTION HEADERS */

    .about-section .section-header {
        text-align: center;
        max-width: 750px;
        margin: 0 auto 60px auto;
    }

        .about-section .section-header h2 {
            font-size: 36px;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .about-section .section-header p {
            font-size: 17px;
            color: #555;
        }

/* ABOUT CARDS (Match Service Cards) */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.about-card {
    padding: 35px 30px;
    border-top: 4px solid var(--accent);
    background: #f9fafc;
    transition: 0.3s ease;
}

    .about-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .about-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
        color: var(--primary);
    }

    .about-card p {
        font-size: 15px;
        color: #444;
    }

/* LEADERSHIP SECTION */

.leadership-section {
    padding: 100px 0;
    background: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: white;
    padding: 30px;
    border-top: 4px solid var(--accent);
    transition: 0.3s ease;
}

    .team-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .team-card h3 {
        color: var(--primary);
        margin-bottom: 8px;
    }

    .team-card p {
        font-size: 14px;
        color: #666;
    }

/* MISSION & VISION */

.mission-section {
    padding: 100px 0;
    background: #ffffff;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.mission-card {
    background: #f9fafc;
    padding: 40px;
    border-left: 4px solid var(--accent);
}

    .mission-card h2 {
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 20px;
    }

    .mission-card p {
        font-size: 16px;
        color: #444;
    }

/* ABOUT CTA */

.about-cta {
    background: var(--primary);
    color: white;
    padding: 100px 0;
    text-align: center;
}

    .about-cta h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

/* =====================================================
   SERVICES PAGE (FULL POWER VERSION)
===================================================== */

.hero-services {
    background-image: url('/images/hero/hero-security-johannesburg.jpeg');
}

.services-preview {
    padding: 120px 0;
    background: #ffffff;
}

.services-grid {
    margin-top: 60px;
}

.service-card {
    padding: 40px 35px;
    border-top: 4px solid var(--accent);
    background: #f9fafc;
    transition: 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.1);
    }

.service-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: 3px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: var(--primary);
}

.service-card p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.services-cta {
    text-align: center;
    margin-top: 80px;
}

/* =====================================================
   12. FOOTER
===================================================== */

.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #444;
    padding-top: 20px;
}
/* =====================================================
   CONTACT / QUOTE FORM
===================================================== */

.contact-section {
    padding: 100px 0;
}

.form-card {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

    .form-card h2 {
        margin-bottom: 10px;
        color: var(--primary);
    }

.form-sub {
    margin-bottom: 30px;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        border-radius: 4px;
        border: 1px solid #ddd;
        font-size: 15px;
        transition: 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(201,162,39,0.15);
        }
/* Dropdown Styling (Matches Input Fields) */
.form-select {
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: 0.3s ease;
    background: white;
}

    .form-select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(201,162,39,0.15);
    }

.full-width {
    width: 100%;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background: #eaf7ea;
    color: #1e6b1e;
    border-radius: 4px;
    font-weight: 500;
}

/* =====================================================
   COMPLIANCE PAGE
===================================================== */

.compliance-section {
    padding: 100px 0;
    background: #ffffff;
}

.compliance-intro {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
}

    .compliance-intro h2 {
        font-size: 34px;
        color: var(--primary);
        margin-bottom: 20px;
    }

    .compliance-intro p {
        font-size: 17px;
        color: #555;
    }

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.compliance-card {
    background: #f9fafc;
    padding: 35px 30px;
    border-top: 4px solid var(--accent);
    border-radius: 6px;
    transition: 0.3s ease;
}

    .compliance-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .compliance-card h3 {
        font-size: 20px;
        color: var(--primary);
        margin-bottom: 15px;
    }

    .compliance-card p {
        font-size: 15px;
        color: #444;
    }

/* =====================================================
   GALLERY PAGE
===================================================== */

.gallery-section {
    padding: 100px 0;
    background: #ffffff;
}

.gallery-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 70px auto;
}

    .gallery-intro h2 {
        font-size: 34px;
        color: var(--primary);
        margin-bottom: 20px;
    }

    .gallery-intro p {
        font-size: 17px;
        color: #555;
    }

/* GRID */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* CARD */

.gallery-card {
    background: #f9fafc;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

    .gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    }

/* IMAGE */

.gallery-image {
    overflow: hidden;
}

    .gallery-image {
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.08);
}

/* CONTENT */

.gallery-content {
    padding: 25px;
}

    .gallery-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
        color: var(--primary);
    }

    .gallery-content p {
        font-size: 15px;
        color: #444;
    }

/* =====================================================
   HERO BUTTONS MOBILE FIX
===================================================== */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width:768px) {

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}