/* ============================================
   VARIÁVEIS CSS - Cores e Valores Reutilizáveis
   ============================================ */
:root {
    /* Cores Principais */
    --color-primary: #2E7EED;
    --color-primary-dark: #1e6dd8;
    --color-primary-light: #0c60e6;
    --color-secondary: #003487;
    --color-secondary-light: #00549C;
    
    /* Cores de Texto */
    --color-text-primary: #060606;
    --color-text-secondary: #696969;
    --color-text-light: #ffffff;
    
    /* Cores de Fundo */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f5f7;
    --bg-tertiary: #f5f5f5;
    
    /* Microsoft Store */
    --color-microsoft: #0078d4;
    --color-microsoft-hover: #0066b3;
    
    /* Espaçamentos */
    --spacing-xs: 10px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 70px;
    
    /* Fontes */
    --font-primary: 'Roboto', 'Work Sans', sans-serif;
    --font-secondary: 'Ubuntu', sans-serif;
    
    /* Transições */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.4s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESET E BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--color-primary);
    color: var(--color-text-light);
    text-shadow: none;
}

audio, canvas, img, video {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

audio, canvas, iframe, img, svg, video {
    vertical-align: middle;
}

img {
    overflow-clip-margin: content-box;
    overflow: clip;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 24px;
    color: var(--color-text-secondary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

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

/* ============================================
   HEADER
   ============================================ */
.header-simple {
    position: relative;
    background: transparent;
    padding: 15px 0;
    width: 100%;
}

@media (min-width: 768px) {
    .header-simple {
        background: transparent;
    }
}

.header-simple .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-simple .logo {
    display: inline-block;
}

.header-simple .logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================
   HERO SECTION (Vídeo de Fundo)
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background iframe {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 70vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 60px 0;
}

.section-muted {
    background-color: var(--bg-secondary);
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.section-muted.first-muted {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.section-muted.no-padding-top {
    padding-top: 0;
}

.section-default {
    background-color: var(--bg-primary);
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.section-default.large {
    padding-top: 140px;
    padding-bottom: 140px;
}

.title-image {
    text-align: center;
    margin-bottom: 0px;
}

.title-image img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   CONTEÚDO DE TEXTO
   ============================================ */
.content-text {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    text-align: justify;
}



.content-text p {
    font-size: 15px;
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 24px;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    margin-top: 0;
    text-align: justify;
}

.highlight-text {
    text-align: justify;
    font-size: 18px;
    font-weight: 200;
    font-family: var(--font-primary);
    line-height: 38.4px;
    color: var(--color-primary-light);
}

.content-text h4 {
    width: 100%;
    display: block;
    text-align: justify;
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.content-text h4.highlight-text {
    margin-bottom: var(--spacing-md);
    margin-top: 0;
    width: 100%;
}

/* ============================================
   BOTÕES DE DOWNLOAD
   ============================================ */
.download-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 60px 0 90px 0;
}

.download-button-wrapper {
    text-align: center;
    flex: 0 1 auto;
}

.download-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    min-width: 250px;
    text-align: center;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: var(--color-primary-dark);
}

.download-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.download-button-microsoft {
    background-color: var(--color-microsoft);
}

.download-button-microsoft:hover {
    background-color: var(--color-microsoft-hover);
    box-shadow: 0 6px 12px rgba(0, 120, 212, 0.3);
}

/* ============================================
   SEÇÃO DE FILTROS
   ============================================ */
.filters-section {
    padding: 40px 0;
}

.filter-item {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 20px;
}

/* Alternância automática: ímpar = imagem direita, par = imagem esquerda */
.filter-item:nth-child(odd) {
    flex-direction: row;
}

.filter-item:nth-child(even) {
    flex-direction: row-reverse;
}

.filter-content {
    flex: 1;
    max-width: 600px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.filter-title {
    font-size: 30px;
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 39px;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-md) 0;
    padding: 0;
}

.filter-description {
    text-align: justify;
}

.filter-description p {
    font-size: 15px;
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 24px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.filter-image {
    flex: 1;
    text-align: center;
    width: 50%;
    max-width: 600px;
    margin: 0;
    padding: 0;
    display: block;
}

.filter-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    
    background-color: var(--bg-tertiary);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column h3 {
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-column p {
    margin-bottom: 10px;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--color-text-secondary);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    transition: all var(--transition-fast);
}

.social-icon svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.social-icon span {
    white-space: nowrap;
}

.social-icon:hover {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    background: rgba(0, 52, 135, 0.05);
}

.social-icon:hover svg {
    opacity: 1;
}

/* Instagram específico - sutil */
.social-icon[href*="instagram"]:hover {
    color: #E4405F;
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.05);
}

/* Facebook específico - sutil */
.social-icon[href*="facebook"]:hover {
    color: #1877f2;
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.05);
}

/* ============================================
   WIDGET WHATSAPP
   ============================================ */
#whatsapp-widget {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 9999;
    font-family: var(--font-secondary);
}

.whatsapp-fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-secondary-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 84, 156, 0.3);
    transition: all var(--transition-normal);
    color: var(--color-text-light);
}

.whatsapp-fab:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-fab svg {
    width: 30px;
    height: 30px;
}

.whatsapp-balloon {
    position: absolute;
    bottom: 16px;
    right: calc(64px + 12px);
    width: 320px;
    max-width: calc(100vw - 40px - 64px - 12px - 10vw);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.12), 0 -6px 64px rgba(0, 0, 0, 0.06);
    padding: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.whatsapp-balloon.open {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-balloon.closed {
    display: none;
}

.balloon-close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.38);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.whatsapp-balloon:hover .balloon-close {
    opacity: 0.8;
}

.balloon-title {
    background: var(--color-secondary-light);
    color: var(--color-text-light);
    padding: 16px;
    border-radius: 12px 12px 0 0;
    font-size: 18px;
    font-weight: 600;
}

.balloon-content {
    padding: 16px;
    max-height: calc(100vh - 40px - 10vh - 64px);
    overflow-y: auto;
}

.balloon-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 20px;
}

