/* 
   Pousada Areias de Flecheiras - Design System
   Vibe: Tropical Rustic-Cozy / Premium Beach Resort
*/

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

:root {
    /* Color Palette */
    --primary-bg: #FDFCF0;
    --primary-white: #FFFFFF;
    --accent-ocean: #0070AA; /* Darkened slightly for contrast */
    --accent-tropical: #00A3C4;
    --accent-coral: #FF7F50;
    --accent-sand: #F5E6D3;
    --text-main: #1D1D1B;
    --text-muted: #3D3D3A; /* Darkened for contrast */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Slightly more opaque */
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Spacing */
    --section-padding: 100px 5%;
    --border-radius-lg: 30px;
    --border-radius-md: 15px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Glassmorphism Navbar */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

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

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Makes white background transparent on light nav */
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-coral);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover {
    color: var(--accent-coral);
}

.btn-book {
    background: var(--accent-coral);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.5);
}

/* Mobile Menu Logic */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-main);
    height: 2px;
    width: 25px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before { bottom: 8px; }
.nav-toggle-label span::after { top: 8px; }

.nav-links li.mobile-only {
    display: none;
}

/* Hero Section with Parallax */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.parallax-layer {
    position: absolute;
    top: -10%; /* Extra margin for movement */
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    will-change: transform;
}

.hero-bg {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('hero_flecheiras_pousada.png');
    z-index: 1;
}

.hero-mg {
    background-image: url('hero_mg_sand.png');
    background-size: cover; /* Changed to cover for full-width sand */
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 2;
    mix-blend-mode: multiply; /* Key out white background */
    opacity: 0.95;
    transform: scale(1.1); /* Slight overlap to prevent edges */
}

.hero-fg {
    background-image: url('hero_fg_palm.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    z-index: 4;
    mix-blend-mode: multiply; /* Key out white background */
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 300;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.3);
}

/* Standard Section */
section {
    padding: var(--section-padding);
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 2.5rem;
    color: var(--accent-ocean);
    margin-bottom: 15px;
}

.section-head .underline {
    width: 60px;
    height: 4px;
    background: var(--accent-coral);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 20px 20px 0px var(--accent-sand);
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-ocean);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Accommodations Card Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.room-card {
    background: var(--primary-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.room-img {
    height: 250px;
    overflow: hidden;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.room-card:hover .room-img img {
    transform: scale(1.1);
}

.room-info {
    padding: 30px;
}

.room-info h3 {
    margin-bottom: 10px;
}

.room-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: var(--accent-sand);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.amenity-item i {
    font-size: 2.5rem;
    color: var(--accent-tropical);
    margin-bottom: 15px;
    display: block;
}

/* Footer */
footer {
    background: var(--accent-ocean);
    color: white;
    padding: 80px 5% 40px;
}

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

.footer-logo img {
    height: 90px;
    width: auto;
    margin-bottom: 20px;
    mix-blend-mode: screen; /* Makes black background transparent on dark blue footer */
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col li {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

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

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

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive & Mobile Fixes */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 30px 30px;
    }

    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-desktop-cta {
        display: none;
    }

    .nav-links li.mobile-only {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-fg, .hero-mg {
        display: none; /* Hide intrusive parallax on mobile */
    }

    .hero-bg {
        height: 100%; /* Fix bg height since parallax is off */
        top: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    nav { width: 95%; }
    .nav-container { padding: 8px 15px; }
    .logo img { height: 50px; }
    .nav-toggle-label { padding: 5px; }
}
