/*
 Theme Name:   OceanWP Child
 Theme URI:    https://oceanwp.org/
 Description:  Tema filho para o OceanWP
 Author:       Seu Nome
 Author URI:   https://seu-site.com
 Template:     oceanwp
 Version:      1.0.0
 Text Domain:  oceanwp-child
*/

/* Adicione seus estilos CSS customizados abaixo desta linha */

/* ==========================================================================
   RESET & ESTILOS GERAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #fcfaf7;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Grids genéricos */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Grid de Cards (Fixado em 3 colunas no Desktop) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Seções */
.section {
    padding: 80px 0;
}

.section-beige {
    background-color: #f9f5f0;
    color: #2b2b2b;
}

.section-dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

.section-rust {
    background-color: #8b3a2b;
    color: #ffffff;
}

/* Títulos & Subtítulos */
.subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8b3a2b;
    display: block;
    margin-bottom: 10px;
}

.color-accent {
    color: #e0a96d;
}

.color-gold {
    color: #f1c40f;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #8b3a2b;
    color: #ffffff;
    border: 2px solid #8b3a2b;
}

.btn-primary:hover {
    background-color: #6d2d21;
    border-color: #6d2d21;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    margin-top: 15px;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: #8b3a2b;
}

.btn-admin {
    background-color: #e0a96d;
    color: #1a1a1a !important;
    padding: 6px 16px;
    border-radius: 20px;
}

.btn-text {
    color: #e0a96d;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVBAR & HERO SECTION
   ========================================================================== */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 20px 0;
    background-color: rgba(74, 71, 68, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e0a96d;
}

/* Botão Hambúrguer (Mobile) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Conteúdo Hero */
.hero-section {
    position: relative;
    background: #111111 url('assets/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin: auto;
    text-align: center;
    max-width: 800px;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   CARDS & COMPONENTES
   ========================================================================== */
.card {
    border-radius: 8px;
    overflow: hidden;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-dark {
    background-color: #262626;
    border: 1px solid #333333;
}

.card-light {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 0;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e0a96d;
    margin-bottom: 10px;
    display: block;
}

.card-desc {
    font-size: 0.9rem;
    color: #bbbbbb;
    margin: 10px 0;
}

.card-info {
    margin: 15px 0;
    font-size: 0.85rem;
    color: #cccccc;
}

.card-info p {
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.badge-closed {
    background-color: #444;
    color: #aaa;
}

.badge-open {
    background-color: #27ae60;
    color: #fff;
}

/* Card Notícias */
.card-img-top {
    position: relative;
}

.card-img-top img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #8b3a2b;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

.card-body {
    padding: 20px;
}

.card-meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 15px;
}

/* Testemunhos */
.quote-icon {
    font-size: 3rem;
    color: #e0a96d;
    line-height: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.user-info img, .avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background-color: #e0a96d;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Apoiadores */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.sponsor-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    font-weight: 700;
    color: #666;
}

.sponsor-box img {
    max-height: 60px;
}

/* Seção Apoie */
.apoie-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.apoie-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.apoie-icon {
    font-size: 1.5rem;
}

/* Contato Form */
.contato-form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    border: none;
    background: none;
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 600;
}

.tab-btn.active {
    border-color: #8b3a2b;
    color: #8b3a2b;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-btn {
    background: none;
    border: 1px solid #666;
    color: inherit;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-dark {
    background-color: #111111;
    color: #aaaaaa;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h3, .footer-grid h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid a {
    color: #aaaaaa;
    text-decoration: none;
    line-height: 2;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET - Abaixo de 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #4a4744;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    /* Transformação do Botão Hambúrguer em X */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media screen and (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr; /* 1 coluna em telemóveis */
    }

    .grid-2, .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}