/* ===================================
   GLOBAL CSS - TV RIO VERDE
   ================================== */

/* CSS Reset e Variáveis */
:root {
    --verde-principal: #1B7B3A;
    --verde-secundario: #7CB342;
    --verde-claro: #A5D65A;
    --branco: #FFFFFF;
    --cinza-escuro: #333333;
    --cinza-texto: #666666;
    --cinza-claro: #F5F5F5;
    --dourado: #FFD700;
    --azul-tbc: #0066CC;
    
    /* Gradientes */
    --gradiente-verde: linear-gradient(135deg, var(--verde-principal), var(--verde-secundario));
    --gradiente-overlay: linear-gradient(rgba(27, 123, 58, 0.8), rgba(124, 179, 66, 0.8));
    
    /* Tipografia */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Sombras */
    --sombra-leve: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 5px 20px rgba(0, 0, 0, 0.15);
    --sombra-forte: 0 10px 30px rgba(0, 0, 0, 0.25);
    
    /* Transições */
    --transicao-rapida: all 0.3s ease;
    --transicao-media: all 0.5s ease;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--cinza-escuro);
    overflow-x: hidden;
}

/* Container Global */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Seções Globais */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--verde-principal);
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradiente-verde);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--cinza-texto);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Botões Globais */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradiente-verde);
    color: var(--branco);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transicao-rapida);
    border: none;
    cursor: pointer;
    box-shadow: var(--sombra-leve);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--verde-principal);
    color: var(--verde-principal);
}

.btn-outline:hover {
    background: var(--verde-principal);
    color: var(--branco);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transicao-media);
    padding: 20px 0;
}

.main-header.scrolled {
    background: var(--branco);
    box-shadow: var(--sombra-leve);
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    position: relative;
}

.header-logo img {
    height: 45px;
    transition: var(--transicao-rapida);
}

.logo-branca {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-verde {
    opacity: 0;
}

.main-header.scrolled .logo-branca {
    opacity: 0;
}

.main-header.scrolled .logo-verde {
    opacity: 1;
}

.header-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header-nav .nav-link {
    color: var(--branco);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transicao-rapida);
    position: relative;
}

.main-header.scrolled .nav-link {
    color: var(--cinza-escuro);
}

.nav-link:hover {
    color: var(--verde-secundario);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-secundario);
    transition: var(--transicao-rapida);
}

.nav-link:hover::after {
    width: 100%;
}

.header-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--branco);
    cursor: pointer;
}

.main-header.scrolled .header-mobile-toggle {
    color: var(--cinza-escuro);
}

/* Footer */
.main-footer {
    background: var(--cinza-escuro);
    color: var(--branco);
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #cccccc;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--verde-principal);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transicao-rapida);
}

.social-link:hover {
    background: var(--verde-secundario);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--branco);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transicao-rapida);
}

.footer-links a:hover {
    color: var(--verde-secundario);
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #cccccc;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--verde-secundario);
    width: 16px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #999;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradiente-verde);
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicao-rapida);
    z-index: 999;
    box-shadow: var(--sombra-media);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-forte);
}

