/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #333;
    line-height: 1.6;
    background-color: #ECE9E0;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

/* Typography & Links */
h1, h2, h3 { font-weight: 700; }
a { text-decoration: none; color: inherit; }

.smooth-scroll-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #d56a40;
    color: #ECE9E0;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.smooth-scroll-btn:hover {
    background-color: #d56a59;
    transform: translateY(-2px);
}

/* Header/Navbar */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    transition: all 0.5s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background: #ECE9E0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    width: 300px; /* Reduzi levemente o padrão */
    max-width: 80%;
    transition: all 0.5s ease;
}

header.scrolled .logo img {
    width: 220px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    transition: color 0.3s;
    color: #ECE9E0;
    font-weight: 500;
    letter-spacing: 1px;
}

header.scrolled nav ul li a {
    color: #333;
}

.menu-mobile {
    display: none;
    cursor: pointer;
    color: #ECE9E0;
    font-size: 1.8rem;
}

header.scrolled .menu-mobile {
    color: #333;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('/img/Foto inicio site.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fffcf4;
    position: relative;
    padding: 80px 20px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-text h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.hero-text .subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    letter-spacing: 5px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.hero-text h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    color: #F5F5F5;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    color: #F5F5F5;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 30px;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 5%;
    background-color: #ECE9E0;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: filter 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ECE9E0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-img { filter: grayscale(100%); }

.more-link {
    display: inline-block;
    padding: 12px 30px;
    background: #d56a40;
    color: #ECE9E0;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

/* Sobre Section */
.sobre {
    padding: 80px 5%;
    background: #ECE9E0;
}

.sobre-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ECE9E0;
    box-shadow: 0px 0px 35px #dad1ba;
    border-radius: 15px;
    overflow: hidden;
}

.sobre-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.sobre-texto {
    flex: 1;
    padding: 50px;
    min-width: 300px;
}

.sobre-texto h2 {
    font-size: 2.2rem;
    color: #D56A40;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.sobre-texto p {
    font-size: 1.1rem;
    text-align: justify;
}

.sobre-imagem {
    flex: 1;
    padding: 30px;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.sobre-imagem img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

/* Contact Form */
.form-section {
    padding: 80px 5%;
    background-color: #ECE9E0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #d56a40;
    margin-bottom: 40px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    background-color: #d56a40;
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
}

/* Footer - CORRIGIDO */
.footer {
    background: #ECE9E0;
    padding: 60px 5% 20px;
    width: 100%;
}

.footer-line {
    height: 2px;
    background-color: #d56a40;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-info-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-logo img {
    width: 300px;
    height: auto;
}

.footer-address {
    text-align: center;
    color: #d56a40;
}

.redes-sociais {
    display: flex;
    gap: 20px;
}

.redes-sociais a {
    font-size: 2.5rem;
    color: #d56a40;
    transition: 0.3s;
}

.redes-sociais a:hover {
    transform: translateY(-5px);
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #d56a40;
}

/* MEDIA QUERIES - RESPONSIVIDADE */
@media screen and (max-width: 992px) {
    .sobre-content { flex-direction: column; }
    .footer-info-wrapper { flex-direction: column; text-align: center; }
}

@media screen and (max-width: 768px) {
    /* Menu Mobile */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ECE9E0;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav ul.show { display: flex; }

    nav ul li { margin: 15px 0; text-align: center; }
    
    nav ul li a { color: #333 !important; }

    .menu-mobile { display: block; }

    /* Seções */
    .hero { height: auto; padding: 150px 20px 80px; }
    
    .sobre-texto { padding: 30px 20px; }
    
    .sobre-texto h2 { font-size: 1.8rem; text-align: center; }

    /* Footer Ajustes */
    .footer-logo img { width: 220px; }
    
    .redes-sociais a { font-size: 2rem; }
}