/* --- CSS VARIABLES & BASE STYLES --- */
:root {
    --color-navy: #0C1B33;
    --color-teal: #0d6efd;
    --color-gold: #0d6efd;
    --color-soft-white: #F9FAFB;
    --color-glass: rgba(255, 255, 255, 0.2);
    --color-glass-darker: rgba(255, 255, 255, 0.1);
    --color-text-light: #F9FAFB;
    --color-text-dark: #1F2937;
    --transition-speed: 0.3s;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F9FAFB;
    color: #1F2937;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.section {
    padding: 80px 10%;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-navy);
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
    margin: 10px auto 0;
    border-radius: 2px;
}

#agent h2 {
    position: relative;
    display: inline-block;
}

#agent h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background-color: #25d366;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

.agent-image-box {
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 30px;
    transition: transform 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.agent-image-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease-in-out;
}

/* hover effect */
.agent-image-box:hover {
    transform: scale(1.05);
}


#agent p {
    line-height: 1.7;
}

.btn-success {
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

/* --- Navbar Section --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    color: #F9FAFB;
    background-color: #0C1B33;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: none;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .logo span {
    color: #EAB308;
    font-weight: 600;
    margin-left: 5px;
}

/* --- Navbar Links --- */
.navbar-links {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.navbar-links a {
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.navbar-links a:hover::after {
    width: 100%;
    left: 0;
}

/* --- Mobile Menu Button --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #F9FAFB;
}

/* --- Mobile Menu Styles (hidden by default) --- */
.navbar-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0C1B33;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar-links.mobile-open a {
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(44, 44, 44, 0.55), rgba(0, 0, 0, 0.65)),
        url('https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=800&q=80') no-repeat center center/cover;
    padding: 100px 20px;
    position: relative;
}

.hero h1 span {
    color: #25d366;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-buttons .btn {
    transition: all 0.3s ease;
}

.hero-buttons .btn-success:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

.hero-buttons .btn-outline-light:hover {
    background-color: #25d366;
    color: #fff !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* --- Testimonial Section --- */
#testimonials {
    background: linear-gradient(180deg, var(--color-soft-white), #e6edf7);
}

.testimonial-carousel {
    display: flex;
    gap: 30px;
    overflow-x: scroll;
    padding: 20px 10px;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--color-glass-darker);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.testimonial-card::before {
    content: "\201C";
    font-size: 5rem;
    color: var(--color-teal);
    position: absolute;
    top: 5px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.testimonial-card footer {
    font-weight: 600;
    color: var(--color-soft-white);
    border-radius: 10px 0px 10px 0px;
}

/* ✅ Working Hover Effect for Sold Property Cards */
#sold-listings .card {
    opacity: 0.85;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

#sold-listings .card:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* --- OTHER SECTIONS (NO CHANGES) --- */
#agent {
    background-color: var(--color-soft-white);
    padding: 80px 10%;
}

.agent-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.agent-image-box {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-color: var(--color-navy);
}

.agent-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.agent-image-box img:hover {
    transform: scale(1.05);
}

.agent-bio h3 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.agent-bio p {
    margin-bottom: 20px;
    color: #4b5563;
}

.agent-bio strong {
    color: var(--color-teal);
}

#agent .btn-primary {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* --- Neighborhoods Section --- */
#neighborhoods {
    padding: 60px 10%;
}

.neighborhood-ctas {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.cta-card {
    color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    flex-basis: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--color-navy);
    min-height: 100px;
}

/* --- overlay effect --- */
.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    transition: background 0.3s;
    z-index: 1;
}

.cta-card:hover::before {
    background: rgba(0, 0, 0, 0.55);
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cta-card span,
.cta-card i {
    z-index: 2;
}

/* --- button style --- */
.cta-button-link {
    background: var(--color-teal);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.cta-button-link:hover {
    background: #0c5dd6;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-button-link i {
    margin-right: 10px;
}


/* --- Journey Simplified Section --- */
#journey h2 {
    letter-spacing: 0.5px;
    color: var(--color-navy);
}

.journey-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #e8ecf5;
}

.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.journey-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.journey-list {
    list-style: none;
    padding-left: 0;
}

.journey-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.journey-list li::before {
    content: "~";
    position: absolute;
    left: 0;
    top: 2px;
    color: #1c5cff;
    font-weight: bold;
}

@media (max-width: 767px) {
    .journey-card {
        text-align: center;
    }

    .journey-header {
        flex-direction: column;
    }

    .journey-icon {
        margin-bottom: 10px;
    }
}

/* --- Contact Section --- */
#contact {
    position: relative;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8YnVpbGRpbmd8fHx8fHwxNjk4MzQ5Mzcx&ixlib=rb-4.0.3&q=80&w=1920') no-repeat center center/cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 30px;
    animation: fadeIn 1.5s ease-out;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.contact-content a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.contact-content a:hover {
    text-decoration: none;
}

.contact-buttons a {
    display: inline-block;
    margin: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--color-gold);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.contact-buttons a:hover {
    background: #0c5dd6;
    color: #ffffff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-content h2 {
        font-size: 2rem;
    }

    .contact-content p {
        font-size: 1rem;
    }
}

