/* 
   THEME: Santuário Urbano / Silent Luxury 
   AUTHOR: Antigravity AI
   CONTEXT: Boutique de Luxo / Organic Minimalism
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500;1,600&family=Manrope:wght@200;300;400;500&display=swap');

:root {
    /* PALETTE: PORCELAIN & DEEP MOSS */
    --bg-color: #F8F7F5;
    /* Porcelain/Cream Soft - Not White */
    --text-main: #3A4A3E;
    /* Deep Moss - Serene & Sophisticated */
    --text-light: #6B7C70;
    /* Sage Muted */
    --accent: #A67564;
    /* Terracotta - Discreet Accent */
    --white: #FFFFFF;

    /* TYPOGRAPHY */
    --font-display: 'Cormorant Garamond', serif;
    /* Editorial/Vogue Style */
    --font-body: 'Manrope', sans-serif;
    /* Clean Modern */

    /* SPACING */
    --container-padding: 5vw;
    --section-spacing: 8rem;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
    /* FORÇA o corte lateral */
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
    /* Adapts to fixed header height */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

ul {
    list-style: none;
}

img,
video,
iframe {
    max-width: 100%;
    /* Nunca maior que a tela */
    height: auto;
    /* Proporção automática */
    display: block;
    /* Remove espaços fantasmas abaixo da imagem */
}

/* TYPOGRAPHY UTILS */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    word-wrap: break-word;
    /* Quebra palavras muito longas */
    overflow-wrap: break-word;
    hyphens: auto;
}

.italic {
    font-style: italic;
}

.uppercase-track {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

/* HEADER - GHOST LUXURY */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem var(--container-padding);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background: rgba(248, 247, 245, 0.95);
    /* Matches bg-color with opacity */
    backdrop-filter: blur(10px);
    padding: 1.2rem var(--container-padding);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    font-weight: 600;
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* HERO SECTION - CINEMATIC */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--container-padding);
    background-size: cover;
    background-position: center;
    position: relative;
    /* Overlay for text readability */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4.5rem;
    color: var(--text-main);
    margin: 1.5rem 0;
    font-weight: 300;
    font-family: var(--font-display);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-content h1,
.hero-content p,
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .logo {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content span,
.hero-content .uppercase-track {
    color: #FFFFFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.hero-content .btn-ghost {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.hero-content .btn-ghost:hover {
    background-color: #FFFFFF;
    color: var(--text-main);
}

/* BUTTONS - GHOST / MINIMAL */
.btn-ghost {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-ghost:hover {
    background-color: var(--text-main);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent);
}

/* CARDS & LAYOUT */
.section-padding {
    padding: var(--section-spacing) var(--container-padding);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
    /* Garante margem de segurança no mobile */
    margin-left: auto;
    margin-right: auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.card-luxury {
    background: var(--white);
    padding: 4rem 3rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease;
}

.card-luxury:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
    font-family: var(--font-display);
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 400;
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* FORMS */
.form-input {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #DCDcdc;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.3s ease;
    margin-bottom: 2rem;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

/* FOOTER */
.site-footer {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 5rem var(--container-padding);
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-nav {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.footer-nav a:hover {
    opacity: 1;
}

/* --- MOBILE MENU ICON --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #FFF;
    z-index: 1100;
    /* Above overlay */
}

@media (max-width: 768px) {

    /* Header & Navegação */
    .mobile-toggle {
        display: block;
    }

    .main-header {
        justify-content: space-between;
        padding: 1.5rem;
    }

    /* Target the nav element specifically */
    .main-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Escondido na direita */
        width: 80%;
        height: 100vh;
        background-color: #3A4A3E;
        /* Fundo Verde Musgo hardcoded var(--text-main) */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .main-header nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 2rem;
        display: flex !important;
        /* Force flex display as it might be hidden by previous rule */
    }

    .nav-link {
        font-size: 1.2rem;
        color: #FFF !important;
        display: block;
        margin: 10px 0;
    }

    /* Hero Section Mobile */
    .hero {
        height: 80vh;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 2rem;
    }

    /* Grids (Empilhar Conteúdo) */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Ajustes Gerais */
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Formulário */
    .grid-2 div {
        width: 100%;
    }

    /* FORÇA BRUTA PARA LIMPAR O LAYOUT */
    section,
    .hero,
    .hero-content,
    .container,
    .card-service {
        height: auto !important;
        /* Remove altura fixa */
        min-height: auto !important;
        position: relative !important;
        /* Remove absolute que causa sobreposição */
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* Espaçamento seguro entre blocos */
    .section-padding {
        padding: 60px 20px !important;
    }

    /* Empilhar tudo verticalmente */
    .grid-2,
    .grid-3,
    .nav-flex {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    /* CABEÇALHO LEGÍVEL (Header Fix) */
    header {
        background-color: var(--text-main) !important;
        /* Fundo Verde Escuro Sólido */
        position: relative !important;
        /* Para não flutuar por cima do conteúdo */
    }

    .logo,
    .mobile-toggle {
        color: #FFFFFF !important;
        /* Texto Branco */
    }

    /* AJUSTE DE TIPOGRAFIA */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
        text-align: center;
    }

    /* FORMULÁRIO E MODAIS */
    input,
    textarea,
    select {
        width: 100% !important;
        /* Ocupa a largura do pai */
        max-width: 100% !important;
    }

    .card-service {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    iframe {
        width: 100% !important;
        height: 300px !important;
        /* Altura fixa para o mapa não sumir */
    }

    /* RODAPÉ MOBILE (FOOTER STACK) */
    /* Correção dos Links do Rodapé */
    footer .nav-flex,
    footer nav,
    .footer-nav {
        display: flex !important;
        flex-direction: column !important;
        /* Um embaixo do outro */
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    footer nav a,
    .footer-nav a {
        margin: 5px 0 !important;
        display: block !important;
        width: 100% !important;
        /* Área de toque maior */
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separador sutil */
    }

    /* ESPAÇAMENTO DE CONTATO */
    footer p,
    .footer-info p {
        font-size: 0.9rem !important;
        line-height: 1.8 !important;
        /* Mais respiro entre linhas */
        margin-bottom: 20px !important;
        padding: 0 10px !important;
        /* Margem de segurança lateral */
    }

    /* Forçar quebra de linha em e-mails longos */
    footer a[href^="mailto"] {
        word-break: break-all;
    }

    /* AJUSTE GERAL DO CONTAINER */
    footer,
    .site-footer {
        padding: 60px 20px 40px !important;
        text-align: center !important;
    }
}