/* ==========================================================================
   1. VARIÁVEIS DE DESIGN E PALETA DE CORES (Identidade Artesam)
   ========================================================================== */
:root {
    --primary: #3abbd0;        /* Cor Predominante do Topo */
    --primary-dark: #00418f;   /* AZUL MARINHO CORPORATIVO: #00418f */
    --primary-hover: #002d63;  
    --turquoise: #3abbd0;      
    --secondary: #ffc107;      /* Amarelo Dourado para Alertas de Promoção */
    --dark: #212529;           
    --light: #f8f9fa;          
    --white: #ffffff;          
    --gray: #6c757d;           
    --border-color: #e9ecef;   
    --whatsapp: #25d366;       
    --banner-bg: #94d2ec;      /* COR DE FUNDO DOS BANNERS: #94d2ec */
}

/* ==========================================================================
   2. RESET GERAL E CONFIGURAÇÕES BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   3. CABEÇALHOS (HEADER GLOBAL & HEADER COMPACTO SUBPASTA)
   ========================================================================== */
header {
    background-color: var(--primary); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0; 
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- CABEÇALHO COMPACTO EXCLUSIVO DA SUBPASTA --- */
.header-subpasta {
    padding: 5px 0 !important;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-subpasta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-subpasta .brand-logo {
    height: 38px !important;
}

.header-subpasta .brand-title {
    font-size: 20px !important;
    margin: 0;
}

/* --- COMPONENTES INTERNOS DO LOGO --- */
.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    height: 65px;        
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 26px;     
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    line-height: 1;
    margin: 0;
}

.brand-title span {
    color: var(--white); 
    font-weight: 400;        
}

/* --- MENU DE NAVEGAÇÃO E SUBMENUS --- */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-weight: 700;
    color: var(--primary-dark); 
    font-size: 15px;
    transition: color 0.2s, border-color 0.2s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--white); 
    border-bottom: 2px solid var(--white);
}

.header-subpasta .nav-menu a {
    font-size: 14px !important;
    color: #333;
}

.header-subpasta .nav-menu a:hover {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-dark);
}

/* --- COMPORTAMENTO DROPDOWN DO SUBMENU --- */
.nav-menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border-radius: 4px;
    border-top: 3px solid var(--primary-dark);
    z-index: 2000;
}

.nav-menu .submenu li {
    width: 100%;
}

.nav-menu .submenu li a {
    display: block;
    padding: 10px 20px !important;
    color: #333333 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-align: left;
    border-bottom: none !important;
    transition: all 0.2s ease;
}

.nav-menu .submenu li a:hover {
    background-color: #f0fbfc;
    color: var(--primary-dark) !important;
    padding-left: 25px !important;
}

.nav-menu li:hover .submenu {
    display: block;
}

.has-submenu > a::after {
    content: " ▾";
    font-size: 11px;
    vertical-align: middle;
}

/* ==========================================================================
   4. BANNERS, COMPONENTES GERAIS E BOTÕES
   ========================================================================== */
.banner-compra-direta {
    background-color: #f0fbfc;
    border-bottom: 1px solid #3abbd0;
    padding: 12px 0;
    text-align: center;
    font-size: 14.5px;
    color: var(--primary-dark);
    font-weight: 600;
}

.banner-compra-direta a {
    color: #3abbd0;
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
    border-bottom: 2px solid #3abbd0;
    transition: all 0.2s ease;
}

.banner-compra-direta a:hover {
    color: #002d63;
    border-color: #002d63;
}

.promo-bar-inner {
    text-align: center;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 10px 0;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background-color: var(--primary-dark); 
    color: var(--white);
    padding: 12px 35px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 65, 143, 0.2);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. BANNER ROTATIVO (SLIDER)
   ========================================================================== */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: var(--banner-bg); 
    z-index: 5; 
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 99, 0.4); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 38px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: none !important;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 40 !important; 
    transition: background 0.3s;
    pointer-events: auto !important; 
}

