/* --- Imports & Global Resets --- */
:root {
    --primary-color: #005A9C; /* Professional blue */
    --primary-dark: #003E6B;
    --dark-gray: #333;
    --medium-gray: #4f4f4f;
    --light-gray: #f4f4f4;
    --text-color: #212529;
    --text-light: #ffffff;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--text-light);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-gray);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--text-light);
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}
.logo:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap; /* Allow nav items to wrap on small screens if needed */
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--medium-gray);
    padding: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/javier-ortiz-9h9_krtTdps-unsplash.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-color: #111; /* Fallback for the image */
    position: relative; 
    
    color: var(--text-light);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

/* --- Content Sections --- */
.content-section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin-bottom: 2rem;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.content-section .section-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* UPDATED: Styles for <a> tag */
.service-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline */
    color: var(--text-color); /* Inherit base text color */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    color: var(--text-color); /* Keep text color on hover */
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* --- People Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    border: 1px solid #ccc;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.team-name {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.team-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0; /* Removed bio */
}

/* --- NEW TESTIMONIALS SECTION --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-gray);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    background-color: #fff;
    border-color: var(--primary-color);
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--medium-gray);
    margin: 0 0 1.5rem 0;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--dark-gray);
    font-style: normal;
}

/* --- Contact Section --- */
.contact-content {
    text-align: center;
}

.contact-details {
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: #ccc;
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #fff;
    margin: 0 0.75rem;
    font-weight: 400;
}
.footer-links a:hover {
    color: #aaa;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}
.footer-copyright a {
    color: #ccc;
}


/* --- NEW MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: none; /* Hidden by default */
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    z-index: 1002;
    display: none; /* Hidden by default */
    
    /* For transition */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active states for JS */
.modal-overlay.active {
    display: block;
}

.modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: var(--dark-gray);
}

.modal h3 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.modal p {
    font-size: 1rem;
    line-height: 1.7;
}
/* --- END MODAL STYLES --- */


/* --- Media Queries (Responsive) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .hero {
        background-attachment: scroll; /* Parallax doesn't work well on mobile */
    }

    .nav-toggle {
        display: flex;
        z-index: 1001; /* Ensure it's above other content */
    }

    .nav-menu {
        position: fixed; /* Changed to fixed for full-screen menu */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Full height */
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center links vertically */
        gap: 1.5rem;
        
        /* Hide menu */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.5rem; /* Make links larger for mobile menu */
    }

    /* Hamburger animation */
    .nav-toggle span {
        background-color: var(--dark-gray);
    }
    
    .nav-toggle.active span {
        background-color: var(--dark-gray); /* Keep color when active */
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .modal {
        width: 90vw;
        padding: 2rem 1.5rem;
    }
}
/* A smaller hero section for internal pages */
.hero-small {
    min-height: 30vh; /* Shorter than the homepage hero */
    padding: 3rem 0;
}

.page-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* A non-clickable version of the service card for static lists */
.service-card-static {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-card-static h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Responsive adjustment for the new page title */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}
