/* =====================================================
   TEM NO ENTORNO SUL - ESTILOS GLOBAIS
   ===================================================== */

/* ==================== VARIÁVEIS ==================== */
:root {
    --color-bg: #fffefd;
    --color-primary: #216b39;
    --color-accent: #faa011;
    --color-highlight: #f8d22d;
    --color-secondary-bg: #f2c585;
    --font-main: 'Roboto', sans-serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: #444;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}

.btn-login-nav {
    background-color: var(--color-primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-login-nav::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        background-color: white;
        width: 100%;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 30px;
        transition: var(--transition);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid #eee;
    }
    .hamburger {
        display: block;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: white;
}

.social-link:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-highlight);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
}

/* ==================== BOTÕES ==================== */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #1a5930;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: #e5940a;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ==================== CARDS ==================== */
.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-category {
    display: inline-block;
    background-color: var(--color-secondary-bg);
    color: #333;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.card-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.card-meta i {
    margin-right: 5px;
    color: var(--color-accent);
}

/* ==================== GRIDS ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(rgba(15, 20, 11, 0.5), rgba(15, 20, 11, 0.5)), 
                url('https://images.pexels.com/photos/38271/ipad-map-tablet-internet-38271.jpeg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-radius: var(--radius);
    margin-bottom: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
}

/* ==================== SEÇÕES ==================== */
.section {
    padding: 60px 0;
}

.section-light {
    background-color: white;
}

.section-colored {
    background-color: var(--color-secondary-bg);
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
}

/* ==================== FEATURES ==================== */
.features {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

@media (max-width: 576px) {
    .feature-card { padding: 30px 20px; }
}

/* ==================== EVENT CARD ==================== */
.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    display: flex;
    align-items: center;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-weight: 500;
}

.event-date i {
    margin-right: 8px;
}

.event-location {
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.event-location i {
    margin-right: 8px;
}

.event-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ==================== MISSÃO ==================== */
.mission {
    background-color: white;
    padding: 80px 0;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(242, 197, 133, 0.1);
    border-radius: 15px;
    position: relative;
}

.mission-text::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: 20px;
    color: rgba(250, 160, 17, 0.2);
    font-family: Georgia, serif;
}

.highlight {
    background-color: var(--color-accent);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
}

@media (max-width: 576px) {
    .mission-text { padding: 20px; }
}

/* ==================== LOADING / ERROR / EMPTY ==================== */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--color-primary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* ==================== FORMULÁRIOS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(33, 107, 57, 0.1);
}

/* ==================== TOAST ==================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.toast-notification.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== ANIMAÇÕES GERAIS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }