/* ==========================================
   OSOS ESTATES - LUXURY DESIGN SYSTEM
   Warm Ivory, Champagne Gold, Hotel Aesthetic
   ========================================== */

:root {
    --bg-primary: #FAF8F5;       /* Warm Ivory */
    --bg-secondary: #FFFDFB;     /* Pure Soft Ivory */
    --bg-accent: #F4EFE6;        /* Deep Warm Ivory */
    --gold: #D4AF37;             /* Champagne Gold */
    --gold-dark: #B5932A;        /* Deep Gold */
    --gold-light: #E9D28B;       /* Light Champagne Gold */
    --text-primary: #2C2421;     /* Deep Bronze Charcoal */
    --text-secondary: #6E655F;   /* Muted Taupe */
    --text-light: #FAF8F5;       /* Light text */
    --border-color: #E7DFD3;     /* Soft Gold-Ivory Line */
    --card-shadow: 0 12px 30px rgba(44, 36, 33, 0.06);
    --hover-shadow: 0 20px 40px rgba(212, 175, 55, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --header-height: 70px;
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

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

/* Custom Scrollbar for global window */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Utility Classes */
.gold-text {
    color: var(--gold) !important;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 0;
    min-height: 48px; /* Touch target size */
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--text-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(250, 248, 245, 0.4);
    backdrop-filter: blur(5px);
}

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

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    box-shadow: 0 4px 20px rgba(44, 36, 33, 0.04);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    height: 58px;
    width: 58px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Active mobile menu */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Views State */
.view-tab {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-tab.active {
    display: block;
}

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

.main-content {
    margin-top: var(--header-height);
    padding-bottom: 60px; /* Space for mobile sticky consultation bar */
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(85vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    color: var(--text-light);
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.hero-desc {
    color: rgba(250, 248, 245, 0.8);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Featured Projects Section */
.projects-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.projects-section .section-header {
    text-align: center;
    padding: 0 1.5rem;
}

/* Region Filter Bar */
.region-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem 0;
    padding: 0 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(44, 36, 33, 0.02);
}

.filter-tab:hover {
    color: var(--gold-dark);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.filter-tab.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(44, 36, 33, 0.1);
}

/* Horizontal Cards Track */
.slider-wrapper {
    position: relative;
    padding-bottom: 1.5rem;
}

.project-slider {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1.5rem;
    gap: 1.5rem;
    justify-content: center;
}

/* Project Card layout */
.project-card {
    flex: 0 0 100%; /* Show one project card per row on mobile */
    scroll-snap-align: none;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card.active {
    border-color: var(--gold);
    box-shadow: var(--hover-shadow);
    transform: translateY(-4px);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: var(--bg-accent);
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(44, 36, 33, 0.85);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--gold);
}

.card-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    border-top: 1px solid rgba(231, 223, 211, 0.5);
    padding-top: 0.75rem;
}

.card-price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.card-price {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Slider Custom Indicator Scrollbar */
.slider-indicator-container {
    max-width: 150px;
    height: 2px;
    background-color: var(--border-color);
    margin: 1.5rem auto 0;
    position: relative;
    border-radius: 1px;
}

.slider-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: var(--gold);
    border-radius: 1px;
    transition: transform 0.2s ease-out;
}

/* Showcase Dynamic Content Container */
.showcase-outer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.showcase-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 2rem 1.5rem;
    min-height: 400px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Template Layout inside Showcase */
.showcase-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.showcase-header .meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.showcase-header .visa-badge {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-dark);
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.showcase-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
}

/* Showcase Grid Layout: Media & Information */
.showcase-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Media Gallery in Showcase */
.showcase-gallery-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio */
    background-color: #1a1412;
    overflow: hidden;
}

.gallery-main-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-main-item.active {
    opacity: 1;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex: 0 0 70px;
    height: 50px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.gallery-thumb.active, .gallery-thumb:hover {
    opacity: 1;
    border-color: var(--gold);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.video-thumb {
    position: relative;
    background-color: #222;
}

.gallery-thumb.video-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
}

/* Project Specifications & Content */
.showcase-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showcase-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.specs-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-left: 2px solid var(--gold);
    padding-left: 0.75rem;
}

/* Unit Selection Grid */
.unit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unit-card {
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.unit-card:hover {
    border-color: var(--gold);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(44, 36, 33, 0.08);
    padding-bottom: 0.5rem;
}

.unit-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.unit-price {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.unit-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.unit-spec-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.unit-spec-item svg {
    color: var(--gold);
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-accent);
    border-left: 2px solid var(--gold);
}

.amenity-item svg {
    color: var(--gold-dark);
}

.amenity-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Investment Highlights */
.highlights-box {
    background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlights-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.highlights-list li::before {
    content: "•";
    color: var(--gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0.2rem;
    top: -0.2rem;
}

/* Payment Plan Timeline styling */
.payment-plan-box {
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(44, 36, 33, 0.05);
    padding-bottom: 0.4rem;
}

.payment-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Lifestyle / Oman section */
.lifestyle-section {
    padding: 5rem 1.5rem;
    background-color: var(--bg-accent);
}

.lifestyle-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.lifestyle-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.perks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.perk-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--card-shadow);
}

.perk-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.perk-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.perk-info p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* About Section View */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.about-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    margin-bottom: 3rem;
}

.about-hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
}

.about-hero-content p {
    color: rgba(250, 248, 245, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.about-block h2 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.about-block p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-contacts-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-contacts-list li {
    font-size: 1rem;
}

.about-contacts-list a {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about-contacts-list a:hover {
    color: var(--gold);
}

/* Contact Section View */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

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

.contact-info-block {
    display: flex;
    flex-direction: column;
}

.contact-lead-desc {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.contact-item:hover {
    border-color: var(--gold);
    box-shadow: var(--card-shadow);
}

.contact-icon {
    width: 42px;
    height: 42px;
    background-color: var(--bg-accent);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.contact-text strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.social-links-container {
    margin-top: auto;
}

.social-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* Contact Form Block */
.contact-form-block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    box-shadow: var(--card-shadow);
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 0;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--bg-secondary);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}

/* Fixed Elements (WhatsApp & Mobile CTA) */
.fixed-actions-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    pointer-events: none; /* Let clicks pass through default layout space */
}

.floating-whatsapp {
    position: absolute;
    right: 1.25rem;
    bottom: 5.5rem; /* Sits above sticky mobile Consultation bar */
    width: 54px;
    height: 54px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    pointer-events: auto; /* Enable clicks */
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
}

.sticky-consultation-bar {
    width: 100%;
    background-color: rgba(44, 36, 33, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--gold);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto; /* Enable clicks */
}

.sticky-consultation-bar .bar-tag {
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.sticky-consultation-bar .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
    min-height: auto;
    background-color: var(--gold);
    color: var(--text-primary);
    border-color: var(--gold);
}

.sticky-consultation-bar .btn:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
}

/* Modal / Lightbox overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 36, 33, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
    padding: 2.25rem 1.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 50px rgba(44, 36, 33, 0.2);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header p {
    font-size: 0.85rem;
}

/* Footer styling */
.footer {
    background-color: var(--text-primary);
    color: var(--text-secondary);
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: rgba(250, 248, 245, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Media Queries for Responsiveness */

/* Tablets (min-width: 768px) */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .project-card {
        flex: 0 0 calc(50% - 0.75rem); /* Two cards per row on tablet wrap layout */
    }

    .showcase-container {
        padding: 3rem;
    }

    .showcase-body {
        grid-template-columns: 1fr; /* Single column stack like mobile */
        gap: 2.5rem;
    }

    .perks-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 perks inline */
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr; /* Contact side by side */
        gap: 4rem;
    }

    .about-details {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }

    .sticky-consultation-bar {
        padding: 1rem 3rem;
    }
    
    .floating-whatsapp {
        right: 3rem;
        bottom: 6rem;
    }
}

/* Desktop & Large Devices (min-width: 1024px) */
@media (min-width: 1024px) {
    .header-container {
        padding: 0 3rem;
    }
    
    .menu-toggle {
        display: none; /* Hide hamburger menu icon on desktop */
    }

    .project-card {
        flex: 0 0 calc(33.333% - 1rem); /* Show 3 project cards per row on desktop */
    }
    
    .projects-section .slider-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }

    .showcase-gallery-block {
        position: static;
    }
    
    .main-content {
        padding-bottom: 0; /* Remove padding since Consultation bar is hidden on desktop */
    }

    .sticky-consultation-bar {
        display: none; /* Hidden on desktop */
    }

    .floating-whatsapp {
        bottom: 2rem; /* Sit lower since sticky bar is hidden */
        right: 3rem;
    }
}

/* Mobile Nav Menu Show/Hide state */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2.5rem 1rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        box-shadow: 0 10px 25px rgba(44, 36, 33, 0.08);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Floorplans & Layouts */
.floorplan-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.floorplan-tabs {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
}

.floorplan-tab-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.floorplan-tab-btn:hover, .floorplan-tab-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.floorplan-viewer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floorplan-main-wrapper {
    position: relative;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
}

.floorplan-main-item {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.floorplan-main-wrapper:hover .floorplan-main-item {
    transform: scale(1.02);
}

.floorplan-zoom-hint {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(44, 36, 33, 0.75);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    pointer-events: none;
    letter-spacing: 0.05em;
}

.floorplan-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
}

.floorplan-thumb {
    flex: 0 0 80px;
    height: 60px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.floorplan-thumb.active, .floorplan-thumb:hover {
    opacity: 1;
    border-color: var(--gold);
}

.floorplan-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 12, 11, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bottom Sheet Slide-Up Panel */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    transform: translateY(var(--sheet-translate, 100vh));
    will-change: transform;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-sheet.transitioning {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    will-change: opacity, backdrop-filter;
}

.bottom-sheet-backdrop.transitioning {
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), backdrop-filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-sheet-backdrop.active {
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

/* Header & Handle */
.bottom-sheet-header {
    width: 100%;
    height: 48px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.bottom-sheet-header:active {
    cursor: grabbing;
}

.bottom-sheet-handle {
    width: 48px;
    height: 5px;
    background-color: #555;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.bottom-sheet-header:hover .bottom-sheet-handle {
    background-color: var(--gold);
}

.bottom-sheet-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    background-color: var(--bg-accent);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bottom-sheet-close:hover {
    background-color: var(--border-color);
    color: var(--gold);
}

/* Scrollable Content Container */
.bottom-sheet-content {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(var(--sheet-visible-height, 100vh) - 48px);
    padding-bottom: 5rem;
}

/* Customize content look inside bottom sheet */
.bottom-sheet-content .showcase-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5rem !important;
    min-height: auto !important;
}

/* Blur background page */
header.blurred,
main.blurred {
    filter: blur(5px) brightness(0.85);
    pointer-events: none;
}

header, main {
    transition: filter 0.4s cubic-bezier(0.25, 1, 0.5, 1), brightness 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Region filters staggering card classes */
.project-card {
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                flex 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                margin-right 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                padding 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s ease;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.project-card.filtered-out {
    opacity: 0 !important;
    transform: scale(0.85) translateY(10px) !important;
    flex: 0 0 0% !important;
    margin-right: -1.5rem !important; /* matches gap */
    border-width: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none !important;
    overflow: hidden;
}

/* Desktop styles centering the sheet */
@media (min-width: 768px) {
    .bottom-sheet {
        left: 50%;
        right: auto;
        width: 100%;
        max-width: 900px;
        transform: translate(-50%, var(--sheet-translate, 100vh));
    }
}

/* Hide horizontal slider custom progress indicator */
.slider-indicator-container {
    display: none !important;
}

/* Desktop Centered Overlay Panel Override (min-width: 1024px) */
@media (min-width: 1024px) {
    .bottom-sheet {
        top: 50% !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        width: 85vw !important;
        max-width: 1100px !important;
        height: 85vh !important; /* Exactly 85% of viewport height */
        border-radius: 20px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
        border: 1px solid var(--border-color) !important;
        
        /* Expansion animation properties */
        transform: translate(-50%, -50%) scale(0.9) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        will-change: transform, opacity;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    .bottom-sheet-content {
        height: calc(85vh - 56px) !important; /* Content height matches overlay precisely */
    }
    
    .bottom-sheet.transitioning {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    /* When active (any state that is not hidden) */
    .bottom-sheet.preview-state,
    .bottom-sheet.details-state,
    .bottom-sheet.fullscreen-state {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .bottom-sheet.hidden-state {
        transform: translate(-50%, -50%) scale(0.9) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Disable drag handle visuals since dragging is disabled on desktop */
    .bottom-sheet-handle {
        display: none !important;
    }
    .bottom-sheet-header {
        cursor: default !important;
        height: 56px !important;
    }
}

/* Dedicated Standalone Project Page Layout (Natural Full Page Scrolling) */
body.standalone-project-page {
    overflow-y: auto !important;
}

body.standalone-project-page .bottom-sheet-backdrop {
    display: none !important;
}

body.standalone-project-page .bottom-sheet {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 92% !important;
    max-width: 1050px !important;
    height: auto !important;
    margin: 2.5rem auto 5rem !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-secondary) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.standalone-project-page .bottom-sheet-header {
    display: none !important;
}

body.standalone-project-page .bottom-sheet-content {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 2.5rem !important;
}

/* Premium Scroll Reveal Animation */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Iframe Overlay Modal */
.iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 12, 11, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000; /* Higher than sheet and lightbox */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iframe-overlay.active {
    display: flex;
    opacity: 1;
}

.iframe-container {
    width: 95%;
    height: 90%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    animation: iframeZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes iframeZoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.iframe-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.iframe-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0;
}

.iframe-close:hover {
    color: var(--gold);
}

.iframe-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}
