/* RESET BÁSICO E CONFIGURAÇÕES GLOBAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7a1b0c; /* Vermelho Escuro */
    --secondary-color: #63160a; /* Vermelho mais escuro para hover */
    --dark-color: #222222; /* Preto um pouco mais suave */
    --light-color: #f4f4f4;
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* UTILITÁRIOS */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* HEADER E NAVBAR */
.header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

.nav-logo img {
    height: 50px; 
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/fundo_principal.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* BOOKING SECTION */
.booking-section {
    background: var(--light-color);
}

.booking-form {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    /* CORREÇÃO 1: Garante altura mínima e aparência mais consistente em mobile */
    min-height: 45px;
    -webkit-appearance: none; 
    appearance: none;
}

/* ROOMS SECTION */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.room-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card img {
    width: 100%;
    height: 180px; 
    object-fit: cover;
}

.room-card h3 {
    margin: 15px; 
    color: var(--primary-color);
    font-size: 1.1rem; 
}

.room-card p {
    margin: 0 15px 15px;
    font-size: 0.9rem; 
}

.room-card ul {
    margin: 0 15px 15px;
    flex-grow: 1; 
}

.room-card ul li {
    margin-bottom: 5px;
    font-size: 0.85rem; 
}

.room-card .btn-secondary {
    margin: 0 15px 15px;
}

/* SEÇÃO DE SERVIÇOS E COMODIDADES */
.services-section {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 40px 25px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card svg {
    fill: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ABOUT SECTION */
.about-section {
    background: #fff; 
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}
.about-content img {
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
}

.about-content p {
    margin-bottom: 1em; 
}


/* GALLERY SECTION */
.gallery-section {
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    background: var(--primary-color);
    color: #fff;
}
.testimonials-section h2 {
    color: #fff;
}

.testimonial-container {
    display: flex;
    gap: 30px;
    overflow-x: auto; 
    padding: 20px; 
    justify-content: flex-start; 
    -webkit-overflow-scrolling: touch; 
}

.testimonial-container::-webkit-scrollbar {
    height: 8px;
}
.testimonial-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}
.testimonial-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.testimonial {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    flex: 0 0 320px; 
    text-align: left;
}
.testimonial blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
}
.testimonial cite {
    font-weight: 600;
}

/* LOCATION SECTION */
.location-section {
    padding-bottom: 80px;
}
.map-container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    height: 450px; 
}
.location-section iframe {
    width: 100%;
    height: 100%; 
    border: none; 
}


/* FOOTER */
.footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}
.social-links {
    margin-top: 15px;
}
.social-links a {
    color: #fff;
    margin: 0 10px;
    font-weight: 600;
}
.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

/* RESPONSIVIDADE */
@media(max-width: 992px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media(max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        display: none; 
    }

    .navbar {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 20px;
    }
    section h2 {
        font-size: 2rem;
    }

    .booking-form {
        flex-direction: column;
        align-items: stretch;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    /* CORREÇÃO 2: Ajusta a imagem da seção "Sobre" para mobile */
    .about-content img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}