.slider-btn:hover {
    background: var(--primary-dark) !important;
}
.prev { left: 20px; }
.next { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 40 !important; 
    pointer-events: auto !important;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white); 
    transform: scale(1.2);
}

/* ==========================================================================
   6. SEÇÃO DE PRODUTOS (GRID DINÂMICO DA HOME)
   ========================================================================== */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 45px;
    position: relative;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--turquoise); 
    margin: 10px auto 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    align-items: stretch; 
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-icon {
    font-size: 45px;
    margin-bottom: 15px;
    display: block;
    color: var(--turquoise); 
}

.product-card h3 {
    font-size: 19px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.product-card p {
    font-size: 14.5px;
    color: var(--gray);
}

.product-card.card-interactive {
    padding: 0; 
}

.product-card-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 35px 25px; 
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}

.product-card:hover {
    transform: translateY(-5px); 
    border-color: var(--turquoise); 
    box-shadow: 0 8px 22px rgba(58, 187, 208, 0.25); 
}

/* ==========================================================================
   7. SEÇÃO DE ORÇAMENTO E PADRONIZAÇÃO DE FORMULÁRIOS
   ========================================================================== */
.formulario-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-top: 25px;
    margin-bottom: 40px;
}

#orc {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 5px;
    line-height: 1.2;
}

.subtitulo-form {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-container {
    display: flex;
    gap: 40px;
}

.info-cell-modern {
    flex: 1;
}

.form-cell-modern {
    flex: 1;
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.atendimento-title {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.contact-info-list li {
    margin-bottom: 15px;
    font-size: 15.5px;
}

.contact-info-list strong {
    color: var(--primary-dark);
}

/* --- SISTEMA DE TABULAÇÃO DE INPUTS GRID/FLEX --- */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

form label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--dark);
    text-align: left;
}

/* --- ELEMENTOS DE FORMULÁRIO --- */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input#cep, 
form select,
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    color: #495057;
    transition: all 0.3s ease;
    background-color: var(--white);
    box-sizing: border-box;
    height: 48px;
}

form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

form input:focus, form select:focus, .form-control:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(0, 65, 143, 0.15);
}

.dica-campo {
    font-size: 13px;
    color: var(--gray);
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.4;
}

.about-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.about-box p {
    margin-bottom: 15px;
    font-size: 16.5px;
    color: #495057;
}

/* ==========================================================================
   8. CARDS INTERATIVOS (ESPECÍFICOS DE PRODUTOS/CORES)
   ========================================================================== */
.grade-impressao {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.grade-cores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.grade-impressao input[type="radio"],
.grade-cores input[type="radio"] {
    display: none !important;
}

.card-cor {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 8px;
    transition: all 0.2s ease;
    background: var(--white);
    box-sizing: border-box;
}

.card-cor:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #3abbd0;
}

.amostra-balao {
    width: 42px;
    height: 50px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    margin-bottom: 10px;
    position: relative;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.15), 2px 4px 6px rgba(0,0,0,0.1);
}

.amostra-balao::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 10px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(25deg);
}

.nome-cor {
    font-size: 12px;
    color: #495057;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
}

.grade-cores input[type="radio"]:checked + .card-cor {
    border: 2px solid #3abbd0;
    background-color: #f0fbfc;
    box-shadow: 0 4px 10px rgba(58, 187, 208, 0.15);
}

.grade-cores input[type="radio"]:checked + .card-cor .nome-cor {
    color: var(--primary-dark);
}

