
:root {
    /* Palette: Deep Luxury */
    --primary-slate: #0f1115;
    --secondary-slate: #374151;
    --accent-gold: #cfae7d;
    --accent-gold-light: #f0ebe0;
    --bg-cream: #fafaf9;
    --white: #ffffff;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-cream);
    color: var(--secondary-slate);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-slate);
    font-weight: 300;
}

/* Typography sizing */
.display-2 { font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -0.02em; }
.display-4 { font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -0.01em; }
.display-5 { font-size: clamp(1.8rem, 3vw, 3rem); }

.font-serif { font-family: 'Cormorant Garamond', serif; }
.text-gold { color: var(--accent-gold) !important; }
.tracking-wide { letter-spacing: 0.15em; }
.tracking-widest { letter-spacing: 0.25em; }

/* Navigation */
.navbar {
    padding: 2.5rem 0;
    transition: padding 0.5s var(--ease-out-expo), background 0.5s ease;
    z-index: 1000;
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary-slate);
    letter-spacing: -0.02em;
}
.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-slate);
    position: relative;
    padding: 0.5rem 0 !important;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 1px;
    background: var(--accent-gold);
    transition: width 0.6s var(--ease-out-expo);
}
.nav-link:hover::before { width: 100%; }

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 0;
    padding: 1rem 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    margin-top: 1rem !important;
}
.dropdown-item {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.8rem 2rem;
    color: var(--primary-slate);
    transition: all 0.3s ease;
    position: relative;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--accent-gold-light);
    color: var(--primary-slate);
    padding-left: 2.5rem;
}
.dropdown-item:active {
    background-color: var(--accent-gold);
}

/* Buttons */
.btn-elegant {
    background: transparent;
    border: 1px solid var(--primary-slate);
    color: var(--primary-slate);
    padding: 16px 36px;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-out-expo);
    z-index: 1;
}
.btn-elegant::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-slate);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-out-expo);
    z-index: -1;
}
.btn-elegant:hover { color: var(--white); border-color: var(--primary-slate); }
.btn-elegant:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-gold {
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    color: white;
    padding: 16px 36px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 0;
    transition: all 0.4s ease;
}
.btn-gold:hover {
    background-color: #bfa172;
    border-color: #bfa172;
    transform: translateY(-2px);
    color: white;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.hero-section.bg-white {
    background-color: var(--white);
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.85);
    background-color: black; /* Fallback for video */
}
/* Ensure video object-fit covers area */
video.hero-bg {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.hero-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: var(--primary-slate); }
.hero-content.text-white { color: white; }
.hero-content.text-white h1, .hero-content.text-white h2, .hero-content.text-white p { color: white; }

/* Hero Form */
.hero-form-container {
    background: var(--white);
    padding: 3rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}
.hero-form-container h4 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}
.hero-form-container .form-control, .hero-form-container .form-select {
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.hero-form-container .form-label {
    font-size: 0.65rem;
    color: #999;
}

@media (max-width: 991px) {
    .hero-section { min-height: auto; padding-top: 140px; padding-bottom: 80px; }
    .hero-form-container { padding: 2rem; margin-top: 3rem; }
}

/* Services & Pricing */
.service-card {
    border: 1px solid rgba(0,0,0,0.05);
    padding: 3.5rem 2rem;
    transition: all 0.5s ease;
    height: 100%;
    background: white;
}
.service-card:hover {
    background: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: transparent;
}
.service-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

/* Property Listings */
.property-card {
    background: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    cursor: pointer;
    border: 1px solid transparent;
}
.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.property-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
}
.property-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.property-card:hover .property-img {
    transform: scale(1.05);
}
.property-status {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary-slate);
    color: white;
    padding: 5px 12px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    z-index: 10;
}
.property-details {
    padding: 1.5rem;
}
.property-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-slate);
    margin-bottom: 0.5rem;
}
.property-address {
    font-size: 0.95rem;
    color: var(--secondary-slate);
    margin-bottom: 1rem;
    font-weight: 500;
}
.property-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.property-meta span i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* Forms */
.form-control, .form-select {
    background: transparent;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    padding: 1rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    transition: border-color 0.3s ease;
}
.form-control:focus, .form-select:focus {
    background: transparent;
    box-shadow: none;
    border-color: var(--accent-gold);
}
.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin-bottom: 0;
}

/* Responsive borders for stats */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid rgba(0,0,0,0.05);
    }
}

/* Filter Dropdown Specifics */
.filter-select {
    appearance: none;
    background-color: transparent;
    border: 1px solid rgba(0,0,0,0.1) !important; /* Override generic form-select border-bottom */
    border-radius: 0;
    padding: 0.6rem 2.5rem 0.6rem 1.2rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-slate);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.8rem center !important;
    background-size: 14px !important;
    transition: all 0.3s ease;
}
.filter-select:hover, .filter-select:focus {
    border-color: var(--primary-slate) !important;
    background-color: white;
}
.filter-select:focus {
    box-shadow: none !important;
    outline: none;
}

/* Map Section */
.map-container {
    height: 450px;
    width: 100%;
    filter: grayscale(1) contrast(1.1) brightness(0.9);
    border: 1px solid rgba(0,0,0,0.05);
}
.service-area-list {
    list-style: none;
    padding: 0;
    column-count: 2;
}
.service-area-list li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--secondary-slate);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 20px;
}
.service-area-list li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
}

/* Redesign Utilities */
.bg-dark-slate {
    background-color: var(--primary-slate);
    color: var(--bg-cream);
}
.text-cream {
    color: var(--bg-cream);
}
.text-justify {
    text-align: justify;
}
.editorial-text {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}
.editorial-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    margin: 3rem 0;
}

/* Split Section (Index & Contact) */
.split-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 60vh;
}
.split-col {
    flex: 1;
    min-width: 300px;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-col-img {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}
@media (max-width: 991px) {
    .split-col { padding: 3rem 1.5rem; }
}

/* Refined Service Layout (ZigZag) */
.process-row {
    margin-bottom: 6rem;
}
.process-img {
    height: 100%;
    min-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Refined Property Card */
.property-card {
    background: white;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
    height: 100%;
    cursor: pointer;
    border: none; /* Removed border for cleaner look */
    position: relative;
}
.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
/* Move text over image for a more modern look on some variations, 
   but for now we keep the clean bottom text but add spacing */
.property-details {
    padding: 2rem 1.5rem;
}

/* Lead Gen Sections */
.lead-magnet-section {
    background-color: var(--primary-slate);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.lead-magnet-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.lead-magnet-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
}
.lead-magnet-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.lead-magnet-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: none;
}
.bg-gold-subtle {
    background-color: var(--accent-gold-light);
}

/* Footer adjustment */
footer {
    background: var(--primary-slate);
    color: #9ca3af;
    font-weight: 300;
    padding-top: 5rem;
    padding-bottom: 3rem;
    margin-top: auto;
}
footer h5 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; }
footer a { 
    color: #9ca3af; 
    text-decoration: none; 
    transition: 0.3s; 
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}
footer a:hover { color: var(--accent-gold); padding-left: 5px; }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Ensure content is visible if JS fails */
.gsap-fade-up { visibility: visible; opacity: 1; }
