/* General Styles */
:root {
    --primary-color: #FF6B6B; /* Coral/Vermelho Suave */
    --secondary-color: #4ECDC4; /* Verde Água */
    --accent-color: #FFE66D; /* Amarelo Vibrante */
    --dark-bg: #333333;
    --light-bg: #F9F9F9;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-color);
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--text-color-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flag-icon {
    width: 20px;
    height: auto;
    border: 1px solid #ccc; /* Add a slight border to flags */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn.primary:hover {
    background-color: #E65A5A; /* Slightly darker primary */
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.btn.secondary:hover {
    background-color: #3BB7B0; /* Slightly darker secondary */
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8)), url('hero-bg.jpg') no-repeat center center/cover;
    /* Adicione uma imagem de fundo hero-bg.jpg na pasta public_html */
    color: var(--text-color-light);
    text-align: center;
    padding: 100px 20px;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* Carousel Section */
.carousel-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--light-bg);
}

.carousel-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: var(--card-bg);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 450px; /* Fixed height for carousel images */
    object-fit: cover; /* Ensures images cover the area without distortion */
    flex-shrink: 0; /* Prevents images from shrinking */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.8em;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

/* Content Sections */
.content-section {
    padding: 80px 20px;
    text-align: center;
}

.content-section.light-bg {
    background-color: var(--light-bg);
}

.content-section.dark-bg {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.dark-bg h2 {
    color: var(--accent-color);
}

.content-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.info-grid, .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card, .step-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-bg .info-card, .dark-bg .step-card {
    background-color: #444444;
    color: var(--text-color-light);
}

.info-card:hover, .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.info-card h3, .step-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dark-bg .info-card h3, .dark-bg .step-card h3 {
    color: var(--accent-color);
}

.info-card i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.step-card .step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dark-bg .step-card .step-number {
    color: var(--accent-color);
}

.app-link, .merchant-link {
    margin-top: 40px;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    text-align: center;
}

#contactForm {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid var(--primary-color);
}

footer p {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--text-color-light);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        margin: 10px 0;
    }

    .content-section h2 {
        font-size: 2em;
    }

    .info-grid, .steps-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .logo {
        font-size: 1.5em;
    }

    header nav ul li {
        margin-left: 15px;
    }

    .carousel-slide img {
        height: 200px;
    }

    .carousel-nav {
        padding: 10px;
        font-size: 1.2em;
    }
}