/* ========================================
   Page-Specific Styles
   ======================================== */

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.85), rgba(74, 128, 96, 0.85)),
                url('../images/hero-bg.jpg') center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.85), rgba(74, 128, 96, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 3;
    color: var(--white);
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-green);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--white);
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--light-green);
    transition: all 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-member:hover .member-photo {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(45, 90, 61, 0.2);
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.team-member .position {
    color: var(--primary-green);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-member p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Locations Section */
.locations {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.locations-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.location-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.location-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.1);
}

.location-info {
    padding: 25px;
}

.location-info h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.location-info p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Contact Page Specific */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-info-section {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 10px;
    height: fit-content;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-left: 1.5rem;
}

/* Services Page Specific */
.service-category {
    margin-bottom: 4rem;
}

.service-category h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-green);
    display: inline-block;
}

.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-green);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        height: 500px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .cta h2 {
        font-size: 28px;
    }
}