/* Animações Globais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Elementos Decorativos Globais */
.decorative-element {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.decorative-circle {
    border-radius: 50%;
    background: var(--verde-principal);
}

.decorative-square {
    background: var(--verde-secundario);
    transform: rotate(45deg);
}

/* Responsivo */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--branco);
        transition: var(--transicao-media);
        padding: 40px 20px;
        box-shadow: var(--sombra-media);
    }
    
    .header-nav.active {
        left: 0;
    }
    
    .header-nav .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-nav .nav-link {
        color: var(--cinza-escuro);
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .header-mobile-toggle {
        display: block;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   CORREÇÃO DO HEADER/MENU - TV RIO VERDE
   ================================== */

/* Header Principal */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 20px 0;
}

/* Header com fundo branco quando scrolled */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

/* Container do Header */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-logo {
    position: relative;
    height: 45px;
    z-index: 1001;
}

.header-logo img {
    height: 45px;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

/* Logo branca (padrão - visível quando transparente) */
.logo-branca {
    opacity: 1;
    z-index: 2;
}

/* Logo verde (visível quando com fundo branco) */
.logo-verde {
    opacity: 0;
    z-index: 1;
}

/* Quando scrolled, mostrar logo verde */
.main-header.scrolled .logo-branca {
    opacity: 0;
}

.main-header.scrolled .logo-verde {
    opacity: 1;
}

/* Navegação */
.header-nav {
    position: relative;
    z-index: 1000;
}

.header-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav .nav-link {
    color: var(--branco);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Links quando header tem fundo branco */
.main-header.scrolled .nav-link {
    color: var(--cinza-escuro);
}

/* Hover dos links */
.nav-link:hover {
    color: var(--verde-secundario);
}

/* Linha inferior nos links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-secundario);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.header-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--branco);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.main-header.scrolled .header-mobile-toggle {
    color: var(--cinza-escuro);
}

/* ====================================
   RESPONSIVO - MOBILE
   ================================== */

@media (max-width: 768px) {
    /* Mostrar botão mobile */
    .header-mobile-toggle {
        display: block;
    }
    
    /* Esconder navegação normal no mobile */
    .header-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: all 0.4s ease;
        padding: 40px 20px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    }
    
    /* Menu mobile ativo */
    .header-nav.active {
        left: 0;
    }
    
    /* Lista vertical no mobile */
    .header-nav .nav-list {
        flex-direction: column;
        gap: 20px;
        height: 100%;
        justify-content: flex-start;
        align-items: center;
    }
    
    /* Links no mobile */
    .header-nav .nav-link {
        color: var(--cinza-escuro);
        font-size: 1.1rem;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Remover border do último item */
    .header-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Header container no mobile */
    .header-container {
        padding: 0 15px;
    }
    
    /* Logo menor no mobile */
    .header-logo img {
        height: 40px;
    }
    
    .header-logo {
        height: 40px;
    }
}

/* ====================================
   ESTADOS ESPECIAIS
   ================================== */

/* Quando o menu está aberto no mobile, forçar fundo branco */
@media (max-width: 768px) {
    .main-header:has(.header-nav.active) {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-header:has(.header-nav.active) .logo-branca {
        opacity: 0;
    }
    
    .main-header:has(.header-nav.active) .logo-verde {
        opacity: 1;
    }
    
    .main-header:has(.header-nav.active) .header-mobile-toggle {
        color: var(--cinza-escuro);
    }
}

/* ====================================
   ANIMAÇÕES SUAVES
   ================================== */

/* Transição suave para todos os elementos do header */
.main-header * {
    transition: all 0.3s ease;
}

/* Efeito de escala sutil no logo */
.header-logo:hover img {
    transform: scale(1.05);
}

/* Efeito no botão mobile */
.header-mobile-toggle:hover {
    transform: scale(1.1);
}

/* ====================================
   FALLBACK PARA NAVEGADORES ANTIGOS
   ================================== */

/* Para navegadores que não suportam :has() */
.main-header.menu-aberto {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.main-header.menu-aberto .logo-branca {
    opacity: 0 !important;
}

.main-header.menu-aberto .logo-verde {
    opacity: 1 !important;
}

.main-header.menu-aberto .header-mobile-toggle {
    color: var(--cinza-escuro) !important;
}

/* ===================================
   CORREÇÃO HERO - OCULTAR TV MANTENDO LAYOUT
   ================================== */

/* Desktop - Manter espaço mas ocultar TV */
@media (min-width: 993px) {
    .hero-media {
        /* Manter o flex e espaço original */
        flex: 0 0 450px;
        position: relative;
        /* Ocultar apenas o conteúdo visual da TV */
        opacity: 0;
        visibility: hidden;
        /* Opcional: adicionar um efeito sutil para destacar o background */
    }
    
    /* Alternativa: Se quiser um espaço completamente vazio */
    .hero-tv-display {
        display: none;
    }
    
    /* Manter todos os outros elementos no lugar */
    .hero-wrapper {
        display: flex;
        align-items: center;
        min-height: 80vh;
        gap: 80px; /* Manter o gap original */
    }
    
    .hero-content {
        flex: 1;
        color: white;
        /* Conteúdo permanece no mesmo lugar */
    }
}

/* Mobile - Centralizar tudo e ocultar completamente */
@media (max-width: 992px) {
    .hero-media {
        display: none !important; /* Ocultar completamente no mobile */
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 50px;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-content {
        order: 1; /* Conteúdo primeiro no mobile */
    }
}

/* ===================================
   OPÇÃO ALTERNATIVA - PLACEHOLDER SUTIL
   ================================== */

/* Se você quiser um placeholder discreto no lugar da TV */
.hero-media-placeholder {
    flex: 0 0 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Elemento decorativo sutil */
}

.hero-media-placeholder::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: heroFloatPlaceholder 6s ease-in-out infinite;
}

.hero-media-placeholder::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.05);
    animation: heroFloatPlaceholder 4s ease-in-out infinite reverse;
}

@keyframes heroFloatPlaceholder {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Ocultar placeholder no mobile */
@media (max-width: 992px) {
    .hero-media-placeholder {
        display: none;
    }
}

.hero-section {
    background: linear-gradient(rgba(15, 74, 29, 0.8), rgba(27, 123, 58, 0.8)), url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center;
}