/* ==========================================================================
   RENOVA AUTO PINTURA - ESTILO GERAL E DESKTOP (STYLE.CSS)
   Versão: 2.0 (Enterprise Structure)
   Desenvolvido para: Alta performance e manutenibilidade
==========================================================================
*/

/* -----------------------------------------------------------------------
   1. VARIÁVEIS GLOBAIS (:ROOT)
   -----------------------------------------------------------------------
   Definição centralizada de cores, fontes, sombras e espaçamentos.
   Isso garante consistência visual em todo o projeto.
*/
:root {
    /* Cores da Marca */
    --primary-red: #DE3233;         /* Vermelho Renova */
    --primary-red-dark: #b01c1d;    /* Vermelho Hover */
    --dark-bg: #1a1a1a;             /* Cinza Chumbo Premium */
    --dark-bg-soft: #2c2c2c;        /* Cinza Chumbo Claro */

    /* Cores de Fundo e Texto */
    --card-bg: #ffffff;             /* Branco Puro */
    --body-bg: #f4f4f4;             /* Off-white para fundo */
    --text-main: #333333;           /* Texto Principal */
    --text-light: #f4f4f4;          /* Texto Claro */
    --text-muted: #666666;          /* Texto de Apoio */

    /* Sombras e Efeitos */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-medium: 0 15px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.15);
    --shadow-inset: inset 0 0 20px rgba(0,0,0,0.05);

    /* Bordas e Arredondamentos */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 30px;
    --border-radius-round: 50%;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.77, 0, 0.175, 1);

    /* Tipografia */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* -----------------------------------------------------------------------
   2. IMPORTAÇÃO DE FONTES E RESET
   -----------------------------------------------------------------------
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@300;400;500&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem lateral indesejada */
    font-size: 16px;
}

/* -----------------------------------------------------------------------
   3. TIPOGRAFIA GERAL
   -----------------------------------------------------------------------
*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-top: 0;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* -----------------------------------------------------------------------
   4. LAYOUT E WRAPPERS
   -----------------------------------------------------------------------
*/
.main-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    /* Adiciona padding esquerdo para compensar a sidebar quando aberta, se necessário */
    position: relative;
}

