/*
Theme Name: Ton Parceiro Pro
Theme URI: https://ton.com.br
Description: Tema WordPress profissional para Ton Parceiro
Version: 1.2.0
Author: Ton Parceiro
Author URI: https://ton.com.br
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ton-parceiro-pro
Domain Path: /languages
*/

:root {
    --primary: #00A651;
    --primary-dark: #008C42;
    --secondary: #FFD700;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background: #063f27;
    color: var(--white);
    padding: 0.35rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 5.25rem;
}

.brand-link { display: inline-flex; align-items: center; justify-content: center; }
.brand-logo { width: 150px; height: 76px; object-fit: contain; display: block; }

/* Banner Promocional */
.promo-banner { position: relative; width: 100%; background: #7DFF00; overflow: hidden; }
.promo-banner-image { display: block; width: 100%; height: auto; }

.promo-hotspot {
    position: absolute;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border-radius: 999px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.promo-hotspot:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0, 72, 36, 0.92);
}

.promo-hotspot-primary { left: 2.1%; top: 70.4%; width: 14.9%; height: 10.7%; }
.promo-hotspot-details { left: 19.2%; top: 70.2%; width: 12.8%; height: 11%; }
.promo-mobile-actions { display: none; }

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--secondary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Profile Selection */
.profile-section { padding: 4rem 2rem; background: var(--bg-light); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 3rem; color: var(--primary); }

.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font: inherit;
    color: inherit;
}

.profile-card:hover, .profile-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 166, 81, 0.18);
    transform: translateY(-5px);
}

.profile-card.is-selected { background: #f5fff9; }
.profile-card h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 0.5rem; }

.profile-section.profile-attention { animation: profile-pulse 1.1s ease-out 1; }
@keyframes profile-pulse {
    0% { box-shadow: inset 0 0 0 0 rgba(0, 166, 81, 0); }
    45% { box-shadow: inset 0 0 0 12px rgba(0, 166, 81, 0.24); }
    100% { box-shadow: inset 0 0 0 0 rgba(0, 166, 81, 0); }
}

/* Plans Section */
.plans-section { padding: 4rem 2rem; }
.plans-tabs { display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem; }

.tab-btn {
    padding: 0.75rem 2rem;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active { background: var(--primary); color: var(--white); }
.tab-btn:disabled { cursor: not-allowed; opacity: 0.45; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card { background: var(--white); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.product-image { width: 100%; height: 250px; background: linear-gradient(135deg, #f7fffa 0%, #e3f8eb 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.product-image img { display: block; width: 100%; height: 190px; object-fit: contain; }
.product-image .model-label { font-size: 0.9rem; font-weight: 700; color: var(--primary-dark); margin-top: 0.25rem; }
.product-content { padding: 1.5rem; }
.product-name { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.product-plan { display: inline-block; background: var(--primary); color: var(--white); padding: 0.25rem 0.75rem; border-radius: 0.25rem; font-size: 0.875rem; margin-bottom: 1rem; }
.product-tax { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 1rem 0; }
.product-description { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }

/* Benefits Section */
.benefits-section { padding: 4rem 2rem; background: var(--bg-light); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.benefit-card { background: var(--white); padding: 2rem; border-radius: 0.75rem; text-align: center; }
.benefit-icon { font-size: 3rem; margin-bottom: 1rem; }
.benefit-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.benefit-card p { color: var(--text-light); font-size: 0.95rem; }

/* FAQ Section */
.faq-section { padding: 4rem 2rem; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 1rem; border-radius: 0.75rem; overflow: hidden; border: 1px solid #ddd; }
.faq-question { padding: 1.5rem; background: var(--bg-light); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--primary); transition: background 0.3s; }
.faq-question:hover { background: #e8e8e8; }
.faq-answer { padding: 1.5rem; display: none; color: var(--text-light); border-top: 1px solid #ddd; }
.faq-item.active .faq-answer { display: block; }

/* Pronta Entrega Section */
.pronta-entrega { padding: 4rem 2rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); text-align: center; }
.pronta-entrega h2 { font-size: 2rem; margin-bottom: 1rem; }
.pronta-entrega p { font-size: 1.1rem; margin-bottom: 2rem; }
.whatsapp-btn { background: #25D366; color: var(--white); padding: 1rem 2rem; border-radius: 0.5rem; text-decoration: none; font-weight: 600; display: inline-block; transition: background 0.3s; }
.whatsapp-btn:hover { background: #1FA855; }

/* Footer */
footer { background: var(--text-dark); color: var(--white); text-align: center; padding: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .promo-hotspot { display: none; }
    .promo-mobile-actions { display: flex; gap: 0.75rem; justify-content: center; align-items: center; padding: 1rem; background: #7DFF00; }
    .promo-mobile-primary, .promo-mobile-details { font: inherit; font-weight: 700; border-radius: 0.7rem; padding: 0.8rem 1rem; cursor: pointer; }
    .promo-mobile-primary { background: #064126; color: var(--white); border: 2px solid #064126; }
    .promo-mobile-details { color: #064126; background: transparent; border: 2px solid #064126; }
    .header-container { min-height: 4.6rem; padding: 0 1rem; }
    .brand-logo { width: 126px; height: 64px; }
    .plans-tabs { flex-direction: column; gap: 1rem; }
}
