/* Base styles and variables */
:root {
    --primary-color: #009c3b; /* Brazilian green */
    --secondary-color: #ffdf00; /* Brazilian yellow */
    --accent-color: #002776; /* Brazilian blue */
    --light-color: #ffffff;
    --dark-color: #212121;
    --gray-color: #f5f5f5;
    --gray-dark: #777777;
    --font-primary: 'Montserrat', 'Segoe UI', sans-serif;
    --font-secondary: 'Roboto', Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.4rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header h2 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.section-header p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

/* Wave background */
.wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.05;
}

.wave1 {
    background: radial-gradient(ellipse at center, var(--primary-color) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    animation: drift 15s infinite linear;
}

.wave2 {
    background: radial-gradient(ellipse at center, var(--secondary-color) 0%, transparent 70%);
    bottom: -50%;
    right: -50%;
    animation: drift 20s infinite linear reverse;
}

@keyframes drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Main wrapper */
.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.brand {
    display: flex;
    align-items: center;
}

.brand-icon {
    margin-right: 10px;
}

.brand-name {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin: 0 15px;
}

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

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

.nav-list li a:hover {
    color: var(--primary-color);
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color) !important;
    padding: 8px 20px !important;
    border-radius: 30px;
}

.nav-cta:hover::after {
    display: none;
}

/* Hero Section */
.hero-block {
    padding-top: 80px;
    padding-bottom: 100px;
}

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

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.headline {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.headline .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.headline .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    opacity: 0.3;
    z-index: -1;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

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

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon {
    transform: rotate(5deg);
    transition: var(--transition);
}

.hexagon:hover {
    transform: rotate(0deg);
}

/* Features Block with Circle Layout */
.features-block {
    background-color: var(--gray-color);
    position: relative;
}

.features-circle {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
}

.circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.feature-item {
    position: absolute;
    width: 220px;
    padding: 25px;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.item1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.item2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.item3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.item4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.feature-icon {
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.feature-item p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* How It Works - Tabs Section */
.how-it-works {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                linear-gradient(45deg, var(--primary-color) 15%, transparent 15%, transparent 85%, var(--secondary-color) 85%);
    padding-bottom: 120px;
}

.process-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-button {
    padding: 12px 25px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid var(--gray-color);
    margin: 0 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-dark);
    transition: var(--transition);
}

.tab-button.active {
    color: var(--accent-color);
    border-color: var(--secondary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.step-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.step-card {
    flex: 1;
    padding: 30px 20px;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.step-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.cta-container {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.faq-block {
    background-color: var(--gray-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.faq-card {
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.question {
    padding: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--accent-color);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-card.active .answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-card.active .toggle-icon {
    transform: rotate(45deg);
}

/* Footer */
.site-footer {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-branding {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    margin-right: 20px;
}

.footer-text h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.keyword-list li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .headline {
        font-size: 2.5rem;
    }
    
    .hero-block .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-circle {
        width: 350px;
        height: 350px;
    }
    
    .feature-item {
        width: 180px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        width: 100%;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 300px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-list li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .nav-list li a {
        display: block;
        padding: 10px 0;
    }
    
    .features-circle {
        width: 100%;
        height: auto;
    }
    
    .feature-item {
        position: static;
        width: 100%;
        transform: none !important;
        margin-bottom: 20px;
    }
    
    .circle-center {
        display: none;
    }
    
    .step-cards {
        flex-direction: column;
    }
    
    .step-card {
        margin-bottom: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .headline {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}
