/* Usando variáveis para a paleta de cores */
:root {
    --marine-blue: #24273A;
    --deep-teal: #4D7493;
    --light-gray: #98A1AA;
    --white-text: #FDFDFD;
    --background-light: #FFFFFF;
    --error-red: #D93025;
}

/* Reset e Estilos Gerais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--marine-blue);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Componente: Botão (BEM Block) --- */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn--primary { /* BEM Modifier */
    background-color: var(--deep-teal);
    color: var(--white-text);
}
.btn--primary:hover {
    background-color: #3b5a70;
    transform: translateY(-2px);
}
.btn--secondary { /* BEM Modifier */
    background-color: var(--marine-blue);
    color: var(--white-text);
}
.btn--secondary:hover {
    background-color: #1a1c29;
    transform: translateY(-2px);
}

/* --- Componente: Navbar --- */
.navbar {
    background-color: var(--background-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.navbar__container { /* BEM Element */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar__logo { /* BEM Element */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--marine-blue);
    text-decoration: none;
}
.navbar__links { /* BEM Element */
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar__link { /* BEM Element */
    text-decoration: none;
    color: var(--marine-blue);
    font-weight: 600;
    padding: 8px 12px;
    transition: color 0.3s ease;
}
.navbar__link:hover {
    color: var(--deep-teal);
}

/* --- Componente: Hero --- */
.hero {
    background-color: var(--marine-blue);
    color: var(--white-text);
    text-align: center;
    padding: 100px 0;
}
.hero__title { /* BEM Element */
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white-text);
}
.hero__subtitle { /* BEM Element */
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

/* --- Layout de Seção Genérica --- */
.section {
    padding: 80px 0;
}
.section--dark { /* BEM Modifier */
    background-color: #f4f7f6;
}
.section__title { /* BEM Element */
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.section__description { /* BEM Element */
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 48px auto;
    text-align: center;
}

/* --- Componente: Product Grid & Card --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}
.product-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.product-card__title { /* BEM Element */
    color: var(--deep-teal);
    margin-bottom: 10px;
}

/* --- Componente: Formulário --- */
.form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.form__group { /* BEM Element */
    margin-bottom: 20px;
}
.form__label { /* BEM Element */
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
}
.form__input { /* BEM Element */
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.form__input--error { /* BEM Modifier for error state */
    border-color: var(--error-red);
}
.form__error-message { /* BEM Element */
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 1em;
}
.form__button { /* BEM Element */
    display: block;
    margin: 20px auto 0 auto;
}

/* --- Componente: Footer --- */
.footer {
    background-color: var(--marine-blue);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}
.footer__text { /* BEM Element */
    color: var(--light-gray);
}


/*
=====================================================
== NOVO CÓDIGO ADICIONADO PARA O PASSO 4 ==
=====================================================
*/

/* --- Estilos para Mensagens do Formulário --- */
#form-message {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    display: none; /* A mensagem começa escondida */
}

/* Estilo para quando a mensagem for de SUCESSO */
#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block; /* O JavaScript tornará a mensagem visível */
}

/* Estilo para quando a mensagem for de ERRO */
#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block; /* O JavaScript tornará a mensagem visível */
}