/**
 * FINTC Theme - Contact Page Styles
 * Full-width section layout matching What's On and Who We Are pages
 */

.contact-page-redesign {
    overflow-x: hidden;
}

/* ========================================
   HERO BANNER
   ======================================== */

.contact-hero-banner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    background: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0.3;
}

.contact-hero-banner .hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.45) 0%, rgba(59, 89, 152, 0.35) 100%);
    z-index: 1;
}

.contact-hero-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-hero-banner .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 and Who We Are)
   ======================================== */

.contact-section {
    padding: 0;
}

.contact-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Image positioning with order */
.contact-section-grid.image-left .contact-section-image {
    order: 1;
}

.contact-section-grid.image-left .contact-section-content {
    order: 2;
}

.contact-section-grid.image-right .contact-section-content {
    order: 1;
}

.contact-section-grid.image-right .contact-section-image {
    order: 2;
}

/* Section Image */
.contact-section-image {
    position: relative;
    overflow: hidden;
    max-width: 640px;
    width: 100%;
}

.contact-section-grid.image-left .contact-section-image {
    justify-self: end;
}

.contact-section-grid.image-right .contact-section-image {
    justify-self: start;
}

.contact-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.contact-section:hover .contact-section-image img {
    transform: scale(1.05);
}

/* Section Content */
.contact-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-3xl);
    max-width: 640px;
    width: 100%;
}

.contact-section-grid.image-right .contact-section-content {
    justify-self: end;
}

.contact-section-grid.image-left .contact-section-content {
    justify-self: start;
}

.contact-section-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.contact-section-content p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-section-content p:last-of-type {
    margin-bottom: var(--spacing-xl);
}

/* Section Buttons */
.contact-section-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

/* ========================================
   SECTION COLOR VARIANTS
   ======================================== */

/* Sand Background */
.contact-section-sand {
    background-color: var(--color-sand);
}

.contact-section-sand .contact-section-content h2 {
    color: var(--color-dark);
}

.contact-section-sand .contact-section-content p {
    color: var(--color-text-light);
}

/* White Background */
.contact-section-white {
    background-color: var(--color-white);
}

.contact-section-white .contact-section-content h2 {
    color: var(--color-dark);
}

.contact-section-white .contact-section-content p {
    color: var(--color-text-light);
}

/* Dark Background */
.contact-section-dark {
    background-color: var(--color-dark);
}

.contact-section-dark .contact-section-content {
    color: var(--color-white);
}

.contact-section-dark .contact-section-content h2 {
    color: var(--color-white);
}

.contact-section-dark .contact-section-content p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-section-dark .btn-outline-light,
.contact-section-dark .btn-outline-dark {
    color: var(--color-white);
    border-color: var(--color-white);
    border-radius: 999px;
}

.contact-section-dark .btn-outline-light:hover,
.contact-section-dark .btn-outline-dark:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Clean Hero Section */
.contact-hero-premium {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #f0f1f3 100%);
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.hero-gradient-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.hero-gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #a5b4c8 0%, #7c8fa6 100%);
    bottom: -100px;
    left: -100px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.hero-gradient-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8fa4bd 0%, #6b7d94 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.hero-mesh-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(102, 126, 234, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.eyebrow-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.hero-title-premium {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title-premium .title-line {
    display: block;
    color: var(--color-dark);
}