/* --- INTERATIVIDADE DOS CARTÕES DE TIPO DE IMPRESSÃO --- */
.card-impressao {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.card-impressao:hover {
    border-color: #3abbd0;
    background-color: #f8fdfd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.grade-impressao input[type="radio"]:checked + .card-impressao {
    border: 2px solid #3abbd0;
    background-color: #f0fbfc;
    box-shadow: 0 4px 12px rgba(58, 187, 208, 0.15);
}

.icone-svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    stroke: #adb5bd;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.grade-impressao input[type="radio"]:checked + .card-impressao .icone-svg {
    stroke: var(--primary-dark);
    stroke-width: 2;
    filter: drop-shadow(0 2px 4px rgba(0,65,143,0.2));
}

.card-texto {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
}

.topo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.destaque-lados {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detalhe-cores {
    font-size: 13px;
    color: var(--gray);
}

.tag-logo {
    display: inline-block;
    background-color: #f1f3f5;
    color: #495057;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.grade-impressao input[type="radio"]:checked + .card-impressao .tag-logo {
    background-color: #3abbd0;
    color: var(--white);
}

/* --- BOTÃO ENVIAR ORÇAMENTO DA ARTESAM --- */
#butao {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    height: 54px;
}

#butao:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.spinner {
    margin: 20px auto;
    width: 45px;
    height: 45px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#status-endereco {
    font-size: 13.5px;
    color: #27ae60;
    margin-top: 7px;
    display: block;
    font-weight: 600;
    text-align: left;
}
.erro-cep { color: #c0392b !important; }
.alerta-cep { color: #e67e22 !important; }

/* ==========================================================================
   9. RODAPÉ E BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
footer {
    background-color: var(--dark);
    color: #adb5bd;
    padding: 50px 0 20px 0;
    font-size: 14px;
    border-top: 4px solid var(--primary-dark);
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-block h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 16px;
    border-left: 3px solid var(--turquoise); 
    padding-left: 8px;
}

.footer-block p, .footer-block li {
    margin-bottom: 10px;
    font-size: 13.5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    font-size: 12.5px;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp);
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: bold;
    z-index: 1001;
    font-size: 15px;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   10. REGRAS DE RESPONSIVIDADE INTERNACIONAIS (MOBILE & TABLET BLINDADO)
   ========================================================================== */
@media (max-width: 768px) {
    .header-flex, 
    .header-subpasta .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column; /* Alinha o menu principal em lista vertical no celular */
        width: 100%;
        text-align: center;
        gap: 15px;
        padding: 10px 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    /* CORREÇÃO DO SUBMENU AMPLIADO: Força ele a abrir espaço na vertical */
    .nav-menu .submenu {
        position: static !important; /* Remove a flutuação por cima da tela */
        width: 100% !important;
        box-shadow: none !important;
        background-color: rgba(0, 0, 0, 0.03) !important; /* Cria um fundo sutil cinza para destacar as opções */
        padding: 10px 0 !important;
        margin-top: 8px !important;
        border-top: none !important;
        border-left: 4px solid var(--primary-dark) !important; /* Linha guia azul na esquerda */
        border-radius: 0 !important;
    }
    
    .nav-menu .submenu li a {
        text-align: center !important; /* Centraliza os links internos para o dedão no celular */
        padding: 12px 20px !important; /* Aumenta a área de clique */
    }
    
    /* Indicador visual de menu aberto */
    .nav-menu li.ativo > a {
        color: var(--white) !important;
    }
    
    .brand-title { font-size: 22px; }
    .brand-logo { height: 50px; }
    .slider-container { height: 300px; }
    .slide-content h2 { font-size: 24px; }
    .slide-content p { font-size: 14px; }
    
    .products-grid, 
    .contact-container, 
    .footer-grid-modern {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 25px;
    }
    
    .product-card {
        margin-bottom: 10px;
        padding: 35px 25px !important; 
    }
    
    .formulario-wrapper { padding: 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-group { width: 100%; min-width: 100%; }
}
/* Remove o selo flutuante do reCAPTCHA para evitar o bug de rolagem ao validar */
.grecaptcha-badge { 
    visibility: hidden !important; 
    opacity: 0 !important; 
    pointer-events: none !important;
}