/* ===========================================
   Portal do Frei IPTV - Design System
   Palette: Light Blue + Beige Gold + Soft Gray
   =========================================== */

/* --- CSS Variables --- */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #d4a843;
    --secondary-light: #f0d78c;
    --accent-color: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    --gradient-gold: linear-gradient(135deg, #d4a843 0%, #f0d78c 100%);
    --gradient-hero: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(212,168,67,0.06) 100%);
    --bg-body: #f8f7f4;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --bg-section-alt: #f2f1ec;
    --bg-section-blue: #eef4ff;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #7a7a8e;
    --text-heading: #1a1a2e;
    --border-color: rgba(37, 99, 235, 0.12);
    --border-light: #e5e5e5;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.12);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 25px;
    --radius-xl: 30px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-heading); line-height: 1.2; }
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title { font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.15rem; max-width: 650px; margin: 0 auto 3rem; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: var(--radius-lg); font-weight: 600;
    font-size: 1rem; text-align: center; cursor: pointer; transition: all 0.3s ease;
    border: none; text-decoration: none;
}
.btn-primary {
    background: var(--gradient-primary); color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35); color: #fff; }
.btn-secondary {
    background: var(--gradient-gold); color: var(--text-heading);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.2);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3); color: var(--text-heading); }
.btn-outline {
    background: transparent; color: var(--primary-color);
    border: 2px solid var(--border-color); padding: 12px 28px;
}
.btn-outline:hover { background: var(--bg-card-hover); border-color: var(--primary-color); }
.btn-large { padding: 18px 40px; font-size: 1.15rem; }
.btn-full { width: 100%; }

/* --- Glass Card (Light) --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* --- Header / Navbar --- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.nav-brand a { text-decoration: none; }
.logo-placeholder {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-menu { display: flex; gap: 8px; align-items: center; }
.nav-link {
    color: var(--text-body); font-size: 0.9rem; font-weight: 500; padding: 8px 14px;
    border-radius: var(--radius-sm); transition: all 0.3s ease;
}
.nav-link:hover { color: var(--primary-color); background: rgba(37, 99, 235, 0.06); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span {
    display: block; width: 25px; height: 2px; background: var(--text-heading);
    margin: 5px 0; transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px; position: relative; overflow: hidden;
    background: var(--bg-white);
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(212,168,67,0.04) 0%, transparent 60%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 3.2rem; font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; color: var(--text-heading); }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { text-align: center; }
.hero-image img { max-width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.hero-badge {
    display: inline-block; background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; color: var(--primary-color);
    margin-bottom: 20px; font-weight: 600;
}

/* --- Micro Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-fade-in { animation: fadeInUp 0.6s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* --- Benefits Section --- */
.benefits-section { padding: 5rem 0; background: var(--bg-section-alt); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.benefit-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 2rem; text-align: center;
    transition: all 0.3s ease; box-shadow: var(--shadow-card);
}
.benefit-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: var(--shadow-hover); }
.benefit-icon {
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-section-blue); font-size: 2rem;
}
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--text-heading); }
.benefit-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Canais Section --- */
.canais-section { padding: 5rem 0; background: var(--bg-white); }
.canais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.canal-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem; text-align: center;
    transition: all 0.3s ease; cursor: pointer; box-shadow: var(--shadow-card);
}
.canal-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: var(--shadow-hover); }
.canal-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; }
.canal-card h3 { font-size: 1rem; font-weight: 600; color: var(--text-heading); }

/* --- Teste Grátis Section --- */
.teste-section { padding: 5rem 0; background: var(--bg-section-blue); }
.teste-content {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 3rem; text-align: center;
    max-width: 800px; margin: 0 auto; box-shadow: var(--shadow-soft);
}
.teste-content h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text-heading); }
.teste-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.7; }

