/* --------------------------------------
   Variables & Reset
-------------------------------------- */
:root {
    --primary: #064e3b;           /* Green */
    --secondary: #10b981;         /* Brighter Green */
    --accent: #f59e0b;            /* Yellow/Amber substitution */
    --accent-hover: #d97706;
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-gray-500: #64748b;     /* Fix: was missing, used in .section-desc */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* --------------------------------------
   Typography
-------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--text-light) !important; }
.text-accent { color: var(--accent); }
.text-gray-300 { color: #cbd5e1; }
.text-gray-500 { color: #64748b; }
.text-sm { font-size: 0.875rem; }

/* --------------------------------------
   Layout & Utility
-------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary) !important; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

.align-center { align-items: center; }
.gap-4 { gap: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.pt-5 { padding-top: 3rem; }
.w-100 { width: 100%; }
.max-w-700 { max-width: 700px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.border-top { border-top: 1px solid; }
.border-gray { border-color: rgba(255,255,255,0.1); }

/* Visibility Utilities */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* --------------------------------------
   Header & Navigation
-------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

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

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

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav { display: block; }
    .hidden-mobile { display: inline-block; }
    .mobile-menu-toggle { display: none !important; }
}

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

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

.header.scrolled .nav-links a {
    color: var(--text-light);
}

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

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

.nav-cta.hidden-mobile {
    display: none;
}

@media (min-width: 992px) {
    .nav-cta.hidden-mobile { display: inline-block; }
}

/* Mobile Nav */
.mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    padding: 5rem 2rem 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

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

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a.mobile-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

/* --------------------------------------
   Hero Slider Section
-------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 4rem; /* offset header */
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(217, 119, 6, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.4s both;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.25rem; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* --------------------------------------
   About & Video Section
-------------------------------------- */
.section-heading {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-heading { font-size: 2.8rem; }
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray-500);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --------------------------------------
   Properties Section
-------------------------------------- */
.properties-section {
    background-color: var(--bg-white);
}

.property-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

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

.property-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img {
    transform: scale(1.05);
}

.property-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.property-content p {
    color: var(--text-gray-500);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-block: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --------------------------------------
   Investment Grid
-------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.highlight-box {
    background: rgba(217, 119, 6, 0.1);
    border-left: 3px solid var(--accent);
    padding: 0.8rem;
    border-radius: 0 8px 8px 0;
    color: var(--accent);
    font-weight: 500;
}

/* --------------------------------------
   Floating WhatsApp
-------------------------------------- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition);
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* Hide WhatsApp button on Desktop */
@media (min-width: 768px) {
    .floating-whatsapp {
        display: none !important;
    }
}

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

[data-scroll] {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="reveal"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll="reveal"] {
    transform: translateY(40px);
}

[data-scroll="reveal-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll="reveal-up"] {
    transform: translateY(60px);
}

[data-scroll="reveal-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-scroll="reveal-right"] {
    transform: translateX(40px);
}

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

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .contact-details { grid-template-columns: repeat(2, 1fr); }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.contact-item p, .contact-item a {
    color: var(--text-gray-500);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* --------------------------------------
   WhatsApp Modal
-------------------------------------- */
.wa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wa-modal.show {
    opacity: 1;
    visibility: visible;
}

.wa-modal-content {
    background-color: var(--bg-white);
    padding: 3rem 2rem 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-modal.show .wa-modal-content {
    transform: translateY(0) scale(1);
}

.wa-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-gray-500);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.wa-close:hover {
    color: var(--primary);
}

/* --------------------------------------
   Gallery / Carousel Section
-------------------------------------- */
.gallery-section {
    overflow: hidden;
    padding-bottom: 4rem;
}

/* The outer wrapper that allows full-bleed */
.carousel-outer {
    width: 100%;
    position: relative;
}

/* The visible window */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    cursor: grab;
    user-select: none;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

/* The scrolling strip of slides */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Individual slide */
.carousel-slide {
    flex: 0 0 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 70%;
        height: 580px;
        margin: 0 1.5%;
    }

    .carousel-track {
        /* Allow peeking of adjacent slides */
        padding: 0 15%;
    }
}

@media (min-width: 1200px) {
    .carousel-slide {
        height: 640px;
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
    pointer-events: none;
}

.carousel-slide:not(.is-active) img {
    filter: brightness(0.65) saturate(0.8);
    transform: scale(0.97);
}

.carousel-slide.is-active img {
    filter: brightness(1) saturate(1);
    transform: scale(1);
}

/* Arrow Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.carousel-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(217,119,6,0.35);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

@media (min-width: 768px) {
    .carousel-btn-prev { left: 2rem; }
    .carousel-btn-next { right: 2rem; }
}

/* Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.8rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.35s ease;
    padding: 0;
    flex-shrink: 0;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

.carousel-dot:hover:not(.active) {
    background: var(--secondary);
    transform: scale(1.2);
}
