/*
Theme Name: Nutriessencia - Portal Profissional
Theme URI: https://nutriessencia.com
Description: Tema child do Astra customizado para portal profissional de saúde e bem-estar. Design moderno, responsivo e otimizado para SEO. Compatível com Elementor.
Author: Equipe Nutriessencia
Author URI: https://nutriessencia.com
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: nutriessencia
Tags: saúde, bem-estar, nutrição, portal, profissional, responsivo, elementor

Nutriessencia - Nutrição clara, bem-estar na prática.
*/

/* ========================================
   PALETA DE CORES OFICIAL NUTRIESSENCIA
======================================== */

:root {
    /* Cores Principais */
    --verde-principal: #1F5E3B;
    --verde-secundario: #2E7D32;
    --verde-destaque: #22c55e;
    --verde-alternativo: #16a34a;
    
    /* Cores Neutras */
    --cinza-suave: #6b7280;
    --texto-principal: #1C1C1C;
    --fundo-claro: #F4F6F5;
    --branco-puro: #FFFFFF;
    
    /* Tipografia */
    --font-titulos: 'Poppins', sans-serif;
    --font-corpo: 'Inter', sans-serif;
    --font-menu: 'Poppins', sans-serif;
}

/* ========================================
   IMPORTAÇÃO DE FONTES GOOGLE
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ========================================
   RESET E BASE
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-corpo);
    line-height: 1.7;
    color: var(--texto-principal);
    background-color: var(--fundo-claro);
}

/* ========================================
   TIPOGRAFIA
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titulos);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--verde-principal);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

a {
    color: var(--verde-secundario);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--verde-destaque);
}

/* ========================================
   HEADER E NAVEGAÇÃO
======================================== */

.site-header {
    background-color: var(--branco-puro);
    border-bottom: 1px solid rgba(31, 94, 59, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Logo */
.site-title a,
.custom-logo-link {
    color: var(--verde-principal) !important;
    font-family: var(--font-titulos);
    font-weight: 700;
    font-size: 1.75rem;
}

.site-description {
    color: var(--cinza-suave);
    font-size: 0.9rem;
    font-style: italic;
}

/* Menu Principal - SEM QUEBRA DE LINHA */
.main-header-menu,
.ast-desktop-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.main-header-menu li,
.ast-desktop-menu li {
    margin: 0;
    padding: 0;
}

.main-header-menu a,
.ast-desktop-menu a {
    font-family: var(--font-menu);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--texto-principal) !important;
    padding: 1rem 1.2rem !important;
    display: block;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-header-menu a:hover,
.ast-desktop-menu a:hover,
.main-header-menu .current-menu-item a,
.ast-desktop-menu .current-menu-item a {
    color: var(--verde-principal) !important;
    border-bottom-color: var(--verde-destaque);
    background-color: rgba(34, 197, 94, 0.05);
}

/* Garantir que menu não quebre */
@media (min-width: 992px) {
    .main-header-bar-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .main-header-menu-toggle {
        display: none !important;
    }
}

/* ========================================
   HERO SECTION (HOMEPAGE)
======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-secundario) 100%);
    color: var(--branco-puro);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    color: var(--branco-puro);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ========================================
   CARDS DE CATEGORIAS
======================================== */

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.category-card {
    background: var(--branco-puro);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--verde-destaque);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.category-card h3 {
    color: var(--verde-principal);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--cinza-suave);
    font-size: 0.95rem;
}

/* ========================================
   POSTS / ARTIGOS
======================================== */

.post,
article {
    background: var(--branco-puro);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover,
article:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(31, 94, 59, 0.12);
}

.entry-title {
    margin-top: 0;
}

.entry-title a {
    color: var(--verde-principal);
}

.entry-title a:hover {
    color: var(--verde-destaque);
}

.entry-meta {
    color: var(--cinza-suave);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-meta a {
    color: var(--verde-secundario);
}

/* ========================================
   SIDEBAR
======================================== */

.sidebar,
.widget-area {
    background: transparent;
}

.widget {
    background: var(--branco-puro);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--verde-destaque);
}

.widget-title {
    color: var(--verde-principal);
    font-family: var(--font-titulos);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--fundo-claro);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.75rem;
    padding-left: 1.2rem;
    position: relative;
}

.widget li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--verde-destaque);
    font-weight: 700;
}

.widget a {
    color: var(--texto-principal);
    transition: all 0.3s ease;
}

.widget a:hover {
    color: var(--verde-destaque);
    padding-left: 0.5rem;
}

/* ========================================
   CATEGORIAS E TAGS
======================================== */

.cat-links a,
.tags-links a,
.tagcloud a {
    display: inline-block;
    background: var(--fundo-claro);
    color: var(--verde-principal);
    padding: 0.4rem 1rem;
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.875rem !important;
    font-weight: 500;
    border: 1px solid var(--verde-destaque);
    transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover,
.tagcloud a:hover {
    background: var(--verde-destaque);
    color: var(--branco-puro);
    transform: translateY(-2px);
}

/* ========================================
   BOXES ESPECIAIS (DISCLAIMER, FAQ, RESUMO)
======================================== */

.box-resumo,
.box-disclaimer,
.box-faq {
    background: var(--fundo-claro);
    border-left: 4px solid var(--verde-destaque);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.box-disclaimer {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.box-resumo h3,
.box-disclaimer h3,
.box-faq h3 {
    margin-top: 0;
    font-size: 1.125rem;
}

.box-resumo ul {
    margin-left: 1.5rem;
}

/* ========================================
   BOTÕES E CTAs
======================================== */

.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    background: var(--verde-principal);
    color: var(--branco-puro) !important;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-family: var(--font-titulos);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 94, 59, 0.3);
}

.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--verde-destaque);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* ========================================
   NEWSLETTER
======================================== */

.newsletter-widget {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-secundario) 100%);
    color: var(--branco-puro);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.newsletter-widget h3 {
    color: var(--branco-puro);
}

.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--branco-puro);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* ========================================
   RODAPÉ
======================================== */

.site-footer {
    background: var(--verde-principal);
    color: var(--branco-puro);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--branco-puro);
    border-bottom: 2px solid var(--verde-destaque);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.85);
}

.footer-widget a:hover {
    color: var(--verde-destaque);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

.site-info a {
    color: var(--verde-destaque);
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 991px) {
    /* Menu mobile */
    .main-header-menu,
    .ast-desktop-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-header-menu a,
    .ast-desktop-menu a {
        padding: 0.875rem 1rem !important;
        border-bottom: 1px solid var(--fundo-claro);
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ACESSIBILIDADE
======================================== */

a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--verde-destaque);
    outline-offset: 2px;
}

::selection {
    background: var(--verde-destaque);
    color: var(--branco-puro);
}

/* ========================================
   OTIMIZAÇÕES DE PERFORMANCE
======================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ========================================
   FIM DO CSS
======================================== */
