/* ==========================================================================
   HomeSearchPhoenix.com — Main Stylesheet
   Fonts: Oswald (headlines) + Poppins (body)
   Design: Clean modern real estate aesthetic, gold accent, dark primary
   ========================================================================== */


/* ==========================================================================
   1. RESET & CSS CUSTOM PROPERTIES
   ========================================================================== */

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

:root {
    /* Brand Colors */
    --black:        #000000;
    --white:        #ffffff;
    --red:          #B40101;
    --red-dark:     #8e0101;
    --red-light:    #d42020;

    /* Grays */
    --gray-50:      #f7f7f7;
    --gray-100:     #f0f0f0;
    --gray-200:     #e4e4e4;
    --gray-300:     #cccccc;
    --gray-400:     #aaaaaa;
    --gray-500:     #888888;
    --gray-600:     #54595F;
    --gray-700:     #54595F;
    --gray-800:     #2e2e2e;
    --gray-900:     #1a1a1a;

    /* Semantic */
    --color-primary:     var(--black);
    --color-accent:      var(--red);
    --color-accent-dark: var(--red-dark);
    --color-bg:          var(--white);
    --color-bg-alt:      var(--gray-50);
    --color-text:        var(--gray-700);
    --color-text-dark:   var(--black);
    --color-text-light:  var(--gray-600);
    --color-border:      var(--gray-300);

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body:    'Poppins', sans-serif;

    /* Sizing */
    --container-max:  1228px;
    --container-pad:  16px;
    --radius-sm:      4px;
    --radius:         8px;
    --radius-lg:      12px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow:     0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
    --shadow-xl:  0 16px 48px rgba(0,0,0,0.18);

    /* Transitions */
    --transition: 0.22s ease;
    --transition-slow: 0.38s ease;

    /* Header height (for offset calculations) */
    --top-bar-h: 40px;
    --header-h:  72px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
}

address {
    font-style: normal;
}

textarea {
    resize: vertical;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

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


/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1em;
    max-width: 68ch;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

.text-accent {
    color: var(--red);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 0.5rem;
}


/* ==========================================================================
   3. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
    color: var(--white);
}

.btn-accent {
    background: var(--red);
    color: var(--black);
    border-color: var(--red);
}

.btn-accent:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

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

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--black);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    display: flex;
}


/* ==========================================================================
   4. TOP BAR
   ========================================================================== */

.top-bar {
    background: var(--gray-900);
    color: var(--gray-400);
    font-size: 0.8rem;
    height: var(--top-bar-h);
    display: flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-contact a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.top-bar-contact a:hover {
    color: var(--red);
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--white) !important;
}

.top-bar-sep {
    color: var(--gray-700);
    user-select: none;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-bar-social a {
    color: var(--gray-500);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.top-bar-social a:hover {
    color: var(--red);
}


/* ==========================================================================
   5. HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

/* Logo */
.logo {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    text-decoration: none;
    line-height: 1.2;
}

.logo-accent {
    color: var(--red);
}

a.logo-text {
    color: var(--white);
}

a.logo-text:hover .logo-accent {
    color: var(--red-light);
}

/* Agent headshot in hero */
.agent-headshot {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255,255,255,0.15);
}

/* Footer logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}
.footer-logo-img {
    height: 44px;
    width: auto;
    display: block;
}


/* ==========================================================================
   6. NAVIGATION
   ========================================================================== */

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.82);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--red);
    background: rgba(200, 165, 91, 0.08);
}

/* Dropdown indicator arrow */
.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 0.2rem;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 200;
    list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a,