/* --- Recursos Section --- */
.recursos-section { padding: 5rem 0; background: var(--bg-white); }
.recursos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.recurso-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 2rem;
    transition: all 0.3s ease; box-shadow: var(--shadow-card);
}
.recurso-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: var(--shadow-hover); }
.recurso-icon {
    width: 60px; height: 60px; border-radius: 50%; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-section-blue); transition: all 0.3s ease;
}
.recurso-card:hover .recurso-icon { transform: scale(1.1); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15); }
.recurso-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-heading); }
.recurso-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* --- Planos Section --- */
.planos-section { padding: 5rem 0; background: var(--bg-section-alt); }
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.plano-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center;
    position: relative; transition: all 0.3s ease; box-shadow: var(--shadow-card);
}
.plano-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.plano-card.destaque { border: 2px solid var(--primary-color); box-shadow: var(--shadow-hover); }
.plano-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-primary); color: #fff; padding: 6px 20px;
    border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}
.plano-card h3 { font-size: 1.4rem; margin-bottom: 1rem; margin-top: 0.5rem; color: var(--text-heading); }
.plano-preco { font-size: 2.8rem; font-weight: 900; margin-bottom: 0.5rem; color: var(--primary-color); }
.plano-preco span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plano-features { margin: 1.5rem 0; text-align: left; }
.plano-features li {
    padding: 8px 0; color: var(--text-body); font-size: 0.95rem;
    display: flex; align-items: center; gap: 10px;
}
.plano-features li::before { content: '✓'; color: var(--primary-color); font-weight: 700; }

/* --- Depoimentos Section --- */
.depoimentos-section { padding: 5rem 0; background: var(--bg-white); }
.depoimentos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.depoimento-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-card);
}
.depoimento-stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 1rem; }
.depoimento-text { color: var(--text-body); font-style: italic; line-height: 1.7; margin-bottom: 1.5rem; }
.depoimento-author { font-weight: 600; color: var(--text-heading); }
.depoimento-role { font-size: 0.85rem; color: var(--text-muted); }

/* --- FAQ Section --- */
.faq-section { padding: 5rem 0; background: var(--bg-section-blue); }
.faq-list { max-width: 800px; margin: 3rem auto 0; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden;
    box-shadow: var(--shadow-card);
}
.faq-question {
    padding: 1.2rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 1.05rem; color: var(--text-heading); transition: background 0.3s ease;
}
.faq-question:hover { background: rgba(37, 99, 235, 0.03); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary-color); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.5rem 1.2rem; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }

/* --- CTA Final Section --- */
.cta-section {
    padding: 5rem 0; text-align: center;
    background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(212,168,67,0.04) 100%);
}
.cta-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-heading); }
.cta-section p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }

/* --- Footer --- */
.footer { background: #1a1a2e; padding: 4rem 0 2rem; border-top: 1px solid var(--border-light); }
.footer-content { display: grid; grid-template-columns: 1.5fr 2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: #9494b8; margin-top: 1rem; line-height: 1.6; }
.footer-logo-placeholder {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #fff;
}
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-column h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-column ul li { margin-bottom: 0.5rem; }
.footer-column ul li a { color: #9494b8; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-column ul li a:hover { color: var(--primary-light); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p { color: #9494b8; font-size: 0.9rem; }
.footer-social a { color: #9494b8; transition: color 0.3s ease; }
.footer-social a:hover { color: #25d366; }
.footer-social svg { width: 28px; height: 28px; }

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px; z-index: 999;
    width: 60px; height: 60px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Breadcrumb --- */
.breadcrumb { padding: 10px 0; }
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--primary-color); }
.breadcrumb-separator { color: var(--text-muted); }
.breadcrumb-current { color: var(--primary-color); font-weight: 500; }

/* --- Content Pages (Políticas, Blog) --- */
.main-content { padding: 2rem 0 4rem; }
.content-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.content-main { min-width: 0; }
.content-section { margin-bottom: 2rem; }
.content-section h1 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--text-heading); }
.content-section h2 { font-size: 1.6rem; margin-bottom: 1rem; margin-top: 2rem; color: var(--primary-color); }
.content-section h3 { font-size: 1.3rem; margin-bottom: 0.8rem; margin-top: 1.5rem; color: var(--text-heading); }
.content-section p { color: var(--text-body); line-height: 1.8; margin-bottom: 1rem; }
.content-section ul, .content-section ol { margin: 1rem 0; padding-left: 0; }
.content-section li { color: var(--text-body); padding: 6px 0; display: flex; align-items: flex-start; gap: 10px; }
.numbered-list { counter-reset: item; }
.numbered-list li { counter-increment: item; }
.numbered-list li::before { content: counter(item) "."; color: var(--primary-color); font-weight: 700; min-width: 20px; }

/* --- Highlight/Info Boxes --- */
.highlight-box, .success-box, .warning-box, .info-box, .contact-cta {
    padding: 1.5rem; border-radius: var(--radius-md); margin: 1.5rem 0;
}
.highlight-box { background: rgba(37, 99, 235, 0.04); border: 1px solid rgba(37, 99, 235, 0.15); }
.highlight-box h3 { color: var(--primary-color); }
.success-box { background: rgba(34, 197, 94, 0.04); border: 1px solid rgba(34, 197, 94, 0.15); }
.success-box h3 { color: #16a34a; }
.warning-box { background: rgba(245, 158, 11, 0.04); border: 1px solid rgba(245, 158, 11, 0.15); }
.warning-box h3 { color: #d97706; }
.info-box { background: rgba(59, 130, 246, 0.04); border: 1px solid rgba(59, 130, 246, 0.15); }
.info-box h3 { color: #2563eb; }
.contact-cta { background: rgba(37, 99, 235, 0.04); border: 1px solid rgba(37, 99, 235, 0.15); text-align: center; }
.contact-cta h3 { color: var(--primary-color); margin-bottom: 0.5rem; }
.contact-cta a {
    display: inline-block; margin: 0.5rem; padding: 10px 24px;
    border-radius: var(--radius-sm); background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color); font-weight: 600; transition: all 0.3s ease;
}
.contact-cta a:hover { background: rgba(37, 99, 235, 0.15); }

/* --- Tables --- */
.table-container { overflow-x: auto; margin: 1.5rem 0; }
.policy-table { width: 100%; border-collapse: collapse; }
.policy-table th, .policy-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
.policy-table th { background: rgba(37, 99, 235, 0.04); color: var(--primary-color); font-weight: 600; }
.policy-table td { color: var(--text-body); }

/* --- Sidebar Banner --- */
.sidebar { position: sticky; top: 100px; }
.banner-promocional {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 2rem; text-align: center;
    box-shadow: var(--shadow-card);
}
.banner-image { margin-bottom: 1rem; }
.banner-img-3d { border-radius: var(--radius-sm); transition: transform 0.3s ease; }
.banner-img-3d:hover { transform: scale(1.02); }
.banner-title { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.banner-text { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.banner-cta {
    display: inline-block; padding: 12px 24px;
    background: var(--gradient-primary); color: #fff; font-weight: 600;
    border-radius: var(--radius-lg); transition: all 0.3s ease;
}
.banner-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3); color: #fff; }

/* --- Cancellation Reasons --- */
.cancellation-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.reason-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); padding: 1.2rem; box-shadow: var(--shadow-card);
}
.reason-card h4 { margin-bottom: 0.5rem; font-size: 1rem; color: var(--text-heading); }
.reason-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* --- Page Header --- */
.page-header h1 { font-size: 2.8rem; margin-bottom: 1rem; }

/* --- SVG Icons --- */
.check-icon, .x-icon, .warning-icon, .info-icon, .dollar-icon, .shield-icon {
    width: 24px; height: 24px; min-width: 24px;
    display: inline-block; vertical-align: middle; margin-right: 10px;
}
.check-icon { stroke: var(--primary-color); }
.x-icon { stroke: #ef4444; }
.warning-icon { stroke: #f59e0b; }
.info-icon, .dollar-icon, .shield-icon { stroke: #3b82f6; }

/* --- Blog Cards --- */
.blog-card:hover { transform: translateY(-5px) !important; box-shadow: var(--shadow-hover) !important; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255, 255, 255, 0.98); flex-direction: column;
        justify-content: center; align-items: center; gap: 15px;
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding: 130px 0 60px; }
    .hero-text h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .benefits-grid { grid-template-columns: 1fr; }
    .planos-grid { grid-template-columns: 1fr; }
    .recursos-grid { grid-template-columns: 1fr; }
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-top: 2rem; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .page-header h1 { font-size: 2rem; }
}
