/*
Theme Name: CaixaCerta
Theme URI: https://caixacerta.cc
Author: Grupo Cuanon
Author URI: https://caixacerta.cc
Description: Tema oficial CaixaCerta — gestão completa para o comércio local em São Tomé e Príncipe.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: caixacerta
*/

/* ══ VARIABLES ══════════════════════════════════════════════ */
:root {
    --bg:          #050208;
    --surface:     #0e0a16;
    --purple:      #7C3AED;
    --purple-glow: rgba(124, 58, 237, 0.4);
    --amber:       #F59E0B;
    --amber-glow:  rgba(245, 158, 11, 0.4);
    --green:       #22C55E;
    --blue:        #3B82F6;
    --red:         #EF4444;
    --text:        #F8FAFC;
    --muted:       #94A3B8;
    --border:      rgba(255, 255, 255, 0.08);
    --glass:       rgba(255, 255, 255, 0.03);
    --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══ RESET ══════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ══ GLOW DECORATIONS ════════════════════════════════════════ */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}
.glow-1 { width: 500px; height: 500px; background: var(--purple-glow); top: -250px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: var(--amber-glow);  top: 500px;  right: -100px; }
.glow-3 { width: 600px; height: 600px; background: var(--purple-glow); bottom: -300px; left: 50%; transform: translateX(-50%); }

/* ══ NAVBAR ═════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 2, 8, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo-icon { font-size: 28px; }
.logo-text {
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ══ BUTTONS ════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--purple), #9333ea);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--glass);
    border-color: var(--purple);
}
.btn-lg    { padding: 16px 32px; font-size: 17px; }
.full-width { width: 100%; }

/* ══ HERO ════════════════════════════════════════════════════ */
.hero {
    padding: 180px 0 100px;
    position: relative;
}
.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.badge-new {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--purple), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 19px;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }
.hero-stats   { display: flex; gap: 40px; }
.stat-item strong { display: block; font-size: 24px; color: var(--text); }
.stat-item span   { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.phone-mockup-wrapper { position: relative; width: 100%; }
.phone-mock {
    width: 100%;
    height: auto;
    border-radius: 40px;
    position: relative;
    z-index: 2;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
    background: rgba(255, 255, 255, 0.05);
}
.phone-mockup-wrapper:hover .phone-mock { transform: rotate(0deg) scale(1.02); }
.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    z-index: 1;
}

/* ══ SECTIONS SHARED ════════════════════════════════════════ */
.section { padding: 100px 0; position: relative; }
.section-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple);
    margin-bottom: 16px;
}
.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 60px;
}

/* ══ PAIN GRID ══════════════════════════════════════════════ */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pain-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
}
.pain-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.02);
}
.pain-icon { font-size: 40px; display: block; margin-bottom: 20px; }
.pain-card h3 { font-size: 20px; margin-bottom: 12px; }
.pain-card p  { color: var(--muted); font-size: 15px; }

/* ══ FEATURES GRID ══════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition);
}
.feature-card:hover {
    border-color: var(--purple);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.feature-card p  { color: var(--muted); font-size: 15px; }
.feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}
.feature-icon-box.purple { background: rgba(124, 58, 237, 0.1); color: var(--purple); border: 1px solid rgba(124, 58, 237, 0.2); }
.feature-icon-box.amber  { background: rgba(245, 158, 11,  0.1); color: var(--amber);  border: 1px solid rgba(245, 158, 11,  0.2); }
.feature-icon-box.green  { background: rgba(34,  197, 94,  0.1); color: var(--green);  border: 1px solid rgba(34,  197, 94,  0.2); }
.feature-icon-box.blue   { background: rgba(59,  130, 246, 0.1); color: var(--blue);   border: 1px solid rgba(59,  130, 246, 0.2); }
.feature-icon-box.red    { background: rgba(239, 68,  68,  0.1); color: var(--red);    border: 1px solid rgba(239, 68,  68,  0.2); }
.feature-icon-box.surface{ background: rgba(255, 255, 255, 0.05); color: var(--text);  border: 1px solid rgba(255, 255, 255, 0.1); }

/* ══ DASHBOARD PREVIEW ══════════════════════════════════════ */
.dashboard-preview-container {
    margin-top: 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}
.dashboard-text h3 { font-size: 32px; margin-bottom: 20px; }
.dashboard-text p  { color: var(--muted); font-size: 18px; }

/* ══ PRICING TOGGLE ════════════════════════════════════════ */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}
.pricing-toggle-wrapper .view-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--muted);
    transition: var(--transition);
    cursor: pointer;
}
.pricing-toggle-wrapper .view-label.active { color: var(--text); }
.discount-badge-global {
    display: inline-block;
    background: var(--green);
    color: #000;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    margin-left: 6px;
    vertical-align: middle;
}
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--purple); border-color: var(--purple); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* ══ PRICING GRID ══════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 28px;
    position: relative;
    transition: var(--transition);
}
.price-card.featured {
    background: rgba(124, 58, 237, 0.05);
    border: 2px solid var(--purple);
    transform: scale(1.05);
}
.price-featured-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.discount-label {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--green);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 900;
}
.price-header h3    { font-size: 20px; color: var(--muted); margin-bottom: 20px; }
.price-value        { font-size: 48px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.price-value .currency { font-size: 18px; color: var(--muted); }
.price-header p     { font-size: 14px; color: var(--muted); margin-bottom: 32px; min-height: 20px; }
.price-list         { margin-bottom: 40px; }
.price-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}
.price-list li::before { content: "✓"; color: var(--green); font-weight: 900; flex-shrink: 0; }

/* ══ FAQ ════════════════════════════════════════════════════ */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}
.faq-question {
    padding: 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}
.faq-question:hover { background: var(--glass); }
.faq-question .icon { font-size: 22px; color: var(--purple); transition: transform 0.3s; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 24px 24px;
    color: var(--muted);
    font-size: 15px;
    display: none;
}
.faq-item.active .faq-answer { display: block; }

/* ══ FOOTER ════════════════════════════════════════════════ */
.footer {
    padding: 100px 0 0;
    background: #020104;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}
.footer-info p { margin-top: 20px; color: var(--muted); font-size: 16px; max-width: 300px; }
.footer h4 { margin-bottom: 24px; font-size: 18px; }
.footer-links a,
.footer-contact p {
    display: block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* ══ ANIMATIONS ════════════════════════════════════════════ */
.shadow-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(124, 58, 237, 0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0   rgba(124, 58, 237, 0); }
}

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text-area { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 48px; }
    .hero-image-area { margin-top: 40px; }
    .pricing-grid, .features-grid, .pain-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: scale(1); }
    .dashboard-preview-container { grid-template-columns: 1fr; padding: 40px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .hero-title { font-size: 36px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-stats { justify-content: center; }
    .section-title { font-size: 28px; }
    .footer-content { grid-template-columns: 1fr; }
}
