:root {
    --primary-color: #AB7B57;
    --primary-hover: #8f6545;
    --bg-clean: #F4DFCE;
    --text-dark: #2c2c2c;
    --text-light: #555555;
    --white: #ffffff;
    
    --font-body: 'Montserrat', sans-serif;
    
    --whatsapp-color: #25D366;
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.06);
    --shadow-hover: 0 25px 50px rgba(171, 123, 87, 0.15);
}

/* --- RESET E GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.w-100 { width: 100%; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 25px; 
    width: 100%;
}

.section-padding { padding: 60px 0; }
.bg-alt { background-color: var(--bg-clean); } 

/* --- BOTÕES --- */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 20px rgba(171, 123, 87, 0.3);
    transition: all 0.3s ease;
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(171, 123, 87, 0.4);
}

.btn-small {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}
.btn-small:hover {
    border-bottom-color: var(--primary-color);
    opacity: 0.8;
}

/* --- TOPBAR (Desktop) --- */
.topbar {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    padding: 11px 0;
    letter-spacing: 0.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }

.topbar i {
    font-size: 1.15rem; 
    color: var(--primary-color); 
    vertical-align: middle;
    margin-right: 8px; 
}

.topbar .infos span { 
    margin-right: 30px; 
    display: inline-flex; 
    align-items: center; 
}

.topbar .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.topbar .social i {
    margin-right: 0;
    font-size: 1.2rem;
    color: #e0e0e0;
}
.topbar .social a:hover i { color: var(--primary-color); }


/* --- NAVBAR --- */
.navbar {
    background-color: #F2DBCA;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08); 
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo img {
    height: 160px;
    width: auto;
    transition: 0.3s;
    display: block;
}

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { 
    font-weight: 600; 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    position: relative;
    color: #4a3b32;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: var(--primary-color);
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

.nav-links .btn-nav {
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 700;
}
.nav-links .btn-nav:hover { background-color: var(--primary-color); color: var(--white); }
.nav-links .btn-nav::after { display: none; }

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary-color); }