/* Grid System Genérico (2 Colunas) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
    align-items: stretch;
}

/* Grid System Genérico (3 Colunas - Preparado para expansão) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* -----------------------------------------------------------------------
   5. HEADER (CABEÇALHO) - ESTILO DESKTOP
   -----------------------------------------------------------------------
*/
header {
    background-color: var(--dark-bg);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Centralizado no Desktop */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

header .logo {
    width: 180px;
    height: auto;
    transition: var(--transition-normal);
}

header .logo:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.header-content .divider {
    width: 2px;
    height: 45px;
    background-color: var(--primary-red);
    margin: 0 30px;
    opacity: 0.8;
}

header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

/* -----------------------------------------------------------------------
   6. SIDEBAR (MENU LATERAL)
   -----------------------------------------------------------------------
*/
.sidebar {
    position: fixed;
    top: 100px; /* Abaixo do Header */
    left: 0;
    width: 280px;
    height: calc(100vh - 140px);
    background-color: var(--dark-bg);
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top-right-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efeito elástico */
}

.sidebar.hidden {
    transform: translateX(-110%);
}

.logo-container .logo {
    width: 200px;
    margin-bottom: 40px;
}

/* Navegação da Sidebar */
.container-nav {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.container-nav button {
    background: transparent;
    color: rgba(255,255,255,0.8);
    text-align: left;
    padding: 18px 25px;
    margin-bottom: 12px;
    width: 100%;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.container-nav button:hover {
    background-color: rgba(255,255,255,0.08);
    border-left: 4px solid var(--primary-red);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.container-nav i {
    margin-right: 15px;
    color: var(--primary-red);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Botões de Controle da Sidebar (Setas) */
.arrow-left, .arrow-right {
    background-color: var(--primary-red);
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 1001;
    position: fixed;
    top: 150px; /* Posição vertical */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.arrow-left {
    left: 255px; /* Cola na borda da sidebar */
}

.arrow-right {
    left: 30px;
}

.arrow-left:hover, .arrow-right:hover {
    transform: scale(1.15);
    background-color: var(--primary-red-dark);
}

.hidden { display: none !important; }

/* -----------------------------------------------------------------------
   7. COMPONENTES: CARDS (CARTÕES)
   -----------------------------------------------------------------------
*/
.card {
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--primary-red);
}

/* Elemento decorativo sutil no hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(222, 50, 51, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

.card h3 {
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}

.card-dark {
    background-color: var(--dark-bg);
    color: white;
    padding: 50px;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
}

/* -----------------------------------------------------------------------
   8. COMPONENTES: SERVIÇOS E BOTÕES
   -----------------------------------------------------------------------
*/
.service-item {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.service-item:hover {
    background-color: white;
    transform: translateX(15px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-item span {
    font-weight: 600;
    font-size: 1.15rem;
    color: white;
    transition: color 0.3s;
}

.service-item:hover span {
    color: var(--dark-bg);
}

.service-btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(222, 50, 51, 0.3);
}

.service-btn:hover {
    background-color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transform: scale(1.05);
}

/* Botão Whatsapp (Flutuante) */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    z-index: 2000;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(-10deg);
}

/* -----------------------------------------------------------------------
   9. GALERIA DE POSTS (INSTAGRAM FEED)
   -----------------------------------------------------------------------
*/
.posts-container {
    display: grid;
    /* Grid inteligente: preenche automaticamente */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.post-item {
    position: relative;
    aspect-ratio: 1/1; /* Garante quadrado perfeito */
    overflow: hidden;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-item:hover img {
    transform: scale(1.15);
    filter: brightness(0.4);
}

.post-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 85%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.post-item:hover .post-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* -----------------------------------------------------------------------
   10. TIMELINE (HISTÓRIA DA EMPRESA)
   -----------------------------------------------------------------------
*/
.timeline-wrapper {
    position: relative;
    margin: 60px 0;
    padding: 20px 0;
}

/* Linha Central Vertical */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-red), var(--dark-bg));
    border-radius: 4px;
}

.timeline-event {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px; /* Espaço para a linha e bolinha */
}

/* Bolinha do Ano */
.timeline-event::before {
    content: '';
    position: absolute;
    left: 19px; /* Centraliza na linha de 4px */
    top: 6px;
    width: 26px;
    height: 26px;
    background: var(--dark-bg);
    border: 4px solid var(--primary-red);
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.8);
}

.timeline-event:hover::before {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

.timeline-year {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* -----------------------------------------------------------------------
   11. FOOTER (RODAPÉ)
   -----------------------------------------------------------------------
*/
footer {
    background-color: white;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.03);
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left p {
    margin: 5px 0;
}

.footer-middle {
    display: flex;
    gap: 25px;
}

.footer-middle a {
    font-weight: 600;
    color: var(--dark-bg);
    position: relative;
}

.footer-middle a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

.footer-middle a:hover::after {
    width: 100%;
}

.social-button {
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin-left: 20px;
    transition: all 0.3s;
    display: inline-block;
}

.social-button:hover {
    color: var(--primary-red);
    transform: translateY(-5px) rotate(5deg);
}

/* -----------------------------------------------------------------------
   12. POPUP E OVERLAY (MODAL)
   -----------------------------------------------------------------------
*/
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.9); /* Dark BG com opacidade */
    z-index: 3000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    z-index: 3001;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup h2 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

.popup-close {
    background: var(--dark-bg);
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    margin-top: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.popup-close:hover {
    background: var(--primary-red);
}

/* -----------------------------------------------------------------------
   13. ANIMAÇÕES (KEYFRAMES)
   -----------------------------------------------------------------------
*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translate(-50%, -40%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

/* FIM DO STYLE.CSS */



/* --- ADIÇÕES DO NOVO BASE.HTML --- */

/* 1. Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--dark-bg); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; }
.loader-logo { width: 120px; margin-bottom: 20px; animation: pulse 2s infinite; }
.spinner {
    width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--primary-red); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto;
}

/* 2. Top Bar (Barra acima do header) */
.top-bar {
    background-color: #111; color: #ccc; padding: 8px 0;
    font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar-container {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.divider-pipe { margin: 0 10px; color: var(--primary-red); }
.top-social a { color: #ccc; margin-left: 15px; transition: color 0.3s; }
.top-social a:hover { color: var(--primary-red); }

/* 3. Rodapé Expandido (4 Colunas) */
.footer-container { align-items: flex-start; } /* Sobrescreve align-items center */
.footer-col { flex: 1; min-width: 200px; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--dark-bg); position: relative; display: inline-block; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 3px; background-color: var(--primary-red); }
.footer-col ul { padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; list-style: none; font-size: 0.95rem; color: #555; display: flex; align-items: center; }
.footer-col ul li i { margin-right: 10px; color: var(--primary-red); font-size: 0.8rem; }
.footer-bottom { text-align: center; border-top: 1px solid #eee; margin-top: 40px; padding-top: 20px; font-size: 0.85rem; color: #888; }

/* 4. Cookie Banner */
.cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 800px; background-color: white;
    padding: 20px 30px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 5000; display: flex; justify-content: space-between; align-items: center; gap: 20px;
    transition: all 0.5s ease; border-left: 5px solid var(--primary-red);
}
.hidden-cookie { transform: translate(-50%, 200%); opacity: 0; }
.btn-accept {
    background-color: var(--primary-red); color: white; border: none;
    padding: 10px 25px; border-radius: 5px; cursor: pointer; font-weight: bold; white-space: nowrap;
}
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 999; display: none; backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* Animações */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }