/* =========================================================
   CONFIGURAÇÕES GERAIS
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #252525;
    background: #ffffff;
    line-height: 1.7;
    font-size: 16px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.villa-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #ece7df;
    position: relative;
    z-index: 1000;
}

.villa-header-inner {
    width: 90%;
    max-width: 1280px;
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.villa-logo {
    display: flex;
    flex-direction: column;
    color: #8b6a3f;
    line-height: 1.25;
}

.villa-logo-main {
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.villa-logo-sub {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #777066;
}

.villa-header-link {
    color: #6f5637;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #b99159;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.villa-header-link:hover {
    color: #b99159;
}


/* =========================================================
   HERO DA VILLA
========================================================= */

.villa-hero {
    min-height: 430px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
    background-color: #5b5146;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: #ffffff;
}

/* Camada escura para melhorar a leitura do texto */
.villa-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30),
        rgba(0, 0, 0, 0.58)
    );
}

.villa-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.villa-eyebrow {
    margin-bottom: 12px;
    color: #f1d5a9;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.villa-hero h1 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.1;
}

.villa-hero-size {
    color: #ffffff;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
}


/* =========================================================
   INTRODUÇÃO DA VILLA
========================================================= */

.villa-intro {
    padding: 85px 0;
    background: #ffffff;
}

.villa-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 65px;
}

.villa-label {
    margin-bottom: 12px;
    color: #9b774b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.villa-intro h2 {
    color: #28251f;
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.2;
}

.villa-copy p {
    margin-bottom: 20px;
    color: #55514b;
    font-size: 15px;
    line-height: 1.9;
    font-weight: bold;
}

.villa-copy p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   GALERIA DE FOTOGRAFIAS
========================================================= */

.villa-gallery {
    padding: 0 0 90px;
    background: #ffffff;
}

.villa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 330px;
    gap: 18px;
}

.villa-gallery-item {
    min-width: 0;
    overflow: hidden;
    background: #eee9e1;
    border-radius: 3px;
}

.villa-gallery-item.large {
    grid-row: span 2;
}

.villa-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.villa-gallery-item:hover img {
    transform: scale(1.035);
}


/* =========================================================
   COMODIDADES
========================================================= */

.villa-amenities {
    padding: 85px 0 95px;
    background: #f8f5f0;
    font-weight: bold;
}

.villa-section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.villa-section-heading .villa-label {
    margin-bottom: 12px;
}

.villa-section-heading h2 {
    margin-bottom: 15px;
    color: #28251f;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.2;
}

.villa-section-heading > p {
    color: #69635b;
    font-size: 14px;
    line-height: 1.8;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.amenity {
    min-height: 75px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #eee6db;
    text-align: center;
}

.amenity span {
    color: #454039;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   CHAMADA PARA AÇÃO
========================================================= */

.villa-cta {
    min-height: 480px;
    padding: 90px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5b5146;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    text-align: center;
}

.villa-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
}

.villa-cta-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.villa-cta .villa-label {
    color: #f1d5a9;
}

.villa-cta h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
}

.villa-cta p {
    max-width: 680px;
    margin: 0 auto 30px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.9;
}

.villa-btn {
    display: inline-block;
    margin: 7px;
    padding: 15px 25px;
    background: #b99159;
    border: 1px solid #b99159;
    border-radius: 2px;
    color: #ffffff;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.villa-btn:hover {
    background: #967143;
    border-color: #967143;
    transform: translateY(-2px);
}

.villa-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.8);
}

.villa-btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #252525;
}


/* =========================================================
   RODAPÉ
========================================================= */

.villa-footer {
    padding: 45px 20px;
    background: #111111;
    color: #ffffff;
    text-align: center;
}

.villa-footer-brand {
    margin-bottom: 18px;
    color: #d0ad7a;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 27px;
    font-weight: 500;
}

.villa-footer p {
    max-width: 900px;
    margin: 0 auto;
    color: #d2d2d2;
    font-size: 12px;
    line-height: 1.9;
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 900px) {

    .villa-header-inner {
        min-height: 80px;
    }

    .villa-intro {
        padding: 65px 0;
    }

    .villa-intro-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .villa-intro h2 {
        max-width: 700px;
    }

    .villa-gallery {
        padding-bottom: 70px;
    }

    .villa-gallery-grid {
        grid-auto-rows: 280px;
        gap: 14px;
    }

    .villa-amenities {
        padding: 70px 0;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .villa-cta {
        min-height: 430px;
        padding: 75px 20px;
    }
}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 15px;
        line-height: 1.7;
    }

    .container {
        width: 90%;
    }

    .villa-header-inner {
        width: 90%;
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .villa-logo-main {
        font-size: 21px;
    }

    .villa-logo-sub {
        font-size: 10px;
    }

    .villa-header-link {
        font-size: 12px;
    }

    .villa-hero {
        min-height: 350px;
        padding: 65px 20px;
    }

    .villa-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .villa-hero h1 {
        font-size: 43px;
    }

    .villa-hero-size {
        font-size: 14px;
    }

    .villa-intro {
        padding: 52px 0;
    }

    .villa-intro-grid {
        gap: 22px;
    }

    .villa-intro h2 {
        font-size: 33px;
    }

    .villa-copy p {
        font-size: 14px;
        line-height: 1.85;
    }

    .villa-gallery {
        padding-bottom: 55px;
    }

    .villa-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 12px;
    }

    .villa-gallery-item,
    .villa-gallery-item.large {
        grid-row: auto;
        height: 280px;
    }

    .villa-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .villa-amenities {
        padding: 55px 0;
    }

    .villa-section-heading {
        margin-bottom: 30px;
    }

    .villa-section-heading h2 {
        font-size: 35px;
    }

    .villa-section-heading > p {
        font-size: 13px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .amenity {
        min-height: 60px;
        padding: 16px;
    }

    .amenity span {
        font-size: 13px;
    }

    .villa-cta {
        min-height: auto;
        padding: 65px 20px;
    }

    .villa-cta h2 {
        font-size: 38px;
    }

    .villa-cta p {
        font-size: 13px;
        line-height: 1.85;
    }

    .villa-btn {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 12px auto;
        padding: 15px 16px;
        font-size: 11px;
    }

    .villa-footer {
        padding: 35px 20px;
    }

    .villa-footer-brand {
        font-size: 24px;
    }

    .villa-footer p {
        font-size: 11px;
    }
}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 380px) {

    .villa-logo-main {
        font-size: 19px;
    }

    .villa-hero {
        min-height: 310px;
    }

    .villa-hero h1 {
        font-size: 36px;
    }

    .villa-hero-size {
        font-size: 12px;
    }

    .villa-intro h2 {
        font-size: 29px;
    }

    .villa-gallery-item,
    .villa-gallery-item.large {
        height: 235px;
    }

    .villa-section-heading h2 {
        font-size: 30px;
    }

    .villa-cta h2 {
        font-size: 33px;
    }
}


