/* --- 1. CORE VARIABLES & BODY SETUP --- */
:root {
    --dark-blue-start: #0d1b2a; 
    --dark-blue-end: #1b263b;   
    --accent-green: #2E7D32;    
    --accent-green-darker: #1B5E20;
    --text-primary: #e0e1dd;    
    --text-secondary: #ffffff;
    --text-body: #333333;
    --light-grey-bg: #f5f5f5;
}

body {
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    margin: 0;
    color: var(--text-body);
    line-height: 1.6;
    background-color: #ffffff;
    /* Adjusted padding-top for the new, shorter 2-line header */
    padding-top: 95px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- 2. MODERN TWO-LINE HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
    
    /* Glassmorphism Effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Top Bar Styling */
.top-bar {
    background: rgba(13, 27, 42, 0.7); /* Dark blue, semi-transparent */
    color: var(--text-primary);
    padding: 6px 0; /* Reduced padding */
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Navigation Styling */
.main-nav {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8), rgba(27, 38, 59, 0.7));
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Reduced height */
}

.main-nav .logo {
    font-size: 1.7rem; /* Reduced font size */
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--accent-green);
    color: var(--text-secondary);
}

.nav-links .nav-cta {
    background-color: transparent;
    border: 2px solid var(--accent-green);
    color: var(--text-secondary);
}
.nav-links .nav-cta:hover {
    background-color: var(--accent-green);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-secondary);
    transition: all 0.3s ease-in-out;
}


/* --- 3. HERO & CONTENT SECTIONS --- */
.hero {
    background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 80px 0; /* Adjusted padding */
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.hero p { font-size: 1.1rem; margin-bottom: 2rem; }

.cta-button {
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.cta-button:hover { background-color: var(--accent-green-darker); }

.services-preview {
    padding: 60px 0;
    background-color: var(--light-grey-bg);
    text-align: center;
}
.services-preview h2 { font-size: 2.5rem; margin-bottom: 40px; }
.services-grid { display: flex; justify-content: space-around; gap: 20px; }
.service-item {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-basis: 30%;
}


/* --- 4. FOOTER --- */
footer {
    background: #333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}


/* --- 5. RESPONSIVE DESIGN (MEDIA QUERIES) --- */

/* Tablet View (e.g., iPads) */
@media (max-width: 992px) {
    .nav-links ul { gap: 5px; }
    .nav-links a { padding: 6px 10px; font-size: 0.9rem; }
    .email-desktop { display: none; } /* Hide email on tablets for more space */
    .hero h1 { font-size: 2.5rem; }
    .services-grid { flex-direction: column; align-items: center; }
    .service-item { flex-basis: 80%; }
}

/* Mobile View (e.g., iPhones, Android Phones) */
@media (max-width: 768px) {
    body { padding-top: 88px; } /* Adjust for mobile header height */

    .tagline { display: none; } /* Hide tagline on mobile */

    .nav-links {
        position: absolute;
        top: 88px; /* Position it below the header */
        left: 0;
        width: 100%;
        background: var(--dark-blue-end);
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }
    .nav-links.active {
        max-height: 500px; /* Reveal the menu */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        gap: 0;
    }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a {
        display: block;
        padding: 15px;
        border-radius: 0;
    }
    .nav-links .nav-cta {
        border: none;
        background-color: var(--accent-green);
    }
    .mobile-menu-toggle { display: block; } /* Show the hamburger button */

    /* Animate hamburger icon to an "X" */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 20px; }
}