/* Base Styles */
:root {
    --primary-color: #4a7c59;
    --secondary-color: #8fb996;
    --accent-color: #f9a826;
    --text-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #333;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e09416;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.image-placeholder {
    background-color: #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.map-placeholder {
    background-color: #ddd;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

/* Header */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;  
}

header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    transition: filter 0.3s ease;
    filter: brightness(0) saturate(100%) invert(45%) sepia(10%) saturate(1512%) hue-rotate(85deg) brightness(92%) contrast(84%);
}

/* Aplicar um filtro de brilho ao logo quando o header está transparente */
header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1); /* Torna o logo branco */
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

header.scrolled nav ul li a {
    color: var(--primary-color);
}

nav ul li a:hover,
header.scrolled nav ul li a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

header:not(.scrolled) .menu-toggle {
    color: white;
}

.menu-toggle:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    height: 100vh; /* Ocupa 100% da altura da viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0; /* Remove a margem superior */
    padding: 0; /* Remove o padding */
    position: relative;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


/* Gallery Section */
.gallery {
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.02s ease;
}

.gallery-item:hover {
    transform: scale(0 .5);
}

/* Ensure actual images match placeholder size */
.gallery-item img {
    width: 100%;
    height: 200px; /* same as placeholder */
    object-fit: cover;
    display: block;
}

.gallery-item .image-placeholder {
    height: 200px;
    margin-bottom: 0;
}

/* Accommodation Highlight Section */
.accommodations-highlight {
    background-color: white;
    padding: 80px 0;
}

.accommodation-highlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 0px;
    align-items: center;
}

.accommodation-highlight-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.accommodation-highlight-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accommodation-highlight-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.accommodation-highlight-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.accommodation-features {
    list-style: none;
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.accommodation-features li {
    display: flex;
    align-items: center;
}

.accommodation-features li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.accommodation-highlight-text .btn {
    margin-top: 10px;
    display: inline-block;
}

/* Location Section */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 0px;
}

.location-info h3 {
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 10px;
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 0px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-info ul li a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-info ul li a:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Torna o logo branco */
    transition: transform 0.3s ease;
}

.footer-logo a:hover img {
    transform: scale(1.05);
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.contact-info li a {
    color: #aaa;
}

.footer-links ul li a:hover,
.contact-info li a:hover {
    color: var(--accent-color);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info li i {
    margin-right: 10px;
    color: white;
}

.contact-info li a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Estilos para links no footer */
.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-content .about-image {
        order: -1;
    }
}

/* About Page Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.feature-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.feature-content p {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    /* Responsividade para a seção de acomodações em destaque */
    .accommodation-highlight-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .accommodation-features {
        grid-template-columns: 1fr;
    }
    
    /* Responsividade para a seção de localização */
    .location-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-placeholder, .map-placeholder iframe {
        height: 300px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    
    nav ul.active {
        max-height: 500px;
        opacity: 1;
        pointer-events: all;
    }
    
    /* Classe adicional para quando o menu está aberto */
    header.menu-open {
        background-color: white !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Quando o menu está aberto, o botão do menu e o logo ficam escuros */
    header.menu-open .menu-toggle,
    header.menu-open nav ul li a {
        color: var(--primary-color);
    }
    
    /* Garantir que os links do menu mantenham o efeito hover amarelo mesmo quando o menu está aberto */
    header.menu-open nav ul li a:hover {
        color: var(--accent-color);
    }
    
    /* Garantir que o logo fique com a versão escura quando o menu está aberto */
    header.menu-open .logo img {
        filter: brightness(1.0);
    }
   
    nav ul li {
        margin: 0;
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transition-delay: calc(0.05s * var(--item-index, 0));
    }
    
    nav ul.active li {
        transform: translateY(0);
        opacity: 1;
    }
    
    nav ul li:nth-child(1) { --item-index: 1; }
    nav ul li:nth-child(2) { --item-index: 2; }
    nav ul li:nth-child(3) { --item-index: 3; }
    nav ul li:nth-child(4) { --item-index: 4; }
    nav ul li:nth-child(5) { --item-index: 5; }
    nav ul li:nth-child(6) { --item-index: 6; }
    nav ul li:nth-child(7) { --item-index: 7; }
    
    
    
    nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
        transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease;
    }
    
    nav ul li a:hover {
        background-color: transparent;
        padding-left: 20px;
        color: var(--accent-color);
    }
    
    .menu-toggle {
        display: block;
        transition: transform 0.3s ease;
        position: relative;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        transform: scale(1.1);
        color: var(--accent-color);
    }
    
    .menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    /* Garantir que o botão do menu mantenha a cor escura quando ativo, mas ainda tenha o efeito hover amarelo */
    .menu-toggle.active {
        color: var(--primary-color);
    }
    
    .menu-toggle.active:hover {
        color: var(--accent-color) !important;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
  }