/*
 * Arquivo: site.css
 * Versão: 3.0 (Organizado)
 * Descrição: Folha de estilos principal com seções lógicas para fácil manutenção.
*/

/* --- 0. FUNDAÇÃO --- */

/* ----- Variáveis Globais do Tema (:root) ----- */
:root {
    /* Cores */
    --color-background: rgba( 212, 240, 251, 1);
    --color-text-primary: rgba(38, 48, 56, 0.9);
    --color-text-secondary: rgba(38, 48, 56, 0.7);
    --color-text-highlight: #007bff;
    --color-white: #ffffff;
    --color-surface-light: rgba(222, 222, 222, 0.95);
    --color-surface-dark: #2c3e50;
    --color-border: #e0e0e0;
    /* Tipografia */
    --font-main: "Inter", sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-h1: 4rem; /* 64px */
    --font-size-h2: 2.2rem;
    --font-size-h3: 1.5rem;
    --font-size-p: 1.1rem;
    /* Espaçamento e Bordas */
    --border-radius-small: 10px;
    --border-radius-large: 15px;
    --border-radius-pill: 100px;
    --shadow-main: rgba(0, 0, 0, 0.1) 0px 8px 30px 0px, rgba(0, 0, 0, 0.12) 0px 0px 0px 1px;
    --shadow-hover: rgba(0, 0, 0, 0.2) 0px 12px 40px 0px, rgba(0, 0, 0, 0.15) 0px 0px 0px 2px;
}

/* ----- Estilos Globais e Reset ----- */
body {
    background-color: var(--color-background);
    font-family: var(--font-main);
    color: var(--color-text-primary);
    padding-top: 80px; /* Ajuste para o header fixo */
}
input,
button,
select,
optgroup,
textarea {
    font-family: inherit;
    font-size: 16px !important;
    line-height: inherit;
}
/* ----- Classes Utilitárias ----- */
.w-30 {
    width: 30% !important;
}
/* Estilo para alinhar os ícones do Google com o texto */
.material-symbols-outlined {
    vertical-align: middle; /* Alinha o ícone verticalmente */
    font-size: 1.1em; /* Deixa o ícone um pouco maior que o texto */
    position: relative;
    top: -1px; /* Ajuste fino de posição */
    margin-right: 0.3rem; /* Espaço entre o ícone e o texto */
}

/* --- AJUSTES PARA ÍCONES SVG NAS REDES SOCIAIS --- */
.social-icon svg {
    width: 18px; /* Tamanho do ícone */
    height: 18px;
    fill: currentColor; /* Faz o SVG herdar a cor do link (branco) */
}





/* --- AJUSTES PARA GOOGLE MATERIAL SYMBOLS --- */

/* Alinha os ícones do Google com o texto ao redor */
.material-symbols-outlined {
    vertical-align: middle;
    margin-right: 0.5rem; /* Espaçamento padrão à direita */
}

/* Ajuste fino para a seta do dropdown */
.nav-link .material-symbols-outlined.icon-small {
    margin-right: 0;
    margin-left: 0.25rem;
    font-size: 1.2rem; /* Tamanho da seta */
    position: relative;
    top: -1px;
}

/* Garante que os ícones no footer tenham o mesmo estilo */
.footer-contact .material-symbols-outlined {
    color: var(--color-text-highlight);
    font-size: 1.1rem;
    position: relative;
    top: 4px; /* Ajuste fino de alinhamento vertical */
}



/* --- 1. ESTRUTURA PRINCIPAL (HEADER E FOOTER) --- */

/* ----- Header Principal ----- */
.main-header-v8 {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: var(--color-white) !important;
}

    .main-header-v8 .navbar-nav .nav-link {
        font-weight: 500;
        font-size: 0.95rem;
        margin: 0 0.25rem;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-small);
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }

        .main-header-v8 .navbar-nav .nav-link:hover {
            background-color: rgba(0, 0, 0, 0.04);
            color: var(--color-text-primary);
        }

        .main-header-v8 .navbar-nav .nav-link.active {
            background-color: rgba(0, 123, 255, 0.08);
            color: var(--color-text-highlight);
            font-weight: 600;
        }

    .main-header-v8 .navbar-toggler {
        border: none;
    }

        .main-header-v8 .navbar-toggler:focus {
            box-shadow: none;
        }

