/*
Theme Name: Cão Junto - Astra Child
Theme URI: https://caojuntoadestramento.com.br
Description: Tema filho do Astra para Cão Junto Adestramento, totalmente compatível com Elementor. Mantém a identidade visual do site original.
Author: NEVIT
Author URI: https://caojuntoadestramento.com.br
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cao-junto-child
Tags: dog-training, alphaville, elementor-ready, custom-colors
*/

/* ============================================
   VARIÁVEIS CSS - IDENTIDADE VISUAL CÃO JUNTO
   ============================================ */
:root {
    --cor-primaria: #013b60;      /* Azul logo */
    --cor-secundaria: #ed7b01;    /* Laranja logo */
    --cor-accent: #2bc60c;        /* Verde CTA */
    --cor-accent-2: #ffea00;      /* Amarelo */
    --cor-accent-3: #00D3FF;      /* Azul claro */
    --cor-alt: #057915;           /* Verde alternativo */
}

/* ============================================
   RESET E ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    min-width: 380px;
}

section {
    scroll-margin-top: 30px;
}

.container,
.ast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: "Gobold Lowplus", sans-serif;
    font-weight: normal;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn,
.elementor-button,
.wp-block-button__link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover,
.elementor-button:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary,
.elementor-button-primary {
    background-color: var(--cor-accent);
    color: #fff;
}

.btn-secondary,
.elementor-button-secondary {
    background-color: var(--cor-secundaria);
    color: #FFF;
}

.btn-success,
.elementor-button-success {
    background-color: var(--cor-accent);
    color: #fff;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* ============================================
   HEADER CUSTOMIZADO
   ============================================ */
.site-header,
.main-header-bar {
    background-color: var(--cor-accent-2) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.site-header .site-branding img {
    max-width: 240px;
}

.main-header-menu a,
.ast-header-menu a {
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.main-header-menu a:after,
.ast-header-menu a:after {
    content: "";
    width: 0%;
    height: 4px;
    border-radius: 5px;
    background: var(--cor-secundaria);
    position: absolute;
    bottom: -5px;
    left: -5%;
    transform: skewY(-2deg);
    transition: all .25s;
}

.main-header-menu a:hover,
.ast-header-menu a:hover {
    color: var(--cor-secundaria);
}

.main-header-menu a:hover:after,
.ast-header-menu a:hover:after {
    width: 110%;
}

/* ============================================
   FOOTER CUSTOMIZADO
   ============================================ */
.site-footer,
.footer {
    background-color: var(--cor-primaria);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.site-footer a,
.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover,
.footer a:hover {
    color: var(--cor-accent-2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background-color: var(--cor-primaria);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Adicione a imagem de fundo via Elementor em:
   Seção > Estilo > Imagem de fundo 
   Ou use: /cao-junto-astra-child/assets/img/bg-hero.webp */

.hero-section:before {
    content: " ";
    background: var(--cor-secundaria);
    position: absolute;
    width: 100%;
    top: 0;
    height: 5px;
    left: 0;
    z-index: 1;
}

.hero-title {
    font-size: clamp(32px, 5vw, 55px);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.hero-title .highlight {
    color: var(--cor-accent-3);
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--cor-accent-3);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* ============================================
   ELEMENTOR CUSTOMIZAÇÕES
   ============================================ */
.elementor-section.section-primary {
    background-color: var(--cor-primaria);
    color: #fff;
}

.elementor-section.section-secondary {
    background-color: var(--cor-secundaria);
    color: #fff;
}

.elementor-section.section-accent {
    background-color: var(--cor-accent);
    color: #fff;
}

.elementor-widget-heading .elementor-heading-title {
    font-family: "Gobold Lowplus", sans-serif;
}

/* ============================================
   CARDS E BOXES
   ============================================ */
.card,
.elementor-widget-image-box {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.elementor-widget-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
.elementor-field-textual {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
.elementor-field-textual:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--cor-primaria);
}

.text-secondary {
    color: var(--cor-secundaria);
}

.bg-primary {
    background-color: var(--cor-primaria);
}

.bg-secondary {
    background-color: var(--cor-secundaria);
}

.bg-accent {
    background-color: var(--cor-accent);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    /* Mostrar botão hamburguer */
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    /* Header ajustado para mobile */
    .header-content,
    .site-header .site-header-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    /* Logo menor em mobile */
    .site-header .site-branding img,
    .logo {
        max-width: 180px;
    }
    
    /* Ocultar navegação padrão em mobile */
    .nav,
    .main-header-menu,
    .ast-header-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--cor-accent-2);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    /* Menu mobile aberto */
    .nav.is-open,
    .main-header-menu.is-open,
    .ast-header-menu.is-open {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    /* Links do menu mobile */
    .nav.is-open a,
    .main-header-menu.is-open a,
    .ast-header-menu.is-open a {
        font-size: 20px;
        padding: 15px;
        width: 100%;
        text-align: center;
    }
    
    /* Bloquear scroll quando menu aberto */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ajustes do header */
    .site-header,
    .main-header-bar {
        padding: 10px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Botão CTA no header (se houver) */
    .header .btn {
        display: none;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--cor-accent-3);
    outline-offset: 2px;
}

/* ============================================
   MENU MOBILE (HAMBURGUER)
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--cor-primaria);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Animação do hamburguer quando ativo */
.mobile-menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* ============================================
   IMPRESSÃO
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }
}
