/* CHÁCARA BELTZ - STYLE CODES (PREMIUM DESIGN SYSTEM)
    Colors:
        --heritage-green: #0f291e (Deep and luxurious)
        --tarnished-brass: #c5a880 (Warm aged gold)
        --brass-dark: #a3845b
        --parchment: #faf8f5 (Off-white luxury texture background)
        --saddle-brown: #5c3d2e (Leather brown accent)
    Fonts:
        Titles: Playfair Display (Serif)
        Body: Lato (Sans-serif)
*/

:root {
    --heritage-green: #0f291e;
    --tarnished-brass: #c5a880;
    --brass-dark: #a3845b;
    --parchment: #faf8f5;
    --saddle-brown: #5c3d2e;
    --text-dark: #2c3531;
    --white: #ffffff;
    --transition-fast: 0.3s ease;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 20px;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UTILITIES & CONTAINERS */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-parchment {
    background-color: var(--parchment);
}

.bg-white {
    background-color: var(--white);
}

.bg-green {
    background-color: var(--heritage-green);
}

.text-light {
    color: var(--parchment);
}

.text-center {
    text-align: center;
}

.m-top-20 {
    margin-top: 20px;
}

.m-top-30 {
    margin-top: 30px;
}

.m-top-40 {
    margin-top: 40px;
}

.shadow {
    box-shadow: 0 15px 35px rgba(15, 41, 30, 0.06);
}

.img-responsive {
    width: 100%;
    object-fit: cover;
}

.img-rounded {
    border-radius: 4px;
}

/* TYPOGRAPHY COMPONENTS */
.section-subtitle {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brass-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle.light {
    color: var(--tarnished-brass);
}

.section-title {
    font-size: 38px;
    color: var(--heritage-green);
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-title.light {
    color: var(--white);
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: var(--tarnished-brass);
    margin-bottom: 25px;
}

.title-divider.center {
    margin-left: auto;
    margin-right: auto;
}

.title-divider.bg-gold-line {
    background-color: var(--tarnished-brass);
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    color: #666;
    font-weight: 300;
}

/* GRID LAYOUTS (Using native grids for robustness) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vertical-center {
    align-items: center;
}

/* STICKY NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-area img {
    width: 220PX;
}

.logo-text {
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--heritage-green);
    font-weight: 700;
    line-height: 1;
}

.logo-subtext {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--brass-dark);
    margin-top: 4px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--heritage-green);
}

.nav-menu a:hover {
    color: var(--tarnished-brass);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary-nav {
    padding: 8px 18px;
    font-size: 12px;
    background-color: var(--heritage-green);
    color: var(--white) !important;
    border-radius: 2px;
}

.btn-primary-nav:hover {
    background-color: var(--tarnished-brass);
}

.btn-gold {
    background-color: var(--tarnished-brass);
    color: var(--heritage-green);
}

.btn-gold:hover {
    background-color: var(--brass-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-green {
    background-color: var(--heritage-green);
    color: var(--white);
}

.btn-green:hover {
    background-color: var(--tarnished-brass);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--heritage-green);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* HERO SECTION & SLIDESHOW (FADE ANIMATION) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    /* Impede que o leve zoom das imagens vaze da tela */
    background-color: var(--heritage-green);
    /* Cor de fallback enquanto carrega */
}

/* Configuração base dos slides */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* A animação dura 18s no total (3 imagens x 6s) e roda em loop infinito */
    animation: fadeKenBurns 18s infinite;
}

/* Atrasos individuais para cada slide entrar no momento certo */
.hero-slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slideshow .slide:nth-child(2) {
    animation-delay: 6s;
}

.hero-slideshow .slide:nth-child(3) {
    animation-delay: 12s;
}

/* Keyframes para o esmaecimento (Fade In/Out) e um sutil Zoom (Ken Burns) */
@keyframes fadeKenBurns {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
        /* Termina de aparecer rapidamente */
    }

    33% {
        opacity: 1;
        /* Fica visível por 1/3 do tempo total */
    }

    43% {
        opacity: 0;
        /* Começa a sumir cruzando com a próxima */
        transform: scale(1.05);
        /* Termina com 5% de zoom para sensação de movimento */
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* Camada de escurecimento para leitura do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 41, 30, 0.7) 0%, rgba(15, 41, 30, 0.4) 100%);
    z-index: 2;
    /* Fica acima das fotos */
}

/* Conteúdo de Texto e Botões */
.hero-content {
    position: relative;
    z-index: 10;
    /* Fica acima de tudo (fotos e overlay) */
    max-width: 850px;
}

.hero-tagline {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--tarnished-brass);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Ajuda extra na leitura do título */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* STORY SECTION SPECIAL COMPONENTS */
.story-text p {
    margin-bottom: 20px;
    color: #4a5553;
    font-size: 16px;
}

.story-badge {
    display: flex;
    gap: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 4px;
    margin-top: 35px;
    border-left: 4px solid var(--tarnished-brass);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.badge-icon {
    font-size: 32px;
}

.badge-content h4 {
    color: var(--heritage-green);
    margin-bottom: 5px;
}

.badge-content p {
    margin-bottom: 0;
    font-size: 14px;
}

.story-image-wrapper {
    position: relative;
}

.story-image-wrapper img {
    height: 100%;
    min-height: 480px;
}

.image-accent-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--heritage-green);
    color: var(--white);
    padding: 30px;
    border-radius: 2px;
}

