/* ---------------------------------- */
/* 1. Reset e Configurações Globais (MOBILE-FIRST) */
/* ---------------------------------- */
:root {
/* Paleta de Cores: CLÁSSICO LUXO (Marinho, Ouro Velho e Cinza Nobre) */
--primary-color: #001F3F; /* Azul Marinho Profundo (Sofisticação) */
--secondary-color: #B8860B; /* Ouro Velho (Ênfase/Luxo) */
--text-dark: #333333; /* Cinza Carvão para o corpo do texto */
--text-light: #ffffff;
--background-light: #F5F5F5; /* Cinza muito claro, quase Off-White (Fundo mais suave) */
--background-dark: #001A33; /* Marinho ainda mais escuro para Footer */
/* Tipografia: Mais elegante e com maior contraste */
--font-family: 'Inter', sans-serif; /* Fonte moderna e limpa para corpo */
--font-title: 'Playfair Display', serif; /* Fonte Serif para títulos (Elegância) */
}

/* Aplicação das fontes */
.section-title, .hero-text h1, .secondary-banner-content h2, .project-info h3, .contact-header h2 {
    font-family: var(--font-title);
    font-weight: 700; 
}


* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
scroll-behavior: smooth;
}

body {
font-family: var(--font-family);
line-height: 1.6;
color: var(--text-dark);
background-color: var(--background-light);
}

a {
text-decoration: none;
color: var(--primary-color);
transition: color 0.3s;
}

a:hover {
color: var(--secondary-color);
}

ul {
list-style: none;
}

.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}

.section-title {
font-size: 2.2rem; 
margin-bottom: 2rem; 
text-align: center;
font-weight: 700;
text-transform: capitalize; 
}

/* ---------------------------------- */
/* 2. Botões CTA (Call-to-Action) */
/* ---------------------------------- */
.cta-button {
display: inline-block;
padding: 1rem 2.5rem; 
font-size: 1rem;
font-weight: 700;
text-align: center;
border-radius: 4px; 
transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
text-transform: uppercase;
letter-spacing: 0.5px; 
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 

}

.primary-cta {
background-color: var(--secondary-color); 
color: var(--primary-color); 
border: 2px solid var(--secondary-color);
}

.primary-cta:hover {
background-color: #D4AF37; 
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.secondary-cta {
background-color: var(--primary-color);
color: var(--text-light);
border: 2px solid var(--primary-color);
}

.secondary-cta:hover {
background-color: #002B5C; 
transform: translateY(-2px);
border-color: #002B5C;
}

.whatsapp-button {
background-color: #25d366; 
color: var(--text-light);
border: none;
margin-top: 1rem;
display: flex;
align-items: center;
justify-content: center;
}

.whatsapp-icon {
margin-right: 0.5rem;
font-size: 1.2rem;
}

/* ---------------------------------- */
/* 3. Cabeçalho (Header) */
/* ---------------------------------- */
.main-header {
background-color: var(--text-light);
border-bottom: 1px solid #e0e0e0; 
position: sticky;
top: 0;
z-index: 1000;
padding: 0.75rem 0; 
}

.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}

.header-logo {
height: 40px; 
}

/* Menu Mobile (Hamburguer) */
.menu-toggle {
display: block; 
background: none;
border: none;
cursor: pointer;
padding: 10px;
z-index: 1010;
}

.icon-bar {
 display: block;
width: 25px;
height: 3px;
background-color: var(--text-dark);
margin: 5px 0;
transition: all 0.3s ease;
}


/* Estilo para menu fechado no mobile */
.main-nav {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: var(--text-light);
border-top: 1px solid #eee;
transform: translateX(-100%);
transition: transform 0.3s ease-in-out;
padding: 1rem 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
font-size: 25px;
}

/* Estado ativo deve ser controlado via JavaScript na classe .main-nav.active */
.main-nav.active {
transform: translateX(0);
}

.main-nav ul {
display: flex;
flex-direction: column;
text-align: center;
}

.main-nav li {
margin: 0.5rem 0;
}

.main-nav a {
display: block;
padding: 0.5rem 1rem;
font-weight: 500;
color: var(--text-dark);
}

