/* =========================
   sobre_nos.css 
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

:root {
    --primary-gold: #C5B358;
    --dark-gold: #A08D47;
    --dark-bg: #2A2A2A;
}

body {
    color: #333;
    line-height: 1.6;
    padding-top: var(--header-h);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--dark-bg);
    text-transform: uppercase;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-gold);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.about-image img {
    width: 50%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #555;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.team-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    width: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--primary-gold);
}

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

.team-card:hover .team-image img {
    transform: scale(1.02);
}

.team-card h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--dark-bg);
    font-size: 1.2rem;
}

.team-position {
    color: var(--gold-text);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-card > p:last-child {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    color: var(--dark-bg);
}

/* =========================
   Join Us / Candidatura Section
========================= */
.join-section {
    padding: 4.5rem 0;
    background-color: #f4f4f4;
    border-top: 1px solid #e6e2d6;
    border-bottom: 4px solid var(--dark-bg);
}

.join-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.join-title {
    font-size: 1.9rem;
    color: var(--dark-bg);
    margin-bottom: 0.75rem;
}

.join-subtitle {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
}

/* Botão que abre o modal */
.join-open-btn {
    display: inline-block;
    padding: 1rem 2.75rem;
    background-color: var(--primary-gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.join-open-btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
}

/* Overlay + Modal do formulário */
.join-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.join-modal-overlay.active {
    display: flex;
}

.join-modal-overlay.active .join-modal {
    animation: fade-up 0.35s var(--ease) both;
}

.join-modal {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 2.5rem 2.25rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.join-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.join-modal-close:hover {
    color: var(--dark-bg);
}

.join-modal-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.join-modal-subtitle {
    text-align: center;
    color: #777;
    font-size: 0.98rem;
    margin-bottom: 2rem;
}

.join-form {
    text-align: left;
}

.join-form-section-title {
    font-size: 1.05rem;
    color: var(--dark-bg);
    padding-bottom: 0.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-gold);
}

.join-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.4rem;
}

.form-group input {
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(197, 179, 88, 0.2);
}

.join-submit-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: var(--primary-gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.join-submit-btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
}

.join-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-h);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .about-section,
    .team-section,
    .stats-section,
    .join-section {
        padding: 3rem 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image img {
        width: 40%;
        max-width: 200px;
    }
    
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .team-card {
        max-width: 100%;
    }
    
    .team-image {
        height: 280px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .join-title {
        font-size: 1.5rem;
    }

    .join-modal {
        padding: 2rem 1.5rem;
    }

    .join-modal-title {
        font-size: 1.35rem;
    }

    .join-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: var(--header-h);
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .team-image {
        height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .join-submit-btn,
    .join-open-btn {
        width: 100%;
    }
}