:root {
    /* Paleta de Cores Elegante */
    --primary: #0f172a;      /* Azul Noturno */
    --secondary: #94a3b8;    /* Cinza Azulado */
    --accent: #d4af37;       /* Dourado Fosco */
    --bg-light: #f8fafc;     /* Branco Gelo */
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Curva suave estilo React */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header & Navegação --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    /* Adicionado transform para permitir esconder o header */
    transition: transform 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

/* Classe para esconder o header ao rolar para baixo */
.header-hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- Hero Section (ESCURO - Padrão) --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    /* Ajuste de Opacidade:
       Mudamos de 0.9 (90% escuro) para 0.5 (50% escuro).
       Isso torna a imagem muito mais visível.
    */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%), url('imagem/principal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Efeito de fundo sutil */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0; /* Para animação */
    transform: translateY(30px);
    /* Adiciona uma sombra leve no texto para garantir leitura sobre a imagem mais clara */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0; /* Cor um pouco mais clara para contraste */
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn {
    padding: 1rem 2.5rem;
    background-color: var(--accent);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn:hover {
    background-color: #b59228;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* --- Sections Gerais --- */
section {
    padding: 6rem 10%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 0;
}

/* --- Serviços (CLARO - Padrão) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-left: 3px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: var(--transition);
    opacity: 0; /* Animação */
    transform: translateY(40px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-left: 3px solid var(--accent);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* --- Sobre (ESCURO - Modificado para intercalar) --- */
#sobre {
    background-color: var(--primary); /* Torna o fundo escuro */
    color: var(--text-light);
}

#sobre .section-title {
    color: #fff; /* Título branco */
}

#sobre .about-text h3 {
    color: var(--accent);
}

#sobre .about-text p {
    color: var(--secondary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-40px);
}

.about-image {
    height: 400px;
    background-color: #ddd; /* Placeholder caso a imagem não carregue */
    /* Alterado para buscar a imagem na pasta 'imagem' */
    background-image: url('imagem/escritorio.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0;
    transform: translateX(40px);
}

/* Moldura decorativa na imagem */
.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    z-index: -1;
}

/* --- Contato (CLARO - Modificado para intercalar) --- */
.contact {
    background-color: var(--bg-light); /* Torna o fundo claro */
    color: var(--text-dark);
}

.contact .section-title {
    color: var(--primary); /* Título escuro */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary); /* Títulos em azul escuro para contraste */
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dark); /* Texto escuro */
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Ajuste dos inputs para fundo claro */
input, textarea {
    padding: 1rem;
    background: #fff; /* Fundo branco */
    border: 1px solid #cbd5e1; /* Borda cinza suave */
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background: #0b1120; /* Super escuro para finalizar */
    color: var(--secondary);
    font-size: 0.9rem;
    position: relative;
}

/* Estilo para o link de acesso restrito (painel) */
.admin-access {
    margin-top: 1rem;
    opacity: 0.3;
    transition: var(--transition);
}

.admin-access:hover {
    opacity: 1;
}

.admin-access a {
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.admin-access a:hover {
    color: var(--accent);
}

/* --- Classes de Animação (JS Controla isso) --- */
.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transform: translateX(0) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-container, .contact-container { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .menu-toggle { display: block; }
    .hero { padding: 0 5%; }
}