.main-nav .nav-button {
margin-top: 1rem;
display: inline-block;
/* Usa o estilo de botão primário */
background-color: var(--secondary-color);
color: var(--primary-color); 
padding: 0.75rem 1.5rem;
border-radius: 4px;
font-weight: 700;
}

/* ---------------------------------- */
/* 4. Banner Principal (Hero) */
/* ---------------------------------- */
.hero-banner {
background-color: var(--primary-color);
color: var(--text-light);
padding: 5rem 0; 
text-align: center;
}

.hero-content {
display: flex;
flex-direction: column;
align-items: center;
}

.hero-text h1 {
font-size: 2.8rem; 
font-weight: 700;
line-height: 1.2;
margin-bottom: 1.5rem;
}

.hero-text strong {
color: var(--secondary-color);
}

.hero-text p {
font-size: 1.15rem; 
margin-bottom: 2.5rem;
}

/* ---------------------------------- */
/* 5. Seção de Diferenciais (Features) */
/* ---------------------------------- */
.section-features {
padding: 4rem 0; 
background-color: var(--background-light);
}

.features-grid {
display: flex;
flex-direction: column;
gap: 2rem;
}

.feature-item {
text-align: center;
padding: 2rem; 
border-radius: 4px;
border: 1px solid #dcdcdc; 
background-color: var(--text-light); 
transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); 
}

.feature-icon {
font-size: 3.5rem; 
color: var(--secondary-color); 
margin-bottom: 0.75rem;

}

.feature-item h3 {
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 0.5rem;
}


/* ---------------------------------- */
/* 6. Banner Secundário (CTA no Meio) */
/* ---------------------------------- */
.secondary-banner {
background-color: var(--primary-color);
color: var(--text-light);
padding: 4rem 0; 
text-align: center;
}

.secondary-banner-content h2 {
font-size: 2.2rem;
margin-bottom: 1.5rem;
}

.secondary-banner-content p {
margin-bottom: 1.5rem;
}

/* ---------------------------------- */
/* 7. Portfólio */
/* ---------------------------------- */
.section-portfolio {
padding: 5rem 0; 
}

.section-portfolio .section-header {
text-align: center;
margin-bottom: 3rem;
}

.section-portfolio .section-header p {
font-size: 1.15rem;
color: #555555; 
}

.portfolio-grid {
display: flex;
flex-direction: column;
gap: 2rem;
}

.portfolio-item {
background-color: var(--text-light);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
}

.project-image {
width: 100%;
height: auto;
display: block;
}

.project-info {
padding: 1.75rem; 
}

.project-info h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
color: var(--primary-color);
}

