* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;;
    background-color: #f6f6f5;
    color: #3d3e3e;
}

.brand-header {
    position: fixed; /* Keeps it at top while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 125px;
    background-color: rgba(246, 246, 245, 0.75); /* 75% Opacity Light Grey */
    backdrop-filter: blur(5px); /* Optional: creates a modern frosted look */
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 65px; /* Adjust based on your image dimensions */
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    color: #3d3e3e;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    /* Required for the zoom effect to be smooth */
    display: inline-block; 
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: right;
}

@media (hover: hover) {
    .nav-item:hover {
        color: #3d3e3e; 
        opacity: 0.75; 
        transform: scale(1.1); 
    }
}
.nav-item:hover {
    color: #3d3e3e; 
    opacity: 75%;
    /* Scales the text up by 10% */
    transform: scale(1.1); 
}

.nav-item.active {
    color: #4ec4dd;
    font-weight: 500;
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.line {
    width: 25px;
    height: 2px;
    background-color: #3d3e3e; /* Dark Grey */
    border-radius: 10px; /* Rounded ends */
    transition: all 0.3s ease-in-out;
}

/* Mobile View (700px) */
@media (max-width: 700px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        right: -100%; /* Hidden by default */
        top: 125px;
        flex-direction: column;
        background-color: rgba(246, 246, 245, 0.75); /* 75% Opacity Light Grey */
        backdrop-filter: blur(5px); /* Optional: creates a modern frosted look */        
        width: 100%;
        padding: 0px 20px 20px 20px;
        height: auto;
        transition: 0.3s;
        text-align: right;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.05);
        gap: 10px;
    }

    .nav-menu.active { right: 0; }

    /* Animation Logic */
    /* Top Line: Rotate 45deg counter-clockwise */
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(-45deg);
    }
    /* Middle Line: Fade out */
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    /* Bottom Line: Rotate 45deg clockwise */
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(45deg);
    }
}

.logo { font-family: 'akzidenz-grotesk-next-pro', sans-serif !important; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 2px; }
.url { font-family: 'akzidenz-grotesk-next-pro', sans-serif; letter-spacing: 1px; }

/* Hero and Background */
.hero-section {
    width: 100%;
    min-height: 100vh; 
    background-color: #f6f6f5; 
    background-image: url('links/JMG_Hero.jpg');
    background-repeat: no-repeat;
    
    /* Pinned to the top edge */
    background-position: center top; 
    background-size: cover; 
    
    display: flex; 
    flex-direction: column;
    align-items: center; 
    text-align: center;
    
    /* Fix: Starts content exactly below the 125px nav bar */
    padding-top: 125px; 
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 700px) { 
    .hero-section { 
        background-position: center top; 
        background-size: auto 100vh; 
        min-height: 100vh;
        /* Ensure mobile also respects the nav height if it stays 125px */
        padding-top: 125px; 
        transition: 0.3s;
    } 
}

/* Typography & Content Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    height: auto;
    /* Added a small top margin to give the H1 breathing room from the nav */
    margin-top: 40px; 
}

.WelcomeType {
    width: 75%;
    height: auto;
    padding: 10px 30px 60px 30px;
}
@media (min-width: 700px) { 
    .WelcomeType {
    width: 40%;
    padding: 20px 30px 75px 30px;
    }
}

h1 { 
    font-family: 'akzidenz-grotesk-next-pro', sans-serif; 
    font-size: 18px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
        margin-left: 30px; margin-right: 30px;
    color: #4ec4dd; 
    font-weight: 500; 
    letter-spacing: 2px;
}

p { 
    max-width: 550px; 
    margin-bottom: 35px;
    margin-left: 50px; margin-right: 50px;
    line-height: 1.6; 
    color: #3d3e3e; 
    font-size: 16px;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;/* Maintaining brand consistency */
}