.dropdown > li > a {
    display: block;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: color var(--transition), background var(--transition);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.dropdown li a:hover {
    color: var(--red-dark);
    background: var(--gray-50);
}

/* Mega Dropdown */
.dropdown-mega {
    display: flex;
    min-width: 560px;
    padding: 1rem 0.5rem;
    gap: 0;
    flex-direction: row;
    left: 0;
}

.dropdown-col {
    flex: 1;
    padding: 0 0.75rem;
    border-right: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown-col:last-child {
    border-right: none;
}

.dropdown-heading {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    padding: 0.4rem 0.35rem 0.6rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-mega .dropdown-col a {
    display: block;
    padding: 0.4rem 0.35rem;
    font-size: 0.83rem;
    color: var(--gray-700);
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-mega .dropdown-col a:hover {
    color: var(--red-dark);
}


/* ==========================================================================
   7. MOBILE NAV (hamburger + responsive)
   ========================================================================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 960px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: calc(var(--top-bar-h) + var(--header-h));
        right: 0;
        bottom: 0;
        width: 300px;
        background: var(--gray-900);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        overflow-y: auto;
        padding: 1.5rem 0;
        z-index: 999;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 1rem;
    }

    .nav-item > a {
        color: rgba(255,255,255,0.85);
        padding: 0.85rem 0.75rem;
        font-size: 0.95rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .has-dropdown > a::after {
        margin-left: auto;
    }

    .dropdown,
    .dropdown-mega {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
        border: none;
        border-radius: 0;
        padding: 0;
        display: none;
        min-width: 0;
        flex-direction: column;
    }

    .has-dropdown.is-open .dropdown {
        display: flex;
        flex-direction: column;
    }

    .dropdown li a,
    .dropdown > li > a,
    .dropdown-mega .dropdown-col a {
        color: rgba(255,255,255,0.65);
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .dropdown li a:hover,
    .dropdown-mega .dropdown-col a:hover {
        color: var(--red);
        background: rgba(200, 165, 91, 0.08);
    }

    .dropdown-col {
        border-right: none;
        padding: 0;
    }

    .dropdown-heading {
        color: var(--red);
        padding: 0.7rem 1.5rem 0.4rem;
        border-bottom: none;
        font-size: 0.7rem;
    }
}


/* ==========================================================================
   8. HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Phoenix skyline gradient — dark atmospheric bg */
.hero-skyline {
    position: absolute;
    inset: 0;
    background:
        /* subtle skyline silhouette at bottom */
        linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 40%),
        /* sky gradient: deep blue-black to charcoal */
        linear-gradient(160deg, #0d1117 0%, #1a1f2e 30%, #1e1208 60%, #0a0a0a 100%);
}

/* City light glow ambiance */
.hero-skyline::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 30% 70%, rgba(180, 1, 1, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(255, 50, 50, 0.04) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left column — agent photo + tagline */
.hero-agent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--white);
    text-align: center;
}

.hero-agent-photo {
    display: flex;
    justify-content: center;
}

.agent-headshot {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero-agent-info h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero-agent-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 0.25rem;
}

.hero-agent-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-agent-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Right column — latest articles */
.hero-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-articles-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--red);
    margin-bottom: 0;
}

.hero-articles-list {
    display: flex;
    flex-direction: column;
}

.hero-article-item {
    display: flex;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
    transition: background var(--transition);
    align-items: flex-start;
}
.hero-article-item:hover {
    background: rgba(255,255,255,0.05);
}

.hero-article-thumb {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
}

.hero-article-cat {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 2px;
}

.hero-article-content h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 2px;
}

.hero-article-content p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.hero-article-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
}

.hero-articles-more {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    padding-top: 0.75rem;
    text-decoration: none;
    transition: color var(--transition);
}
.hero-articles-more:hover {
    color: var(--red-light);
}

/* Legacy — keep for search pages */
.hero-search-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
}

/* City hero variant */
.hero-city {
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.hero-content-centered {
    text-align: center;
}

.hero-content-centered h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: none;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ==========================================================================
   9. SEARCH FORM
   ========================================================================== */

.search-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    margin-bottom: 1rem;
}

.search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-tab {
    flex: 1;
    padding: 0.6rem 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    background: var(--white);
    border: none;
    border-right: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.search-tab:last-child {
    border-right: none;
}

.search-tab:hover {
    background: var(--gray-50);
    color: var(--black);
}

.search-tab.active {
    background: var(--black);
    color: var(--white);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
}

.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,165,91,0.15);
}

.form-group select {
    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='%23707070' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 0.5rem;
    max-width: none;
}


/* ==========================================================================
   10. STATS BAR
   ========================================================================== */

.stats-bar {
    background: var(--black);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}


/* ==========================================================================
   11. SECTIONS
   ========================================================================== */

.section {
    padding: 5rem 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-dark {
    background: var(--black);
}

.section-dark .section-header h2,
.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-dark p,
.section-dark .stat-label {
    color: rgba(255,255,255,0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 52ch;
    margin-inline: auto;
}

.section-header-light h2 {
    color: var(--white);
}

.section-header-light p {
    color: rgba(255,255,255,0.6);
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.content-prose-wrap {
    max-width: 740px;
}

.content-prose-wrap h2 {
    margin-bottom: 1rem;
}

.content-prose-wrap p {
    color: var(--gray-600);
    margin-bottom: 1.25em;
    max-width: none;
}


/* ==========================================================================
   12. LISTINGS GRID & CARDS
   ========================================================================== */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.listing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.listing-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
}

.listing-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-400);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.listing-placeholder span {
    font-size: 0.75rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.listing-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.65rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: var(--radius-sm);
    background: var(--gray-700);
    color: var(--white);
}

.badge-new {
    background: var(--red);
    color: var(--black);
}

.badge-luxury {
    background: var(--black);
    color: var(--red);
    border: 1px solid var(--red);
}

.listing-fav {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--gray-500);
    transition: color var(--transition), background var(--transition);
    border: none;
    cursor: pointer;
}

