/* --- CSS Variables & Theme --- */
:root {
    /* Primary Palette - Navy & Gold */
    --primary: #0a192f;
    --secondary: #172a45;
    --accent: #d4af37; /* Premium Gold */
    --accent-hover: #bfa145;
    
    /* Text & Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    
    /* Functional */
    --nav-height: 80px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-body: #0a192f;
    --bg-light: #112240;
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --border-color: #233554;
    --primary: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* --- Global Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; } /* Responsive Images */

/* --- Utility Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline, .btn-outline-light { border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.section { padding: 80px 0; }
.center { text-align: center; }

/* --- Navbar --- */
.navbar {
    height: var(--nav-height);
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display'; }
.logo span { color: var(--accent); }

/* Desktop Nav Links */
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 15px; }
#theme-toggle {
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; color: var(--text-main); padding: 5px;
}
.mobile-menu-btn {
    display: none; /* Hidden on Desktop */
    background: none; border: none; font-size: 1.5rem;
    color: var(--text-main); cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh; /* Changed from fixed height to min-height */
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 0; /* Add padding for mobile content safety */
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7));
}
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 800px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: #fff; }
.hero p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.hero .btn-outline-light { border: 1px solid #fff; color: #fff; margin-left: 15px; }
.hero .btn-outline-light:hover { background: #fff; color: #000; }

/* --- News Ticker --- */
.ticker-wrap {
    background: var(--secondary);
    color: #fff;
    display: flex;
    overflow: hidden;
    height: 50px;
    align-items: center;
}
.ticker-heading {
    background: var(--accent);
    color: #000;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    white-space: nowrap;
}
.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ticker-item { padding: 0 50px; font-size: 0.9rem; }
.ticker:hover { animation-play-state: paused; cursor: pointer; }
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Services & General Grid --- */
.bg-light { background-color: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: var(--bg-body);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.icon-box { font-size: 2rem; color: var(--accent); margin-bottom: 20px; }
.read-more {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 20px; font-size: 0.9rem; font-weight: 600; color: var(--accent);
}

/* --- Inner Pages --- */
.page-header { background: var(--secondary); padding: 60px 0; color: #fff; }
.page-header h1 { color: #fff; margin-bottom: 15px; }
.content-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; padding: 60px 20px; }

/* Updates Feed */
.update-card { border-bottom: 1px solid var(--border-color); padding: 30px 0; }
.tag {
    display: inline-block; background: var(--bg-light); 
    padding: 4px 10px; font-size: 0.75rem; font-weight: 600; margin-bottom: 10px;
}
.text-link { color: var(--accent); font-weight: 600; }

/* Downloads Sidebar */
.download-box { background: var(--bg-light); padding: 30px; border-radius: 4px; }
.file-list li { margin-top: 20px; }
.file-link {
    display: flex; align-items: center; gap: 15px;
    padding: 10px; border: 1px solid transparent; transition: var(--transition);
}
.file-link:hover { background: var(--bg-body); border-color: var(--border-color); }
.file-link .fa-file-pdf { font-size: 1.5rem; color: #e74c3c; }
.file-link .fa-file-excel { font-size: 1.5rem; color: #27ae60; }
.file-name { display: block; font-weight: 600; font-size: 0.95rem; }
.file-meta { font-size: 0.8rem; color: var(--text-muted); }
.download-icon { margin-left: auto; color: var(--text-muted); }

/* --- Footer --- */
footer { background: #050d1a; color: #8892b0; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { color: #fff; display: block; margin-bottom: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-family: 'Inter'; font-size: 1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #112240; padding: 20px; text-align: center; font-size: 0.85rem; }

/* --- New Additions from previous step (Grid, Forms, Teams) --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.reversed { direction: rtl; } 
.reversed > * { direction: ltr; }

.sub-heading {
    display: block; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px;
}
.check-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.check-list li i { color: var(--accent); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.team-card { background: var(--bg-body); border: 1px solid var(--border-color); transition: var(--transition); }
.team-img { height: 250px; width: 100%; background-size: cover; background-position: center; }
.team-info { padding: 20px; }

.service-row { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.service-image { height: 400px; width: 100%; background-size: cover; background-position: center; border-radius: 4px; }
.cta-section { background: var(--primary); color: #fff; }
.cta-section h2 { color: #fff; }

.values-grid { display: grid; gap: 20px; }
.value-card { background: var(--bg-light); padding: 20px; border-left: 3px solid var(--accent); }

.contact-form-wrapper { background: var(--bg-light); padding: 40px; border-radius: 4px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border-color);
    background: var(--bg-body); color: var(--text-main); border-radius: 4px;
    font-family: 'Inter', sans-serif;
}
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.map-container { margin-top: 30px; border: 1px solid var(--border-color); }

/* ========================================= */
/* 📱 MOBILE RESPONSIVE MEDIA QUERIES        */
/* ========================================= */

@media (max-width: 992px) {
    /* Tablet Adjustments */
    .hero h1 { font-size: 2.8rem; }
    .grid-2 { gap: 30px; }
    .container { padding: 0 30px; }
}

@media (max-width: 768px) {
    /* --- Mobile Navigation --- */
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-body);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 25px;
        transform: translateX(100%); /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.mobile-active {
        transform: translateX(0); /* Slide in */
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    /* --- Hero Section Mobile --- */
    .hero { text-align: center; justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .hero .btn-outline-light { margin-left: 0; }

    /* --- General Layout Stacking --- */
    .grid-2, .content-wrapper, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* --- Reset Directions --- */
    .reversed { direction: ltr; }
    .reversed > * { direction: ltr; }

    /* --- Adjust Images --- */
    .service-image { height: 250px; margin-bottom: 20px; order: -1; }
    
    /* --- News Ticker --- */
    .ticker-heading { font-size: 0.75rem; padding: 0 10px; }
    .ticker-item { padding: 0 20px; }

    /* --- Sections --- */
    .section { padding: 50px 0; }
    .page-header { padding: 40px 0; text-align: center; }
    
    /* --- Contact Page --- */
    .contact-form-wrapper { padding: 25px; }
}