/* -----------------------------------------------------------
   1. VARIABLES & RESET
----------------------------------------------------------- */
:root {
    /* Brand Colors */
    --primary-dark: #0a1a3a;      /* Deep Blue */
    --primary-blue: #1a3a7a;      /* Lighter Blue */
    
    /* Logo Derived Colors */
    --logo-red: #c62828;          /* Primary Accent (Buttons, Icons) */
    --logo-yellow: #f2c94c;       /* Secondary Accent (Highlights, Borders) */

    /* Neutrals */
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --white: #ffffff;
    
    /* Effects */
    --shadow: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -----------------------------------------------------------
   2. COMPONENTS (Buttons, Titles, Icons)
----------------------------------------------------------- */
/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--logo-red);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #a91e1e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-yellow {
    background-color: var(--logo-yellow);
    color: var(--primary-dark);
}

.btn-yellow:hover { background-color: #e0b840; }

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--logo-yellow);
}

.section-title.center { text-align: center; }
.section-title.center:after { left: 50%; transform: translateX(-50%); }

/* -----------------------------------------------------------
   3. HEADER & NAVIGATION
----------------------------------------------------------- */
header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--logo-red);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo { display: flex; align-items: center; gap: 15px; }

.logo img {
    height: 80px;
    width: auto;
    border-radius: 4px;
    /*background: #fff;*/
    padding: 2px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 1rem; font-weight: 700; letter-spacing: 1px; color: var(--white); }
.logo-sub { font-size: 0.5rem; color: var(--logo-yellow); text-transform: uppercase; letter-spacing: 1px; }

nav ul { display: flex; gap: 30px; }
nav a { font-weight: 500; font-size: 1.1rem; position: relative; color: var(--white); }
nav a:hover, nav a.active { color: var(--logo-yellow); }

nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--logo-yellow);
}

.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--logo-yellow); /* Changed to Yellow for visibility */
    font-size: 1.8rem;
    cursor: pointer;
}

/* -----------------------------------------------------------
   4. HERO SECTIONS
----------------------------------------------------------- */
/* Home Hero */
.hero {
    background: linear-gradient(rgba(10, 26, 58, 0.85), rgba(10, 26, 58, 0.9)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    border-bottom: 5px solid var(--logo-yellow);
}

.hero h1 { font-size: 3.2rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 30px; color: var(--medium-gray); }

/* Inner Page Hero */
.page-hero {
    background: linear-gradient(rgba(10, 26, 58, 0.9), rgba(10, 26, 58, 0.9)), 
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-bottom: 4px solid var(--logo-yellow);
}

.page-hero h1 { font-size: 3rem; margin-bottom: 10px; }
.page-hero p { font-size: 1.2rem; color: var(--medium-gray); }

/* -----------------------------------------------------------
   5. GENERAL SECTIONS (Home & About)
----------------------------------------------------------- */
.intro-section { padding: 80px 0; }
.intro-content { max-width: 900px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.intro-content p { margin-bottom: 20px; }

/* Services Preview (Home) */
.services-preview { padding: 80px 0; background-color: var(--light-gray); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--logo-red);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-10px); }

.service-img {
    height: 180px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-yellow);
    font-size: 3.5rem;
}

.service-content { padding: 25px; flex-grow: 1; }
.service-content h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-dark); }

/* Mission Box */
.mission-section { background-color: var(--light-gray); padding: 60px 0; text-align: center; }
.mission-box {
    background: var(--white);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    border-top: 5px solid var(--logo-red);
}
.mission-box h3 { color: var(--logo-red); font-size: 1.8rem; margin-bottom: 15px; }

/* Values */
.values { padding: 80px 0; background-color: var(--primary-dark); color: var(--white); }
.values .section-title { color: var(--white); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--logo-yellow);
}
.value-card h3 { color: var(--logo-yellow); margin-bottom: 10px; font-size: 1.3rem;}