.listing-fav:hover {
    color: #e53e3e;
    background: #fff5f5;
}

.listing-info {
    padding: 1.25rem;
}

.listing-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.listing-address {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.listing-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.listing-meta span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.25rem 0.6rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}


/* ==========================================================================
   13. COMMUNITIES GRID
   ========================================================================== */

.communities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1rem;
}

.community-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    cursor: pointer;
}

.community-card-lg {
    grid-column: span 2;
    grid-row: span 1;
}

.community-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-300);
    transition: transform var(--transition-slow);
}

.community-card:hover .community-bg {
    transform: scale(1.05);
}

.community-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    transition: background var(--transition);
}

.community-card:hover .community-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}

.community-info {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem;
    width: 100%;
}

.community-info h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.community-link {
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    display: block;
    margin-top: 0.25rem;
    transition: color var(--transition);
}

.community-card:hover .community-link {
    color: var(--red-light);
}

.community-price {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.2rem;
}


/* ==========================================================================
   14. ABOUT
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gray-400);
    border: 2px dashed var(--gray-300);
}

.about-image-placeholder span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.about-image-badge {
    position: absolute;
    bottom: -1.25rem;
    right: -1.25rem;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--red);
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.badge-text {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-content h2 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.about-content p {
    color: var(--gray-600);
    max-width: none;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.about-stat strong {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.about-stat span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.member-title-display {
    font-size: 1rem;
    color: var(--red-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
    align-items: center;
}

.member-specialties strong {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-right: 0.25rem;
}

.specialty-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--gray-700);
    font-weight: 500;
}

.specialty-tag--sm {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
}

.member-contact-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.member-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.member-social a {
    color: var(--gray-500);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.member-social a:hover {
    color: var(--red);
}


/* ==========================================================================
   15. SERVICES / WHY US CARDS
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--gray-900);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    border-color: rgba(200,165,91,0.35);
    box-shadow: 0 8px 32px rgba(200,165,91,0.08);
    transform: translateY(-2px);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    margin-top: 1rem;
}

.service-card p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    flex-shrink: 0;
}


/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--red);
}

.testimonial-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--gray-700);
    font-style: italic;
    flex: 1;
    max-width: none;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
}

.testimonial-author strong {
    font-size: 0.9rem;
    color: var(--black);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ==========================================================================
   17. ARTICLES
   ========================================================================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.articles-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.article-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.15) 100%);
    transition: background var(--transition);
}

.article-card:hover .article-image::after {
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.25) 100%);
}

.article-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.article-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--red);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
}

.article-content {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-content h3 {
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
}

.article-content p {
    font-size: 0.87rem;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
    max-width: none;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.article-meta span {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}


/* ==========================================================================
   18. CTA BANNER
   ========================================================================== */