/* --- HERO / BANNER --- */
.hero {
    background-image: url('../img/banner-home.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: scroll; 
    height: 750px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: linear-gradient(120deg, rgba(0,0,0,0.75) 10%, rgba(171,123,87,0.3) 90%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-content { 
    color: var(--white); 
    max-width: 800px; 
    padding-left: 20px; 
    animation: fadeInUp 1s ease-out;
}
.hero-content h1 { 
    font-size: 3.8rem; 
    margin-bottom: 25px; 
    line-height: 1.1; 
    text-shadow: 2px 4px 15px rgba(0,0,0,0.5);
}
.hero-content p { 
    font-size: 1.3rem; 
    margin-bottom: 40px; 
    font-weight: 400; 
    opacity: 0.95; 
    max-width: 600px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SECTIONS --- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}
.divider { 
    width: 60px; 
    height: 4px; 
    background-color: var(--primary-color); 
    margin: 0 auto; 
    border-radius: 2px;
}

/* --- PROJETOS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
.project-card:hover { 
    transform: translateY(-12px); 
    box-shadow: var(--shadow-hover); 
}

.project-img { overflow: hidden; height: 300px; position: relative; }
.project-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.7s ease; 
}
.project-card:hover .project-img img { transform: scale(1.08); }

.project-info { padding: 30px; }
.project-info h3 { font-size: 1.5rem; margin-bottom: 8px; color: #222; }
.project-info p { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; }

/* --- CONTATO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.contact-info h2 { font-size: 2.4rem; margin-bottom: 25px; line-height: 1.2; }
.contact-info p { margin-bottom: 40px; color: var(--text-light); font-size: 1.1rem; }

.contact-list li { 
    margin-bottom: 30px; 
    display: flex; 
    align-items: center;
    gap: 20px; 
    font-size: 1.1rem;
    word-break: break-word;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.contact-list i { 
    color: var(--primary-color); 
    font-size: 1.4rem;
    flex-shrink: 0;
}

.form-group { margin-bottom: 30px; width: 100%; }
.form-group label { 
    display: block; 
    margin-bottom: 12px; 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--primary-color);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    background-color: #fbfbfb;
    font-size: 1rem;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(171, 123, 87, 0.15);
}

/* --- FOOTER (OTIMIZADO COM ÍCONES E SOCIAL) --- */
footer { background-color: #1a1a1a; color: #fff; padding-top: 80px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr; /* Colunas ajustadas */
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

.footer-col h4 { 
    color: var(--primary-color); 
    margin-bottom: 25px; 
    font-size: 1.3rem; 
    font-weight: 700;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Atalhos com Setas */
.footer-links li { 
    margin-bottom: 12px; 
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-links li i {
    font-size: 0.8rem;
    color: var(--primary-color);
}
.footer-links li a { 
    opacity: 0.7; 
    transition: 0.3s; 
    font-size: 0.95rem; 
}
.footer-links li a:hover { 
    opacity: 1; 
    color: var(--primary-color); 
    padding-left: 5px; 
}

/* Lista de Contato com Ícones */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.95rem;
}
.footer-contact li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 4px;
}
.footer-contact li a {
    color: #aaa;
    transition: 0.3s;
}
.footer-contact li a:hover {
    color: var(--primary-color);
}

/* Social no Footer */
.footer-social { margin-top: 20px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    color: #fff;
    font-size: 1.1rem;
}
.footer-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom { padding: 30px 0; text-align: center; font-size: 0.9rem; color: #777; }
.footer-bottom .dev-credits a { color: var(--primary-color); font-weight: bold; }

/* --- BOTÕES FLUTUANTES --- */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.btn-back-to-top {
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: 0.3s;
    opacity: 0; 
    visibility: hidden;
    font-size: 1.2rem;
}
.btn-back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}
.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-whatsapp-float {
    background-color: var(--whatsapp-color);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    text-decoration: none;
    animation: vibrate 15s infinite;
}
.btn-whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
}

@keyframes vibrate {
    0%, 85%, 100% { transform: rotate(0) scale(1); }
    86% { transform: rotate(-15deg) scale(1.1); }
    87% { transform: rotate(15deg) scale(1.1); }
    88% { transform: rotate(-15deg) scale(1.1); }
    89% { transform: rotate(15deg) scale(1.1); }
    90% { transform: rotate(-15deg) scale(1.1); }
    91% { transform: rotate(15deg) scale(1.1); }
    92% { transform: rotate(-15deg) scale(1.1); }
    93% { transform: rotate(15deg) scale(1.1); }
    94% { transform: rotate(-15deg) scale(1.1); }
    95% { transform: rotate(15deg) scale(1.1); }
    96% { transform: rotate(0) scale(1); }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .topbar { display: none; }
    
    .logo img { height: 75px; }
    .menu-toggle { display: block; padding: 10px; }
    
    .navbar { padding: 15px 0; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #F2DBCA;
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        text-align: center;
        gap: 25px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { color: #4a3b32; font-size: 1.1rem; }
    
    .container { padding: 0 20px; }
    .section-padding { padding: 40px 0; }
    
    .hero { 
        height: 600px; 
        background-attachment: scroll;
        text-align: center; 
        justify-content: center; 
    }
    .hero-content { padding-left: 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; margin-bottom: 30px; margin-left: auto; margin-right: auto; }
    
    .section-header h2 { font-size: 2.2rem; }
    
    .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .contact-list li { font-size: 1rem; flex-direction: column; text-align: center; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .btn-primary { width: 100%; }

    .floating-buttons { bottom: 20px; right: 20px; }
    .btn-whatsapp-float { width: 60px; height: 60px; font-size: 32px; }
    .btn-back-to-top { width: 45px; height: 45px; }
}