/* style.css (relevant excerpts for perfil.html) */

/* Reset e Base (already in your style.css) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Typography (used for headings and paragraphs in perfil.html) */
h1, h2, h3, h4, h5, h6 {
    font-family: "Cabin Sketch", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

p {
    font-family: "Onest", sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Header (used for navigation in perfil.html) */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.293);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2E7D32;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.5s ease; /* ALTERADO */
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2E7D32;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2E7D32;
    transition: width 0.5s ease; /* ALTERADO */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Estilos para o Dropdown */
.nav-item {
    position: relative;
}

.nav-item.dropdown > a {
    position: relative;
}

.nav-item.dropdown .fa-caret-down {
    margin-left: 5px;
    
    transition: transform 0.5s ease; /* ALTERADO */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0); /* Remove o deslocamento para baixo */
    /* Anima apenas a opacidade para evitar o 'salto' */
    transition: opacity 0.4s ease, visibility 0.4s ease; 
}

.nav-item:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .fa-caret-down {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #2E7D32;
}

.associado-card h3 a{
    text-decoration: none;
    color: #333;
    font-weight: 400;
}

.associado-card h3 a:hover{
    color: #50bd56;
}
/* Section Header (used for titles in perfil-section and galeria-perfil) */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 4.5rem;
    color: #2E7D32;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Perfil Section (specific to perfil.html) */
.perfil-section {
    padding: 5rem 0;
    margin-top: 30px;
    background: #f8f9fa;
}

.perfil-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.perfil-logo img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.perfil-info h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.perfil-info p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

/* Buttons (used for WhatsApp and Voltar buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #FF8F00;
    color: white;
    border-color: #FF8F00;
}

.btn-primary:hover {
    background: transparent;
    color: #FF8F00;
    border-color: #FF8F00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 143, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2E7D32;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Galeria Perfil (used for the associate's gallery) */
.galeria-perfil {
    margin-top: 4rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.galeria-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.galeria-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.galeria-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

/* CTA Buttons (used for Voltar para Associados) */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer (used in perfil.html) */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: #2E7D32;
}

.footer-section h4 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2E7D32;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section i {
    color: #2E7D32;
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Animations (used for fade-in effects in perfil.html) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design (applies to perfil.html) */

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .perfil-content {
        gap: 2rem;
    }
}

/* Mobile and tablet */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
        font-size: 1.1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(240, 240, 240, 0.8);
        backdrop-filter: blur(5px);
        padding-left: 1.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        width: 100%;
        margin-top: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nav-item:hover > .dropdown-menu {
        display: none;
    }

    .nav-item.dropdown-open > .dropdown-menu {
        display: block;
    }

    .nav-item.dropdown-open .fa-caret-down {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Perfil Section */
    .perfil-section {
        padding: 3rem 0;
        margin-top: 20px;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .perfil-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .perfil-logo {
        text-align: center;
    }
    
    .perfil-info {
        text-align: center;
    }
    
    .perfil-info h3 {
        font-size: 1.3rem;
    }
    
    .perfil-info p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .whatsapp-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Galeria Perfil */
    .galeria-perfil {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .galeria-item img {
        height: 200px;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-section h4 {
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.3rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo img {
        width: 60px;
        padding-right: 8px;
    }

    /* Perfil Section */
    .perfil-section {
        padding: 2rem 0;
        margin-top: 15px;
    }
    
    .section-header {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .perfil-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .perfil-info h3 {
        font-size: 1.2rem;
    }
    
    .perfil-info p {
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        max-width: 250px;
    }

    /* Galeria Perfil */
    .galeria-perfil {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }
    
    .galeria-grid {
        gap: 0.8rem;
    }
    
    .galeria-item img {
        height: 180px;
    }

    /* CTA Buttons */
    .cta-buttons {
        padding: 0 0.5rem;
        gap: 0.8rem;
    }
    
    .cta-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 250px;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-logo i {
        font-size: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.2rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-section i {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}