/* ==========================================================================
   Base Styles and Variables
   ========================================================================== */
:root {
    --primary-color: #ff4c30;
    --secondary-color: #1f2b3e;
    --accent-color: #03a9f4;
    --text-color: #333;
    --light-text: #fff;
    --dark-text: #1a1a1a;
    --light-bg: #f8f9fa;
    --dark-bg: #1f2b3e;
    --gray-bg: #f0f0f0;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ajuste para rolagem suave e offset para links de âncora */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px; /* Altura do cabeçalho mais uma margem de segurança */
}

@media (max-width: 576px) {
    html {
        scroll-padding-top: 120px; /* Ajuste para telas menores */
    }
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: 100px 0 80px;
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #e04328;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-menu {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    padding: 12px 40px !important;
    border-radius: var(--border-radius);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    height: 160px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: var(--transition);
}

.logo {
    transition: var(--transition);
}

.logo img {
    height: 150px;
    width: 150px;
    object-fit: contain;
    transition: var(--transition);
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    transition: var(--transition);
    margin-right: 10px;
}

.mobile-menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-text);
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out, background-color 0.3s;
}

/* Estado ativo do ícone (X) */
.mobile-menu-icon.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-icon.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
}

.menu li a {
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.menu li:last-child a.btn-menu {
    padding: 12px 40px;
    border-radius: var(--border-radius);
    margin-left: 10px;
}

.menu li a:not(.btn-menu):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu li a:not(.btn-menu):hover:after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--light-text);
    position: relative;
    margin-top: 160px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1.animated-heading {
    opacity: 0;
    animation: fadeInUp 1.2s forwards 0.5s;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.hero-content h1.animated-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes revealText {
    0% {
        height: 100%;
    }
    50% {
        height: 100%;
    }
    100% {
        height: 0%;
    }
}

.hero-content h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    animation: pulsate 2s ease-in-out infinite alternate;
}

@keyframes pulsate {
    0% {
        text-shadow: 0 0 5px rgba(255, 76, 48, 0.7);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 76, 48, 0.9), 0 0 30px rgba(255, 76, 48, 0.3);
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

/* ==========================================================================
   Structure/Gallery Section
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    color: var(--light-text);
    transition: var(--transition);
}

.overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.testimonial-content {
    padding: 30px;
    font-style: italic;
    position: relative;
}

.testimonial-content:before {
    content: "\201C";
    font-size: 5rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(0, 0, 0, 0.1);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--gray-bg);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* ==========================================================================
   Plans Section
   ========================================================================== */
.plans {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.plan-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--dark-text);
    text-align: center;
    transition: var(--transition);
    position: relative;
    padding: 40px 30px;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.plan-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ribbon:before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    border-left: 10px solid transparent;
    border-top: 10px solid #c53820;
}

.plan-header {
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 5px;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: #888;
}

.plan-features {
    margin-bottom: 30px;
}

.plan-features ul {
    text-align: left;
    padding: 0 10px;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.plan-features i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.plan-features .not-included i {
    color: #dc3545;
}

/* ==========================================================================
   Registration Section
   ========================================================================== */
.registration-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.registration-info {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--primary-color), #e04328);
    color: var(--light-text);
    padding: 40px;
}

.registration-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.benefits-list {
    margin: 30px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.benefits-list i {
    margin-right: 10px;
    color: #fff;
}

.cta-timer {
    margin-top: 40px;
    text-align: center;
}

.cta-timer p {
    font-weight: 500;
    margin-bottom: 15px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 10px;
    min-width: 65px;
}

.timer-item span:first-child {
    font-size: 1.8rem;
    font-weight: 700;
}

.timer-item span:last-child {
    font-size: 0.8rem;
}

.registration-form {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.registration-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-disclaimer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-media {
    margin-top: 40px;
}

.social-media h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 350px;
}

.contact-map iframe {
    border-radius: var(--border-radius);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #131c2a;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 2;
    min-width: 200px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-links,
.footer-legal {
    flex: 1;
    min-width: 150px;
}

footer h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #aaa;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 100;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* ==========================================================================
   Animation Styles
   ========================================================================== */
.benefit-card, .gallery-item, .testimonial, .plan-card {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.benefit-card.animate, .gallery-item.animate, .testimonial.animate, .plan-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Delay sequencial para os cards */
.benefit-card:nth-child(1).animate { transition-delay: 0.1s; }
.benefit-card:nth-child(2).animate { transition-delay: 0.2s; }
.benefit-card:nth-child(3).animate { transition-delay: 0.3s; }
.benefit-card:nth-child(4).animate { transition-delay: 0.4s; }

/* Delay para galeria */
.gallery-item:nth-child(1).animate { transition-delay: 0.1s; }
.gallery-item:nth-child(2).animate { transition-delay: 0.2s; }
.gallery-item:nth-child(3).animate { transition-delay: 0.3s; }
.gallery-item:nth-child(4).animate { transition-delay: 0.4s; }

/* Delay para depoimentos */
.testimonial:nth-child(1).animate { transition-delay: 0.1s; }
.testimonial:nth-child(2).animate { transition-delay: 0.2s; }
.testimonial:nth-child(3).animate { transition-delay: 0.3s; }

/* Delay para planos */
.plan-card:nth-child(1).animate { transition-delay: 0.1s; }
.plan-card:nth-child(2).animate { transition-delay: 0.25s; }
.plan-card:nth-child(3).animate { transition-delay: 0.4s; }

/* Animação para header quando rola a página */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled .navbar {
    height: 80px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 60px;
    width: 60px;
    transition: var(--transition);
}

@media (max-width: 576px) {
    header.scrolled .navbar {
        height: 70px;
    }
    
    header.scrolled .logo img {
        height: 40px;
        width: 40px;
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-icon {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 160px; /* Será sobreposto por JS quando header tiver classe .scrolled */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        max-height: 500px;
        animation: fadeIn 0.5s ease forwards;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .menu li {
        width: 100%;
    }
    
    .menu li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }
      .menu li a.btn-menu {
        border-radius: 4px !important;
        margin: 10px 20px;
        display: block;
        text-align: center;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .benefits-grid,
    .testimonials,
    .plans {
        gap: 20px;
    }
    
    .testimonial,
    .plan-card {
        width: 100%;
        max-width: none;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    .navbar {
        height: 120px;
    }
    
    .logo img {
        height: 100px;
        width: 100px;
    }
    
    .menu {
        top: 120px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
      .hero {
        padding: 100px 0 60px;
        margin-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .benefit-card,
    .testimonial,
    .plan-card {
        padding: 20px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .timer-item {
        min-width: 45px;
    }
    
    .registration-info,
    .registration-form {
        padding: 30px 20px;
    }
}