/* --- CSS Mobile-First com Estilo Moderno e Luxuoso (Nova Paleta de Cores: Furniture) --- */

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400&family=Raleway:wght@200;300&display=swap');

:root {
    /* Cores de Furniture, Sérias e Determinadas */
    --primary-color: #6A4B3D;
    /* Marrom Profundo / Terra */
    --accent-color: #A07F5E;
    /* Marrom Médio / Dourado Velho */
    --dark-bg: #1C1A1A;
    /* Quase Preto Carbono (fundo principal) */
    --medium-bg: #2E2B2B;
    /* Cinza Marrom Escuro (seções secundárias) */
    --light-bg: #E8E5DF;
    /* Creme Leitoso / Marfim (seções claras) */
    --light-text: #F8F5EF;
    /* Branco Sujo / Creme (texto em fundos escuros) */
    --dark-text: #4A4A4A;
    /* Cinza Chumbo (texto em fundos claros) */
    --border-color: #4C4848;
    /* Marrom Acinzentado para bordas sutis */

    /* Cores para Transparências e Componentes */
    --transparent-dark-bg: rgba(28, 26, 26, 0.8);
    /* Fundo escuro semi-transparente */
    --transparent-cta-bg: rgba(0, 0, 0, 0.75);
    /* Fundo CTA mais opaco */
    --header-light-bg: rgba(255, 255, 255, 0.9);
    /* Header branco quase opaco */
}

/* Reset Básico e Box-Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Estilos Globais */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* Títulos em seções claras */
.about-section h2,
.gallery-section h2,
.testimonials-section h2 {
    color: var(--dark-text);
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
}

p {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--light-text);
}

/* Parágrafos em seções claras */
.about-section p,
.testimonials-section p {
    color: var(--dark-text);
}

/* Botão em seção clara */
.about-section .btn.light-btn {
    color: var(--dark-text);
}

/* --- HEADER FLUTUANTE (main-header) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-light-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area .logo {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-area .logo:hover {
    transform: scale(1.05);
}

/* --- INÍCIO: AJUSTES MENU MÓVEL --- */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--dark-text);
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-close {
    display: block;
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.main-nav .nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;

    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    transition: right 0.5s ease-in-out;
}

.main-nav.nav-active .nav-list {
    right: 0;
}

.main-nav .nav-list li {
    margin: 20px 0;
}

.main-nav .nav-list li a {
    color: var(--light-text);
    font-size: 1.5em;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-list li a:hover::after {
    width: 100%;
}

.main-nav .nav-list li a:hover {
    color: var(--primary-color);
}

.main-nav .nav-list .nav-btn {
    padding: 10px 25px;
    font-size: 0.9em;
    color: var(--light-text);
}

.main-nav .nav-list .nav-btn.light-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--light-text);
    border: none;
    box-shadow: 0 4px 8px rgba(106, 75, 61, 0.3);
}

.main-nav .nav-list .nav-btn.light-btn:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(106, 75, 61, 0.5);
}

/* --- FIM: AJUSTES MENU MÓVEL --- */

/* --- Botões: Retangulares e Chiques --- */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--light-text);
    padding: 14px 28px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: 0 6px 12px rgba(106, 75, 61, 0.4);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 75, 61, 0.6);
}

.btn:hover::after {
    left: 100%;
}

.btn.light-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn.light-btn:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(106, 75, 61, 0.3);
}

/* Ajuste do botão light-btn em seção clara */
.light-section .btn.light-btn {
    border-color: var(--dark-text);
    color: var(--dark-text);
}

.light-section .btn.light-btn:hover {
    background: var(--dark-text);
    color: var(--light-text);
}

