/* Variables */
:root {
    --primary: #009c3b; /* Brazilian green */
    --secondary: #002776; /* Brazilian blue */
    --accent: #ffdf00; /* Brazilian yellow */
    --dark: #1a1a1a;
    --light: #ffffff;
    --text: #333333;
    --text-light: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --accent-gradient: linear-gradient(135deg, var(--accent), #ffa500);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Background Pattern */
.background-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23009c3b' fill-opacity='0.03' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,186.7C960,192,1056,224,1152,218.7C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
}

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

.logo {
    width: 160px;
}

.logo-svg {
    width: 100%;
    height: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: 500;
    fill: var(--primary);
}

.logo-text-bold {
    font-weight: 700;
    fill: var(--secondary);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: width 0.3s;
}

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

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

/* Menu Toggle for Mobile */
#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    z-index: 1001;
}

.menu-button span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-button span:nth-child(1) {
    top: 0;
}

.menu-button span:nth-child(2) {
    top: 9px;
}

.menu-button span:nth-child(3) {
    top: 18px;
}

#menu-toggle:checked ~ .menu-button span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

#menu-toggle:checked ~ .menu-button span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .menu-button span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background-color: #f8fbf8;
    position: relative;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary);
}

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

.text-highlight::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 223, 0, 0.3);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text);
    max-width: 550px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(0, 156, 59, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.9rem;
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pulsate {
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 156, 59, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 156, 59, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 156, 59, 0);
    }
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 350px;
    height: auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 39, 118, 0.1);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text);
    opacity: 0.85;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: #f0f8f3;
    position: relative;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 156, 59, 0.1);
}

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

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
    font-size: 1.2rem;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.step p {
    color: var(--text);
    margin-bottom: 20px;
}

.step-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    margin: 0 auto;
}

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

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: #f9fafb;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

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

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text);
    position: relative;
    padding-left: 25px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -15px;
    font-size: 50px;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.author-name {
    font-weight: 600;
    color: var(--secondary);
}

.author-location {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
}

.testimonial-rating {
    margin-top: 15px;
    color: var(--accent);
    font-size: 1.2rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #f0f8f3;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text);
    opacity: 0.85;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    color: var(--light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background: var(--accent);
    color: var(--secondary);
    font-weight: 700;
}

.cta-section .cta-button:hover {
    background: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 350px;
}

.footer-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-legal a {
    color: var(--light);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 10px;
}

.keywords {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.7rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .menu-button {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    #menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        width: 100%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
}
