/**
 * FINTC Theme - Who We Are Page Styles
 * Full-width section layout matching What's On page
 */

/* ========================================
   HERO BANNER
   ======================================== */

.who-we-are-page .who-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    background: var(--gradient-primary);
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.who-we-are-page .who-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0.3;
    z-index: 1;
}

/* Hide the overlay div since we use ::before pseudo-element */
.who-we-are-page .who-hero .hero-banner-overlay {
    display: none;
}

.who-we-are-page .who-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.who-we-are-page .who-hero .hero-banner-title {
    color: white;
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* ========================================
   FULL-WIDTH SECTIONS (Like What's On)
   ======================================== */

.wwa-section {
    padding: 0;
}

.wwa-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Image positioning with order */
.wwa-section-grid.image-left .wwa-section-image {
    order: 1;
}

.wwa-section-grid.image-left .wwa-section-content {
    order: 2;
}

.wwa-section-grid.image-right .wwa-section-content {
    order: 1;
}

.wwa-section-grid.image-right .wwa-section-image {
    order: 2;
}

/* Section Image */
.wwa-section-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    max-width: 640px;
    width: 100%;
}

.wwa-section-grid.image-left .wwa-section-image {
    justify-self: end;
}

.wwa-section-grid.image-right .wwa-section-image {
    justify-self: start;
}

.wwa-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.wwa-section:hover .wwa-section-image img {
    transform: scale(1.05);
}

/* Section Content */
.wwa-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-3xl);
    max-width: 640px;
    width: 100%;
}

.wwa-section-grid.image-right .wwa-section-content {
    justify-self: end;
}

.wwa-section-grid.image-left .wwa-section-content {
    justify-self: start;
}

.wwa-section-content h2,
.wwa-section-content h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.wwa-section-content p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.wwa-section-content p:last-of-type {
    margin-bottom: var(--spacing-xl);
}

/* Section Buttons */
.wwa-section-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

/* Pastor Signature */
.pastor-signature {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   SECTION COLOR VARIANTS
   ======================================== */

/* Sand Background */
.wwa-section-sand {
    background-color: var(--color-sand);
}

.wwa-section-sand .wwa-section-content h2,
.wwa-section-sand .wwa-section-content h3 {
    color: var(--color-dark);
}

.wwa-section-sand .wwa-section-content p {
    color: var(--color-text-light);
}

.wwa-section-sand .pastor-signature {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* White Background */
.wwa-section-white {
    background-color: var(--color-white);
}

.wwa-section-white .wwa-section-content h2,
.wwa-section-white .wwa-section-content h3 {
    color: var(--color-dark);
}

.wwa-section-white .wwa-section-content p {
    color: var(--color-text-light);
}

/* Dark Background */
.wwa-section-dark {
    background-color: var(--color-dark);
}

.wwa-section-dark .wwa-section-content {
    color: var(--color-white);
}

.wwa-section-dark .wwa-section-content h2,
.wwa-section-dark .wwa-section-content h3 {
    color: var(--color-white);
}

.wwa-section-dark .wwa-section-content p {
    color: rgba(255, 255, 255, 0.85);
}

.wwa-section-dark .btn-outline-light {
    color: var(--color-white);
    border-color: var(--color-white);
    border-radius: 999px;
}

.wwa-section-dark .btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* ========================================
   VISION SECTION
   ======================================== */

.wwa-vision-section {
    padding: var(--spacing-4xl) 0;
    background: var(--gradient-primary);
    text-align: center;
}

.wwa-vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.wwa-vision-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.wwa-vision-quote {
    font-size: var(--font-size-3xl);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-white);
    font-style: italic;
    margin: 0;
}

/* ========================================
   VALUES SECTION
   ======================================== */

.wwa-values-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-sand);
}

.section-title-centered {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-2xl);
}

.wwa-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.wwa-value-card {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.wwa-value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.wwa-value-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--color-white);
}

.wwa-value-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.wwa-value-card p {
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   SERVICE TIMES SECTION
   ======================================== */

.wwa-service-times-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-dark);
    text-align: center;
}

.wwa-service-times-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-2xl);
}

.wwa-service-times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.wwa-service-time-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-base);
}

.wwa-service-time-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.wwa-service-time-icon {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.wwa-service-time-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.wwa-service-time-card .service-time {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: var(--spacing-sm);
}

.wwa-service-time-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
}

.wwa-service-cta {
    margin-top: var(--spacing-lg);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 992px) {
    /* Full-width sections stack on tablet */
    .wwa-section-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* Keep order based on image-left/image-right class on mobile */
    .wwa-section-grid.image-left .wwa-section-image {
        order: 1;
    }

    .wwa-section-grid.image-left .wwa-section-content {
        order: 2;
    }

    .wwa-section-grid.image-right .wwa-section-content {
        order: 1;
    }

    .wwa-section-grid.image-right .wwa-section-image {
        order: 2;
    }

    .wwa-section-image {
        height: 350px;
    }

    .wwa-section-content {
        padding: var(--spacing-2xl);
    }

    .wwa-values-grid,
    .wwa-service-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wwa-vision-quote {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 768px) {
    .who-we-are-page .who-hero {
        height: auto;
        min-height: 40vh;
        max-height: 500px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .who-we-are-page .who-hero .hero-banner-title {
        font-size: 2rem;
    }

    .wwa-section-image {
        height: auto;
        min-height: 300px;
    }

    .wwa-section-image img {
        object-fit: contain;
        object-position: center;
    }

    .wwa-section-content {
        padding: var(--spacing-xl);
    }

    .wwa-section-content h2,
    .wwa-section-content h3 {
        font-size: var(--font-size-2xl);
    }

    .wwa-section-buttons {
        flex-direction: column;
    }

    .wwa-section-buttons a {
        width: 100%;
        text-align: center;
    }

    .wwa-vision-section {
        padding: var(--spacing-3xl) 0;
    }

    .wwa-vision-quote {
        font-size: var(--font-size-xl);
    }

    .wwa-values-section,
    .wwa-service-times-section {
        padding: var(--spacing-3xl) 0;
    }

    .wwa-values-grid,
    .wwa-service-times-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .section-title-centered,
    .wwa-service-times-content h2 {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 576px) {
    .who-we-are-page .who-hero {
        height: 35vh;
        min-height: 240px;
        max-height: 400px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .who-we-are-page .who-hero .hero-banner-title {
        font-size: 1.75rem;
    }

    .wwa-section-image {
        height: auto;
        min-height: 250px;
    }

    .wwa-section-content {
        padding: var(--spacing-lg);
    }

    .wwa-section-content h2,
    .wwa-section-content h3 {
        font-size: var(--font-size-xl);
    }

    .wwa-section-content p {
        font-size: var(--font-size-base);
    }

    .wwa-value-card,
    .wwa-service-time-card {
        padding: var(--spacing-lg);
    }

    .wwa-vision-quote {
        font-size: var(--font-size-lg);
    }

    .wwa-service-time-card .service-time {
        font-size: var(--font-size-xl);
    }
}