/* Pill Search - 25px height requested */
.search-container {
    width: 60%; height: 45px; /* Scaled slightly for readability, but kept needle-thin */
    background: #f6f6f5; border-radius: 100px;
    display: flex; align-items: center !important;
    padding: 0 25px; border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin: 0px auto 20px auto;
}
#ai-search-input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: 'akzidenz-grotesk-next-pro', sans-serif; background: #f6f6f5; color: #3d3e3e;}
#mic-btn { background: none; border: none; color: #4ec4dd; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 700px) { .search-container { width: 75%; height: 45px;} }

.search-btn {
    background: #4ec4dd; color: #f6f6f5; padding: 12px 40px; margin-top: 15px;
    border: none; border-radius: 20px; font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; cursor: pointer; transition: transform 0.3s ease-in-out;
}

.search-btn:hover {
    transform: scale(1.1); 
}

.expand-toggle {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #3d3e3e;
    margin: 20px auto !important;
    padding: 0px !important;
    line-height: 20px;
    transition: transform 0.3s ease-in-out; 
}

.expand-toggle:hover {
    transform: scale(1.1); 
}


.advanced-filters{
    position: absolute;
    top: 150px;
    height: max-content;
}

.close-advanced {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    z-index: 10;
}

.close-advanced span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #3d3e3e; /* Your dark grey */
    top: 50%;
    transition: background-color 0.3s ease;
}

/* Form the X */
.close-advanced span:first-child {
    transform: rotate(45deg);
}

.close-advanced span:last-child {
    transform: rotate(-45deg);
}

/* Hover effect */
.close-advanced:hover span {
    background-color: #4ec4dd; /* Your brand blue */
}
.filter-group {
    padding-bottom: 5px !important;
    margin-bottom: 0px !important;
}
/* Fix for the Headlines to keep them consistent */
.filter-group-title {
    display: block;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #4ec4dd !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-group-label {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #3d3e3e !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 5px;
}

.filter-group select,
.input-row select{
    height: 36px !important; /* Force the height */
    padding: 0 15px !important; /* Vertical padding to 0, horizontal to 15px */
    margin-right: 15px;
    line-height: 34px; /* Slightly less than height to center text vertically */
    
    /* Keep the rest of your styles... */
    width: 160px !important;
    font-size: 14px !important;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #787674;
    flex: none !important;
    box-sizing: border-box !important;
}

.filter-group input[type="text"],
.input-row input[type="text"] {
    height: 36px !important;
    width: 160px !important;
    margin-right: 15px;
    padding: 0 15px !important;
    line-height: 34px;
    /* Keep your existing padding and font styles */
    font-size: 14px !important;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box !important;
    color: #3d3e3e;
    flex: none !important;
}


#home-type, #lot-size {
    width: 345px !important;
}


.filter-group input:focus,
.input-row input:focus{
    /* Remove the default blue outline */
    outline: none !important;
    
    /* Apply the 3px grey glow at 50% opacity */
    box-shadow: 0 0 4px 2px rgba(120, 118, 116, 0.25) !important;    
}

.filter-group select,
.input-row select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23787674' stroke-width='3' 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 12px center !important; /* Positions it 12px from the right */
    background-size: 12px !important; /* Adjust size of the chevron here */
    
    background-color: #fff !important; /* Must have a background to show shadow */
}

/* 2. Apply the focus glow specifically to selects */
.filter-group select:focus,
.input-row select:focus {
    outline: none !important;
    /* Feathered grey glow: 8px blur, 3px spread */
    box-shadow: 0 0 4px 2px rgba(120, 118, 116, 0.25) !important;    
}

/* Container for the checkbox and label text */
.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between the circle and the text */
    cursor: pointer;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 14px;
    color: #3d3e3e;
    margin-bottom: 10px;
}

/* Hide the default browser checkbox */
.checkbox-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 20px;   /* Your requested size */
    height: 20px;  /* Your requested size */
    border: 1px solid #ccc;
    border-radius: 50%; /* Makes it a perfect circle */
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