.project-info .segment {
font-style: italic;
color: #757575;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}

.project-info p {
margin-bottom: 1rem;
}

.view-project-link {
font-weight: 700;
color: var(--secondary-color);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.portfolio-cta {
text-align: center;
margin-top: 4rem; 
padding: 3rem; 
background-color: #E8F0F8; 
border-radius: 8px;
border-left: 5px solid var(--secondary-color); 
}

.portfolio-cta p {
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 1rem;
}

/* ---------------------------------- */
/* 8. Contato (Formulário) */
/* ---------------------------------- */
.section-contact {
padding: 5rem 0;
background-color: var(--background-light);
position: relative; 
z-index: 1; /* Garante que está acima de elementos de fundo, se houver */
}

.contact-content {
background-color: var(--text-light);
padding: 3rem; 
border-radius: 10px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); 
}

.contact-header {
text-align: center;
margin-bottom: 2rem;
}

.contact-header h2 {
font-size: 2.2rem;
color: var(--primary-color);
margin-bottom: 0.75rem;
}

.contact-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.form-group label {
display: block;
font-weight: 700;
margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 1.1rem; 
border: 1px solid #dcdcdc; 
border-radius: 4px;
font-family: var(--font-family);
font-size: 1rem;
transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
border-color: var(--secondary-color);
box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
outline: none;
}

textarea {
resize: vertical;
}

.submit-button {
width: 100%;
border: none;
cursor: pointer;
background-color: var(--secondary-color);
color: var(--primary-color);
position: relative;
z-index: 100; /* Valor alto para garantir prioridade de clique/toque */
}
.submit-button:hover {
background-color: #D4AF37; 
}


.privacy-note {
display: block;
text-align: center;
margin-top: 1rem;
font-size: 0.8rem;
color: #757575;
}

.whatsapp-cta-block {
text-align: center;
margin-top: 2rem;
}

/* ---------------------------------- */
/* 9. Rodapé (Footer) */
/* ---------------------------------- */
.main-footer {
background-color: var(--background-dark); 
color: #e0e0e0;
padding: 4rem 0 1.5rem; 
}

.footer-grid {
display: flex;
flex-direction: column; 
gap: 2rem;
margin-bottom: 2rem;
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
color: var(--secondary-color);
margin-bottom: 1rem;
font-size: 1.3rem; 
}

.footer-links ul li {
margin-bottom: 0.5rem;
}

.footer-links a {
color: #e0e0e0;
}

.footer-contact p {
margin-bottom: 0.5rem;
}

.social-links a {
color: var(--text-light);
margin-right: 1rem;
font-size: 1.5rem;
}

.footer-legal {
border-top: 1px solid #424242;
padding-top: 1rem;
}

.legal-content {
display: flex;
flex-direction: column;
align-items: center;
font-size: 0.9rem;
}

.legal-content a {
color: #bdbdbd;
margin: 0.25rem 0;
}

.separator {
display: none; 
}

.copyright {
text-align: center;
font-size: 0.8rem;
margin-top: 1rem;
color: #bdbdbd;
}

/* ---------------------------------- */
/* 10. MEDIA QUERIES (Responsividade) */
/* ---------------------------------- */

/* Tablet (a partir de 768px) */
@media only screen and (min-width: 768px) {
/* Menu Desktop */
.menu-toggle {
display: none; 
}

.main-nav {
position: static;
transform: none;
box-shadow: none;
border-top: none;
width: auto;
padding: 0;
}

.main-nav ul {
flex-direction: row;
align-items: center;
}

.main-nav li {
margin: 0 0.75rem; 
}

.nav-cta-item {
margin-left: 1rem;
}

.main-nav .nav-button {
margin-top: 0;
} 
.header-logo {
height: 50px; 
}

/* Hero */
.hero-banner {
padding: 7rem 0;
}
.hero-text h1 {
font-size: 3.5rem;
}

/* Features Grid */
.features-grid {
flex-direction: row;
justify-content: space-between;
}

.feature-item {
flex: 1; 
max-width: 32%; 
padding: 2.5rem 1.5rem;
}

/* Portfólio Grid */
.portfolio-grid {
display: grid;
grid-template-columns: repeat(2, 1fr); 
gap: 2rem;
}

.portfolio-item:last-child {
grid-column: span 2; 
max-width: 700px;
margin: 0 auto;
}

/* Footer Grid */
.footer-grid {
flex-direction: row;
justify-content: space-between;
text-align: left;
}
 
.footer-info, .footer-links, .footer-contact {
flex: 1;
max-width: 30%;
}

.legal-content {
flex-direction: row;
justify-content: center;
}

.separator {
display: inline;
margin: 0 1rem;
}
}

/* Desktop (a partir de 1024px) */
@media only screen and (min-width: 1024px) {

/* Hero */
.hero-banner {
padding: 9rem 0;
}

.hero-text h1 {
font-size: 4rem; 
}

/* Portfólio Grid */
.portfolio-grid {
grid-template-columns: repeat(3, 1fr); 
}

.portfolio-item:last-child {
grid-column: span 1; 
max-width: none;
}

/* Contato */
.contact-content {
padding: 4rem; 
max-width: 800px;
margin: 0 auto;
}
}

/* ---------------------------------- */
/* 11. Botão Flutuante do WhatsApp */
/* ---------------------------------- */
.whatsapp-float {
position: fixed; 
width: 60px;
height: 60px;
bottom: 20px;
right: 20px;
background-color: #25d366; 
color: var(--text-light);
border-radius: 50px; 
text-align: center;
font-size: 30px;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
 background-color: #128c7e; 
transform: scale(1.1);
}

.whatsapp-float-icon {
/* Use um ícone real (ex: Font Awesome) aqui) */
font-size: 1.5rem;
font-weight: 900;
}

/* Opcional: Ajuste o tamanho e posição para desktop, se necessário */
@media only screen and (min-width: 1024px) {
.whatsapp-float {
width: 70px;
height: 70px;
bottom: 30px;
right: 30px;
}
}