@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #3b5249; /* Verde Natureza */
    --primary-light: #517165;
    --secondary-color: #8c6b4a; /* Madeira/Terra */
    --bg-color: #fcfbf9; /* Off-white */
    --bg-alt: #f0eee9; /* Bege suave */
    --text-dark: #1f2924;
    --text-light: #5d6d66;
    --white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 82, 73, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.header.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.header.scrolled .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
}

.header.scrolled .mobile-toggle {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/img/hero/hero-bg.jpg'); /* CORRIGIDO PARA JPG */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay escuro e sofisticado */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sections Base */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

/* Base Photo Grid */
.photo-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

/* Modular Grid Variations */
/* Destaques: 1 grande e 7 menores */
.grid-destaques {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
}
.grid-destaques .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.grid-destaques .gallery-item:nth-child(2) { grid-column: span 2; }

/* Lazer e Natureza: 9 fotos */
.grid-lazer {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
}
.grid-lazer .gallery-item:nth-child(1),
.grid-lazer .gallery-item:nth-child(4),
.grid-lazer .gallery-item:nth-child(8) { 
    grid-column: span 2; 
}

/* Eventos: 7 fotos */
.grid-eventos {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
}
.grid-eventos .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.grid-eventos .gallery-item:nth-child(2),
.grid-eventos .gallery-item:nth-child(7) { grid-column: span 2; }

/* Quartos: 8 fotos */
.grid-quartos {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
}
.grid-quartos .gallery-item:nth-child(1), 
.grid-quartos .gallery-item:nth-child(4),
.grid-quartos .gallery-item:nth-child(7),
.grid-quartos .gallery-item:nth-child(8) { 
    grid-column: span 2; 
}

/* Estrutura: 4 fotos */
.grid-estrutura {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 350px;
}

/* Galeria Completa Dinâmica */
.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
}

/* Gallery Item Styling */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #ddd; /* placeholder background loading */
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Avaliações do Google */
.google-reviews {
    background-color: var(--white);
}

.reviews-card {
    background-color: var(--bg-alt);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.reviews-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    gap: 5px;
}

.reviews-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.reviews-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.reviews-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* CTA Footer Section */
.cta {
    padding: 100px 0;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--white);
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
}

.cta .btn-primary:hover {
    background-color: var(--bg-alt);
}

/* Footer */
.footer {
    background-color: #1a2420;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}

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

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 12px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-notes {
    background-color: rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.footer-notes p {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--white);
}
.footer-notes p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.dev-signature {
    margin-top: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.dev-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: underline;
    text-decoration-color: transparent;
}

.dev-link:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.2rem; }
    
    /* Grids to 2 columns */
    .grid-destaques { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
    .grid-destaques .gallery-item:nth-child(1), .grid-destaques .gallery-item:nth-child(2) { grid-column: span 2; }
    
    .grid-lazer { grid-template-columns: repeat(2, 1fr); }
    .grid-lazer .gallery-item:nth-child(1), .grid-lazer .gallery-item:nth-child(5) { grid-column: span 2; }
    
    .grid-eventos { grid-template-columns: repeat(2, 1fr); }
    .grid-eventos .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    
    .grid-quartos { grid-template-columns: repeat(2, 1fr); }
    .grid-quartos .gallery-item:nth-child(1), .grid-quartos .gallery-item:nth-child(4) { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-link { color: var(--text-dark); font-size: 1.2rem; }
    .mobile-toggle { display: block; z-index: 1001; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; }
    .section-title { font-size: 2rem; }
    
    /* Break all modular grids to 1 column */
    .grid-destaques, .grid-lazer, .grid-eventos, .grid-quartos, .grid-estrutura { 
        grid-template-columns: 1fr; 
        grid-auto-rows: 250px; 
    }
    /* Reset spans */
    .grid-destaques .gallery-item:nth-child(n),
    .grid-lazer .gallery-item:nth-child(n),
    .grid-eventos .gallery-item:nth-child(n),
    .grid-quartos .gallery-item:nth-child(n) { 
        grid-column: span 1; 
        grid-row: span 1; 
    }
}