/* About Page Values (5 Col Grid) */
.values-section { background-color: var(--primary-dark); color: var(--white); padding: 80px 0; }
.values-section .section-title { color: var(--white); }
.values-grid-5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.value-card-small {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-bottom: 4px solid var(--logo-yellow);
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
}
.value-card-small h4 { color: var(--logo-yellow); font-size: 1.1rem; margin-bottom: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; }
.value-card-small p { font-size: 0.9rem; color: #ccc; }

/* About - What We Do */
.what-we-do-section { padding: 80px 0; }
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-item-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    border-left: 4px solid var(--logo-yellow);
}
.service-item-card:hover {
    box-shadow: 0 10px 20px var(--shadow);
    transform: translateY(-5px);
    border-left-color: var(--logo-red);
}

/* Why Choose Us */
.why-choose-section, .why-choose-wrapper { padding: 80px 0; background: var(--light-gray); }
.why-choose-content { max-width: 800px; margin: 0 auto; text-align: center; }
.why-choose-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.why-choose-item {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    border-left: 4px solid var(--logo-yellow);
    transition: var(--transition);
}
.why-choose-item:hover { transform: translateX(5px); border-left-color: var(--logo-red); }
.why-choose-item i { color: var(--logo-red); font-size: 1.2rem; margin-right: 15px; min-width: 25px; text-align: center; }
.why-choose-item span { font-weight: 600; color: var(--primary-dark); }
.closing-statement { margin-top: 30px; font-size: 1.2rem; font-weight: 700; color: var(--logo-red); text-align: center; }

/* -----------------------------------------------------------
   6. SERVICES PAGE (Detailed)
----------------------------------------------------------- */
.services-section { padding: 80px 0; }

.service-detail-card {
    display: flex;
    align-items: stretch;
    margin-bottom: 60px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    border-left: 5px solid var(--logo-red);
}

.service-detail-card:nth-child(even) {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 5px solid var(--logo-red);
}

.service-detail-img {
    flex: 1;
    min-height: 350px;
    background-color: var(--medium-gray);
    position: relative;
}

.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-detail-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}

.service-detail-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--logo-yellow);
}

/* -----------------------------------------------------------
   7. CONTACT PAGE
----------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: start;
}

.contact-form-wrapper {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    border-top: 5px solid var(--logo-red);
}

.contact-form-wrapper .form-group { margin-bottom: 20px; }
.contact-form-wrapper label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-dark); }
.contact-form-wrapper input, .contact-form-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.contact-form-wrapper input:focus, .contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--logo-red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}
.contact-form-wrapper button { width: 100%; margin-top: 10px; }

/* Info Box */
.info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    margin-bottom: 30px;
}
.info-box h3 {
    color: var(--logo-red);
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--logo-yellow);
    padding-bottom: 10px;
    display: inline-block;
}
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.info-item i {
    width: 40px; height: 40px;
    background-color: var(--light-gray);
    color: var(--logo-red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px; flex-shrink: 0; font-size: 1.1rem;
}
.info-item strong { display: block; color: var(--primary-dark); font-size: 0.9rem; margin-bottom: 4px; }
.info-item p { color: #555; line-height: 1.4; word-break: break-word; }

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--medium-gray);
}

/* -----------------------------------------------------------
   8. LEADERSHIP & TESTIMONIALS
----------------------------------------------------------- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.leader-box {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
}
.leader-photo-placeholder {
    height: 250px;
    background-color: var(--medium-gray);
    display: flex; align-items: center; justify-content: center;
    color: var(--dark-gray); font-size: 3rem;
}
.leader-info { padding: 20px; }
.leader-info h4 { color: var(--primary-dark); margin-bottom: 5px; }
.leader-info span { color: var(--logo-red); font-weight: 600; font-size: 0.9rem; }

.testimonial-banner {
    background: linear-gradient(rgba(198, 40, 40, 0.9), rgba(198, 40, 40, 0.9)), 
                url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.testimonial-content { max-width: 800px; margin: 0 auto; }
.quote-icon { font-size: 2rem; color: var(--logo-yellow); margin-bottom: 20px; }
.client-feedback { font-size: 1.2rem; font-style: italic; margin-bottom: 20px; }
.client-name { font-weight: 700; color: var(--logo-yellow); }

/* -----------------------------------------------------------
   9. FOOTER
----------------------------------------------------------- */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 5px solid var(--logo-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img { height: 70px; background: #fff; padding: 5px; border-radius: 4px; margin-bottom: 15px; }

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--logo-yellow);
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background-color: var(--logo-red);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--logo-yellow); padding-left: 5px; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a, .social-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background-color: #f2c94c;
    border-radius: 50%;
    transition: var(--transition);
    color: black;
}
.social-links a:hover, .social-icon:hover { background-color: var(--logo-red); transform: translateY(-3px); }

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* -----------------------------------------------------------
   10. RESPONSIVE MEDIA QUERIES (FIXED FOR MOBILE)