.cta-banner {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, #0d1117 0%, #1a1208 50%, #0a0a0a 100%);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(200,165,91,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(200,165,91,0.06) 0%, transparent 60%);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: none;
    margin-inline: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ==========================================================================
   19. PRESS / AS SEEN ON
   ========================================================================== */

/* As Seen On banner */
.as-seen-on {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.as-seen-on-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.as-seen-on-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    white-space: nowrap;
}

.as-seen-on-logos {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.as-seen-on-logos img {
    height: 48px;
    width: auto;
}

/* Legacy press section */
.press-section {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.press-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.press-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    white-space: nowrap;
}

.press-logos img {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter var(--transition), opacity var(--transition);
}

.press-logos img:hover {
    filter: grayscale(0%);
    opacity: 0.8;
}


/* ==========================================================================
   20. PAGE HERO (inner pages)
   ========================================================================== */

.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 60%, #1a1208 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(200,165,91,0.07) 0%, transparent 60%);
}

.page-hero-sm {
    padding: 3.5rem 0 3rem;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-content h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 55ch;
}

.page-hero-sub {
    color: rgba(255,255,255,0.65) !important;
    font-size: 1rem !important;
    max-width: 55ch;
}

.page-hero--team {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #1a1208 100%);
}

/* Breadcrumb in page hero */
.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.page-hero .breadcrumb a:hover {
    color: var(--red);
}

.page-hero .breadcrumb span {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

.page-hero .breadcrumb span[aria-current="page"] {
    color: var(--red);
}


/* ==========================================================================
   21. CONTACT
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: none;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,165,91,0.08);
}

.contact-card svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.contact-card a {
    color: var(--red-dark);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.contact-card a:hover {
    color: var(--black);
}

.contact-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.2rem;
    max-width: none;
    margin-bottom: 0;
}

.contact-card span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.contact-form-wrap h2 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form textarea {
    min-height: 130px;
}


/* ==========================================================================
   22. SEARCH PAGE / FILTER BAR
   ========================================================================== */

.search-filters {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 130px;
}

.filter-group-lg {
    flex: 2;
    min-width: 220px;
}

.filter-group input,
.filter-group select {
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}

.filter-group select {
    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='%23707070' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,165,91,0.12);
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    font-size: 0.9rem;
    color: var(--gray-600);
    max-width: none;
    margin: 0;
}

.results-count strong {
    color: var(--black);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.results-sort label {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.results-sort select {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    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='%23707070' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    cursor: pointer;
}


/* ==========================================================================
   23. CONTENT / SIDEBAR (city + article layout)
   ========================================================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.content-body {
    min-width: 0;
}

.content-body h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    color: var(--black);
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    color: var(--black);
}

.content-body p {
    color: var(--gray-600);
    margin-bottom: 1.25em;
    line-height: 1.75;
    max-width: none;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--top-bar-h) + var(--header-h) + 1.5rem);
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-fact {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-fact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-fact-row span:first-child {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.sidebar-fact-row span:last-child {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
}


/* ==========================================================================
   24. BLOG ARTICLE
   ========================================================================== */

/* Article hero */
.article-hero {
    position: relative;
    background: var(--gray-900);
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.article-hero-image {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 1;
}

.article-hero-category {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--red);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    text-decoration: none;
}

.article-hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-author,
.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

/* Article layout (body + sidebar) */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.article-body {
    min-width: 0;
}

.article-lead {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.75;
    font-weight: 500;
    margin-bottom: 1.5rem;
    max-width: none;
}

.article-content-body {
    color: var(--gray-600);
    line-height: 1.8;
}

.article-content-body h2 {
    font-size: 1.5rem;
    color: var(--black);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-content-body h3 {
    font-size: 1.15rem;
    color: var(--black);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-content-body p {
    margin-bottom: 1.25em;
    max-width: none;
}

/* Author card */
.article-author-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-top: 2.5rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    display: block;
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.15rem;
}

.author-title {
    display: block;
    font-size: 0.8rem;
    color: var(--red-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.author-info p {
    font-size: 0.87rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: none;
    margin: 0;
}

/* Article footer bar */
.article-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.article-tag:hover {
    background: var(--red);
    color: var(--black);
    border-color: var(--red);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-share span {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-share a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.article-share a:hover {
    color: var(--red-dark);
}

/* Article sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--top-bar-h) + var(--header-h) + 1.5rem);
}

.sidebar-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--red);
    font-weight: 600;
}

.sidebar-author {
    text-align: center;
}

.sidebar-author-photo {
    width: 90px;
    height: 90px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    margin: 0 auto 1rem;
}

.sidebar-author-name {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.2rem;
    text-transform: none;
    letter-spacing: 0;
}

.sidebar-author-title {
    display: block;
    font-size: 0.78rem;
    color: var(--red-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.sidebar-author-bio {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: none;
}

/* Related articles */
.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-article {
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-article:last-child {
    border-bottom: none;
}

.sidebar-article-link {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    text-decoration: none;
    transition: opacity var(--transition);
}

.sidebar-article-link:hover {
    opacity: 0.75;
}

.sidebar-article-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    background-color: var(--gray-200);
    flex-shrink: 0;
}

.sidebar-article-info {
    flex: 1;
    min-width: 0;
}

.sidebar-article-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 0.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-article-date {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--black) !important;
    border-color: rgba(200,165,91,0.2) !important;
    text-align: center;
}

.sidebar-cta h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
    max-width: none;
}

.sidebar-cta .btn-full {
    margin-bottom: 0.75rem;
}

.sidebar-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red) !important;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color var(--transition);
}

.sidebar-cta-phone:hover {
    color: var(--red-light) !important;
}

/* Article nav back */
.article-nav-back {
    margin-bottom: 2rem;
}


/* ==========================================================================
   25. BLOG CATEGORIES
   ========================================================================== */

.category-filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: calc(var(--top-bar-h) + var(--header-h));
    z-index: 100;
}

.category-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.category-pill:hover {
    background: var(--gray-100);
    color: var(--black);
    border-color: var(--gray-300);
}

.category-pill.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--gray-500);
}


/* ==========================================================================
   26. TEAM
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.team-card-photo {
    height: 240px;
    background: var(--gray-100);
    overflow: hidden;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-card-photo img {
    transform: scale(1.03);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.team-card-info {
    padding: 1.25rem;
}

.team-card-name {
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-card-title {
    font-size: 0.8rem;
    color: var(--red-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    max-width: none;
}

.team-card-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.team-featured {
    grid-column: 1 / -1;
}


/* ==========================================================================
   27. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.55);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--red);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand .logo-text {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    max-width: none;
    margin-bottom: 0.25rem;
}

.footer-address {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
}

.footer-address a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
    text-decoration: none;
}

.footer-address a:hover {
    color: var(--red);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
    background: var(--red);
    color: var(--black);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
    max-width: none;
}

.footer-bottom a {
    color: var(--red);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--red-light);
}


/* ==========================================================================
   28. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    padding: 0.75rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--red-dark);
}

.breadcrumb-sep {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.breadcrumb-current span,
.breadcrumb-item span[aria-current="page"] {
    color: var(--gray-700);
    font-weight: 500;
}


/* ==========================================================================
   MARKET STAT CARDS (city page)
   ========================================================================== */

.market-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition);
}

