/* main.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary-brown: #a38c71;
    --hover-brown: #8e7a63;
    --bg-cream: #F3F0EC;
    --text-dark: #2c2c2c;
    --text-light: #6c757d;
    --off-white: #ffffff;
    --navbar-border: #eeeae4;
    --brand-color: #7B6B5A;
    --main-text-color: #655949;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.display-font {
    font-family: 'Playfair Display', serif;
}

.hero-section h1 {
    color: var(--main-text-color);
}

h2 {
    color: var(--main-text-color);
}

/* Navbar */
.top-nav {
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--navbar-border);
    padding: 0.5rem 0;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-brown) !important;
}

.btn-investor {
    background-color: var(--primary-brown);
    color: var(--off-white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-investor:hover {
    background-color: var(--hover-brown);
    color: var(--off-white);
}

/* Logo Section */
.logo-container {
    padding: 3rem 0;
    text-align: center;
}

.brand-text {
    font-size: 1.1rem;
    letter-spacing: 0.15rem;
    font-weight: 400;
    color: #4a4a4a;
    display: inline-block;
    vertical-align: middle;
    margin-right: 1.5rem;
    text-align: right;
    line-height: 1.3;
}

.logo-symbol {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    color: var(--primary-brown);
    display: inline-block;
    vertical-align: middle;
    border-left: 1px solid #d1c8bd;
    padding-left: 1.5rem;
    line-height: 0.8;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.5));
}

@media screen and (max-width: 1400px) {
    .hero-overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5))
    }

    .hero-title,
    .hero-subtitle {
        color: var(--off-white) !important;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--off-white);
    max-width: 700px;
    margin-left: auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: var(--main-text-color);
    font-family: 'Playfair Display', serif;
}

.btn-hero-primary {
    background-color: var(--brand-color);
    color: var(--off-white);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 0.95rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background-color: var(--hover-brown);
    color: var(--off-white);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background-color: var(--off-white);
    color: var(--text-dark);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background-color: #f8f8f8;
    color: var(--primary-brown);
    transform: translateY(-2px);
}

/* Sections Styling */
.section-padding {
    padding: 100px 0;
}

.section-intro-text {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--main-text-color);
}

.residence-section {
    margin-bottom: 60px;
}

.residence-image-container {
    padding: 0;
}

.residence-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.residence-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.residence-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--main-text-color);
}

.residence-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--main-text-color);
}

.btn-outline-brand {
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    width: fit-content;
    text-decoration: none;
}

.btn-outline-brand:hover {
    background-color: var(--brand-color);
    color: var(--off-white);
}

/* CTA Section */
.cta-section {
    background-color: #655949;
    color: var(--off-white);
    padding: 100px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 2.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.4;
    font-weight: 300;
}

.btn-cta {
    border: 1px solid var(--off-white);
    color: var(--off-white);
    padding: 1rem 3rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: var(--off-white);
    color: #655949;
}

/* Updated Footer */
.footer-main {
    background-color: #D3CDC4;
    padding: 80px 0 40px;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: var(--main-text-color);
    margin-bottom: 40px;
}

.footer-links h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--main-text-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    text-decoration: none;
    color: rgba(101, 89, 73, 0.7);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.social-links {
    margin: 30px 0;
}

.social-links a {
    color: var(--main-text-color);
    margin-right: 20px;
    font-size: 1.2rem;
    text-decoration: none;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(101, 89, 73, 0.6);
    margin-top: 40px;
}

@media (max-width: 991.98px) {
    .residence-image {
        height: 400px;
    }

    .residence-content {
        padding: 2rem;
        text-align: center;
        align-items: center;
    }

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

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .hero-content {
        margin-left: 0;
        padding-right: 1rem;
        padding-left: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .brand-text {
        font-size: 1.2rem;
        margin-right: 1rem;
    }

    .logo-symbol {
        font-size: 3rem;
        padding-left: 1rem;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Portfolio Page Custom Styles */
.subpage-header {
    background-color: var(--off-white);
    padding: 60px 0;
    border-top: 1px solid var(--navbar-border);
    border-bottom: 1px solid var(--navbar-border);
    color: var(--brand-color);
}

.btn-filter {
    background-color: transparent;
    border: 1px solid var(--navbar-border);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--brand-color);
    color: var(--off-white);
    border-color: var(--brand-color);
}

.property-block {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.property-title {
    color: var(--brand-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.property-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--main-text-color);
    margin-bottom: 1.5rem;
}

.property-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.property-gallery .gallery-item {
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--navbar-border);
    padding: 3px;
    background: white;
}

@media (max-width: 996px) {
    .property-gallery {
        justify-content: space-around;
    }
}

.property-gallery img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

#lightboxImage {
    max-height: 90vh;
    border: 5px solid white;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-content.bg-transparent {
    background-color: transparent !important;
}

/* Hide animation for filtered out items */
.property-block.hide {
    display: none;
}