@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --primary: #2C2420;
    /* Deep Walnut */
    --secondary: #A68B6A;
    /* Brass/Oak */
    --accent: #D9C5B2;
    /* Light Sand */
    --bg: #F9F7F5;
    /* Off White */
    --text: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;

    --font-serif: "Playfair Display", serif;
    --font-sans: "Plus Jakarta Sans", sans-serif;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

section {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Sophisticated Typography */
.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    /* Reduzido levemente para evitar ocupar muito espaço */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    min-height: 80px;
    /* Garante altura mínima para cálculos */
}

nav.scrolled {
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: white;
    /* Cor inicial no Hero */
    font-weight: 500;
    font-size: 0.95rem;
}

/* Quando der scroll, a navbar fica branca e os links escuros */
nav.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: var(--secondary) !important;
}

nav.scrolled .logo {
    color: var(--text);
}

nav .logo {
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Mudado de height para min-height para acomodar conteúdo que cresce */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero.png') no-repeat center center/cover;
    color: var(--white);
    padding: 80px 20px;
    /* Adicionado padding para garantir respiro nas bordas em zooms */
}

.hero-content {
    padding-top: 100px;
    /* Garante que o texto comece abaixo da navbar */
    max-width: 900px;
    width: 90%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    /* Fonte responsiva que se ajusta ao zoom/tela */
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

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

/* Portfolio Gallery */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

/* Quote Form */
.quote-section {
    background: var(--white);
}

.quote-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

/* LGPD Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: var(--transition);
}

.cookie-banner.active {
    bottom: 0;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20b857;
    color: #fff;
}

.social-link {
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.social-link:hover {
    color: var(--secondary);
    border-bottom: 1px solid var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .quote-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}