/* Design System - Recanto dos Bocó */
:root {
    --primary: #ff9201;
    --primary-dark: #e68300;
    --primary-light: #ffac33;
    --secondary: #2d5a27;
    --accent: #f9f9f9;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --text-light: #ffffff;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-only {
    display: none;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.hero-btn-main {
    padding: 1.2rem 2.5rem !important;
    font-size: 1.1rem !important;
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    padding: 1.1rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: transparent;
    transition: var(--transition);
}

nav.scrolled {
    background-color: var(--primary) !important;
    padding: 0.6rem 0 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
}

nav.scrolled .logo img {
    max-height: 45px !important;
}

nav.scrolled .logo {
    color: #000000 !important;
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white) !important;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1;
}

.logo img {
    max-height: 80px;
    width: auto;
    display: block;
    transition: var(--transition);
}

nav.scrolled .logo {
    color: #000000 !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white) !important;
    font-weight: 600;
    transition: var(--transition);
}

nav.scrolled .nav-links a {
    color: #000000 !important;
}

nav.scrolled .mobile-menu-toggle {
    color: #000000;
}

/* Ajuste no botão de reserva quando o menu rola para não brigar com o laranja */
nav.scrolled .nav-btn-desktop {
    background: white !important;
    color: #25d366 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 3rem;
    border-radius: 40px;
    max-width: 800px;
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 5rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.about-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: var(--secondary);
    line-height: 1.2;
}

.about-description {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-list {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--secondary);
}

.about-list li i {
    color: var(--primary);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 2rem;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    color: black;
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 20px; right: 20px; }
}

/* Animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── CTA SECTION ─── */
.cta-section {
    display: grid;
    grid-template-columns: 1fr;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 400px;
}

.cta-left {
    background: var(--primary);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    color: #000;
}

.cta-tag {
    display: inline-block;
    background: rgba(0,0,0,0.12);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    width: fit-content;
}

.cta-left h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    color: #000;
    margin: 0;
}

.cta-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 480px;
}

.cta-btn {
    width: fit-content;
    padding: 1.1rem 2.2rem !important;
    font-size: 1rem !important;
    margin-top: 0.5rem;
}

.cta-right {
    background: #1a1a1a;
    padding: 80px 60px;
    display: flex;
    align-items: center;
}

.cta-info-box {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.cta-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    color: var(--white);
}

.cta-info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.cta-info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cta-info-item strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
}

.cta-info-item span {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* ─── FOOTER ─── */
.footer {
    background-color: #111111;
    color: var(--white);
    padding: 0;
}

.footer .container {
    padding-top: 70px;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo {
    max-height: 70px;
    margin-bottom: 1.2rem;
    display: block;
}

.footer-name {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.footer-admin-link {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-admin-link:hover {
    color: var(--primary);
}

/* ─── MOBILE MENU & ACTIONS ─── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

nav.scrolled .mobile-menu-toggle {
    color: #000;
}

/* ─── RESPONSIVE ADJUSTMENTS ─── */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navbar & Mobile Menu */
    .mobile-only {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        list-style: none;
        box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-links::before {
        content: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        opacity: 1;
        transform: none;
        transition: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links.active li {
        opacity: 1;
        transform: none;
    }

    .nav-links li:nth-child(1),
    .nav-links li:nth-child(2),
    .nav-links li:nth-child(3),
    .nav-links li:nth-child(4),
    .nav-links li:nth-child(5),
    .nav-links li:nth-child(6),
    .nav-links li:nth-child(7) {
        transition-delay: 0s;
    }

    .nav-links a {
        display: block;
        color: #1a1a1a !important;
        font-size: 1rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        padding: 1.1rem 1.5rem;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: #f8f8f6;
        color: var(--primary) !important;
        transform: none;
    }

    /* Mobile menu header: logo + close area */
    .mobile-menu-header {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 1.2rem 1.5rem;
        background: #fff;
        border-bottom: 2px solid var(--primary);
        margin-bottom: 0;
    }

    .mobile-menu-header .logo {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1a1a1a !important;
    }

    .mobile-menu-header .logo img {
        max-height: 40px !important;
        filter: none;
    }

    /* Mobile menu footer: social links */
    .mobile-menu-footer {
        border-top: 1px solid #f0f0f0;
        padding: 1.5rem 1.5rem;
        margin-top: auto;
        width: 100%;
    }

    .mobile-menu-footer .footer-social {
        justify-content: flex-start;
        gap: 0.75rem;
        margin-top: 0;
    }

    .mobile-menu-footer .footer-social a {
        width: 38px;
        height: 38px;
        background: #f4f4f4;
        border: none;
        color: #333 !important;
        font-size: 0.95rem;
    }

    .mobile-menu-footer .footer-social a:hover {
        background: var(--primary);
        color: #000 !important;
    }

    /* General Spacing */
    .section-padding {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 2.5rem 1.5rem;
        width: 95%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center;
    }

    .about-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-text ul {
        grid-template-columns: 1fr !important;
        text-align: left;
        width: 100%;
        max-width: 300px;
    }

    /* Features/Amenidades */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 2rem 1rem;
    }

    .feature-card i {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* CTA Section */
    .cta-left {
        padding: 50px 20px;
    }

    .cta-left h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .footer-brand p {
        margin: 0;
    }

    .footer-links ul {
        align-items: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .logo img {
        max-height: 40px !important;
    }
}

/* Reveal Animations Fix for Mobile (prevent horizontal scroll) */
.reveal, .feature-card, .gallery-item, .about-text, .about-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active, .feature-card.active, .gallery-item.active, .about-text.active, .about-image.active {
    opacity: 1;
    transform: translateY(0);
}

/* Announcement Popup */
.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 2001;
    animation: zoomIn 0.4s ease-out;
}

.popup-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: block;
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .popup-close {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}
