/* Variáveis de Cores */
:root {
    --primary-color: #FF8C00; /* Laranja */
    --secondary-color: #DC143C; /* Vermelho */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #ddd;
    --accent-color: #FFD700; /* Um amarelo dourado para pequenos destaques, se desejar */
}

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

html {
    scroll-behavior: smooth; /* Habilita o scroll suave para âncoras */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contêiner Centralizador */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; }

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

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

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Cabeçalho Principal */
.main-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.main-header .logo img {
    height: 40px; /* Ajuste conforme o tamanho do seu logo */
    width: auto;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

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

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

.main-nav .nav-list a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.main-nav .menu-toggle {
    display: none; /* Esconde o botão de menu em telas maiores */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-dark);
    cursor: pointer;
}

/* Seções da Página */
.page-section {
    padding: 80px 0;
    text-align: center;
}

.page-section:nth-of-type(even) { /* Aplica fundo claro a seções pares para contraste */
    background-color: var(--bg-light);
}

.page-section h2 {
    margin-bottom: 50px;
    font-size: 2.5em;
}

/* Seção Hero */
.hero-section {
    background: linear-gradient(to right, rgba(255, 140, 0, 0.1), rgba(220, 20, 60, 0.1)), url('../img/hero-bg.jpg') no-repeat center center/cover; /* Adicione uma imagem de fundo sutil */
    padding: 80px 0;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    min-height: 80vh; /* Altura maior para a primeira seção */
}

.hero-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-content .btn {
    margin-right: 15px;
    margin-bottom: 10px; /* Para empilhar em mobile */
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Seção Sobre */
.about-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Seção de Recursos */
.features-section h2 {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-item .icon-large {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
}

/* Seção Call to Action (Final) */
.call-to-action-section {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.call-to-action-section h2 {
    color: var(--bg-white);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.call-to-action-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action-section .btn-primary {
    background-color: var(--bg-white);
    color: var(--secondary-color);
    border-color: var(--bg-white);
}

.call-to-action-section .btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Seção de Contato */
.contact-section {
    background-color: var(--bg-white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 60px; /* Adiciona margem inferior para separar do info */
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left; /* Alinha o texto do formulário à esquerda */
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.contact-info .icon-small {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Rodapé */
.main-footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 50px 0 20px;
    font-size: 0.95em;
}

.main-footer h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.main-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

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

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

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.social-links a {
    color: var(--bg-white);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

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

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Acessibilidade: Foco em elementos interativos */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Media Queries para Responsividade */

/* Telas menores que 992px (Tablets e alguns laptops) */
@media (max-width: 992px) {
    .hero-section .container,
    .about-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image,
    .about-text, .about-image {
        max-width: 100%;
    }

    .hero-image, .about-image {
        margin-top: 40px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Telas menores que 768px (Tablets pequenos e Smartphones) */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .main-header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        width: 100%;
        order: 3; /* Coloca a navegação abaixo do logo e do toggle */
    }

    .main-nav .menu-toggle {
        display: block; /* Mostra o botão de menu */
        margin-left: auto; /* Alinha à direita */
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        display: none; /* Esconde o menu por padrão */
        background-color: var(--bg-white);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        gap: 15px;
    }

    .main-nav .nav-list.active {
        display: flex; /* Mostra o menu quando ativo */
    }

    .main-nav .nav-list li {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 10px 0;
    }

    .main-nav .nav-list a.btn {
        margin: 10px auto;
        width: 80%;
    }

    .hero-section,
    .page-section {
        padding: 60px 0;
    }

    .hero-content .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
    }

    .social-links {
        margin-top: 20px;
    }
}

/* Telas menores que 480px (Smartphones) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 1em;
    }

    .contact-form {
        padding: 25px;
    }
}