/* =========================================================
   ACESSIBILIDADE: MOVIMENTO REDUZIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   SEÇÃO: VOCÊ PODE ESCOLHER
========================================================= */

.choose-section {
    padding: 60px 0 85px;
    font-weight: bold;
}

.choose-section .section-heading {
    text-align: center;
    margin-bottom: 25px;
}

.choose-section .section-heading h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.2;
    color: #252525;
}

.choose-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 35px;
    padding: 0 12px;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

.choose-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

.choose-card {
    display: block;
    flex: 1 1 250px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.choose-card:focus-visible {
    outline: 3px solid #9a8058;
    outline-offset: 4px;
}

.choose-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.choose-card-content {
    padding: 20px;
    text-align: center;
}

.choose-card h3 {
    margin: 0;
    color: #252525;
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
}


/* =========================================================
   RESPONSIVIDADE PARA CELULARES
========================================================= */

@media (max-width: 600px) {

    .choose-section {
        padding: 45px 0 55px;
    }

    .choose-intro {
        margin-bottom: 25px;
        font-size: 14px;
    }

    .choose-cards {
        gap: 20px;
    }

    .choose-card {
        flex: 1 1 100%;
        max-width: 420px;
    }

    .choose-card img {
        height: 220px;
    }

    .choose-card-content {
        padding: 16px;
    }

    .choose-card h3 {
        font-size: 24px;
    }

}


/* =========================================================
   ACESSIBILIDADE: REDUZIR ANIMAÇÕES
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .choose-card {
        transition: none;
    }

    .choose-card:hover {
        transform: none;
    }

}

/* =====================================================
   CARROSSEL / VISUALIZAÇÃO AMPLIADA DA GALERIA
===================================================== */

.villa-gallery .villa-gallery-item a {
    display: block;
    cursor: zoom-in;
}

.villa-gallery .villa-gallery-item img {
    display: block;
    width: 100%;
}

/* Fundo escuro */
.villa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 76px 64px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.villa-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Área da fotografia */
.villa-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.villa-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Botões */
.villa-lightbox-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.villa-lightbox-button:hover {
    background: rgba(255, 255, 255, 0.27);
}

.villa-lightbox-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.villa-lightbox-close {
    top: 18px;
    right: 22px;
    width: 48px;
    height: 48px;
    font-size: 32px;
    line-height: 1;
}

.villa-lightbox-prev,
.villa-lightbox-next {
    top: 50%;
    width: 52px;
    height: 52px;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.villa-lightbox-prev {
    left: 18px;
}

.villa-lightbox-next {
    right: 18px;
}

.villa-lightbox-prev:hover,
.villa-lightbox-next:hover {
    transform: translateY(-50%) scale(1.06);
}

/* Contador e legenda */
.villa-lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.5px;
}

.villa-lightbox-caption {
    position: absolute;
    right: 80px;
    bottom: 22px;
    left: 80px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.85);
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

/* =====================================================
   CORREÇÃO: RETÂNGULO CINZA NA GALERIA DE FOTOS
===================================================== */

.villa-gallery .villa-gallery-item {
    background: transparent;
    overflow: hidden;
}

.villa-gallery .villa-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    line-height: 0;
    background: transparent;
}

.villa-gallery .villa-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    object-fit: cover;
    vertical-align: middle;
}

/* Evita conflito entre contador e legenda */
.villa-lightbox-caption:empty {
    display: none;
}

/* Celulares e telas estreitas */
@media (max-width: 600px) {
    .villa-lightbox {
        padding: 64px 12px 78px;
    }

    .villa-lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 29px;
    }

    .villa-lightbox-prev,
    .villa-lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 29px;
        background: rgba(0, 0, 0, 0.48);
    }

    .villa-lightbox-prev {
        left: 8px;
    }

    .villa-lightbox-next {
        right: 8px;
    }

    .villa-lightbox-counter {
        bottom: 20px;
    }

    .villa-lightbox-caption {
        right: 12px;
        bottom: 48px;
        left: 12px;
        font-size: 12px;
    }
}

/* Respeita a preferência por menos animação */
@media (prefers-reduced-motion: reduce) {
    .villa-lightbox,
    .villa-lightbox-button {
        transition: none;
    }
}
