:root {
    --navy: #0a192f;
    --gold: #c29b40;
    --light-gray: #f4f4f4;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: #333; }

h1, h2, h3, .logo { font-family: 'Montserrat', sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: var(--navy); }
.center-text { text-align: center; max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.gray-bg { background: var(--light-gray); }

/* Navigation */
header { background: var(--navy); color: white; padding: 20px 0; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-weight: 700; font-size: 1.4rem; letter-spacing: 2px; }
.logo span { color: var(--gold); }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }
nav ul li a { color: white; text-decoration: none; font-size: 0.8rem; font-weight: 700; }

/* --- Brand Identity / Logo Styles --- */

.brand-group {
    display: flex;
    align-items: center; /* Alinha o texto verticalmente com o centro da imagem */
    gap: 15px; /* Espaço entre o ícone e o texto */
}

.brand-logo-img {
    /* Mantém o tamanho e formato originais */
    width: auto;
    height: auto;
    display: block;
    /* Ajuste fino opcional: se a imagem original for muito grande, você pode definir uma altura máxima, por exemplo: max-height: 60px; */
}

.logo {
    display: flex;
    flex-direction: column; /* Texto em duas linhas */
    align-items: flex-start;
    line-height: 1; /* Centraliza verticalmente o texto */
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem; /* Ajuste o tamanho do texto LIENHART */
    letter-spacing: 2px;
    color: white; /* Texto Principal Branco */
    margin: 0; /* Remove margens padrão */
}

.logo span {
    font-family: 'Roboto', sans-serif;
    color: var(--gold); /* Nosso dourado padrão para TRADING */
    font-weight: 400; /* Variação de peso para TRADING */
    font-size: 0.9rem; /* Ajuste o tamanho do texto TRADING */
    margin-top: 2px;
}

/* --- Ajuste Geral do Menu --- */
header {
    background: var(--navy);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
    transition: color 0.3s;
}

/* Efeito de underline no menu */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--gold);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}




/* Efeito sutil ao passar o mouse */
.brand-group:hover .brand-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Estilos de Texto do Logo mantidos e centralizados */
.logo {
    display: flex;
    flex-direction: column; /* Texto em duas linhas (opcional, pode manter em uma) */
    align-items: flex-start;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    line-height: 1; /* Centraliza verticalmente o texto */

}

/* --- Ajuste Geral do Menu para o novo Logo --- */
.nav-container {
    padding: 0 40px; /* Mais espaço nas laterais */
    max-width: 1300px;
}

nav ul li a {
    position: relative;
    transition: color 0.3s;
}

/* Efeito de underline no menu */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--gold);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero */
.hero { 
    height: 90vh; 
    background: url('https://s2-g1.glbimg.com/Ahja7Q3p6ngISm_8mdVsoujuBZE=/0x0:1280x718/984x0/smart/filters:strip_icc()/i.s3.glbimg.com/v1/AUTH_59edd422c0c84a879bd37670ae4f538a/internal_photos/bs/2023/e/F/9F9Ua7TleJQP9AAkRllQ/thumbnail-image003.jpg?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.hero-overlay { height: 100%; background: rgba(10, 25, 47, 0.7); display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.4rem; margin-bottom: 30px; }

/* Buttons */
.btn-gold { background: var(--gold); color: var(--navy); padding: 15px 35px; text-decoration: none; font-weight: 700; border-radius: 2px; transition: 0.3s; }
.btn-gold:hover { background: #e0b860; }
.btn-dark { background: var(--navy); color: white; padding: 15px; width: 100%; border: none; font-weight: 700; cursor: pointer; }

/* Commodities Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 40px; text-align: center; border-top: 5px solid var(--gold); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card h3 { margin-bottom: 15px; color: var(--navy); }

/* Form */
.form-wrapper { max-width: 600px; margin: 0 auto; background: white; padding: 30px; border-radius: 4px; }
input, select, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; }

.form-sub {
    color: var(--gold);
    border-left: 4px solid var(--navy);
    padding-left: 10px;
    margin: 30px 0 15px 0;
    font-size: 1rem;
    text-transform: uppercase;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Responsividade para o formulário no celular */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-wrapper input, 
.form-wrapper select, 
.form-wrapper textarea {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    outline: none;
}

.form-wrapper input:focus, 
.form-wrapper select:focus {
    border-color: var(--gold);
}

footer { background: var(--navy); color: white; text-align: center; padding: 30px 0; font-size: 0.8rem; }

/* Estilo base para todos os campos */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd; /* Borda padrão neutra */
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

/* PASSO C: Sinalização de Campos Obrigatórios Vazios */
/* Quando o campo é obrigatório e está vazio ou inválido */
input:required:invalid, 
select:required:invalid, 
textarea:required:invalid {
    border-color: #e74c3c; /* Vermelho para atenção */
    background-color: #fff9f9;
}

/* Quando o campo obrigatório é preenchido corretamente */
input:required:valid, 
select:required:valid, 
textarea:required:valid {
    border-color: #2ecc71; /* Verde para sucesso */
    background-color: #fafffa;
}

/* Foco do usuário no campo */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 8px rgba(194, 155, 64, 0.2); /* Sombra dourada leve */
    border-color: var(--gold) !important;
}

/* Ajustes gerais de layout do formulário */
.form-sub {
    color: var(--gold);
    border-left: 4px solid var(--navy);
    padding-left: 10px;
    margin: 30px 0 15px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}