/* ---------------------------------- */
/* 1. Global & Reset Styles           */
/* ---------------------------------- */

:root {
    /* Define modern color palette */
    --color-primary: #002147; /* Deep Navy Blue */
    --color-accent: #4A90E2; /* Medium Blue */
    --color-text-dark: #333333;
    --color-background-light: #F8F8F8;
    --color-white: #FFFFFF;
    --font-family-base: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
}

a {
    text-decoration: none;
    color: var(--color-accent);
}

/* ---------------------------------- */
/* 2. Header & Navigation             */
/* ---------------------------------- */

.main-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 0;
    /* Makes the header stay at the top */
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.main-nav a {
    color: var(--color-white);
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-accent);
}

/* ---------------------------------- */
/* 3. General Layout & Sections       */
/* ---------------------------------- */

main {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 60px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
}

/* ---------------------------------- */
/* 4. Hero Section (The first fold)   */
/* ---------------------------------- */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: var(--color-white);
    padding: 80px 20px;
    border-bottom: 1px solid #ddd;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 300; /* Light weight for modern feel */
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-image-placeholder {
    flex: 1;
    min-height: 300px;
    background-color: #DDDDDD; /* Placeholder for a professional image */
    border-radius: 8px;
	background-image: url('images/BackgroundImage.jpg');
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #3870b9; /* Slightly darker hover state */
    transform: translateY(-2px);
}

/* ---------------------------------- */
/* 5. Services Cards                  */
/* ---------------------------------- */

.services-section {
    background-color: var(--color-background-light);
}

.services-container {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
}

.service-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle modern shadow */
    flex: 1 1 calc(25% - 20px); /* 4 cards per row on large screens */
    min-width: 250px; /* Minimum width for responsiveness */
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
    display: block;
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}

/* ---------------------------------- */
/* 6. Footer                          */
/* ---------------------------------- */

.main-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
}

.main-footer a {
    color: var(--color-accent);
    text-decoration: underline;
    margin: 0 5px;
}

/* ---------------------------------- */
/* 7. Responsiveness (Mobile First)   */
/* ---------------------------------- */

@media (max-width: 768px) {
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        margin-top: 10px;
    }

    .main-nav a {
        margin: 0 10px;
        display: block; /* Stack links vertically on mobile */
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .service-card {
        /* On small screens, cards take up 100% width */
        flex: 1 1 100%; 
    }
}

@media (max-width: 1024px) {
    .service-card {
        /* On mid-sized screens, 2 cards per row */
        flex: 1 1 calc(50% - 20px); 
    }
}
/* ---------------------------------- */
/* CONTACT PAGE SPECIFIC STYLES       */
/* ---------------------------------- */

.contact-hero {
    text-align: center;
    padding: 60px 20px 30px;
    background-color: var(--color-white);
}

.section-subtitle {
    font-size: 18px;
    color: #555555;
    max-width: 700px;
    margin: 10px auto 0;
}

/* Two-column layout for form and details */
.contact-details-form-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form takes more space than info */
    gap: 40px;
}

/* --- Contact Form Styling --- */
.contact-form-container {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.submit-button {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #3870b9;
}


/* --- Contact Info & Map Styling --- */
.contact-info-map-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-box {
    background-color: var(--color-background-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary); /* Modern accent line */
}

.contact-info-box h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--color-primary);
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #AAAAAA; /* Placeholder for a Google Map embed */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-weight: 700;
}

/* --- Responsiveness for Mobile --- */
@media (max-width: 900px) {
    .contact-details-form-section {
        /* Stack columns vertically on smaller screens */
        grid-template-columns: 1fr;
    }
}