/*
Theme Name: FoxNode Theme
Theme URI: https://foxnode.com
Author: Seu Nome/Empresa
Description: Tema WordPress premium e moderno para a empresa de hospedagem FoxNode.
Version: 2.3
License: GNU General Public License v2 or later
Tags: hosting, technology, responsive, modern, orange, dark-blue
*/

:root {
    --primary-color: #E8A85B; /* Laranja Fox */
    --primary-dark: #D6934A; /* Laranja para o Hover/Gradiente */
    --secondary-color: #0A192F; /* Azul Escuro Node */
    --secondary-light: #152a4d; /* Azul um pouco mais claro para contraste */
    --text-color: #333333;
    --text-light: #a0aec0; /* Cor de texto claro para fundos escuros */
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --font-family: 'Inter', sans-serif;
    --success-color: #28a745;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 80px; /* Compensa o espaço do header fixo */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
}

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

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 168, 91, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(232, 168, 91, 0.6);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
    color: var(--white);
}

/* Header Fixo e Animado */
header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--primary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

header.scrolled .logo img {
    max-height: 40px;
}

.main-menu ul {
    list-style: none;
    display: flex;
}

.main-menu ul li {
    margin-left: 30px;
}

.main-menu ul li a {
    color: var(--secondary-color);
    font-weight: 600;
}

.main-menu ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, var(--secondary-light) 0%, var(--secondary-color) 70%);
    padding: 30px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 2.7rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    max-width: 550px;
    opacity: 0.85;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(232, 168, 91, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Separador Tecnológico */
.section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, rgba(232, 168, 91, 0.3) 50%, var(--secondary-color) 100%);
    position: relative;
    z-index: 5;
    background-color: var(--secondary-color); 
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color); 
    border-radius: 10px;
}

/* === FEATURES SECTION === */
.features-section {
    padding: 80px 0 140px; /* Espaço inferior para a onda */
    text-align: center;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 168, 91, 0.05) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-item {
    padding: 40px 35px;
    background: linear-gradient(145deg, var(--secondary-light), var(--secondary-color));
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(232, 168, 91, 0.1);
    border-color: rgba(232, 168, 91, 0.3);
}

.feature-icon-wrapper {
    margin-bottom: 25px;
    display: inline-block;
}

.feature-icon-svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 5px 15px rgba(232, 168, 91, 0.3));
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-svg {
    transform: scale(1.1);
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* === DIVISOR EM ONDA (CORRIGIDO) === */
.wave-divider {
    position: absolute;
    bottom: -2px; /* Margem negativa leve para garantir que não haja linhas 1px de falha */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 5px);
    height: 70px; /* Altura da onda */
}

.wave-divider .shape-fill {
    fill: var(--light-bg); /* Puxa o cinza exato da seção de planos */
}


/* Toggle Switch de Preços */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--secondary-color);
}

.discount-badge {
    background-color: var(--success-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: bold;
}

.toggle-switch {
    width: 64px;
    height: 34px;
    background-color: #ccc;
    border-radius: 34px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-slider {
    width: 26px;
    height: 26px;
    background-color: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-switch.active {
    background-color: var(--primary-color);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0 100px;
    background-color: var(--light-bg);
    text-align: center;
}

.pricing-section h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-plan {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; 
}

.pricing-plan:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.pricing-plan.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
    z-index: 1;
    position: relative;
    box-shadow: 0 10px 40px rgba(232, 168, 91, 0.15);
}

.pricing-plan.popular:hover {
    transform: scale(1.05);
}

.pricing-plan.popular::before {
    content: 'Mais Escolhido';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(232, 168, 91, 0.3);
}

.plan-header {
    border-bottom: 1px solid var(--light-bg);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.plan-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.plan-price .amount {
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -1px;
}

.plan-price .period {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
}

.billing-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    min-height: 20px; 
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 1; 
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
    color: #444;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Botões de Preço */
.pricing-plan .btn {
    width: 100%;
    margin-top: auto; 
}
.pricing-plan:not(.popular) .btn {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid #e0e0e0;
    box-shadow: none;
}
.pricing-plan:not(.popular) .btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Footer Premium */
footer {
    background-color: var(--secondary-color);
    border-top: 4px solid var(--primary-color); 
    background-image: radial-gradient(circle at top center, rgba(232, 168, 91, 0.05) 0%, transparent 70%);
    color: var(--text-light);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-widget p {
    color: var(--text-light);
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--text-light);
    transition: all 0.3s ease;
    display: inline-block; 
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        text-align: center;
        order: 2;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    .main-menu ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
    .main-menu ul li {
        margin: 10px 0;
        margin-left: 0;
    }
    .pricing-plan.popular {
        transform: scale(1);
    }
    .pricing-plan.popular:hover {
        transform: scale(1.02);
    }
    .hero-buttons {
        flex-direction: column;
    }
    .features-section {
        padding: 60px 0 100px;
    }
}