:root {
    --color-primary-marsala: #721B24;
    --color-background-off-white: #FAF9F6;
    --color-text-graphite: #2D2D2D;
    --color-accent-green: #8F9779;
    --color-accent-gold: #C5A059;
    --font-titles: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-section: 80px;
    --spacing-container: 20px;
    --header-height: 80px
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 17px
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background-off-white);
    color: var(--color-text-graphite);
    overflow-x: hidden;
    line-height: 1.6
}

p {
    font-size: 1rem;
    line-height: 1.7
}

@media(min-width:768px) {
    html {
        font-size: 18px
    }

    p {
        line-height: 1.8
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-titles);
    font-weight: 700;
    color: var(--color-primary-marsala)
}

section h2 {
    font-size: 2rem;
    margin-bottom: 40px
}

@media(min-width:768px) {
    section h2 {
        font-size: 2.5rem
    }
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
    width: 100%
}

section {
    padding: var(--spacing-section) var(--spacing-container);
    min-height: auto;
    position: relative
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0
}

.hidden {
    opacity: 0
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0)
}

.section-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

.section-fade-parallax {
    opacity: 0;
    transition: opacity 1.2s ease-out
}

.section-fade-parallax.visible {
    opacity: 1
}

.stagger-fade>* {
    opacity: 0;
    transition: opacity 0.5s ease-out
}

.stagger-fade.visible>* {
    opacity: 1
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-primary-marsala);
    color: #FFFFFF;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--spacing-container);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none
}

.header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

#main-header.visible {
    opacity: 1;
    pointer-events: auto
}

.header-logo {
    height: 95px;
    width: auto;
    object-fit: contain
}

@media(max-width:767px) {
    .header-logo {
        height: 75px
    }
}

.btn-contact {
    background: linear-gradient(135deg, #D4B26A 0%, #C5A059 50%, #B08F45 100%);
    border: none;
    color: #FFFFFF;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(197, 160, 89, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px
}

.btn-contact i {
    font-size: 1.2rem
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s
}

.btn-contact:hover::before {
    left: 100%
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.5)
}

@media(max-width:767px) {
    .btn-contact {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap
    }

    .btn-contact i {
        font-size: 1rem
    }
}

#hero {
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 15s ease-in-out infinite alternate;
    z-index: 0
}

@keyframes kenBurns {
    0% {
        transform: scale(1)
    }

    100% {
        transform: scale(1.1)
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-marsala);
    opacity: 0.4;
    z-index: 1
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 800px;
    padding: 0 20px
}

.hero-content h1 {
    font-size: 3rem;
    color: #FFFFFF;
    margin: 1rem 0;
    line-height: 1.2
}

.hero-logo {
    height: 180px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    margin: 1.5rem auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3))
}

@media(min-width:768px) {
    .hero-logo {
        height: 220px;
        max-width: 500px
    }
}

.hero-content .pre-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 700;
    display: block
}

.hero-content .subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 700;
    display: block
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    animation: breathe 3s ease-in-out infinite
}

.scroll-indicator:hover {
    opacity: 1
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0)
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px)
    }
}

#about {
    background-color: #FFFFFF
}

.container-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center
}

@media(min-width:768px) {
    .container-split {
        grid-template-columns: 1fr 1fr
    }
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1)
}

#about h2 {
    font-size: 1.5rem;
    line-height: 1.3
}

@media(min-width:768px) {
    #about h2 {
        font-size: 1.8rem
    }
}

#amenities {
    position: relative;
    background-image: url('../images/comodidadesbg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 80px var(--spacing-container)
}

#amenities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(114, 27, 36, 0.75);
    z-index: 1
}

#amenities>* {
    position: relative;
    z-index: 2
}

#amenities h2 {
    color: #FFFFFF
}

.amenities-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0
}

@media(min-width:768px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.amenity-item {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s
}

.amenity-item:hover {
    transform: translateY(-5px)
}

.amenity-item i {
    font-size: 2.5rem;
    color: var(--color-primary-marsala)
}

#accommodations {
    background-color: #fff;
    position: relative
}

.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto
}

.slider-container {
    overflow-x: auto;
    display: flex;
    gap: 20px;
    padding: 20px 20px 40px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth
}

@media(min-width:1024px) {
    .slider-container {
        justify-content: center;
        scroll-snap-type: none;
        padding: 20px 0 40px 0;
        max-width: 1100px;
        margin: 0 auto
    }
}

.slider-container.active {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto
}