.navbar-cta {
    border-radius: var(--border-radius-pill);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ----- Footer Principal ----- */
.footer-dark {
    background-color: var(--color-surface-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0 0;
    margin-top: 5rem;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--color-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    line-height: 1.6;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .footer-links a:hover {
        color: var(--color-white);
        padding-left: 5px;
    }

.footer-contact i {
    color: var(--color-text-highlight);
    font-size: 1.1rem;
}

.social-icons a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

    .social-icons a.social-icon:hover {
        background-color: var(--color-text-highlight);
        transform: translateY(-3px);
    }

.footer-bottom-bar {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-bottom-bar p {
        margin: 0;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.5);
    }

/* --- 2. COMPONENTES DE PÁGINA --- */

/* ----- Banner (Home) ----- */
.banner-section {
    padding-top: 4rem;
    display: flex;
    width: 100%;
}

.banner-section__text {
    width: 50%;
}

.banner-section__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
}

.banner-section__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

.banner-section__image-container {
    width: 50%;
}

.banner-section__image {
    width: 100%;
    height: auto;
}

/* ----- Cards de Informação (Home) ----- */
.info-cards-section {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 5%;
    flex-wrap: wrap;
}

.info-card {
    text-align: center;
}

/* ----- Navegação Secundária (Produtos / Home) ----- */
.secondary-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.secondary-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    max-width: 1140px;
}

.secondary-nav__item button {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-pill);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

    .secondary-nav__item button:not(.nav-active):hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        color: var(--color-text-primary);
    }

    .secondary-nav__item button.nav-active {
        background-color: var(--color-white);
        color: var(--color-text-highlight);
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
        transform: translateY(-2px);
    }

/* ----- Carrossel de Conteúdo (Produtos / Home) ----- */
.product-carousel {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 1rem;
    width: 100%;
    height: 320px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
}

    .product-carousel::-webkit-scrollbar {
        display: none;
    }

.product-carousel--center-if-few {
    justify-content: center;
}

.product-carousel__item {
    flex: 0 0 calc(100% - 40px);
    margin: 0 20px;
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-main);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    scroll-snap-align: center;
    /* A propriedade 'transition' foi removida daqui pois não há mais :hover */
}
/* A regra '.product-carousel__item:hover' foi removida */

.product-carousel__item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    max-width: 60%;
}

.product-carousel__item img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-carousel__item-title {
    font-size: var(--font-size-h2);
    margin-bottom: 10px;
    color: var(--color-surface-dark);
    font-weight: 700;
}

.product-carousel__item-subtitle {
    font-size: var(--font-size-p);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.product-carousel__item-icon {
    font-size: 6rem;
    color: var(--color-text-highlight);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.product-carousel__item-icon {
    font-size: 7rem; /* Aumentamos um pouco o tamanho */
    color: var(--color-text-highlight);
    flex-shrink: 0; /* Impede que o ícone seja esmagado */
    width: 180px; /* Define uma largura fixa para a coluna do ícone */
    text-align: center; /* Centraliza o ícone dentro de sua coluna */
}


/* ----- Layout de Formulário em Duas Colunas ----- */
.form-container {
    display: flex;
    flex-wrap: wrap;
    box-shadow: var(--shadow-main);
    border-radius: var(--border-radius-large);
    overflow: hidden;
}

.form-container__form-section,
.form-container__info-section {
    background-color: var(--color-white);
    padding: 2rem;
    box-sizing: border-box;
}

.form-container__form-section {
    width: 55%;
}

.form-container__info-section {
    width: 45%;
}

/* ----- Área de Upload (Drop Zone) ----- */
.drop-zone {
    border: 2px dashed var(--color-text-highlight);
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.drop-zone--over {
    background-color: rgba(0, 123, 255, 0.1);
}

.drop-zone__input {
    display: none;
}

/* --- 3. RESPONSIVIDADE (MEDIA QUERIES) --- */

/* ----- Telas de Tablet (max-width: 992px) ----- */
@media(max-width: 992px) {
    .banner-section__title {
        font-size: 2.5rem;
    }

    .form-container {
        flex-direction: column;
    }

    .form-container__form-section,
    .form-container__info-section {
        width: 100%;
    }
}

/* ----- Telas Mobile (max-width: 768px) ----- */
@media(max-width: 768px) {
    .banner-section {
        padding-top: 0;
        text-align: center;
    }

    .banner-section__text {
        width: 100%;
        padding:0 6rem;
        padding-top: 2rem;
        text-align: justify;
    }

    .banner-section__title {
        font-size: 1.8rem;
    }

    .banner-section__subtitle {
        font-size: 1rem;
    }

    .banner-section__image-container {
        display: none;
    }

    .banner-holder {
        background-size: 100% 75%;
        background-repeat: no-repeat;
    }

    .product-carousel {
        height: auto;
        padding: 10px 0;
    }

    .product-carousel__item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        flex: 0 0 90%;
    }

    .product-carousel__item-info {
        max-width: 100%;
        align-items: center;
        order: 2;
    }

    .product-carousel__item img {
        order: 1;
        max-width: 120px;
        max-height: 120px;
    }

    .product-carousel__item-title {
        font-size: var(--font-size-h3);
    }

    .product-carousel__item-subtitle {
        font-size: 0.95rem;
    }
}

/* --- 4. BOILERPLATE E CORREÇÕES --- */

/* ----- Boilerplate do Bootstrap ----- */
html {
    font-size: var(--font-size-small);
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: var(--font-size-base);
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ----- Correções Específicas ----- */
.main-header-v8 .nav-item.dropdown {
    position: relative;
}

.main-header-v8 .dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-hover);
    border: none;
    border-radius: var(--border-radius-small);
}
