/* /css/style.css */

/* Variáveis de Cores Oficiais da Cabana Cervo Dourado */
:root {
    --verde-floresta: #0a281e; /* Cor exata extraída do fundo do logótipo PNG */
    --dourado: #d4af37;
    --bege: #f4f1ea;
    --branco: #ffffff;
}

/* Reset de margens padrão do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bege);
    color: var(--verde-floresta);
}

/* Navbar com Fundo Sólido e Sombra Escura */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 10;
    background-color: var(--verde-floresta);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Controlo de tamanho e responsividade para o logótipo oficial */
.logo-img {
    max-height: 80px; /* Limita a altura máxima na barra */
    max-width: 100%;  /* Impede que a imagem ultrapasse o contentor em ecrãs pequenos */
    height: auto;     /* Mantém a proporção original perfeita */
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.menu a {
    color: var(--branco);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--dourado);
}

.btn-reserva {
    border: 1px solid var(--dourado);
    color: var(--dourado);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-reserva:hover {
    background-color: var(--dourado);
    color: var(--verde-floresta);
}

/* Hero Section (Ecrã Inteiro) */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Para escurecer levemente as fotos e destacar o texto branco/dourado */
.swiper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 50px;
    max-width: 800px;
    margin-top: -50px;
}

.hero-content h1 {
    color: var(--dourado);
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--branco);
    font-size: 20px;
}

/* Booking Widget (Caixa de Pesquisa de Datas) */
.booking-widget {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    /* Efeito Glassmorphism (Vidro) */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.booking-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--branco);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group select {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: var(--branco);
    color: var(--verde-floresta);
}

/* Botão Verificar com bloqueio de quebra de linha */
.btn-verificar {
    background-color: var(--dourado);
    color: var(--verde-floresta);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    height: 44px;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.btn-verificar:hover {
    transform: scale(1.05);
}

/* Design Responsivo (Telemóveis e Tablets pequenos) */
@media (max-width: 900px) {
    .navbar {
        padding: 20px;
    }
    .logo-img {
        max-height: 60px;
    }
    .menu ul {
        display: none;
    }
    .hero-content {
        padding: 0 20px;
        margin-top: -150px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .booking-widget {
        width: 90%;
        bottom: 5%;
        padding: 20px;
    }
    .booking-form {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-verificar {
        margin-top: 10px;
        white-space: normal;
    }
}