/*
Theme Name: WPMU Form 
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A mobile-first WordPress theme for displaying WPMU forms.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: WPMU-form-theme
*/

/* Base mobile-first - já com tamanhos aumentados */
body {
    font-size: 24px; /* Tamanho de fonte base maior */
    line-height: 1.0;
}

/* Container principal */
.container {
    width: 98%;

}

/* Elementos de formulário base */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 12px;
    margin: 10px 0;
    font-size: 22px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

button,
input[type="submit"] {
    padding: 16px 24px;
    font-size: 24px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}



/* Logo styles */
.site-branding {
    padding: 15px 0;
    margin-bottom: 10px;
}

.custom-logo {
    max-height: 80px;
    width: auto;
}

/* Alinhamentos do logo */
.logo-left {
    text-align: left;
}

.logo-center {
    text-align: center;
}

.logo-right {
    text-align: right;
}


/* Estrutura do Header */
/* Estrutura do Header */
.header-container {
    position: relative;
    width: 100%;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.site-branding {
    flex-grow: 1;
    text-align: center;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

/* Menu Hamburguer */
.menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 101;
}

.hamburger-box {
    width: 34px;
    height: 28px;
    display: inline-block;
    position: relative;
    background-color: #f1f1f1;  
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Menu Principal */
.main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    z-index: 100;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.main-navigation.active {
    right: 0;
}

#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    margin-bottom: 15px;
}

#primary-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#primary-menu a:hover {
    background: #f5f5f5;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Itens do Menu */
#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    margin-bottom: 15px;
}

#primary-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

/* Hamburguer Icon */
.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    bottom: -6px;
}

/* Transformação em X */
.menu-toggle.active .hamburger-inner {
    background: transparent;
}

.menu-toggle.active .hamburger-inner::before {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .hamburger-inner::after {
    transform: rotate(-45deg) translate(4px, -4px);
}


#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    margin-bottom: 15px;
}

#primary-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#primary-menu a:hover {
    background: #f5f5f5;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    margin-bottom: 15px;
}

#primary-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#primary-menu a:hover {
    background: #f5f5f5;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}




/* Suavizar a transição do ícone */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Mudar cor do ícone quando hover */
.menu-toggle:hover .hamburger-inner,
.menu-toggle:hover .hamburger-inner::before,
.menu-toggle:hover .hamburger-inner::after {
    background-color: #0073aa;
}

/* Ajustar posição do X quando menu está aberto */
.menu-toggle.active {
    position: fixed;
    right: 20px;
    top: 20px;
}


/* ============================================== */
/* CORREÇÕES PARA O MENU MOBILE */
/* ============================================== */

/* Reset para evitar duplicações */
.main-navigation,
#primary-menu,
.menu-overlay {
    box-sizing: border-box;
}

/* Container principal ajustado */
.container {
    width: 98%;
    max-width: 100%;
    padding: 0 1%;
    margin: 0 auto;
}

/* Menu Mobile - Correções Essenciais */
@media (max-width: 767px) {
    /* Garante que o menu fique totalmente fora da tela quando fechado */
    .main-navigation {
        right: -100vw; /* Usando viewport width para garantir */
        width: 85vw; /* 85% da largura da tela */
        max-width: 300px; /* Largura máxima */
        transform: translateX(0);
        transition: transform 0.4s ease, right 0.4s ease;
    }
    
    /* Menu aberto - posição correta */
    .main-navigation.active {
        right: 0;
        transform: translateX(0);
    }
    
    /* Overlay mais escuro para melhor contraste */
    .menu-overlay {
        background: rgba(0,0,0,0.7);
    }
    
    /* Botão hambúrguer mais visível */
    .menu-toggle {
        position: relative;
        z-index: 1001;
        background: #f8f8f8;
        border-radius: 4px;
        padding: 12px;
    }
    
    /* Ajustes nos itens do menu */
    #primary-menu {
        padding-top: 20px;
    }
    
    #primary-menu li {
        margin-bottom: 10px;
    }
    
    #primary-menu a {
        font-size: 18px;
        padding: 14px 20px;
    }
    
    /* Posição fixa do botão quando menu aberto */
    .menu-toggle.active {
        right: calc(15vw + 10px); /* 15vw do menu + margem */
        top: 20px;
        background: #fff;
    }
    
    /* Garante que não ultrapasse a largura em telas muito pequenas */
    @media (max-width: 360px) {
        .main-navigation {
            width: 90vw;
        }
        
        .menu-toggle.active {
            right: calc(10vw + 10px);
        }
    }
}

/* ============================================== */
/* MELHORIAS PARA O MENU PRINCIPAL */
/* ============================================== */

/* Header mais compacto em mobile */
@media (max-width: 767px) {
    .header-content {
        padding: 10px 15px;
    }
    
    .custom-logo {
        max-height: 50px;
    }
}

/* Transição suave para o menu */
.main-navigation {
    will-change: transform;
    backface-visibility: hidden;
}

/* Prevenir scroll quando menu aberto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