.market-stat-card:hover {
    box-shadow: var(--shadow);
}

.market-stat-icon {
    width: 56px;
    height: 56px;
    background: var(--red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    margin: 0 auto 1rem;
}

.market-stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.market-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}


/* ==========================================================================
   ZIP CODES
   ========================================================================== */

.zip-codes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.zip-code-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.zip-code-pill:hover {
    background: var(--red);
    color: var(--black);
    border-color: var(--red);
}


/* ==========================================================================
   CTA BLOCK (city page inline CTA)
   ========================================================================== */

.section-cta-block {
    background: var(--gray-50);
}

.cta-block {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.cta-block-content h2 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.cta-block-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: none;
}

.cta-block-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cta-block-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-shrink: 0;
    min-width: 160px;
}

.cta-stat {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.cta-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.cta-stat span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-500);
}


/* ==========================================================================
   29. UTILITIES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-accent {
    color: var(--red);
}


/* ==========================================================================
   30. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ------------------------------------------------------------------
   480px — Small phones
   ------------------------------------------------------------------ */
@media (min-width: 480px) {
    :root {
        --container-pad: 24px;
    }
}

@media (max-width: 480px) {
    .top-bar-contact a[href^="mailto"],
    .top-bar-sep + a {
        display: none;
    }

    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
    }

    .hero-agent {
        order: -1 !important;
        text-align: center;
    }

    .hero-articles {
        order: 10 !important;
    }

    .hero-agent-photo {
        justify-content: center;
    }

    .agent-headshot {
        width: 200px;
        height: 200px;
    }

    .hero-search-card {
        padding: 1.5rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .stat-item:nth-child(2n) {
        border-bottom: none;
    }

    .communities-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .community-card-lg {
        grid-column: span 1;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   768px — Tablets (portrait)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
    }

    .hero-agent {
        order: -1 !important;
        text-align: center;
        align-items: center;
    }

    .hero-articles {
        order: 10 !important;
    }

    .hero-search-wrap {
        order: 10 !important;
    }

    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-badge {
        right: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .communities-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .community-card-lg {
        grid-column: span 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .stat-item:nth-child(2n) {
        border-bottom: 0;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cta-block {
        grid-template-columns: 1fr;
    }

    .cta-block-stats {
        flex-direction: row;
        min-width: 0;
    }

    .cta-stat {
        flex: 1;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group,
    .filter-group-lg {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
}

/* ------------------------------------------------------------------
   960px — Tablets (landscape) / Nav breakpoint
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
    .dropdown-mega {
        min-width: 0;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------------------------------------------------------
   1080px — Small desktops
   ------------------------------------------------------------------ */
@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-grid {
        gap: 2.5rem;
    }

    .communities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-block {
        padding: 2rem;
    }
}

/* ------------------------------------------------------------------
   Min-width 768px — restore columns for tablet landscape +
   ------------------------------------------------------------------ */
@media (min-width: 769px) and (max-width: 959px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ------------------------------------------------------------------
   Desktop — ensure full 960px+ layouts snap in
   ------------------------------------------------------------------ */
@media (min-width: 961px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles-grid:not(.articles-grid-full) {
        grid-template-columns: repeat(3, 1fr);
    }
}
