/* ============================================================================
   CONTACT PAGE - page-contact.php
   Clean, simple design for a food bank contact page
   ============================================================================ */

/* === Performance: CSS Containment for Independent Sections === */
.contact-hero,
.faq-section,
.get-involved-section,
.team-banner-section {
    contain: layout style;
}

/* === Contact Page Container === */
.contact-page {
    background: var(--white);
}

/* ========================================
   HERO SECTION - Simple with Contact Info
======================================== */

.contact-hero {
    background: var(--primary-green);
    padding: 8rem 6% 5rem;
    text-align: center;
}

.contact-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.contact-hero > .contact-hero-content > p {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2.5rem;
}

/* Hero Contact Grid */
.hero-contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.hero-contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.contact-emoji {
    font-size: 1.1rem;
}

.contact-text {
    font-weight: 500;
}

/* ========================================
   FAQ SECTION - Two Column Layout
======================================== */

.faq-section {
    padding: 6rem 6%;
    background: var(--gray-50);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.faq-header {
    position: sticky;
    top: 120px;
}

.faq-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.faq-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-green-light);
}

.faq-item.active {
    border-color: var(--primary-green);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--primary-green);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-green);
    text-decoration: underline;
}

/* ========================================
   GET INVOLVED SECTION - Full Width
======================================== */

.get-involved-section {
    padding: 6rem 6%;
    background: var(--white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 3rem;
}

.involvement-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.involvement-card {
    background: var(--gray-50);
    border: none;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.involvement-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.involvement-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.card-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.card-benefits li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.involvement-card .btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.involvement-card .btn-primary:hover {
    background: var(--primary-green-dark);
}

/* ========================================
   TEAM BANNER SECTION - With Image Background
======================================== */

.team-banner-section {
    position: relative;
    padding: 6rem 6%;
    background-image: url('/wp-content/uploads/2025/09/Spar-Nord-Fonden-2024_NZ2_5116-scaled-1-2048x1296.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    overflow: hidden;
}

.team-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 71, 42, 0.9) 0%,
        rgba(45, 90, 61, 0.85) 100%
    );
    z-index: 1;
}

.team-banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.team-banner-content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.team-banner-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 2rem;
}

.team-banner-section .btn-white {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-green-dark);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-banner-section .btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ========================================
   MODAL POPUP STYLES
======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.modal-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-form .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-form .form-group input,
.modal-form .form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-form .form-group input::placeholder,
.modal-form .form-group textarea::placeholder {
    color: var(--gray-400);
}

.modal-form .form-group input:focus,
.modal-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.modal-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-form .btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-form .btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* ========================================
   RESPONSIVE STYLES
======================================== */

@media (max-width: 768px) {
    .contact-hero {
        padding: 7rem 5% 4rem;
    }

    .contact-hero h1 {
        font-size: 2.25rem;
    }

    .contact-hero > .contact-hero-content > p {
        font-size: 1.15rem;
    }

    .hero-contact-grid {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-contact-item {
        justify-content: center;
    }

    .faq-section {
        padding: 4rem 5%;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-header {
        position: static;
        text-align: center;
    }

    .faq-header h2 {
        font-size: 1.75rem;
    }

    .involvement-cards {
        grid-template-columns: 1fr;
    }

    .get-involved-section {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .team-banner-section {
        padding: 4rem 5%;
    }

    .team-banner-content h2 {
        font-size: 1.75rem;
    }

    .team-banner-content p {
        font-size: 1rem;
    }

    .team-banner-content h2 {
        font-size: 1.25rem;
    }

    /* Modal responsive */
    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 5.5rem 4% 2.5rem;
    }

    .contact-hero h1 {
        font-size: 1.5rem;
    }

    .hero-contact-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .faq-section {
        padding: 3rem 4%;
    }

    .faq-header h2 {
        font-size: 1.5rem;
    }

    .faq-header p {
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .get-involved-section {
        padding: 3rem 4%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .involvement-card {
        padding: 1.75rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .involvement-card h3 {
        font-size: 1.25rem;
    }

    .team-banner-section {
        padding: 3rem 4%;
    }

    .team-banner-content h2 {
        font-size: 1.5rem;
    }
}
