/* --- Global Styles and Typography --- */
:root {
    --primary-color: #004d99;      /* Deep Blue */
    --secondary-color: #00c6a7;    /* Teal/Turquoise for accents */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --background-light: #ffffff;
    --background-offwhite: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Navigation Bar --- */
nav {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: var(--text-light);
    transition: opacity 0.3s, transform 0.2s;
}

.logo-link:hover,
.logo-link:focus {
    opacity: 0.9;
    transform: scale(1.05);
    outline: none;
}

.logo-link:focus .logo {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--secondary-color);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.nav-links a.active {
    color: var(--secondary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.primary-button {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.primary-button:hover,
.primary-button:focus {
    background-color: #00a08e;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 198, 167, 0.4);
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover,
.secondary-button:focus {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 77, 153, 0.3);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.secondary-button:active {
    transform: translateY(0);
}


/* --- Sections General --- */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 77, 153, 0.8), rgba(0, 77, 153, 0.8)), url('images/placeholder-image.jpg') no-repeat center center/cover; /* Replace 'images/placeholder-image.jpg' with your actual hero image */
    color: var(--text-light);
    text-align: center;
    padding: 150px 0;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- About Section --- */
.about-section {
    background-color: var(--background-offwhite);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 25px;
}

/* --- Services Section --- */
.services-section {
    background-color: var(--background-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-offwhite);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Contact Hero Section --- */
/* 
 * Background Image Suggestions for Contact Page:
 * 1. Professional office/meeting room: 'images/contact-office.jpg' or 'images/contact-meeting.jpg'
 * 2. Business handshake/team collaboration: 'images/contact-handshake.jpg' or 'images/contact-team.jpg'
 * 3. Modern workspace: 'images/contact-workspace.jpg' or 'images/contact-modern-office.jpg'
 * 4. Abstract business/communication: 'images/contact-abstract.jpg' or 'images/contact-communication.jpg'
 * 5. Professional consultation scene: 'images/contact-consultation.jpg' or 'images/contact-discussion.jpg'
 * 
 * Recommended: Use a professional, welcoming image that conveys trust and communication
 * Image should be high-quality (1920x1080 or larger) and optimized for web
 */
.contact-hero-section {
    background: linear-gradient(rgba(0, 77, 153, 0.85), rgba(0, 77, 153, 0.85)), url('images/contact-hero.jpg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 120px 0 80px;
    background-attachment: fixed; /* Creates parallax effect */
}

.contact-hero-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-hero-section p {
    font-size: 1.25rem;
    font-weight: 300;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 80px 0;
}

.contact-section .section-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.contact-section .subtitle {
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    background-color: var(--background-offwhite);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    background-color: var(--background-offwhite);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s, background-color 0.3s;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

.contact-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-info-item p {
    margin: 0;
    font-size: 1rem;
}

.contact-info-item a {
    color: var(--text-dark);
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: var(--secondary-color);
}

.contact-hours {
    background-color: var(--background-offwhite);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-hours h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-hours p {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-hours p:last-child {
    margin-bottom: 0;
}

/* --- Contact CTA Section (on homepage) --- */
.contact-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    color: var(--text-light);
    text-align: center;
}

.contact-cta-section .section-title {
    color: var(--text-light);
}

.contact-cta-section .subtitle {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.contact-cta-content {
    max-width: 700px;
    margin: 0 auto 40px;
}

.contact-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--background-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 167, 0.1);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 5px;
    padding-left: 5px;
}

.success-message {
    background-color: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.contact-form button {
    cursor: pointer;
    border: none;
    margin-top: 10px;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.contact-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #00a08e;
}

/* --- Footer --- */
footer {
    background-color: var(--text-dark);
    color: #bbb;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #bbb;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--secondary-color);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .contact-hero-section {
        padding: 100px 0 60px;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .contact-hero-section h2 {
        font-size: 2rem;
    }

    .contact-hero-section p {
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0 0 20px 0;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    .nav .container {
        justify-content: space-between;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        max-width: 100%;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-info-card,
    .contact-hours {
        padding: 25px 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-wrapper {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .contact-hero-section h2 {
        font-size: 1.75rem;
    }

    .contact-hero-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        width: 95%;
    }

    .contact-form-container,
    .contact-info-card,
    .contact-hours {
        padding: 20px 15px;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contact-icon {
        margin: 0 auto;
    }
}