----------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 900px) {
    /* Stack Service Details */
    .service-detail-card, .service-detail-card:nth-child(even) {
        flex-direction: column;
        border-left: 5px solid var(--logo-red);
        border-right: none;
    }
    .service-detail-img { min-height: 250px; }
    
    /* Stack Contact Grid */
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* === MAIN MOBILE FIX === */
@media (max-width: 768px) {
    /* 1. Header Changes - Row Layout for Logo & Button */
    /* Paste this inside your @media (max-width: 768px) block */

    /* 1. Force Mobile Menu Links to be DARK BLUE */
    #mainNav a { 
        color: #0a1a3a !important; /* Deep Blue - Visible on White */
        font-weight: 600;
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }
    
    /* 2. Change Hover & Active Color to RED (Yellow is too hard to see on white) */
    #mainNav a:hover, 
    #mainNav a.active { 
        color: #c62828 !important; /* Red - Good Contrast */
        background-color: #f9f9f9; /* Slight gray background on hover */
    }
    
    /* 3. Remove the desktop underline effect */
    #mainNav a.active:after { 
        display: none; 
    }
    .header-container { 
        display: flex;
        flex-direction: row; /* Keep them side-by-side */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    /* 2. Logo Adjustment */
    .logo { 
        max-width: 80%; /* Leave space for button */
        margin-bottom: 0; 
    }
    .logo img { height: 40px; }
    .logo-text .logo-main { font-size: 14px; }
    .logo-text .logo-sub { display: none; } /* Hide slogan to save space */

    /* 3. Mobile Menu Button - Ensure Visibility */
    .mobile-menu-btn { 
        display: block; 
        position: static; /* Remove absolute so it sits nicely in the flex row */
        font-size: 26px;
        color: var(--logo-yellow); /* Yellow color matches brand */
        z-index: 1001;
    }
    
    /* 4. The Sidebar Menu (Slide In) */
    #mainNav {
        position: fixed;
        top: 70px; /* Below Header */
        right: -100%; /* Hidden off screen */
        width: 250px;
        height: calc(100vh - 70px);
        background-color: #ffffff; /* White background for the drawer */
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
        margin-top: 0; /* Override previous margin */
    }

    /* Class added by JS */
    #mainNav.active {
        right: 0; /* Slide in */
    }

    /* Menu Links inside Sidebar */
    nav ul { 
        flex-direction: column; 
        gap: 15px; 
    }
    
    nav a { 
        color: var(--logo-yellow); /* Dark text on white background */
        font-weight: 600;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    nav a:hover, nav a.active { 
        color: var(--logo-red); 
    }
    
    /* Remove the yellow underline effect on mobile */
    nav a.active:after { display: none; }
    
    /* Values Grid Fix */
    .value-card-small { flex: 1 1 100%; max-width: 100%; }
    
    /* Hero Text Size */
    .hero h1, .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    /* Small Mobile adjustments */ .logo-text .logo-main { font-size: 14px; }
    .logo-text .logo-sub { display: none; } /* Hide slogan to save space */

    .hero { padding: 70px 0; }
    .hero h1 { font-size: 1.8rem; }
    .btn { width: 100%; margin-bottom: 10px; margin-left: 0 !important; }
    .container { padding: 0 15px; }
    .contact-form-wrapper { padding: 25px; }
}