/*
Theme Name: Vendas Chat IA
Theme URI: https://github.com/vendas-chat-ia
Author: Vendas Chat IA
Author URI: https://github.com/vendas-chat-ia
Description: Tema oficial para o plugin Vendas Chat IA. Layout limpo e responsivo, otimizado para lojas locais com chat de IA, vitrine de produtos, área do cliente e programa de fidelidade.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: vendas-chat-ia-theme
Tags: e-commerce, chat, whatsapp, fidelidade, pix, motoboy, responsivo
*/

/* ══════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background: #f8fffe;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--vcia-primary, #16a34a); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════════════════════ */
:root {
    --vcia-primary:       #16a34a;
    --vcia-primary-dark:  #15803d;
    --vcia-primary-light: #dcfce7;
    --vcia-text:          #1e293b;
    --vcia-muted:         #64748b;
    --vcia-border:        #e2e8f0;
    --vcia-bg:            #f8fffe;
    --vcia-surface:       #ffffff;
    --vcia-radius:        16px;
    --vcia-shadow:        0 4px 24px rgba(0,0,0,.08);
    --vcia-max-width:     1200px;
    --vcia-header-h:      70px;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════ */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.container { max-width: var(--vcia-max-width); margin: 0 auto; padding: 0 20px; }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
    background: var(--vcia-surface);
    border-bottom: 1px solid var(--vcia-border);
    height: var(--vcia-header-h);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
    display: flex; align-items: center; height: 100%;
    gap: 20px;
}

.site-logo a {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800; color: var(--vcia-primary);
    text-decoration: none;
}

.site-logo img { height: 42px; width: auto; border-radius: 8px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a {
    padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
    color: var(--vcia-text); text-decoration: none; transition: all .15s;
}
.site-nav a:hover, .site-nav .current-menu-item a {
    background: var(--vcia-primary-light);
    color: var(--vcia-primary);
    text-decoration: none;
}

.header-cta {
    background: var(--vcia-primary); color: #fff !important;
    padding: 9px 20px !important; border-radius: 10px !important;
}
.header-cta:hover { background: var(--vcia-primary-dark) !important; }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--vcia-text); font-size: 22px;
}

/* ══════════════════════════════════════════════════════════
   STORE OPEN/CLOSED BANNER
══════════════════════════════════════════════════════════ */
.store-status-bar {
    background: var(--vcia-primary); color: #fff;
    text-align: center; padding: 6px 20px; font-size: 13px; font-weight: 600;
}
.store-status-bar.closed { background: #dc2626; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.vcia-hero {
    background: linear-gradient(135deg, var(--vcia-primary) 0%, #0d9488 100%);
    color: #fff; padding: 64px 20px; text-align: center;
}
.vcia-hero h1 { font-size: clamp(28px,5vw,52px); font-weight: 900; margin-bottom: 16px; line-height: 1.15; }
.vcia-hero p  { font-size: 18px; opacity: .9; max-width: 560px; margin: 0 auto 28px; }
.vcia-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.vcia-btn-hero {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 700;
    text-decoration: none; transition: all .2s; border: 2px solid transparent;
}
.vcia-btn-hero.primary   { background: #fff; color: var(--vcia-primary); }
.vcia-btn-hero.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.vcia-btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════════════════ */
.vcia-features { padding: 60px 20px; }
.vcia-features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; }
.vcia-feature-card {
    background: var(--vcia-surface); border: 1px solid var(--vcia-border);
    border-radius: var(--vcia-radius); padding: 24px 20px; text-align: center;
    box-shadow: var(--vcia-shadow); transition: transform .2s, box-shadow .2s;
}
.vcia-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.vcia-feature-icon { font-size: 40px; margin-bottom: 12px; }
.vcia-feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.vcia-feature-card p  { font-size: 13px; color: var(--vcia-muted); }

/* ══════════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════════ */
.site-main { padding: 32px 0; }
.entry-content { max-width: 900px; margin: 0 auto; }

/* WordPress alignment utilities */
.alignleft  { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { text-align: center; margin: 20px auto; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--vcia-text); color: rgba(255,255,255,.7);
    padding: 40px 20px 20px;
}
.footer-inner {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-col p  { font-size: 13px; line-height: 1.7; }
.footer-col a  { color: rgba(255,255,255,.6); font-size: 13px; display: block; margin-bottom: 6px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
    text-align: center; font-size: 12px;
}
.footer-bottom a { color: var(--vcia-primary-light); }

.powered-by { margin-top: 8px; font-size: 12px; opacity: .5; }

/* WhatsApp float button */
.vcia-whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4); text-decoration: none;
    transition: transform .2s;
}
.vcia-whatsapp-float:hover { transform: scale(1.1); text-decoration: none; color: #fff; }

/* ══════════════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════════════ */
.page-header {
    background: linear-gradient(135deg, var(--vcia-primary) 0%, #0d9488 60%);
    color: #fff; padding: 40px 20px; margin-bottom: 32px;
}
.page-header h1 { font-size: clamp(22px,4vw,36px); font-weight: 800; margin: 0; }

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════════════ */
.entry-content h1,
.entry-content h2,
.entry-content h3 { color: var(--vcia-text); margin: 20px 0 10px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════
   404 / ERROR
══════════════════════════════════════════════════════════ */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .error-icon { font-size: 72px; margin-bottom: 20px; }
.error-404 h1 { font-size: 28px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-nav.open { display: block; position: absolute; top: var(--vcia-header-h); left: 0; right: 0; background: var(--vcia-surface); border-bottom: 1px solid var(--vcia-border); padding: 12px; }
    .site-nav.open ul { flex-direction: column; }
    .menu-toggle { display: block; margin-left: auto; }
    .vcia-hero { padding: 40px 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}
