/* =========================================
   1. CSS Reset & Global Variables
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4389a8; 
    --secondary-color: #1a1a1a; 
    --accent-color: #f4f6f8; 
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #ffffff;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevents horizontal scrolling on mobile */
}

/* =========================================
   2. Navigation
   ========================================= */
header {
    background-color: #d5d7d9;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li { position: relative; }

.nav-links a {
    color: #000000;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #d5d7d9;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    top: 100%;
    left: 0;
    border: 1px solid #c0c2c4;
}

.dropdown-content a { border-bottom: 1px solid #c0c2c4; }
.dropdown-content a:hover { background-color: #c0c2c4; }
.dropdown:hover .dropdown-content { display: block; }

/* =========================================
   3. Hero Images & Sections
   ========================================= */
.hero-image-full {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.text-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.picture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.picture-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.picture-grid img:first-child {
    grid-column: span 2;
    height: 300px;
}

/* =========================================
   4. Capabilities Section
   ========================================= */
.capabilities-section {
    background-color: var(--accent-color);
    padding: 80px 5%;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.cap-card {
    background: #ffffff;
    padding: 30px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 0 0 8px 8px;
}

.cap-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.cap-card ul { list-style: none; }

.cap-card ul li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cap-card ul li:last-child { border-bottom: none; }

/* =========================================
   5. Footer
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col ul {
    color: #e6f0fa;
    font-size: 0.95rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #e6f0fa; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #e6f0fa;
    font-size: 0.9rem;
}

/* =========================================
   6. Contact Page Specifics
   ========================================= */
.contact-header { padding: 100px 5% 60px; max-width: 1400px; margin: 0 auto; }
.contact-header h1 { font-size: 3.5rem; color: #1a1a1a; margin-bottom: 10px; }
.contact-header p { font-size: 1.2rem; color: #666; max-width: 800px; }

.contact-layout { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    padding: 0 5% 80px; 
    max-width: 1400px; 
    margin: 0 auto; 
    align-items: stretch; 
}

.contact-form-area h2, .contact-info-area h2 { font-size: 1.8rem; color: #1a1a1a; margin-bottom: 15px; }
.contact-form-area p, .contact-info-area p { color: #666; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }

.hp-field { display: none !important; visibility: hidden !important; }

.status-msg { padding: 15px; margin-bottom: 20px; border-radius: 4px; font-weight: bold; }
.status-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.contact-info-area { display: flex; flex-direction: column; }
.info-card { background: #f8f9fa; padding: 20px 25px; border-radius: 8px; border-left: 4px solid var(--primary-color); margin-bottom: 20px; }
.info-card h3 { font-size: 1.1rem; color: #1a1a1a; margin-bottom: 8px; }
.info-card p { margin-bottom: 5px; color: #444; font-size: 0.95rem; }
.map-container { flex-grow: 1; width: 100%; min-height: 200px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* =========================================
   7. RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================= */

/* Tablet View (Max 1024px) */
@media (max-width: 1024px) {
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { gap: 30px; }
    .hero-image-full { height: 400px; }
}

/* Mobile View (Max 768px) */
@media (max-width: 768px) {
    /* Force all grid layouts to stack vertically */
    .split-section, 
    .contact-layout, 
    .footer-grid, 
    .capabilities-grid,
    .picture-grid {
        grid-template-columns: 1fr !important; 
        gap: 30px;
    }

    /* Fix inline grid styles used in HTML (e.g., 1.2fr 1fr) */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust Hero Images */
    .hero-image-full { height: 250px; }

    /* Adjust Typography */
    .text-content h2, .section-heading h2 { font-size: 2rem; }
    .contact-header h1 { font-size: 2.2rem; }
    .contact-header { padding: 60px 5% 40px; }
    .text-content p { font-size: 1rem; }

    /* Fix the Navbar (Simple Mobile Layout) */
    nav {
        flex-direction: column;
        padding: 15px 5%;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        text-align: center;
    }

    /* Image right column in split sections */
    .split-section > div:last-child img {
        min-height: 300px;
    }
}