/* --- Footer Styles --- */
footer {
    background-color: #0C1B33;
    color: var(--color-teal);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 3rem 5% 0.5rem;
}

.footer-col h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--color-success);
}

.footer-col ul {
    list-style-type: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-success);
    padding-left: 5px;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--color-gold);
    transform: translateY(-3px);
}

.footer-sub {
    background-color: #0C1B33;
    padding: 1.5rem 5%;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}


/* --- RESPONSIVENESS: TABLET (1024px) --- */
@media (max-width: 1024px) {

    .navbar {
        padding: 15px 30px;
    }

    .navbar-links {
        display: flex;
    }

    .navbar-links a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-container,
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .agent-image-box {
        width: 250px;
        height: 250px;
    }

    .agent-bio {
        text-align: center;
    }

    .neighborhood-ctas {
        flex-direction: column;
        gap: 20px;
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 300px;
        width: 100%;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .modal-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .modal-footer {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .modal-footer strong {
        flex-basis: 100%;
        text-align: center;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-whatsapp {
        width: 48%;
    }
}

/* --- RESPONSIVENESS: MOBILE (767px) --- */
@media (max-width: 767px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .utility-bar {
        display: none;
    }

    /* --- Navbar Fixes for Mobile --- */
    .navbar {
        top: 0;
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .navbar .logo {
        flex-grow: 1;
    }

    .navbar-links {
        display: none;
        order: 3;
        width: 100%;
    }

    .cta-button {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-left: 5%;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: -100px;
        align-items: center;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .portrait-container {
        width: 200px;
        height: 200px;
    }

    /* --- CRITICAL FIX: Hero Buttons side-by-side on mobile --- */
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 50%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .listing-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .listing-footer .btn-secondary,
    .open-house-tag {
        width: 100%;
        margin-top: 5px;
        font-size: 0.9rem;
    }

    /* Filters */
    .listings-filter {
        justify-content: space-around;
    }

    .filter-button {
        flex-basis: 45%;
        margin-bottom: 10px;
    }

    .section {
        padding: 50px 5%;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-whatsapp {
        width: 100%;
    }
}




/* ===============================
   Realtor About Section Styling
   =============================== */
.realtor-about-sec {
    padding: 80px 10%;
    background: #f9fafb;
    color: #2d2d2d;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

.realtor-about-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #0d3b66;
    margin-bottom: 50px;
    position: relative;
}

.realtor-about-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-gold);
    margin: 12px auto 0;
    border-radius: 3px;
}

.realtor-about-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

/* Image box */
.realtor-photo-box {
    flex: 1 1 300px;
    max-width: 320px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.realtor-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.realtor-photo-box:hover img {
    transform: scale(1.05);
}

/* Bio section */
.realtor-bio-box {
    flex: 1 1 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.realtor-name {
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 15px;
}

.realtor-bio-box p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.realtor-subtitle {
    font-size: 1.2rem;
    color: #f39c12;
    font-weight: 600;
    margin: 25px 0 10px;
}

.realtor-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.realtor-list li {
    background: #f5f8fa;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.realtor-list li:hover {
    background: var(--color-gold);
    color: var(--color-text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .realtor-about-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .realtor-bio-box {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .realtor-about-sec {
        padding: 60px 5%;
    }

    .realtor-about-title {
        font-size: 1.8rem;
    }

    .realtor-name {
        font-size: 1.4rem;
    }
}