.slider-container::-webkit-scrollbar {
    display: none
}

.card {
    min-width: 260px;
    width: 75vw;
    max-width: 350px;
    background: var(--color-background-off-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    user-select: none
}

.card img {
    height: 220px;
    pointer-events: none
}

.card-content {
    padding: 20px
}

.card-content h3 {
    color: var(--color-primary-marsala);
    font-size: 1.5rem;
    margin-bottom: 10px
}

.btn-reserve {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: var(--color-primary-marsala);
    color: #fff;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer
}

.slider-nav {
    display: flex;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 10px
}

.slider-btn {
    pointer-events: auto;
    background-color: rgba(114, 27, 36, 0.3);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    font-size: 1.3rem;
    backdrop-filter: blur(4px)
}

.slider-btn:hover {
    background-color: rgba(197, 160, 89, 0.6);
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4)
}

@media(min-width:768px) {
    .slider-nav {
        padding: 0 20px
    }

    .card {
        width: 45vw;
        max-width: 400px
    }
}

@media(min-width:1024px) {
    .slider-nav {
        padding: 0 0px;
        width: calc(100% + 40px);
        left: -20px
    }

    .card {
        width: 350px
    }
}

#leisure {
    background-color: var(--color-background-off-white)
}

.smart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto
}

.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease
}

.grid-item:hover {
    transform: translateY(-5px)
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease
}

.grid-item:hover img {
    transform: scale(1.05)
}

.item-hero {
    grid-column: span 2;
    grid-row: span 2
}

.item-tall {
    grid-row: span 2
}

.item-wide {
    grid-column: span 2
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(114, 27, 36, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease
}

.grid-item:hover .grid-overlay {
    opacity: 1
}

.grid-overlay span {
    color: white;
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: bold;
    border: 1px solid white;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px)
}

@media(min-width:1024px) {
    .smart-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px
    }

    .item-hero {
        grid-column: span 2;
        grid-row: span 2
    }

    .item-tall {
        grid-row: span 2
    }

    .item-wide {
        grid-column: span 2
    }
}

#convenience {
    position: relative;
    min-height: 600px;
    padding: var(--spacing-section) var(--spacing-container);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('../images/descanso-diversao.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat
}

.convenience-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-marsala);
    opacity: 0.55;
    z-index: 1
}

.convenience-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    text-align: center
}

#convenience h2 {
    color: #FFFFFF;
    margin-bottom: 60px;
    text-align: center
}

.convenience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center
}

.convenience-item {
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center
}

.convenience-item:hover {
    transform: none
}

.item-text {
    margin-bottom: 30px;
    text-align: center
}

.item-text h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700
}

.item-text p {
    color: #FFFFFF;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600
}

.item-image {
    width: 100%;
    max-width: 450px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center
}

.item-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4)
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block
}

@media(min-width:768px) {
    .convenience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        align-items: center
    }
}

#faq {
    background-color: var(--color-background-off-white);
    padding: var(--spacing-section) var(--spacing-container)
}

.accordion {
    max-width: 800px;
    margin: 0 auto
}

.accordion-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd
}

.accordion-header {
    width: 100%;
    padding: 20px 10px;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-graphite);
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary-marsala);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px
}

.accordion-header.active {
    color: var(--color-primary-marsala)
}

.accordion-header.active::after {
    content: '-'
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px
}

.accordion-content p {
    padding: 20px 0;
    margin: 0;
    color: var(--color-text-graphite);
    line-height: 1.8;
    font-size: 1rem
}

#footer {
    background-color: var(--color-primary-marsala);
    color: #ffffff;
    padding: 60px var(--spacing-container) 0
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center
}

.footer-logo {
    height: 125px;
    width: auto;
    object-fit: contain;
    margin: 0 auto
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    max-width: 400px
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--color-accent-gold)
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease
}

.contact-item a:hover {
    color: var(--color-accent-gold)
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease
}

.footer-social a:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-marsala);
    transform: translateY(-3px)
}

.footer-social i {
    font-size: 1.5rem
}

.footer-map {
    width: 100%;
    max-width: 480px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 0;
    text-align: center
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6)
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease
}

.footer-bottom a:hover {
    color: var(--color-accent-gold)
}

@media(min-width:768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center
    }

    .footer-map {
        height: 100%;
        min-height: 320px
    }

    .footer-logo {
        font-size: 2.5rem
    }

    .convenience-grid {
        align-items: center
    }
}