/* --- Seções de Conteúdo --- */
.content-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Seções com fundo claro */
.light-section {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* --- Hero Section --- */
.hero-section {
    background: url('assets/main-mobile.webp') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 90%;
    animation: fadeInScale 1.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: var(--light-text);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 200;
    color: var(--light-text);
}

/* --- Seção Sobre (Fundo Claro) --- */
.about-section {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    color: var(--dark-text);
    text-align: center;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.1;
    z-index: 0;
}

.about-section h2 {
    color: var(--dark-text);
}

.about-section p {
    color: var(--dark-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Seção de Galeria (Fundo Claro) --- */
.gallery-section {
    background-color: var(--light-bg);
    padding-top: 80px;
    color: var(--dark-text);
    text-align: center;
}

.gallery-section h2 {
    color: var(--dark-text);
    margin-bottom: 40px;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.grid-item {
    background-color: var(--medium-bg);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
}

.grid-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 2px;
    transition: transform 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.grid-item img:hover {
    transform: scale(1.03);
}

.image-caption {
    color: var(--light-text);
    font-size: 0.95em;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* --- Depoimentos (Fundo Claro) --- */
.testimonials-section {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--dark-text);
}

.testimonials-section h2 {
    color: var(--dark-text);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: var(--medium-bg);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.testimonial-item .quote-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 1.1em;
    line-height: 1.8;
}

.testimonial-item .client-name {
    display: block;
    font-weight: 400;
    color: var(--accent-color);
    font-size: 1em;
    letter-spacing: 0.5px;
}

/* --- Call-to-Action --- */
.call-to-action {
    background: url('assets/gourmet.webp') no-repeat center center/cover;
    color: var(--light-text);
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.call-to-action .overlay {
    background: rgba(0, 0, 0, 0.75);
}

.call-to-action .cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.call-to-action .cta-content-box {
    background-color: var(--transparent-cta-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(106, 75, 61, 0.3);
    max-width: 90%;
    margin: 0 auto;
    animation: fadeInScale 1.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.call-to-action h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--light-text);
}

.call-to-action p {
    font-size: 1.1em;
    margin-bottom: 35px;
    font-weight: 200;
    color: var(--light-text);
}

/* --- Rodapé (FOOTER) --- */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    text-align: center;
}

/* Evita overflow das colunas internas do grid */
footer .footer-grid>* {
    min-width: 0;
}

footer h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 300;
}

footer p {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: 300;
    overflow-wrap: anywhere;
    word-break: break-word;
    /* segurança extra */
}

footer p i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Ícones sociais com wrap */
.social-icons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Links de navegação – mobile-first com wrap */
.navigation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: flex-start;
    /* alinha à esquerda */
    margin-top: 20px;
}

.navigation-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.navigation-links li {
    margin: 0;
}

.navigation-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    padding: 4px 0;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.navigation-links a:hover {
    color: var(--primary-color);
}

/* Mapa responsivo de verdade */
.footer-map iframe {
    width: 100% !important;
    max-width: 100%;
    height: 260px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    display: block;
}

.footer-map .map-note {
    font-size: 0.85em;
    color: #888;
    margin-top: 15px;
}

footer img,
footer svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.footer-bottom {
    background-color: #000;
    color: #555;
    text-align: center;
    padding: 25px 0;
    font-size: 0.85em;
    border-top: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    margin-top: 40px;
}

/* --- Animações CSS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Classes ativadas via JS */
.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries para Telas Maiores (Desktop) --- */
@media (min-width: 768px) {
    .container {
        max-width: 1300px;
        padding: 0 40px;
    }

    .content-section {
        padding: 120px 0;
    }

    .gallery-section {
        padding-top: 80px;
    }

    h1 {
        font-size: 4.2em;
    }

    h2 {
        font-size: 2.8em;
    }

    h3 {
        font-size: 2em;
    }

    p {
        font-size: 1.15em;
    }

    /* Menu Desktop */
    .menu-toggle {
        display: none;
    }

    .menu-close {
        display: none;
    }

    .main-nav .nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        transition: none;
    }

    .main-nav .nav-list li {
        margin: 0 0 0 30px;
    }

    .main-nav .nav-list li a {
        color: var(--dark-text);
        font-size: 1em;
    }

    .main-nav .nav-list .nav-btn {
        margin-left: 40px;
    }

    .hero-section {
        background: url('assets/main.webp') no-repeat center center/cover;
        height: 100vh;
    }

    .hero-section h1 {
        font-size: 5.5em;
    }

    .hero-section p {
        font-size: 2em;
    }

    .about-section .container {
        display: block;
        text-align: center;
    }

    .about-section h2,
    .about-section p,
    .about-section .btn {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .about-section p {
        max-width: 900px;
    }

    .image-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .call-to-action {
        background: url('assets/quarto.webp') no-repeat center center/cover;
        padding: 150px 0;
    }

    .call-to-action .cta-content-box {
        max-width: 700px;
        padding: 60px;
    }

    .call-to-action h2 {
        font-size: 3.5em;
    }

    .call-to-action p {
        font-size: 1.6em;
    }

    footer .footer-grid {
        grid-template-columns: 1.5fr 2fr 2fr;
        text-align: left;
        gap: 60px;
    }

    .footer-form {
        margin-left: 0;
        margin-right: 0;
        align-items: flex-start;
        text-align: left;
    }

    .footer-form p {
        text-align: left;
    }

    .footer-form .btn {
        width: auto;
        align-self: flex-start;
    }

    .footer-map iframe {
        margin-top: 0;
        height: 340px;
    }
}

/* --- Ajustes adicionais apenas para telas pequenas --- */
@media (max-width: 768px) {
    footer {
        padding-top: 40px;
    }

    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
    }

    footer h3 {
        margin-bottom: 12px;
    }

    footer p {
        margin-bottom: 8px;
    }

    .footer-bottom {
        font-size: 0.8em;
        padding: 16px 12px;
        margin-top: 24px;
    }

    .footer-form .btn {
        width: 100%;
    }
}

/* --- Ornamentos e Detalhes --- */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    opacity: 0.08;
    filter: blur(10px);
    z-index: 0;
}

.hero-section::before {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: pulse 4s infinite ease-in-out;
}

.hero-section::after {
    width: 2px;
    height: 150px;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: floatLine 6s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.08;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.12;
    }

    100% {
        transform: scale(1);
        opacity: 0.08;
    }
}

@keyframes floatLine {
    0% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(-20px) rotate(45deg);
    }

    100% {
        transform: translateY(0) rotate(45deg);
    }
}

.content-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.1;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(90deg);
    width: 50px;
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.2;
}

/* --- LIGHTBOX DA GALERIA --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(28, 26, 26, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.5s ease-in-out;
}

.lightbox-caption {
    margin-top: 15px;
    color: var(--light-text);
    font-family: 'Raleway', sans-serif;
    font-size: 1.2em;
    text-align: center;
    animation: slideUp 0.5s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(160, 127, 94, 0.8);
}