/* =========================================
   CSS Reset & Variables
========================================= */
:root {
    /* Colors */
    --clr-bg-main: #070b08;
    /* Very deep charcoal-green */
    --clr-bg-sec: #0e1610;
    /* Lighter dark green */
    --clr-accent: #0A671E;
    /* Logo Dark Green */
    --clr-accent-hover: #12912f;
    /* Brighter green for contrast */
    --clr-text: #F0F4F1;
    --clr-text-muted: #8a9990;
    --clr-border: #1b2b1f;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg-main);
    color: var(--clr-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(10, 103, 30, 0.4);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 145, 47, 0.5);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 11, 8, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-bold {
    font-weight: 700;
    color: var(--clr-text);
}

.logo-light {
    font-weight: 300;
    color: var(--clr-accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    position: relative;
}

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

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

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

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--clr-text);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--clr-bg-sec);
    z-index: 999;
    padding-top: var(--nav-height);
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 500;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./assets/foto1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed from fixed for mobile compatibility */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(7, 11, 8, 0.7) 0%,
            rgba(7, 11, 8, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--clr-accent);
    color: var(--clr-accent);
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Features Grid
========================================= */
.quick-features {
    padding: 80px 0;
    background-color: var(--clr-bg-main);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--clr-bg-sec);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(18, 145, 47, 0.4);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(10, 103, 30, 0.15);
    color: var(--clr-accent-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Split Section
========================================= */
.split-section {
    padding: 100px 0;
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    gap: 60px;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.split-content p {
    color: var(--clr-text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--clr-text);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--clr-accent);
    font-weight: bold;
}

.split-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.image-wrapper img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    z-index: 2;
    position: relative;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--clr-accent);
    border-radius: var(--radius-md);
    z-index: 1;
}

@media (max-width: 768px) {
    .image-decoration {
        right: 0;
        top: 0;
        transform: translate(10px, 10px);
    }
}

/* =========================================
   Architecture Section
========================================= */
.architecture-section {
    padding: 100px 0;
    background-color: var(--clr-bg-sec);
}

.section-badge {
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-description {
    color: var(--clr-text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
}

.architecture-showcase {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.architecture-showcase img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.showcase-content {
    position: absolute;
    bottom: -40px;
    right: 60px;
    background: rgba(7, 11, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.showcase-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--clr-accent);
}

.showcase-content p {
    color: var(--clr-text-muted);
}

/* =========================================
   Directory / Condôminos Section
========================================= */
.directory-section {
    padding: 100px 0;
    background-color: var(--clr-bg-sec);
    border-top: 1px solid var(--clr-border);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.directory-card {
    background-color: var(--clr-bg-main);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
    text-align: center;
}

.directory-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-accent);
    box-shadow: 0 10px 30px rgba(10, 103, 30, 0.15);
}

.dir-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(10, 103, 30, 0.1);
    color: var(--clr-accent-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* Room Card Additions */
.room-card {
    text-align: left;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.room-details-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.room-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--clr-accent);
    padding: 6px 12px;
    border-radius: 50px;
}

.dir-icon-small {
    color: var(--clr-accent-hover);
    display: flex;
}

/* Filter Buttons */
.room-filters {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    background-color: transparent;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--clr-text);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background-color: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: 0 4px 10px rgba(10, 103, 30, 0.3);
}

.directory-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.directory-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Location Section
========================================= */
.location-section {
    padding: 120px 0;
    background-color: var(--clr-bg-main);
    background-image: radial-gradient(circle at center, rgba(10, 103, 30, 0.08) 0%, rgba(7, 11, 8, 1) 70%);
}

.location-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.location-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.location-content p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.location-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.perk {
    background-color: var(--clr-bg-sec);
    padding: 16px 24px;
    border-radius: 50px;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.perk-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent);
    border-radius: 50%;
}

/* =========================================
   CTA Section
========================================= */
.cta-section {
    padding: 100px 0;
    background-color: var(--clr-bg-sec);
    border-top: 1px solid var(--clr-border);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--clr-bg-main);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--clr-border);
}

.contact-form input {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    background-color: var(--clr-bg-sec);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus {
    outline: none;
    border-color: var(--clr-accent);
}

/* =========================================
   Footer
========================================= */
footer {
    background-color: #040806;
    padding-top: 80px;
    border-top: 1px solid var(--clr-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--clr-text);
}

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

.footer-links ul li a {
    color: var(--clr-text-muted);
}

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

.footer-contact p {
    color: var(--clr-text-muted);
    margin-bottom: 12px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* =========================================
   Animations
========================================= */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal classes set by JS */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
    .split-section {
        flex-direction: column;
        gap: 40px;
    }

    .showcase-content {
        position: relative;
        bottom: 0;
        right: 0;
        margin: -40px auto 0;
        width: 90%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links,
    .navbar .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

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

    .split-section {
        padding: 60px 0;
    }

    .split-content h2,
    .section-title,
    .location-content h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .quick-features,
    .architecture-section,
    .location-section,
    .cta-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .mobile-nav {
        width: 100%;
        max-width: 100%;
        background: rgba(7, 11, 8, 0.98);
        backdrop-filter: blur(15px);
        align-items: center;
    }

    .mobile-nav-links {
        gap: 32px;
    }

    .mobile-nav-links a {
        font-size: 1.5rem;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .check-list li {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    /* Prevent any element from breaking the layout */
    * {
        max-width: 100vw;
    }
}