/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Colors */
    --primary-color: #172F21; /* Deep Forest Green */
    --primary-light: #2A4C37;
    --accent-gold: #C0A16B; /* Muted Elegant Gold */
    --accent-gold-hover: #A88B57;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #FFFFFF;
    --bg-light: #F4F6F4;
    --bg-dark: #121A15;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --section-pad-y: 6rem;
    --container-max: 1200px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 500;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

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

ul {
    list-style: none;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad-y) 0;
}

.bg-light { background-color: var(--bg-light); }
.center { text-align: center; }
.w-100 { width: 100%; }

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    white-space: nowrap;
}

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

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

.btn-solid-gold {
    background-color: var(--accent-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 161, 107, 0.4);
}
.btn-solid-gold:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 161, 107, 0.6);
}

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

.whatsapp-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}
.whatsapp-icon-btn:hover {
    background-color: #1DA851;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.navbar.scrolled .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    line-height: 1.1;
}

.logo span {
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.navbar .btn-outline {
    color: white;
    border-color: white;
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* Mobile Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 999;
    padding-top: 6rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.mobile-nav-links a:not(.btn) {
    color: var(--text-main);
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero-bg img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1);
}

.hero-bg img.slide.active {
    opacity: 1;
    transform: scale(1.08); /* Slow zoom effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(23, 47, 33, 0.8) 0%, rgba(23, 47, 33, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    margin: 0; /* Reset auto margin */
}

.hero-content h1 {
    color: white;
    margin: 1rem 0 1.5rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.badge {
    background-color: rgba(192, 161, 107, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.feature-list li {
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    z-index: -1;
    border-radius: 8px;
}

/* =========================================
   FACILITIES
   ========================================= */
.section-header p {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

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

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* =========================================
   ACTUAL UNITS TABS & SLIDER
   ========================================= */
.actual-units {
    overflow: hidden;
}

.unit-tabs-wrapper {
    margin-top: 3rem;
    position: relative;
    text-align: center;
}

.unit-tabs-label {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: #8CA18B;
    color: white;
    font-size: 1.1rem;
    z-index: 2;
    margin-bottom: 1rem;
}

.unit-tabs-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255,255,255,0.4);
    z-index: 1;
}

.unit-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.unit-tab {
    background-color: transparent;
    border: 2px solid #231F20;
    color: #231F20;
    padding: 0.6rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.unit-tab.active, .unit-tab:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.unit-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto 0;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: #fff;
}

.unit-slider {
    display: none;
    position: relative;
}

.unit-slider.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-wrapper img {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: white;
    transform: scale(1.1);
    color: var(--accent-gold);
}

/* =========================================
   FLOOR PLANS (TABS)
   ========================================= */
.floorplan-tabs-container {
    text-align: right;
    margin-bottom: 2rem;
}

.floorplan-tabs {
    display: inline-flex;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
}

.floor-tab {
    padding: 0.6rem 1.5rem;
    background: white;
    border: none;
    border-right: 1px solid var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.floor-tab:last-child {
    border-right: none;
}

.floor-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.floorplan-content-wrapper {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.floorplan-content {
    display: none;
}

.floorplan-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.fp-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.fp-title-specs {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.fp-main-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.fp-letter {
    width: 40px;
    height: 40px;
    background-color: #8CA18B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.fp-specs-divider {
    font-size: 1.5rem;
    color: #ddd;
    font-weight: 300;
}

.fp-specs-detail {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #231F20;
    font-size: 1.1rem;
    line-height: 1.2;
}

.fp-icons {
    display: flex;
    gap: 1.5rem;
}

.fp-icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-icon-item img {
    width: 32px;
    height: 32px;
}

.fp-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
}

.fp-features li {
    position: relative;
    padding-left: 15px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.fp-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.fp-images {
    display: flex;
    justify-content: center;
}

.fp-images img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .fp-features {
        grid-template-columns: 1fr;
    }
    .floorplan-tabs-container {
        text-align: center;
    }
    .fp-title-specs {
        justify-content: center;
    }
}

/* =========================================
   CONTACT / REGISTER
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: var(--primary-color);
    padding: 3rem;
    border-radius: 8px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-radius: 4px;
    font-family: var(--font-body);
}

.contact-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

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

.contact-form select option {
    color: var(--text-main);
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-bottom: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-container { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-actions { flex-direction: column; }
    .hero-content h1 { font-size: 2.2rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .item-large { grid-column: auto; grid-row: auto; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