/* The inner circle that appears when checked */
.checkbox-row input[type="checkbox"]::before {
    content: "";
    width: 10px;  /* Your requested size */
    height: 10px; /* Your requested size */
    border-radius: 50%;
    transform: scale(0); /* Hidden by default */
    transition: 120ms transform ease-in-out;
    background-color: #4ec4dd; /* Your brand blue */
}

/* Show the inner circle when the input is checked */
.checkbox-row input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Change border color when checked */
.checkbox-row input[type="checkbox"]:checked {
    border-color: #4ec4dd;
}

.filters-submit {
    background: #4ec4dd; color: #f6f6f5; padding: 12px 40px; margin: 25px auto; width: 250px;
    border: none; border-radius: 20px; font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; cursor: pointer; transition: transform 0.3s ease-in-out;
}

.filters-submit:hover {
    transform: scale(1.1); 
}




/* Featured listings secion */
.featured-headline {
    display: block;       /* Allows margin auto to work */
    margin-left: auto;    /* Pushes from the left */
    margin-right: auto;
    width: 75%;
    height: auto;
}

@media (min-width: 700px) { 
    .featured-headline {
    width: 40%;
    }
}

/* 1. Leave your .featured-headline exactly as it is */
.featured-headline {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    height: auto;
}

@media (min-width: 700px) { 
    .featured-headline {
        width: 40%;
    }
}

#featured-listings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    
    /* This is the track we actually want for the content blocks */
    width: 90%; 
    max-width: 1100px; 
    margin: 40px auto 0 auto;
}

@media (max-width: 900px) {
    #featured-listings-container {
        grid-template-columns: 1fr;
        width: 95%; /* Give a little more room on phones */
    }
}


/* Featured Listings Section Styling */
.featured-listings {
    padding: 60px 20px 0px 0px;
    background-color: #f6f6f5;
}

.featured-container {
    max-width: 80%;
    margin: 0 auto;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns as requested */
    gap: 40px;
    margin-top: 40px;
}

.listing-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.property-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.view-link {
    display: inline-block;
    margin-top: 20px;
    color: #4ec4dd;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: transform 0.3s ease-in-out;
}

.view-link:hover {
    transform: scale(1.1); 
}



@media (max-width: 800px) {
    .listings-grid {
        grid-template-columns: 1fr; /* Stack to one column on mobile */
    }
}

.property-address {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 16px !important;
    letter-spacing: .75px;
    text-transform: uppercase;
    color: #4ec4dd;
    font-weight: 400;
}

/* Container for the MLS and Price */
.listing-details-row {
    display: flex;
    justify-content: space-between; /* This pushes one left and one right */
    align-items: center;            /* Keeps them perfectly leveled horizontally */
    margin-bottom: 10px;            /* Adds a little space before the description */
}

/* Optional: Clean up default margins so they don't break the alignment */
.mlsNumber, .mls-price {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    margin: 0;
    color: #3d3e3e; /* Use your brand blue for the price */
}

.mlsNumber{
    font-size: 16px;
}

.mls-price {
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 16px;
}


.property-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;    /* Sets the exact number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;  /* Adds the "..." automatically */
    
    /* These ensure the height stays consistent */
    line-height: 22px;         
    max-height: 88px;          /* 4 lines * 1.5 line-height = 6em */
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #3d3e3e;
    padding: 0px;
    margin: 10px 0;
}


.more-button-wrapper {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 60px;
}

#load-more-btn {
    background: none;
    border: none;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #3d3e3e;
    cursor: pointer;
    border-bottom: 2px solid #3d3e3e; /* Thin line under the text */
    padding-bottom: 5px;
    transition: 0.3s;
}

#load-more-btn:hover {
    color: #4ec4dd; /* Your brand blue */
    border-bottom-color: #4ec4dd;
    letter-spacing: 6px; /* Subtle expand effect */
}


/* Toggle pushed to bottom above art */
.expand-toggle {
    margin-top: auto; margin-bottom: 150px; padding-top: 50px;
    cursor: pointer; font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
}