.image-accent-box h3 {
    font-size: 24px;
    color: var(--tarnished-brass);
    letter-spacing: 1px;
}

.image-accent-box p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    color: var(--parchment);
}

/* PREMIUM ACCOMMODATIONS CARDS */
.card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(15, 41, 30, 0.12);
}

.card-img-wrapper {
    overflow: hidden;
    height: 240px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 30px;
    text-align: left;
}

.card-body h3 {
    font-size: 22px;
    color: var(--heritage-green);
    margin-bottom: 15px;
}

.card-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.card-features li {
    font-size: 13px;
    font-weight: 700;
    color: var(--saddle-brown);
    margin-bottom: 8px;
}

/* LAZER AND EXPERIENCES LISTS */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    font-size: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(197, 168, 128, 0.3);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 20px;
    color: var(--tarnished-brass);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 15px;
    color: rgba(250, 248, 245, 0.8);
    font-weight: 300;
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

/* CONTACT AND FORMS */
.contact-details {
    margin: 30px 0;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 15px;
}

.contact-form-container {
    background-color: var(--parchment);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.contact-form-container h3 {
    font-size: 24px;
    color: var(--heritage-green);
    margin-bottom: 10px;
}

.contact-form-container p {
    font-size: 14px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--heritage-green);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdad4;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    background-color: var(--white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tarnished-brass);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

/* FOOTER STYLES */
.footer {
    background-color: var(--heritage-green);
    color: var(--white);
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--tarnished-brass);
}

.footer-logo h2 {
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--tarnished-brass);
}

.footer-logo .subtitle {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--parchment);
    opacity: 0.8;
    margin-top: 5px;
}

.footer-logo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    /* Ajuste o tamanho conforme necessário */
}

.footer-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--parchment);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--tarnished-brass);
    opacity: 1;
}

.opacity-50 {
    opacity: 0.5;
}

.copyright {
    font-size: 13px;
    color: rgba(250, 248, 245, 0.6);
    font-weight: 300;
}

/* RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATION) */
@media (max-width: 992px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .section {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-large,
    .item-wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* In a full system, a mobile menu would trigger here */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .image-accent-box {
        position: static;
        margin-top: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .item-large,
    .item-wide {
        grid-column: span 1;
    }
}

/* HIGHLIGHTS / AMENITIES SECTION */
.highlights-section {
    padding: 60px 0;
    /* Padding um pouco menor que o normal para conectar melhor com o banner */
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Cria as 5 colunas perfeitamente divididas */
    gap: 20px;
    margin-top: -100px;
    /* Faz os quadrados subirem um pouco em cima da foto principal (efeito moderno) */
    position: relative;
    z-index: 20;
}

.highlight-card {
    background-color: var(--white);
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 41, 30, 0.1);
}

.highlight-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    /* Garante que as imagens fiquem quadradas/retangulares perfeitas sem distorcer */
    border-radius: 2px;
    margin-bottom: 15px;
}

.highlight-card p {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--heritage-green);
    margin: 0;
}

.highlights-text p {
    font-family: 'Playfair Display', serif;
    /* Fonte com serifa para dar o tom de elegância igual à sua referência */
    font-size: 20px;
    color: var(--brass-dark);
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsividade para telas menores */
@media (max-width: 992px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 colunas em tablets */
        margin-top: 0;
        /* Remove a sobreposição em telas menores */
    }
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas no celular */
    }

    .highlights-text p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        /* 1 coluna em celulares muito pequenos */
    }
}

/* ==========================================================================
   STORY SECTION - FULL HORIZONTAL SPLIT LAYOUT
   ========================================================================== */

.section-full-width {
    width: 100%;
    overflow: hidden;
    /* Evita rolagem horizontal indesejada pelas animações */
    background-color: var(--parchment);
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 80vh;
    /* Garante uma boa altura na tela */
}

.split-text {
    flex: 1 1 60%;
    padding: 8% 10%;
    /* Espaçamento interno responsivo e elegante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--parchment);
}

.split-image {
    flex: 1 1 40%;
    position: relative;
    min-height: 500px;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Caixa de destaque sobrepondo a imagem */
.split-image .image-accent-box {
    position: absolute;
    bottom: 10%;
    left: -40px;
    /* Faz a caixa invadir o lado do texto para criar profundidade (overlap) */
    background-color: var(--heritage-green);
    color: var(--white);
    padding: 40px;
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-accent-box h3 {
    font-size: 28px;
    color: var(--tarnished-brass);
    letter-spacing: 1px;
}

.image-accent-box p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    color: var(--parchment);
}

/* ==========================================================================
   ANIMAÇÕES DE SCROLL (Puro CSS)
   ========================================================================== */

@keyframes slideFadeLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFadeRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplica a animação baseada no scroll da página */
.animate-left {
    /* O navegador dispara a animação conforme o elemento entra na tela (view) */
    animation: slideFadeLeft linear forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
    /* Controla quando começa e termina a animação no scroll */
}

.animate-right {
    animation: slideFadeRight linear forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

/* Responsividade do Full Horizontal para Celulares */
@media (max-width: 992px) {

    .split-text,
    .split-image {
        flex: 1 1 100%;
        /* Empilha um sobre o outro no mobile */
    }

    .split-image .image-accent-box {
        left: 20px;
        /* Remove o overlap que não funciona bem no celular */
        bottom: 20px;
    }

    .split-image {
        min-height: 450px;
    }
}