.hero-title-premium .title-gradient {
    background: linear-gradient(135deg, #3b5998 0%, #2c3e50 50%, #4a6fa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-premium .hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Centered Hero Content */
.hero-content-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content-centered .hero-description {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Quick Actions */
.hero-quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.hero-btn-primary {
    position: relative;
    background: var(--gradient-primary);
    color: var(--color-white);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.hero-btn-secondary {
    background: var(--color-white);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-btn-secondary:hover {
    background: #667eea;
    color: var(--color-white);
    border-color: #667eea;
    transform: translateY(-3px);
}

/* Contact Cards Section */
.contact-cards-section {
    padding: 100px 0;
    background: var(--color-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card-premium {
    position: relative;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-card-premium:hover {
    transform: translateY(-10px);
}

.contact-card-premium h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

/* Team Banner */
.team-banner-section {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.team-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(59, 89, 152, 0.75) 100%);
    z-index: 1;
}

.team-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.team-banner-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* ========================================
   SCRIPTURE QUOTE
   ======================================== */

.scripture-quote {
    background: rgba(59, 89, 152, 0.08);
    border-left: 4px solid #3b5998;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0 2rem;
    border-radius: 0 8px 8px 0;
}

.scripture-quote p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.scripture-quote cite {
    font-size: 0.95rem;
    color: #3b5998;
    font-weight: 600;
    font-style: normal;
}

/* Scripture Quote - Dark variant for dark backgrounds */
.scripture-quote-dark {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #fbbf24;
}

.scripture-quote-dark p {
    color: rgba(255, 255, 255, 0.95);
}

.scripture-quote-dark cite {
    color: #fbbf24;
}

/* ========================================
   LOCATION INFO SECTION (Visit Us)
   ======================================== */

.location-info-section {
    padding: 80px 0;
    background: #f9f6f2;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.location-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.location-item svg {
    flex-shrink: 0;
    color: #3b5998;
    margin-top: 2px;
}

.location-item p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.location-item p strong {
    color: #2c3e50;
}

.location-item a {
    color: #3b5998;
    text-decoration: none;
    transition: color 0.2s ease;
}

.location-item a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.location-map iframe {
    display: block;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 992px) {
    /* Full-width sections stack on tablet */
    .contact-section-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* Reset order on tablet - image always first */
    .contact-section-grid.image-right .contact-section-image,
    .contact-section-grid.image-left .contact-section-image {
        order: 1;
    }

    .contact-section-grid.image-right .contact-section-content,
    .contact-section-grid.image-left .contact-section-content {
        order: 2;
    }

    .contact-section-image {
        height: 350px;
    }

    .contact-section-content {
        padding: var(--spacing-2xl);
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title-premium {
        font-size: 3rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-banner-section {
        height: 280px;
    }

    .team-banner-content h2 {
        font-size: 2rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-hero-banner {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .contact-hero-banner .hero-banner-title {
        font-size: 2rem;
    }

    .contact-section-image {
        height: auto;
        min-height: 300px;
    }

    .contact-section-image img {
        object-fit: contain;
        object-position: center;
    }

    .contact-section-content {
        padding: var(--spacing-xl);
    }

    .contact-section-content h2 {
        font-size: var(--font-size-2xl);
    }

    .contact-section-buttons {
        flex-direction: column;
    }

    .contact-section-buttons button,
    .contact-section-buttons a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .contact-hero-premium {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero-title-premium {
        font-size: 2.25rem;
    }

    .hero-quick-actions {
        flex-direction: column;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .team-banner-section {
        height: 240px;
    }

    .team-banner-content h2 {
        font-size: 1.75rem;
    }

    .location-info-section {
        padding: 60px 0;
    }

    .scripture-quote {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-hero-banner {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .contact-hero-banner .hero-banner-title {
        font-size: 1.75rem;
    }

    .contact-section-image {
        height: auto;
        min-height: 250px;
    }

    .contact-section-content {
        padding: var(--spacing-lg);
    }

    .contact-section-content h2 {
        font-size: var(--font-size-xl);
    }

    .contact-section-content p {
        font-size: var(--font-size-base);
    }

    .hero-title-premium {
        font-size: 1.75rem;
    }

    .team-banner-section {
        height: 200px;
        padding: 0 20px;
    }

    .team-banner-content h2 {
        font-size: 1.5rem;
    }

    .location-info-section {
        padding: 40px 0;
    }

    .location-details h3 {
        font-size: 1.5rem;
    }

    .scripture-quote {
        padding: 1rem 1.25rem;
        margin: 1rem 0 1.5rem;
    }

    .scripture-quote p {
        font-size: 1rem;
    }
}