.small-text {
    font-size: 14px;
    line-height: 19px;
    color: var(--color-text-secondary);
}

.balloon-user {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    margin-bottom: 16px;
    padding: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 4px;
}

.user-phone {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 8px;
}

.user-button {
    display: flex;
    width: 100%;
    height: 36px;
    background: var(--color-secondary-light);
    color: var(--color-text-light);
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.user-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 84, 156, 0.3);
}

/* ============================================
   RESPONSIVE - TABLET E MOBILE
   ============================================ */
@media (max-width: 800px) {
    /* Fundo cinza para seções que eram brancas */
    .section-default {
        background-color: var(--bg-secondary);
    }
}

@media (max-width: 768px) {
    .header-simple {
        padding: 10px 0;
    }

    .header-simple .logo img {
        height: 40px;
    }

    .filter-item,
    .filter-item.reverse {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }

    /* Garantir que imagem venha primeiro no mobile */
    .filter-item:nth-child(odd),
    .filter-item:nth-child(even) {
        flex-direction: column;
    }

    .filter-content {
        max-width: 100%;
        order: 2;
    }

    .filter-image {
        width: 100%;
        max-width: 100%;
        flex: none;
        order: 1;
        margin-bottom: 0;
    }

    .filter-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: contain;
    }

    .download-buttons-container {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
    }

    .download-button,
    .download-button-microsoft {
        min-width: 0;
        flex: 1 1 calc(50% - 7.5px);
        padding: 12px 15px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 30px;
        flex-wrap: wrap;
    }

    /* Logo à esquerda */
    .footer-column:first-child {
        flex: 0 0 auto;
    }

    /* Contatos à direita */
    .footer-column:nth-child(2) {
        flex: 0 0 auto;
        text-align: right;
    }

    #whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-balloon {
        max-width: calc(100vw - 20px - 64px - 12px - 10vw);
        right: calc(64px + 8px);
    }

    .whatsapp-fab {
        width: 54px;
        height: 54px;
    }

    .whatsapp-fab svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE PEQUENO
   ============================================ */
@media (max-width: 480px) {
    .highlight-text {
        font-size: 16pt;
    }

    .filter-title {
        font-size: 22px;
    }

    .filter-item {
        gap: 20px;
        margin-bottom: 35px;
    }

    .filter-image img {
        border-radius: 6px;
    }

    .download-buttons-container {
        gap: 10px;
    }

    .download-button,
    .download-button-microsoft {
        flex: 1 1 calc(50% - 5px);
        padding: 10px 12px;
        font-size: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .whatsapp-balloon {
        width: calc(100vw - 40px);
        right: 20px;
    }
}


