/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --oceanic-blue: #083D77;
    --sandstone: #F8F9FA;
    --gold-accent: #E5B80B;
    --gold-accent-dark: #D4AF37;
    --text-dark: #1D2D35;
    --text-light: #FFFFFF;
    --grey: #6c757d;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow: 0 15px 35px rgba(0,0,0,0.08);
    --shadow-dark: 0 15px 35px rgba(0,0,0,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--sandstone);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll {
    overflow: hidden;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.25rem); }
.section-title { text-align: center; margin-bottom: 4rem; }
.page-main { padding-top: 90px; }

/* --- PRELOADER --- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--oceanic-blue); z-index: 9999; display: flex; justify-content: center; align-items: center; }

/* --- HEADER --- */
.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 1000; padding: 25px 0; transition: all 0.4s ease; background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent); }
.header.is-page { position: sticky; background: var(--oceanic-blue); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-light); }
.header-logo { height:85px }
.main-nav { display: none; } /* Hidden by default, shown on larger screens */
.main-nav ul { display: flex; list-style: none; gap: 40px; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--text-light); opacity: 0.8; transition: opacity 0.3s; }
.main-nav a:hover { opacity: 1; }
.mobile-nav-toggle { display: flex; flex-direction: column; justify-content: space-around; width: 28px; height: 24px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.mobile-nav-toggle span { width: 100%; height: 2px; background: var(--text-light); border-radius: 2px; transition: all 0.3s ease-in-out; }

/* --- BUTTONS & FORMS --- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem; }
.btn-primary { background-color: var(--gold-accent); color: var(--text-dark); }
.btn-primary:hover { background-color: var(--gold-accent-dark); transform: translateY(-3px); }
.btn-secondary { background-color: transparent; color: var(--text-dark); border-color: #ccc; }
.btn-secondary:hover { background-color: var(--text-dark); color: var(--text-light); border-color: var(--text-dark); }
input, textarea { width: 100%; padding: 1rem; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
input:focus, textarea:focus { border-color: var(--oceanic-blue); outline: none; }
.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }

/* --- HERO SECTION --- */
.hero { position: relative; height: 95vh; min-height: 700px; display: flex; align-items: center; color: var(--text-light); text-align: center; }
.hero-background-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--oceanic-blue); opacity: 0.6; }
.hero-content { position: relative; z-index: 2; }
.hero-headline { margin-bottom: 1rem; text-shadow: 0 2px 15px rgba(0,0,0,0.3); }
.hero-subheadline { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; }

/* --- INTRO & CTA SECTIONS --- */
.intro-section, .contact-cta-section { padding: 120px 0; }
.intro-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.intro-image img { width: 100%; box-shadow: var(--shadow); }
.intro-content .section-title { text-align: left; }
.contact-cta-section { background-color: #fff; }
.cta-container { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-container h2 { margin-bottom: 1rem; }
.cta-container p { margin-bottom: 2rem; color: var(--grey); }

/* --- AWESOME PROPERTY CARDS --- */
.featured-listings, .sold-properties { padding: 120px 0; }
.featured-listings { background-color: var(--sandstone); }
.sold-properties { background-color: #fff; }
.listings-grid, .blog-grid { 
    display: grid; 
    /* CHANGED: Adjusted minmax for better responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    /* ADDED: Ensures grid items are centered within the container */
    justify-content: center;
}
.property-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.4s ease; }
.property-card:hover { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(0,0,0,0.12); }
.property-image-link { display: block; overflow: hidden; }
.property-image { height: 300px; background-size: cover; background-position: center; position: relative; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.property-card:hover .property-image { transform: scale(1.1); }
.property-status { position: absolute; top: 1rem; left: 1rem; background: var(--oceanic-blue); color: var(--text-light); padding: 5px 15px; font-size: 0.8rem; font-weight: 600; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.property-card.is-sold .property-status { background: var(--grey); }
.property-details { padding: 1.5rem 2rem 2rem; }
.property-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--oceanic-blue); display: block; margin-bottom: 0.25rem; }
.property-address a { font-size: 1.4rem; color: var(--text-dark); text-decoration: none; transition: color 0.3s; }
.property-address a:hover { color: var(--oceanic-blue); }
.property-location { color: var(--grey); }
.property-card.is-sold .property-price { display: none; }
.property-card.is-sold .property-address { margin-top: 0.5rem; }
.view-all-btn { text-align: center; margin-top: 4rem; }

/* --- FOOTER --- */
.footer { background-color: var(--oceanic-blue); color: var(--text-light); padding: 80px 0 30px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer a { color: var(--text-light); text-decoration: none; opacity: 0.7; transition: opacity 0.3s; }
.footer a:hover { opacity: 1; }
.footer h4 { margin-bottom: 1rem; opacity: 0.9; }
.footer ul { list-style: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; margin-top: 40px; padding-top: 30px; opacity: 0.7; }

/* --- INNER PAGE STYLES --- */
.page-header { padding: 100px 0; text-align: center; color: var(--text-light); position: relative; background-size: cover; background-position: center; }
.page-header::after { content:''; position: absolute; top:0; left:0; width: 100%; height: 100%; background: var(--oceanic-blue); opacity: 0.7; }
.page-header h1 { position: relative; z-index: 2; }
.narrow-container { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content-section { padding: 120px 0; }
.team-section { padding: 120px 0; background: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-member-card { text-align: center; }
.team-member-image { height: 300px; background-size: cover; background-position: center top; margin-bottom: 1rem; }
.listings-page-section { padding: 120px 0; }
.page-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.contact-form-section { padding: 120px 0; }
.contact-form button { width: 100%; margin-top: 1rem; }

/* --- RESPONSIVE & MOBILE MENU STYLES --- */
@media (min-width: 992px) {
    .main-nav { display: block; }
    .mobile-nav-toggle { display: none; }
}

@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 100%;
        height: 100vh;
        background-color: var(--oceanic-blue);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }
    .main-nav.open {
        left: 0;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }
    .main-nav a {
        font-size: 2rem;
        opacity: 1;
    }
    .intro-container { grid-template-columns: 1fr; }
    .intro-image { order: -1; margin-bottom: 3rem; }
    .intro-content .section-title { text-align: center; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-col { margin-bottom: 2rem; }
}
