/* --- CSS Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-purple: #4A2574;
    --secondary-green: #8CC63F;
    --accent-blue: #0071BC;
    --text-dark: #2C3E50;
    --text-light: #5A6A7A;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--primary-purple);
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 { font-size: 2.5em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.05em;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-light);
}

li { margin-bottom: 10px; }

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 65px; }

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover, nav a.active { color: var(--secondary-green); }

/* --- Hero Section (Image Background) --- */
.hero {
    /* The URL below is the background image */
    background: linear-gradient(rgba(74, 37, 116, 0.85), rgba(0, 113, 188, 0.85)), 
                url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 25px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* --- Page Header (Smaller Hero for internal pages) --- */
.page-header {
    background: var(--primary-purple);
    color: var(--white);
    padding: 80px 20px 60px;
    text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--secondary-green);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 15px rgba(140, 198, 63, 0.4);
}

.btn:hover {
    background-color: #72a331;
    transform: translateY(-2px);
}

/* --- Layouts: Split Text & Image --- */
.section { padding: 80px 0; background-color: var(--white); }
.section.alt-bg { background-color: var(--bg-light); }

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}
.split-layout.reverse { flex-direction: row-reverse; }

.split-text { flex: 1; }
.split-image { flex: 1; }
.split-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* --- Grids and Cards (For Services) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-5px); }

.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.card-content { padding: 30px; flex-grow: 1; }

/* --- Forms --- */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    padding: 15px;
    border: 1px solid #D1D9E0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    background-color: var(--bg-light);
}

textarea { resize: vertical; min-height: 160px; }

/* --- Footer --- */
footer {
    background-color: var(--primary-purple);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

footer p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.9em; }

/* =========================================
   HAMBURGER MENU (HIDDEN ON DESKTOP)
   ========================================= */
.menu-toggle {
    display: none; /* This ensures it NEVER shows up on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   MOBILE MODE ONLY (SCREENS UNDER 900PX)
   ========================================= */
@media (max-width: 900px) {
    
    /* 1. Fix the Header for Mobile */
    .header-content {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* 2. Reveal the Hamburger Icon */
    .menu-toggle {
        display: flex; 
    }
    
    /* 3. Reformat the Navigation Links */
    nav {
        width: 100%;
    }

    nav ul {
        display: none; /* Hides the standard desktop row of links */
        flex-direction: column; /* Stacks links vertically */
        width: 100%;
        text-align: center;
        background-color: var(--white);
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-top: 1px solid #EAEAEA;
        margin-top: 15px;
    }

    /* 4. The class added by JavaScript to open the menu */
    nav ul.active {
        display: flex; 
    }

    /* 5. Mobile Layout Tweaks (Stacks text and images) */
    .split-layout, .split-layout.reverse { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .split-layout ul { 
        text-align: left; 
        display: inline-block; 
    }
    
    .hero h1 { 
        font-size: 2.5em; 
    }
}

