/* ====================================
   CONTENT SECTIONS
   Reusable content layout components for subpages
   ==================================== */

/* Content Section Base */
.content-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Content Wrapper - Main Layout Grid */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

/* Content Block - Text Side */
.content-block {
    max-width: 600px;
}

.content-block .section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.content-block .section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.content-text {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.0625rem);
    line-height: 1.8;
    color: #555;
}

.content-text p {
    margin-bottom: 1.25rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Content Image Block - Image Side */
.content-image-block {
    position: relative;
}

.content-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(17, 91, 70, 0.2);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.content-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.content-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.content-image-wrapper:hover img {
    transform: scale(1.05);
}

.content-image-wrapper .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 91, 70, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.content-image-wrapper:hover .image-overlay {
    opacity: 1;
}

/* Reversed Layout - Image Left, Text Right */
.content-wrapper.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-wrapper.reverse .content-block {
    order: 2;
}

.content-wrapper.reverse .content-image-block {
    order: 1;
}

/* ====================================
   VALUES SECTION
   ==================================== */

.values-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #ffffff;
}

.values-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.values-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.values-header .section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.values-header .section-description {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.0625rem, 2vw, 1.125rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: #ffffff;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all var(--transition-normal);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(17, 91, 70, 0.15);
    border-color: var(--color-primary);
}

.value-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7f5 0%, #e8f4f0 100%);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #ffffff;
    transform: scale(1.1);
}

.value-icon svg {
    width: 32px;
    height: 32px;
}

.value-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.value-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ====================================
   CTA SECTION
   ==================================== */

.cta-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #f0f7f5 0%, #e8f4f0 100%);
}

.cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.0625rem, 2vw, 1.125rem);
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablets and Below */
@media (max-width: 992px) {
    .content-wrapper,
    .content-wrapper.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .content-wrapper.reverse .content-block {
        order: 1;
    }

    .content-wrapper.reverse .content-image-block {
        order: 2;
    }

    .content-block {
        max-width: 100%;
    }

    .values-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Mobile Devices */
@media (max-width: 640px) {
    .content-section {
        padding: 3rem 0;
    }

    .values-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .values-grid, .team-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