/* Zillow Card Style Advanced Filters */
.advanced-filters {
    display: none; background: #f6f6f5;
    padding: 30px; border-radius: 12px; width: 85%;
    max-width: 900px; position: absolute;
    bottom: 220px; z-index: 50; flex-direction: column;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15); border: 1px solid #ddd;
}
.advanced-filters.active { display: flex; }

.filter-section { margin-bottom: 20px; text-align: left; }
.filter-section h3 { font-family: 'akzidenz-grotesk-next-pro', sans-serif; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 15px; color: #3d3e3e; border-bottom: 1px solid #eee; padding-bottom: 5px; }

.filter-row { display: flex; gap: 20px; }
.filter-group { flex: 1; display: flex; flex-direction: column; }
.filter-group label { font-size: 0.7rem; text-transform: uppercase; color: #4ec4dd; margin-bottom: 5px; }
.input-row { display: flex; gap: 10px; }
.filter-group input, .filter-group select { padding: 10px; border: 1px solid #ddd; border-radius: 4px; }

.checkbox-row { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }

.divider {
    width: 80%;               /* Same as your featured listings section */
    height: 3px;              /* Total height of the divider area */
    margin: 10px auto;        /* 60px vertical spacing, auto centers horizontally */
    
    /* 1.5px: the radius of the dot.
       #3d3e3e: your primary dark grey color.
       transparent 0: creates a sharp edge (perfect circle) rather than a blurry fade.
    */
    background-image: radial-gradient(circle, #3d3e3e 1.5px, transparent 0);
    
    /* 20px: The distance between the center of one dot and the next. 
       3px: Matches the height of the div to prevent oval distortion.
    */
    background-size: 10px 3px; 
    background-repeat: repeat-x;
    background-position: center;
}
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1150px; margin: 0 auto; gap: 30px; }
.property-card { background: white; border: 1px solid #e8e8e8; overflow: hidden; transition: 0.3s; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.property-card img { width: 100%; height: 230px; object-fit: cover; }
.card-content { padding: 20px; text-align: left; }
.property-price { font-family: 'akzidenz-grotesk-next-pro', sans-serif; font-size: 1.4rem; color: #3d3e3e; }
.property-address { color: #4ec4dd; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; margin-top: 5px; }

@media (max-width: 1000px) { .results-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .results-grid { grid-template-columns: 1fr; } }



/* --- Specialties Grid --- */
.about-services {
    width: 80%;
    margin: 80px auto;
    text-align: center;
}

/* 1. Leave your .about-headline exactly as it is */
.about-headline {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    height: auto;
}

@media (min-width: 700px) { 
    .about-headline {
        width: 40%;
    }
}

.aboutIntro {
    width: 100%;
    text-aligh: center;
    align-content: center;
    margin: 10px auto;
}

.services-subhead {
    /* Matches address styling */
    font-family: 'akzidenz-grotesk-next-pro', sans-serif; 
    font-size: 18px; 
    text-transform: uppercase; 
    color: #4ec4dd; 
    font-weight: 500; 
    letter-spacing: 2px;
    padding: 30px 0 10px 0 !important;

}
.servicesIntro_body{
    margin: 20px auto;
    line-height: 28px; 
    color: #3d3e3e; 
    font-size: 16px;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;/* Maintaining brand consistency */
    font-weight: 300;
    padding-bottom: 30px;
    max-width: 800px;
}


/* --- SERVICES / SPECIALTIES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    
    /* Apply the 1100px track */
    width: 90%;
    max-width: 1100px;
    margin: 40px auto 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    padding: 25px;
    /*border: 1px solid #787674; */
    border-radius: 5px;
    background-color: #e9e9e9; /* Light Grey 2 */
}

.service-icon {
    width: auto;
    height: 60px;
    margin: 0px;
    padding: 10px;
    object-fit: contain;
}

.service-text h4 {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1.5px;
    color: #4ec4dd;
    margin: 20px 0 10px 0;
}

.service-text p {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: #3d3e3e;
    margin: 0px !important;
}

/* --- Bio Section --- */
.bio-section {
    width: 80%;
    margin: 100px auto;
    text-align: center;
}

/* 1. Leave your .bio-headline exactly as it is */
.bio-headline {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    height: auto;
}

@media (min-width: 700px) { 
    .bio-headline {
        width: 37.5%;
    }
}

/* 3. THE ABOUT SECTION TRACK (MATCHES LISTINGS) */
.bio-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    
    /* Matches the 1100px track above */
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.bio-image-wrapper {
    flex: 1;
}

.bio-photo {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.bio-content {
    flex: 1.5;
}

.bio-name {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 2px;
    color: #4ec4dd;
    margin-bottom: 22px;
}

.license {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    display: block;
    font-size: 16px;
    color: #787674;
    font-weight: 400;
    margin-top: 5px;
    letter-spacing: 1px;
}

.bio-content p {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: #3d3e3e;
    margin-bottom: 20px;
    margin: 0px !important;
}

/* --- Mobile Fixes --- */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bio-container {
        flex-direction: column;
        text-align: left;
    }
    .services-grid { grid-template-columns: 1fr; }
}

.bio-container {
    display: flex;
    align-items: flex-start; /* Keeps text aligned to top of image height */
    gap: 80px;
    margin-top: 60px;
    text-align: left;
}

.bio-content {
    flex: 1.5; /* Text takes more room */
}

.bio-image-wrapper {
    flex: 1; /* Image takes less room */
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .bio-container {
        /* This flips the order visually so the 2nd item (image) appears 1st */
        flex-direction: column-reverse; 
        text-align: left;
        gap: 30px;
    }

    .bio-image-wrapper {
        width: 100%; /* Ensures photo doesn't look tiny on mobile */
        max-width: 400px; /* Optional: prevents headshot from becoming giant */
        margin: 0 auto;
    }
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eeeeee; /* The 1px stroke border you asked for */
    border-bottom: 1px solid #eeeeee;
}

.stats-list-vertical {
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid #eeeeee; /* Top boundary */
}

.stat-row {
    display: flex;
    justify-content: flex-start; /* Aligns both elements to the left */
    align-items: baseline;      /* Ensures the bottom of the text lines up perfectly */
    gap: 10px;                  /* Space between the blue number and grey text */
    padding: 10px 0;            /* Vertical spacing for each "line" */
    border-bottom: 1px solid #eeeeee; /* 1px stroke border between items */
}

.stat-number {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 18px;         /* Slightly smaller for a single-line look */
    letter-spacing: 1.5px;
    font-weight: 500;
    color: #4ec4dd;            /* Brand Blue */
    min-width: 80px;           /* Ensures the grey text starts at the same vertical spot */
}

.stat-label {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #787674;            /* Grey text */
    text-transform: uppercase;
    margin-left: 0px;
}

/* Mobile: Just adjusts the font size slightly if needed */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.2rem;
        min-width: 70px;
    }
    .stat-label {
        font-size: 0.75rem;
    }
}


/* --- RESPONSIVENESS --- */
/* Ensure both grids stack correctly on mobile */
@media (max-width: 900px) {
    .services-grid, 
    .reviews-container {
        grid-template-columns: 1fr; /* Single column for tablets/phones */
        width: 95%; /* Wider on small screens to use available space */
    }
}

.reviews-section {
    width: 80%;
    margin: 100px auto;
    text-align: center;
}

.reviews-subtext {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}


/* Grid Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px auto 60px auto;
     width: 90%; 
    max-width: 1100px; 
}

.review-card {
    background-color: #e9e9e9; /* Your requested background */
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 5px; /* Keep it architectural */
}

.review-body {    
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-style: italic;
    line-height: 24px;
    color: #333;
    margin: 0px !important;
    font-size: 14px;
}
.review-author {
    padding-top: 25px;
}

.author-name {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    display: block;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 12px;
    color: #4ec4dd;
    text-transform: uppercase;
    padding-top: 10px;
}

.author-detail {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    display: block;
    font-size: 10px;
    color: #787674;
    margin-top: 4px;
}
.stars {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    color: #bba775;
    font-size: 14px;    
}
/* Footer & Pill Button */
.reviews-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.zillow-stats {
        font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    color: #3d3e3e;
    font-size: 12px;
}

.review-count {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    display: block;
    font-size: 12px;
    letter-spacing: 1.5px;
    line-height: 20px;
    color: #787674;
    margin-top: 5px;
}

.pill-button {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    display: inline-block;
    padding: 10px 40px;    
    border: 1px solid #4ec4dd; /* 1px stroke border */
    border-radius: 50px;       /* This creates the "Pill" shape */
    text-decoration: none;
    color: #4ec4dd;
    font-weight: 500;
    letter-spacing: 1.5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.pill-button:hover {
    background-color: #4ec4dd;
    color: #f6f6f5;
    transform: scale(1.1); 
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .reviews-grid { grid-template-columns: 1fr; }
    .review-card { padding: 30px; }
}


.buzz-section {
    display: flex;
    flex-direction: column;
    align-items: center;    /* This centers the headline, subhead, and list */
    text-align: center;
    width: 90%; 
    max-width: 1100px; 
    margin: 80px auto 0 auto;
}

@media (max-width: 900px) {
    .buzz-section {
        width: 95%; /* Give a little more room on phones */
    }
}


.buzz-headline {
    display: block;       /* Allows margin auto to work */
    margin-left: auto;    /* Pushes from the left */
    margin-right: auto;
    width: 60%;
    height: auto;
}

@media (min-width: 700px) { 
    .buzz-headline {
    width: 30%;
    }
}


.buzz-subhead {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 40px 0 15px 0;
    color: #4ec4dd;
    text-transform: uppercase;
    font-size: 18px;
}


.buzz-lead {
    font-size: 16px;
    line-height: 24px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px auto;
}


/* 2. The 1100px Track */
.buzz-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 80px auto;
    flex: 0 1 auto;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .buzz-list {
        width: 80%; /* Give a little more room on phones */
    }
}

/* 3. The Story Row (Desktop Default) */
.buzz-story {
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 60px;
    text-align: left;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 4. The Image Wrapper (50% Split) */
.buzz-image-wrapper {
    flex: 1 1 50%;
    max-width: 50%;
    border-radius: 5px;
}

.buzz-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* 5. The Text Content Area (50% Split) */
.buzz-content {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
}

/* --- TYPOGRAPHY STYLES --- */

.buzz-story-title {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    color: #4ec4dd;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: -4px; /* Alignment tweak for desktop */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1.5px;
}

.buzz-content p {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #3d3e3e;
    margin-bottom: 15px;
    margin-left: 0px;
}

.buzz-link {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

/* --- MOBILE STACKING (MUST BE AT THE BOTTOM) --- */

@media (max-width: 900px) {
    .buzz-story {
        flex-direction: column;
        gap: 30px;
    }
    
    .buzz-image-wrapper, 
    .buzz-content {
        flex: none;
        width: 100%;
        max-width: 100%; /* Overrides the 50% limit on mobile */
    }

    .buzz-story-title {
        margin-top: 0; /* Resets alignment for mobile stack */
        text-align: left;
    }

    .buzz-lead {
        width: 90%;
        max-width: 1100px;
        margin: 0 auto 60px auto;
    }
}


/* Start of Contact Section */
.contact-section {
    width: 80%;
    margin: 80px auto 40px auto;
    text-align: center;
}

.contact-container {
    background-color: #f6f6f5; /* Matching your review cards/body grey */
    padding: 20px 60px;
    border-radius: 8px;
    max-width: 900px;
    margin: 25px auto 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

/* Matching the search input styles exactly */
.contact-form input, 
.contact-form textarea {
    flex: 1;
    padding: 12px 25px;
    border: 1px solid #ddd;
    border-radius: 30px; /* Same pill-shape as search */
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    color: #3d3e3e;
}

.contact-form textarea {
    border-radius: 20px; /* Slightly less round for the box */
    resize: vertical;
}

/* Reusing your search-btn class for the hover effect and style */
.contact-form .search-btn {
    width: fit-content;
    padding: 12px 40px;
    margin: 10px auto 0 auto;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .contact-container {
        padding: 30px 20px;
    }
}
.contact-btn {
    background: #da5f7c; 
    color: #f6f6f5; 
    padding: 12px 40px; 
    margin-top: 15px;
    border: none; 
    border-radius: 20px; 
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-size: 12px; 
    cursor: pointer; 
    
    /* ADD THESE TWO LINES */
    width: fit-content;
    align-self: center;

    /* Cleaned up your transitions into one line */
    transition: transform 0.3s ease-in-out, background 0.3s;
}

.contact-btn:hover {
    transform: scale(1.1); 
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    background: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
}

.captcha-label input {
    width: 18px;
    height: 18px;
    accent-color: #4ec4dd; /* Matches your brand blue */
}


.CTA_section {
    width: 80%;
    margin: 40px auto;
    padding: 40px 0; 
    background-color: #f6f6f5;
    
    /* The Flexbox Magic */
    display: flex;
    flex-direction: row;      /* Puts items on one line */
    align-items: center;      /* Centers items vertically */
    justify-content: center;   /* Centers items horizontally */
    gap: 15px;                /* Adds space between the image and text */
}

.call_to_action {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;                /* Removes default paragraph margins */
}

.CTA_Type {
    width: 100px;
    height: auto;
}

.phoneLG {
    color: #da5f7c; 
    font-size: 18px; 
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;      
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    text-transform: uppercase; 
}


@media (max-width: 768px) {
    .CTA_section {
        flex-direction: column !important; /* Stack vertically */
        padding: 40px 20px !important;    /* Add some breathing room */
        gap: 20px !important;             /* Space between image and text */
        text-align: center;
    }
}

.site-footer {
    background-color: #3d3e3e;
    padding: 60px 20px 20px 20px; /* Increased padding for better breathing room */
    color: #fffef7;
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;

    /* THE FIX: Force everything into a centered vertical column */
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centers items horizontally */
    justify-content: center; /* Centers items vertically */
    text-align: center;
}
.socialCTA {
    font-size: 14px;
    color: #fffef7 !important;
    font-weight: 300;
    line-height: 1.6;
    margin: 20px 0 20px 0;
    letter-spacing: 0.5px;
}

/* Address Styling */
.footer-address {
    font-size: 12px;
    color: #fffef7 !important;
    font-weight: 300;
    line-height: 1.6;
    margin: 20px 0 20px 0;
    letter-spacing: 0.5px;
}

/* Middle Link Section */
.footer-links {
    margin: 0px 0px 20px 0px;
}

.footer-links a {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    color: #fffef7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0 15px;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* 1. Transform individual footer links */
.footer-links a:hover {
    transform: scale(1.1);
    opacity: 0.5; /* Optional: adds a little visual feedback */
}

/* Social Icons Styling */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0px 10px 0px;
}

.footer-socials a {
    color: #fffef7; /* Matching your original light grey */
    font-size: 18px; /* Slightly larger for web usability */
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
}

.footer-socials a:hover {
    color: #787674; /* Changed to a visible highlight color */
    transform: scale(1.2); 
}

.footer-legal {
    width: 100%;             /* Ensures the border spans the width */
    max-width: 600px;        /* Keeps the line from being too long */
    margin: 10px auto 10px auto;
    padding-top: 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-legal p {
    font-family: 'akzidenz-grotesk-next-pro', sans-serif;
    color: #fffef7 !important;
    font-size: 10px;
    font-weight: 300;
    margin: 0;               /* Critical: Removes default browser margins */
    text-align: center;      /* Double-check centering */
    width: 100%;
    opacity: 0.8;
}


/* Responsive adjustment */
@media (max-width: 600px) {
    .footer-links a {
        display: block;
        margin-bottom: 10px;
    }
}