/* ==========================================================================
   LUXURY REAL ESTATE — Main Stylesheet
   Design System + All Component Styles
   ========================================================================== */

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Primary */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #8a8a8a;
    --color-text-on-dark: #f5f3ef;
    --color-text-on-dark-muted: rgba(245, 243, 239, 0.6);

    /* Accent */
    --color-accent: #c4a87d;
    --color-accent-hover: #b5956b;
    --color-accent-light: rgba(196, 168, 125, 0.12);

    /* Backgrounds */
    --color-bg-white: #ffffff;
    --color-bg-warm: #f8f6f3;
    --color-bg-dark: #1a1a1a;
    --color-bg-dark-secondary: #232323;

    /* Borders & Dividers */
    --color-border: #e5e0da;
    --color-border-light: #f0ece7;
    --color-divider: #d4cfc7;

    /* Overlay */
    --color-overlay-dark: rgba(26, 26, 26, 0.35);
    --color-overlay-medium: rgba(26, 26, 26, 0.55);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.12);
    --shadow-hover: 0 12px 40px rgba(26, 26, 26, 0.15);

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 120px;

    /* Section padding */
    --section-padding: 120px;
    --section-padding-tablet: 80px;
    --section-padding-mobile: 56px;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 900px;
    --container-wide: 1400px;
    --container-padding: 24px;

    /* Breakpoints (for reference — used in media queries) */
    --breakpoint-mobile: 767px;
    --breakpoint-tablet: 1023px;
    --breakpoint-desktop: 1024px;
    --breakpoint-wide: 1280px;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Buttons */
    --btn-radius: 0;
}


/* ==========================================================================
   2. RESET / NORMALIZE
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-secondary);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}


/* ==========================================================================
   3. BASE TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 300;
}

h1 {
    font-size: 64px;
    line-height: 1.1;
}

h2 {
    font-size: 48px;
    line-height: 1.15;
}

h3 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

h4 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.body-large {
    font-size: 19px;
    line-height: 1.7;
}

.body-small {
    font-size: 15px;
    line-height: 1.6;
}

.caption {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

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

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.section--warm {
    background-color: var(--color-bg-warm);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-text-on-dark);
}

.section--dark p {
    color: var(--color-text-on-dark-muted);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__header h2 {
    margin-top: var(--space-xs);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--btn-radius, 0);
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 38px;
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-text-primary);
    border-radius: var(--btn-radius, 0);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-bg-white);
}

.btn-on-dark {
    border-color: var(--color-text-on-dark);
    color: var(--color-text-on-dark);
}

.btn-on-dark:hover {
    background-color: var(--color-text-on-dark);
    color: var(--color-bg-dark);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
}


/* ==========================================================================
   5b. ABOUT PREVIEW (Homepage)
   ========================================================================== */

.about-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-preview__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 600px;
    object-fit: cover;
    object-position: top center;
}

.about-preview__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-preview__content h2 {
    margin-top: var(--space-xs);
}

@media (max-width: 767px) {
    .about-preview__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    background-color: transparent;
    transition: padding 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--color-border-light);
    backdrop-filter: blur(8px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 1.2;
}

.header__logo-img {
    max-height: 56px;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
}

.header__name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-on-dark);
    transition: color 300ms ease;
}

.header__tagline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
    transition: color 300ms ease;
}

.is-scrolled .header__name {
    color: var(--color-text-primary);
}

.is-scrolled .header__tagline {
    color: var(--color-text-muted);
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-list li {
    position: relative;
}

.nav-list > li > a {
    position: relative;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-on-dark);
    text-decoration: none;
    padding: 8px 0;
    transition: color 300ms ease;
}

.is-scrolled .nav-list > li > a {
    color: var(--color-text-primary);
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-accent);
    transition: width 300ms ease;
}

.nav-list > li > a:hover::after,
.nav-list > li.current-menu-item > a::after {
    width: 100%;
}

/* Dropdown menus */
.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    padding: var(--space-sm) 0;
    z-index: 100;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list .sub-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: color 200ms ease, background-color 200ms ease;
}

.nav-list .sub-menu a:hover {
    color: var(--color-text-primary);
    background-color: var(--color-accent-light);
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__phone {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-on-dark);
    text-decoration: none;
    transition: color 300ms ease;
}

.is-scrolled .header__phone {
    color: var(--color-text-primary);
}

.header__phone.pulse {
    animation: phonePulse 600ms ease-in-out 2;
}

@keyframes phonePulse {
    0%, 100% { color: inherit; }
    50% { color: var(--color-accent); }
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-on-dark);
    transition: background-color 300ms ease, transform 300ms ease, opacity 300ms ease;
}

.is-scrolled .header__hamburger span {
    background-color: var(--color-text-primary);
}

/* Solid header style (from Theme Settings — always has background, never transparent) */
.site-header--solid { padding: 12px 0; background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 1px 0 var(--color-border-light); }
.site-header--solid .header__name { color: var(--color-text-primary); }
.site-header--solid .header__tagline { color: var(--color-text-muted); }
.site-header--solid .nav-list > li > a { color: var(--color-text-primary); }
.site-header--solid .header__phone { color: var(--color-text-primary); }
.site-header--solid .header__hamburger span { background-color: var(--color-text-primary); }


/* ==========================================================================
   7. MOBILE MENU
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg-white);
    z-index: 2000;
    transition: right 400ms cubic-bezier(0.23, 1, 0.32, 1);
    padding: var(--space-3xl) var(--space-xl);
    overflow-y: auto;
}

.mobile-menu.is-open {
    right: 0;
}

.mobile-menu__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
}

.mobile-menu__list {
    margin-top: var(--space-xl);
}

.mobile-menu__list li {
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu__list > li > a {
    display: block;
    padding: var(--space-sm) 0;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text-primary);
}

.mobile-menu__list .sub-menu {
    padding-left: var(--space-md);
    padding-bottom: var(--space-sm);
}

.mobile-menu__list .sub-menu a {
    display: block;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-secondary);
}

.mobile-menu__contact {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-menu__phone,
.mobile-menu__email {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-secondary);
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

body.menu-open {
    overflow: hidden;
}


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

.hero {
    position: relative;
    width: 100%;
    /* v0.9: trim hero height — 100vh on a desktop monitor left ~400px of dead space below the CTA.
       82vh keeps it a true above-the-fold hero on most screens without the awkward gap. */
    height: 82vh;
    min-height: 560px;
    max-height: 880px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.2) 0%,
        rgba(26, 26, 26, 0.4) 60%,
        rgba(26, 26, 26, 0.6) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-on-dark);
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero__logo {
    max-height: 124px;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 800ms ease-out 100ms forwards;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    color: var(--color-text-on-dark);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1000ms ease-out 300ms forwards;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: heroFadeIn 1000ms ease-out 600ms forwards;
}

.hero__cta {
    opacity: 0;
    animation: heroFadeIn 1000ms ease-out 900ms forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page hero (static image) — used on inner pages */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-on-dark);
    padding: 0 var(--space-md);
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-text-on-dark);
}

.page-hero__subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
    margin-top: var(--space-sm);
}


/* ==========================================================================
   9. CARDS
   ========================================================================== */

/* Property Card */
.property-card {
    background: var(--color-bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

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

.property-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.property-card:hover .property-card__image img {
    transform: scale(1.03);
}

.property-card__status {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 12px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-bg-white);
    background-color: var(--color-accent);
}

.property-card__status--sold {
    background-color: var(--color-text-primary);
}

.property-card__status--pending {
    background-color: var(--color-text-secondary);
}

.property-card__body {
    padding: var(--space-md);
}

.property-card__address {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.property-card__price {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.property-card__details {
    display: flex;
    gap: var(--space-md);
    font-size: 14px;
    color: var(--color-text-muted);
}

.property-card__detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Community Card */
.community-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

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

.community-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.community-card:hover .community-card__image {
    transform: scale(1.03);
}

.community-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(26, 26, 26, 0.7));
    color: var(--color-text-on-dark);
}

.community-card__name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text-on-dark);
}

/* Blog Card */
.blog-card {
    background: var(--color-bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

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

.blog-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.03);
}

.blog-card__body {
    padding: var(--space-md);
}

.blog-card__date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.blog-card__excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.blog-card__link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color 200ms ease;
}

.blog-card__link:hover {
    color: var(--color-accent-hover);
}

/* Team Member Card */
.team-card {
    text-align: center;
    transition: transform 300ms ease;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card__photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.team-card__name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.team-card__title {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Logo treatment for team cards with landscape images */
.team-card--logo .team-card__photo {
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.team-card--logo .team-card__photo img {
    object-fit: contain;
    width: 80%;
    height: auto;
    max-height: 60%;
}


/* ==========================================================================
   10. STATS SECTION
   ========================================================================== */

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl) var(--space-lg);
    text-align: center;
    max-width: 1100px;
    margin-inline: auto;
}

.stats__item {
    flex: 1 1 0;
    min-width: 160px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}


/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */

.testimonials-carousel {
    position: relative;
    max-width: var(--container-narrow);
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-carousel__track {
    position: relative;
    min-height: 200px;
}

.testimonials-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 500ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonials-carousel__slide.is-active {
    position: relative;
    opacity: 1;
}

.testimonials-carousel__quote {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.testimonials-carousel__quote::before {
    content: '\201C';
    display: block;
    font-size: 64px;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.testimonials-carousel__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.testimonials-carousel__context {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.testimonials-carousel__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.testimonials-carousel__btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    background-color: transparent;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.testimonials-carousel__btn:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

.testimonials-carousel__dots {
    display: flex;
    gap: var(--space-xs);
}

.testimonials-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    transition: background-color 300ms ease;
    cursor: pointer;
    border: none;
    padding: 8px;
    background-clip: content-box;
}

.testimonials-carousel__dot.is-active {
    background-color: var(--color-accent);
}


/* ==========================================================================
   12. CONTACT FORM
   ========================================================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1.5px solid var(--color-border);
    background: transparent;
    font-size: 16px;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color 300ms ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--color-accent);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__submit {
    align-self: flex-start;
    margin-top: var(--space-sm);
}

.contact-form__submit.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.contact-form__message {
    padding: var(--space-sm) var(--space-md);
    font-size: 15px;
}

.contact-form__message--success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-left: 3px solid #4caf50;
}

.contact-form__message--error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border-left: 3px solid #f44336;
}

/* Form Banners (AJAX response) */
.form-banner {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-banner--success {
    background: rgba(45, 90, 39, 0.1);
    color: #2d5a27;
    border: 1px solid rgba(45, 90, 39, 0.2);
}

.form-banner--error {
    background: rgba(180, 40, 40, 0.1);
    color: #8b2020;
    border: 1px solid rgba(180, 40, 40, 0.2);
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-bg-dark);
    padding-top: var(--section-padding);
    padding-bottom: var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: var(--footer-grid, 1.5fr 1fr 1fr 1fr);
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo-img {
    max-height: 50px;
    width: auto;
    height: auto;
    margin-bottom: 0.75rem;
    display: block;
}

.footer__name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-sm);
}

.footer__title {
    font-size: 15px;
    color: var(--color-text-on-dark-muted);
    margin-bottom: var(--space-sm);
}

.footer__address {
    font-size: 15px;
    color: var(--color-text-on-dark-muted);
    line-height: 1.8;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-md);
}

.footer__menu li {
    margin-bottom: var(--space-xs);
}

.footer__menu a {
    font-size: 15px;
    color: var(--color-text-on-dark-muted);
    transition: color 200ms ease;
}

.footer__menu a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 13px;
    color: var(--color-text-on-dark-muted);
}

.footer__bottom .footer__legal-link {
    font-size: 13px;
    color: var(--color-text-on-dark-muted);
    text-decoration: none;
    transition: color 200ms ease;
}

.footer__bottom .footer__legal-link:hover {
    color: var(--color-accent);
}

/* Footer Social Icons */
.footer__social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-sm);
}

.footer__social-primary {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer__social-primary a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-on-dark-muted);
    transition: color 200ms ease, transform 200ms ease;
}

.footer__social-primary a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.footer__social-primary a svg {
    width: 24px;
    height: 24px;
}

.footer__social-team {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__social-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-on-dark-muted);
    letter-spacing: 0.5px;
}

.footer__social-team a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 243, 239, 0.4);
    transition: color 200ms ease, transform 200ms ease;
}

.footer__social-team a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.footer__social-team a svg {
    width: 18px;
    height: 18px;
}

/* MoFlo branding — inline styles in footer.php, no CSS needed */


/* ==========================================================================
   14. BACK TO TOP
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-white);
    border: 1.5px solid var(--color-border);
    color: var(--color-text-primary);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease,
                background-color 200ms ease, border-color 200ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-text-primary);
    border-color: var(--color-text-primary);
    color: var(--color-bg-white);
}


/* ==========================================================================
   15. ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }


/* ==========================================================================
   15b. TYPOGRAPHY UTILITIES & VISUAL TREATMENTS
   ========================================================================== */

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.pull-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(196, 168, 125, 0.3);
    margin: 0;
}

.section--tight {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

/* Lead-text auto-application on first paragraph */
.community-overview > p:first-of-type,
.neighborhood-overview > p:first-of-type,
.about-bio__text > p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Community pages — drop cap */
.community-overview > p:first-of-type::first-letter,
.neighborhood-overview > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.15rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* Community pages — gold accent bar above headings */
.community-overview h2::before,
.community-overview h3::before,
.neighborhood-overview h2::before,
.neighborhood-overview h3::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 0.75rem;
}

/* Community pages — closing CTA paragraph as callout card */
.community-overview > p:last-of-type,
.neighborhood-overview > p:last-of-type {
    background: var(--color-bg-warm);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2.5rem;
    font-style: italic;
}

/* Community pages — paragraph spacing */
.community-overview > p,
.neighborhood-overview > p {
    margin-bottom: 1.5rem;
}

.community-overview > p + h2,
.community-overview > p + h3,
.neighborhood-overview > p + h2,
.neighborhood-overview > p + h3 {
    margin-top: 3rem;
}

/* About credentials card */
.about-credentials {
    background: var(--color-bg-warm);
    border-left: 4px solid var(--color-accent);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.about-credentials .section-label {
    margin-bottom: 1rem;
}

.about-credentials ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-credentials li {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--color-text-primary);
    padding-left: 1.25rem;
    position: relative;
}

.about-credentials li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Contact strip */
.contact-strip {
    text-align: center;
    background: var(--color-bg-warm);
    padding: 1.5rem;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-strip a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.contact-strip a:hover {
    color: var(--color-accent-hover);
}

/* Scroll cue */
.scroll-cue {
    text-align: center;
    padding: 1rem 0 0;
    color: var(--color-accent);
    font-size: 1.5rem;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}


/* ==========================================================================
   PHONE CONTACT WIDGET
   ========================================================================== */

.phone-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    font-family: var(--font-body);
}

.phone-widget__card {
    display: none;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 280px;
    border: 1px solid rgba(196, 168, 125, 0.2);
}

.phone-widget.active .phone-widget__card {
    display: block;
}

.phone-widget__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.phone-widget__close:hover {
    color: var(--color-text-primary);
}

.phone-widget__heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.phone-widget__text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.phone-widget__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.phone-widget__number:hover {
    color: var(--color-accent-hover);
}

.phone-widget__disclaimer {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.phone-widget__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(196, 168, 125, 0.4);
    margin-left: auto;
    transition: background 0.2s ease, transform 0.2s ease;
}

.phone-widget__toggle:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .phone-widget {
        bottom: 1rem;
        right: 1rem;
    }
    .phone-widget__card {
        max-width: 250px;
    }
    .phone-widget__toggle {
        width: 48px;
        height: 48px;
    }
}


/* ==========================================================================
   STRATEGIC PARTNER SECTION
   ========================================================================== */

.strategic-partner__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.strategic-partner__photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.strategic-partner__title {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.strategic-partner__dre {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.strategic-partner__bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

@media (max-width: 767px) {
    .strategic-partner__grid {
        grid-template-columns: 1fr;
    }
    .strategic-partner__photo {
        max-width: 250px;
    }
}


/* ==========================================================================
   16. ACCESSIBILITY 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: 0;
}

.skip-link:focus {
    position: fixed;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 10000;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-bg-white);
    color: var(--color-text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    clip: auto;
    width: auto;
    height: auto;
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* ==========================================================================
   17. RealScout Widget Overrides
   ========================================================================== */

realscout-simple-search {
    --rs-ss-font-primary-color: #6a6d72;
    --rs-ss-searchbar-border-color: hsl(0, 0%, 80%);
    --rs-ss-box-shadow: 0 10px 15px -3px #0000001a;
    --rs-ss-widget-width: 100% !important;
    --rs-ss-button-color: var(--color-accent);
}

realscout-advanced-search {
    --rs-as-button-text-color: #ffffff;
    --rs-as-background-color: #ffffff;
    --rs-as-button-color: var(--color-accent);
    --rs-as-widget-width: 100% !important;
}

realscout-your-listings {
    --rs-listing-divider-color: var(--color-accent);
    --rs-listing-accent-color: var(--color-accent);
    --rs-listing-status-color: var(--color-accent);
    --rs-listing-badge-color: var(--color-accent);
    --rs-listing-ribbon-color: var(--color-accent);
    width: 100%;
}

realscout-office-listings {
    --rs-listing-divider-color: var(--color-accent);
    --rs-listing-accent-color: var(--color-accent);
    --rs-listing-status-color: var(--color-accent);
    --rs-listing-badge-color: var(--color-accent);
    --rs-listing-ribbon-color: var(--color-accent);
    width: 100%;
}

realscout-home-value {
    --rs-hvw-background-color: #ffffff;
    --rs-hvw-title-color: #000000;
    --rs-hvw-subtitle-color: rgba(28, 30, 38, 0.5);
    --rs-hvw-primary-button-text-color: #ffffff;
    --rs-hvw-primary-button-color: var(--color-accent);
    --rs-hvw-secondary-button-text-color: var(--color-accent);
    --rs-hvw-secondary-button-color: #ffffff;
    --rs-hvw-widget-width: auto;
}

/* RealScout Search CTA Sections */
.realscout-home-search,
.realscout-community-search {
    text-align: center;
}

.realscout-home-search .section__header,
.realscout-community-search .section__header {
    margin-bottom: var(--space-xl);
}

.realscout-home-search .section__header h2,
.realscout-community-search .section__header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.realscout-home-search .section__header p {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* RealScout Full-Page Sections */
.realscout-listings-section,
.realscout-search-section,
.realscout-valuation-section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}


/* ==========================================================================
   17b. PAGE-SPECIFIC STYLES
   ========================================================================== */

/* --- About Page --- */
.about-bio__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

.about-bio__image img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
}

.about-bio__content h2 {
    margin-bottom: var(--space-md);
}

.about-bio__credentials {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0;
}

.about-bio__credentials li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
}

.about-bio__credentials li:last-child {
    border-bottom: none;
}

/* --- Resource Cards --- */
.resource-card {
    display: block;
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

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

.resource-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.resource-card__content {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.resource-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.resource-card__excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.resource-card__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-details h3 {
    margin-bottom: var(--space-md);
}

.contact-details p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

.contact-details a {
    color: var(--color-accent);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--color-accent-hover);
}

.contact-map {
    margin-top: var(--space-xl);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* --- Testimonials Page --- */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.testimonial-item {
    padding: var(--space-xl);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
    margin: 0;
}

.testimonial-item__quote {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.testimonial-item__mark {
    font-size: 48px;
    line-height: 0.5;
    color: var(--color-accent);
    margin-right: 4px;
}

.testimonial-item__footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-item__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    color: var(--color-text-primary);
}

.testimonial-item__context {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* --- Community Involvement Page --- */
.involvement-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.involvement-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: start;
}

.involvement-item:nth-child(even) {
    direction: rtl;
}

.involvement-item:nth-child(even) > * {
    direction: ltr;
}

.involvement-item__image img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-sm);
}

.involvement-item__content h3 {
    margin-bottom: var(--space-sm);
}

.involvement-item__content p,
.involvement-item__content div {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.involvement-item__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.involvement-item__content a:hover {
    color: var(--color-accent-hover);
}

/* --- Community Tier 2 --- */
.breadcrumb {
    background: var(--color-bg-warm);
    padding: var(--space-sm) 0;
}

.breadcrumb a {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 500;
    transition: color 200ms ease;
}

.breadcrumb a:hover {
    color: var(--color-accent-hover);
}

.highlight-card {
    background: var(--color-bg-white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

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

.highlight-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.highlight-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Resource Guide --- */
/* Resource guide — tighter section spacing */
.page-template-template-resource-guide .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.page-template-template-resource-guide .section.section--warm {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.page-template-template-resource-guide .section.section--dark {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.guide-content {
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.guide-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.guide-content ul,
.guide-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.guide-content li {
    margin-bottom: var(--space-xs);
}

.guide-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.guide-image-text--image-left {
    direction: rtl;
}

.guide-image-text--image-left > * {
    direction: ltr;
}

.guide-image-text__image img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-sm);
}

.guide-callout {
    padding: var(--space-xl);
    margin: 0;
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-warm);
}

.guide-callout--accent {
    border-left-color: var(--color-accent);
    background: var(--color-bg-warm);
}

.guide-callout--dark {
    border-left-color: var(--color-text-primary);
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.guide-callout--dark p {
    color: var(--color-text-on-dark-muted);
}

.guide-callout--light {
    border-left-color: var(--color-border);
    background: var(--color-bg-white);
}

.guide-callout p {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.guide-step {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.guide-step__number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    color: var(--color-accent);
    min-width: 60px;
    text-align: center;
}

.guide-step__body h3 {
    margin-bottom: var(--space-xs);
}

.guide-step__body p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.resource-card {
    display: block;
    padding: var(--space-lg);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

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

.resource-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.resource-card__desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.resource-card__link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* --- Team Member Page --- */
.member-hero {
    padding-top: var(--space-3xl);
}

.member-hero__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.member-hero__photo img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
}

.member-hero__info h1 {
    margin-bottom: var(--space-xs);
}

.member-hero__title {
    font-size: 18px;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.member-hero__company {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.member-hero__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.member-hero__contact a {
    color: var(--color-accent);
    font-weight: 500;
    transition: color 200ms ease;
}

.member-hero__contact a:hover {
    color: var(--color-accent-hover);
}

/* --- Prose / WYSIWYG Content (shared across all pages) --- */
.prose,
.post-content,
.about-bio__text,
.guide-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.prose h2,
.post-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.prose h3,
.post-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.prose p,
.post-content p,
.about-bio__text p {
    margin-bottom: var(--space-md);
}

.prose p:last-child,
.post-content p:last-child,
.about-bio__text p:last-child {
    margin-bottom: 0;
}

.prose img,
.post-content img {
    max-width: 100%;
    height: auto;
    margin: var(--space-lg) 0;
    border-radius: 8px;
}

.prose ul,
.prose ol,
.post-content ul,
.post-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.prose li,
.post-content li {
    margin-bottom: var(--space-xs);
}

.prose blockquote,
.post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--color-text-primary);
    background: var(--color-bg-warm);
    border-radius: 0 8px 8px 0;
}

.prose strong,
.post-content strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* --- Blog Archive Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: var(--space-xs) var(--space-sm);
    font-size: 15px;
    color: var(--color-text-secondary);
    transition: color 200ms ease, background-color 200ms ease;
}

.pagination a:hover {
    color: var(--color-accent);
}

.pagination .current {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    font-weight: 600;
}

/* --- Short Hero (blog archive) --- */
.page-hero--short {
    height: 30vh;
    min-height: 250px;
    background: var(--color-bg-dark);
}

/* --- About page hero: show face/upper body --- */
.page-id-13 .page-hero { height: 40vh; min-height: 300px; }
.page-id-13 .page-hero__image { object-position: center 20%; }

/* --- Contact page compact hero --- */
.page-id-14 .page-hero { height: 30vh; min-height: 250px; }

/* --- Full-height section (404) --- */
.section--full-height {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404 h1 {
    font-size: 72px;
}

/* --- Contact Details Items --- */
.contact-details__item {
    margin-bottom: var(--space-lg);
}

.contact-details__item:last-child {
    margin-bottom: 0;
}

/* --- Search Form --- */
.search-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
}

.search-form__input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    transition: border-color 200ms ease;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* --- RealScout Widget Wrapper --- */
.realscout-widget {
    max-width: 100%;
    overflow: hidden;
}


/* ==========================================================================
   17b. PROVIDER WIDGETS
   ========================================================================== */

.provider-widget { width: 100%; max-width: 1200px; margin: 2rem auto; }
.provider-notice { text-align: center; color: var(--color-text-muted); font-style: italic; padding: 3rem 1rem; }
.coming-soon { text-align: center; padding: 4rem 2rem; }
.coming-soon h2 { font-family: var(--font-heading); margin-bottom: 1rem; }
.coming-soon p { color: var(--color-text-body, var(--color-text-secondary)); max-width: 600px; margin: 0 auto; }
.coming-soon a { color: var(--color-cta, var(--color-accent)); }
.external-search-cta { text-align: center; padding: 3rem 2rem; }
.external-search-cta .btn-primary { display: inline-block; margin-top: 1rem; }
realscout-simple-search, realscout-advanced-search, realscout-your-listings, realscout-home-value { display: block; width: 100%; }

/* ==========================================================================
   17c. TEMPLATE VARIATIONS
   ========================================================================== */

/* --- Testimonials Grid --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.testimonial-card {
    background: var(--color-bg-white); border: 1px solid var(--color-border); padding: var(--space-xl);
    box-shadow: var(--shadow-sm); transition: box-shadow 200ms ease;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card__quote { font-family: var(--font-heading); font-size: 1.05rem; font-style: italic; line-height: 1.75; color: var(--color-text-secondary); margin-bottom: var(--space-md); }
.testimonial-card__name { font-weight: 600; color: var(--color-text-primary); }
.testimonial-card__community { font-size: 0.875rem; color: var(--color-text-muted); }

/* --- Testimonials Carousel (page-level, reuses homepage pattern) --- */
.testimonials-page-carousel { max-width: 800px; margin: 0 auto; }

/* --- Blog List --- */
.blog-list-item { display: flex; gap: var(--space-xl); padding: var(--space-xl) 0; border-bottom: 1px solid var(--color-border); }
.blog-list-item__image { flex: 0 0 300px; aspect-ratio: 16/10; overflow: hidden; }
.blog-list-item__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-list-item__content { flex: 1; }

/* --- Blog 2-Column + Sidebar --- */
.blog-layout--sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2xl); }
.blog-sidebar { position: sticky; top: 100px; }
.blog-sidebar h3 { font-family: var(--font-heading); font-size: 1.125rem; margin-bottom: var(--space-sm); color: var(--color-text-primary); }
.blog-sidebar ul { list-style: none; padding: 0; }
.blog-sidebar li { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-border-light); }
.blog-sidebar li a { color: var(--color-text-secondary); text-decoration: none; }
.blog-sidebar li a:hover { color: var(--color-accent); }

/* --- About Centered --- */
.about-centered__portrait { width: 300px; height: 300px; border-radius: 50%; overflow: hidden; margin: 0 auto var(--space-xl); }
.about-centered__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-centered__name { font-family: var(--font-heading); font-size: 2rem; text-align: center; margin-bottom: var(--space-xs); }
.about-centered__title { text-align: center; color: var(--color-text-muted); margin-bottom: var(--space-xl); }

/* --- About Hero Full --- */
.about-hero-full__image { width: 100%; height: 50vh; min-height: 400px; overflow: hidden; }
.about-hero-full__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* --- Team Alternating --- */
.team-alternating__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; padding: var(--space-2xl) 0; border-bottom: 1px solid var(--color-border-light); }
.team-alternating__row:nth-child(even) .team-alternating__photo { order: 2; }
.team-alternating__row:nth-child(even) .team-alternating__bio { order: 1; }
.team-alternating__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.team-alternating__name { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: var(--space-xs); }
.team-alternating__title { color: var(--color-text-muted); margin-bottom: var(--space-md); }

/* --- Team Minimal --- */
.team-minimal__grid { display: flex; flex-wrap: wrap; gap: var(--space-xl); justify-content: center; }
.team-minimal__item { text-align: center; cursor: pointer; max-width: 200px; }
.team-minimal__photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto var(--space-sm); }
.team-minimal__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-minimal__name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }
.team-minimal__title { font-size: 0.8125rem; color: var(--color-text-muted); }
.team-minimal__bio { display: none; text-align: left; max-width: 700px; margin: var(--space-lg) auto; padding: var(--space-lg); background: var(--color-bg-warm); }
.team-minimal__bio.is-expanded { display: block; }

/* --- Contact Stacked --- */
.contact-info-bar { display: flex; justify-content: center; gap: var(--space-2xl); padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-border); text-align: center; }
.contact-info-bar__item { font-size: 0.9375rem; }
.contact-info-bar__label { font-weight: 600; color: var(--color-text-primary); display: block; margin-bottom: var(--space-xs); }
.contact-stacked__form { max-width: 700px; margin: 0 auto; }

/* --- Contact Centered --- */
.contact-centered__info { text-align: center; margin-bottom: var(--space-xl); }
.contact-centered__form { max-width: 600px; margin: 0 auto; }

/* --- Footer columns --- */
.footer-cols-3 .footer__grid { --footer-grid: 1.5fr 1fr 1fr; }

/* --- Footer CTA bar --- */
.footer__cta { text-align: center; padding: var(--space-xl) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: var(--space-xl); }
.footer__cta-text { color: var(--color-text-on-dark-muted); margin-bottom: var(--space-md); }


/* ==========================================================================
   18. RESPONSIVE — TABLET (max-width: 1023px)
   ========================================================================== */

@media (max-width: 1023px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 28px; }

    .section {
        padding-top: var(--section-padding-tablet);
        padding-bottom: var(--section-padding-tablet);
    }

    .hero__logo { max-height: 55px; }
    .hero__title { font-size: 56px; }
    .page-hero__title { font-size: 44px; }

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

    /* Header */
    .header__nav { display: none; }
    .header__phone { display: none; }
    .header__hamburger { display: flex; }

    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .site-footer {
        padding-top: var(--section-padding-tablet);
    }

    .footer__social-primary {
        gap: var(--space-lg);
    }

    .realscout-listings-section,
    .realscout-search-section,
    .realscout-valuation-section {
        padding-top: var(--section-padding-tablet);
        padding-bottom: var(--section-padding-tablet);
    }

    .realscout-home-search .section__header h2,
    .realscout-community-search .section__header h2 {
        font-size: 36px;
    }

    /* Stats — flex layout wraps naturally; no column override needed */

    .testimonials-carousel__quote {
        font-size: 24px;
    }

    /* Page-specific tablet */
    .about-bio__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .involvement-item {
        grid-template-columns: 1fr;
    }

    .involvement-item:nth-child(even) {
        direction: ltr;
    }

    .guide-image-text {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .guide-image-text--image-left {
        direction: ltr;
    }

    .member-hero__grid {
        grid-template-columns: 200px 1fr;
        gap: var(--space-xl);
    }

    .about-credentials {
        padding: 1.5rem 2rem;
    }

    /* Template variation tablet overrides */
    .testimonials-grid { grid-template-columns: 1fr; }
    .blog-list-item__image { flex: 0 0 200px; }
    .blog-layout--sidebar { grid-template-columns: 1fr; }
    .team-alternating__row { grid-template-columns: 1fr; }
    .team-alternating__row:nth-child(even) .team-alternating__photo { order: 0; }
    .team-alternating__row:nth-child(even) .team-alternating__bio { order: 0; }
    .contact-info-bar { flex-wrap: wrap; gap: var(--space-lg); }
}

/* ==========================================================================
   19. RESPONSIVE — MOBILE (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }

    .section {
        padding-top: var(--section-padding-mobile);
        padding-bottom: var(--section-padding-mobile);
    }

    .hero {
        height: 100svh;
    }

    .hero__video {
        display: none;
    }

    .header__logo-img { max-height: 40px; }
    .header__logo { gap: 8px; }
    .header__name { font-size: 20px; }
    .header__tagline { font-size: 9px; letter-spacing: 1.5px; }
    .hero__logo { max-height: 45px; }
    .hero__title { font-size: 42px; }
    .page-hero__title { font-size: 36px; }
    .page-hero { min-height: 300px; height: 40vh; }

    /* Stats — flex layout wraps naturally on small screens */

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer__logo-img { max-height: 40px; }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }

    .footer__social {
        gap: var(--space-sm);
    }

    .footer__social-primary {
        gap: var(--space-sm);
    }

    .realscout-listings-section,
    .realscout-search-section,
    .realscout-valuation-section {
        padding-top: var(--section-padding-mobile);
        padding-bottom: var(--section-padding-mobile);
    }

    .realscout-home-search .section__header h2,
    .realscout-community-search .section__header h2 {
        font-size: 30px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .section__header {
        margin-bottom: var(--space-xl);
    }

    .testimonials-carousel__quote {
        font-size: 22px;
    }

    .testimonials-carousel__quote::before {
        font-size: 48px;
    }

    /* Contact form */
    .contact-form__submit {
        align-self: stretch;
    }

    /* Page-specific mobile */
    .member-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .member-hero__photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .member-hero__contact {
        align-items: center;
    }

    .guide-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-item {
        padding: var(--space-lg);
    }

    .testimonial-item__quote {
        font-size: 19px;
    }

    .error-404 h1 {
        font-size: 48px;
    }

    .page-hero--short {
        min-height: 200px;
    }

    .about-credentials {
        padding: 1.25rem 1.5rem;
    }

    .pull-quote {
        font-size: 1.25rem;
    }

    .community-overview > p:first-of-type::first-letter,
    .neighborhood-overview > p:first-of-type::first-letter {
        font-size: 2.8rem;
    }

    .community-overview > p:last-of-type,
    .neighborhood-overview > p:last-of-type {
        padding: 1.25rem 1.5rem;
    }

    /* Template variation mobile overrides */
    .blog-list-item { flex-direction: column; }
    .blog-list-item__image { flex: none; height: 200px; }
    .about-centered__portrait { width: 200px; height: 200px; }
    .team-minimal__grid { gap: var(--space-lg); }
    .contact-info-bar { flex-direction: column; gap: var(--space-md); }
}

@media (max-width: 480px) {
    .stats__item { flex: 1 1 100%; max-width: 100%; }
}


/* ==========================================================================
   20. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .hero__title,
    .hero__subtitle,
    .hero__cta {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* =========================================================================
   Round 4: Body text typography & layout refinements
   ========================================================================= */

/* Hub pages: left-align body text (communities, resources) — scoped to .section only */
.page-id-20 .section .text-center .body-large,
.page-id-22 .section .text-center .body-large {
    text-align: left;
}

/* Refined body-large typography when used as content area */
.body-large p {
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: var(--color-text-body, var(--color-text-secondary));
}

/* About preview content typography (homepage + about page) */
.about-preview__content p,
.about-bio .about-bio__text p {
    line-height: 1.85;
    color: var(--color-text-body, #4a4a4a);
}

/* Content area links — visible and consistent */
.prose a,
.body-large a,
.post-content a,
.guide-content a,
.about-bio__text a {
    color: var(--color-cta);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.prose a:hover,
.body-large a:hover,
.post-content a:hover,
.guide-content a:hover,
.about-bio__text a:hover {
    color: var(--color-accent);
}

/* Logo swap on scroll (light ↔ dark) */
.header__logo-img--dark { display: block; }
.header__logo-img--light { display: none; }
.site-header:not(.site-header--solid):not(.is-scrolled) .header__logo-img--dark { display: none; }
.site-header:not(.site-header--solid):not(.is-scrolled) .header__logo-img--light { display: block; }

/* Contact sidebar intro refinement */
.contact-layout__details .body-large {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-text-body, var(--color-text-secondary));
    border-top: 1px solid var(--color-border, #e5e5e5);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* ==========================================================================
   v0.7 — Phase 3.6.2 Round 1 polish
   ========================================================================== */

/* (f) Stats — defensive specificity fix so number + label always stack */
.stats__item .stat-number,
.stats__item .stat-label {
    display: block;
    width: 100%;
}

/* (d) Hero gradient fallback — applies when no hero image is set, so empty heroes look
   intentional. Once Round 2 wires real images, the <img class="page-hero__image"> overlays
   the gradient and the gradient disappears under it. */
.hero,
.page-hero,
.member-hero {
    background: linear-gradient(135deg, var(--color-bg-dark, #25282A) 0%, #1A1C1E 100%);
    background-attachment: scroll;
    position: relative;
}

.hero::before,
.page-hero::before {
    /* Subtle radial vignette to add depth before real photography lands */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__content,
.page-hero__content {
    position: relative;
    z-index: 2;
}

/* Once an <img class="page-hero__image"> renders, it lays over the gradient (z-index handles this).
   v0.9: explicitly reset top/left/transform — the v0.6 .hero__video rule used translate(-50%, -50%)
   for video centering, which clipped the video to the top-left quadrant after the inset:0 override. */
.page-hero__image,
.hero__video {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    z-index: 1;
}

/* (Section 4.6) Instagram placeholder — pre-IG-connection state */
.ig-section .ig-placeholder {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-xl, 32px) var(--space-lg, 24px);
    background: var(--color-bg-warm, #faf8f5);
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 12px;
}
.ig-section .ig-placeholder__heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin: 0 0 var(--space-md, 16px);
}
.ig-section .ig-placeholder__sub {
    color: var(--color-text-secondary, #4a4a4a);
    margin: 0 0 var(--space-lg, 24px);
    line-height: 1.6;
}

/* Contact form polish — interest select sizing parity, honeypot definitely hidden */
.contact-form select.contact-form__input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2325282A' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.contact-form__hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Form banner (success/error after submission) */
.form-banner {
    margin-top: var(--space-md, 16px);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.form-banner--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.form-banner--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* v0.8 — long-form stat numbers (e.g. "ABR / SFR / SRS" credential lists)
   Triggered by .stats__item--long modifier (PHP template adds it when stat_number > 6 chars).
   Smaller font + tighter spacing keeps the value on one line instead of wrapping
   each token onto its own line, which broke the visual rhythm of the stats row. */
.stats__item--long .stat-number {
    font-size: clamp(1.25rem, 1.5vw + 0.75rem, 2rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.15;
    padding-top: 0.5em;
}

/* ==========================================================================
   v0.9 — Round 2.2 fixes
   ========================================================================== */

/* (a) About bio — cap headshot height so the studio photo doesn't dominate
   the bio column. With grid-template-columns 1fr 1.5fr and a 4:5 portrait,
   the image was previously rendering ~700px tall; cap to a sensible portrait. */
.about-bio__image {
    max-width: 360px;
    margin: 0 auto;
}
.about-bio__image img {
    max-height: 480px;
    object-fit: cover;
    object-position: center 20%;
    width: 100%;
    height: auto;
}

/* (b) Team hub hero — group photo was being cropped tight to faces, clipping
   the tops of heads. Anchor object-position to upper-center so headroom is
   preserved when the hero box is shorter than the photo's intrinsic ratio. */
.page-hero .page-hero__image[src*="team-group"] {
    object-position: center 25%;
}

/* (c) Footer — bottom strip should read compliance LEFT, social RIGHT.
   Move compliance above social in the source order (see footer.php) so the
   compliance line sits above the divider/social block on narrow viewports
   too. Plus a subtle divider between compliance and social. */
.footer__social {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
}

/* ==========================================================================
   Cali to Vegas v1.1.0: polish pass against the MoFlo reference sites
   (adamkingrealestate.com, norcia.homes). Header, hero, cards, tables.
   ========================================================================== */

/* Header: the logo carries the name; drop the text stack, keep it one line tall */
.header__logo-text { display: none; }
.header__logo-img { max-height: 52px; }
.header__inner { min-height: 84px; }
.nav-list > li > a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.header__phone { font-size: 14px; white-space: nowrap; letter-spacing: 0.3px; }
.header__actions { gap: 20px; }
.header__actions .btn-primary.btn-sm { white-space: nowrap; }

/* Hero: full viewport, readable overlay above the video, scroll cue */
.hero { height: 100vh; min-height: 640px; max-height: none; }
.hero__overlay {
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(20, 22, 24, 0.55) 0%,
        rgba(20, 22, 24, 0.35) 40%,
        rgba(20, 22, 24, 0.65) 100%);
}
.hero__video { z-index: 0; }
.hero__title { text-transform: uppercase; letter-spacing: 2px; font-size: 68px; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero__subtitle { font-size: 15px; letter-spacing: 3px; max-width: 640px; margin-inline: auto; color: rgba(255,255,255,0.82); }
.hero__scroll {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    z-index: 2; color: rgba(255,255,255,0.75); animation: heroScroll 1.8s ease-in-out infinite;
}
.hero__scroll:hover { color: #fff; }
@keyframes heroScroll { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (max-width: 768px) { .hero { min-height: 560px; } .hero__title { font-size: 38px; letter-spacing: 1px; } .hero__subtitle { font-size: 12px; letter-spacing: 2px; } }

/* Page heroes: clear the fixed header and darken the photo so titles read */
.page-hero { height: 52vh; min-height: 420px; }
.page-hero__content { padding-top: 84px; }
.page-hero__image { opacity: 0.45; }
.page-hero__title { text-transform: uppercase; letter-spacing: 2px; font-size: 52px; }
.page-hero__subtitle { font-size: 14px; letter-spacing: 2.5px; max-width: 760px; margin-inline: auto; }
@media (max-width: 768px) { .page-hero__title { font-size: 32px; } .page-hero__subtitle { font-size: 11px; } }
.member-hero .container, .member-hero__content { padding-top: 84px; }

/* About preview without a photo: centered single column */
.about-preview__grid--single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; text-align: center; }
.about-preview__grid--single .section-label { justify-content: center; }

/* Team card placeholder until headshots arrive */
.team-card__placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(160deg, var(--color-bg-dark, #25282A), #3a3f42);
    color: var(--color-text-on-dark, #F5F0E7);
}
.team-card__placeholder span { font-family: var(--font-heading); font-size: 64px; letter-spacing: 4px; opacity: 0.9; }
.team-card__placeholder small { font-family: var(--font-body); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.6; }

/* Community / neighborhood cards: legible names on any photo */
.community-card__overlay {
    padding: var(--space-md) var(--space-md) var(--space-md);
    background: linear-gradient(to bottom, rgba(26,26,26,0) 0%, rgba(26,26,26,0.55) 45%, rgba(26,26,26,0.9) 100%);
    padding-top: 72px;
}
.community-card__name { font-size: 24px; line-height: 1.15; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.community-card__overlay .body-small {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.8) !important;
}
/* Seven communities on the homepage: centered rows instead of an orphan */
.communities-preview .grid-4 { display: flex; flex-wrap: wrap; justify-content: center; }
.communities-preview .grid-4 > * { flex: 0 0 calc(25% - (var(--space-lg) * 3 / 4)); }
@media (max-width: 1024px) { .communities-preview .grid-4 > * { flex-basis: calc(50% - var(--space-lg) / 2); } }
@media (max-width: 600px) { .communities-preview .grid-4 > * { flex-basis: 100%; } }

/* Stats */
.stat-number { white-space: nowrap; }
.stats__item--long .stat-number { font-size: 34px; }

/* Tables in prose: the build pack leans on comparison tables */
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-lg) 0; font-size: 15px; line-height: 1.5; }
.prose thead th { text-align: left; font-family: var(--font-body); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-muted); padding: 10px 14px; border-bottom: 2px solid var(--color-primary, #25282A); }
.prose tbody td, .prose tbody th { padding: 12px 14px; border-bottom: 1px solid rgba(37,40,42,0.12); vertical-align: top; text-align: left; }
.prose tbody th, .prose tbody td:first-child { font-weight: 600; color: var(--color-text-primary); }
.prose tbody tr:nth-child(even) td { background: rgba(215,194,163,0.12); }
.prose table + p em, .prose table + p > em:only-child { font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 640px) { .prose table { font-size: 13px; } .prose tbody td, .prose tbody th, .prose thead th { padding: 8px 8px; } }

/* Homepage editorial sections */
.home-editorial .prose h2 { text-align: center; margin-bottom: var(--space-md); }
.home-editorial .prose > p:first-of-type { font-size: 17px; }
.home-editorial .prose ul { padding-left: 0; list-style: none; }
.home-editorial .prose ul li { padding: 10px 0; border-bottom: 1px solid rgba(37,40,42,0.1); }
.home-editorial .prose ul li::before { display: none; }

/* Resource guides: the flexible-content blocks get prose rhythm too */
.guide-content.prose h2, .guide-content.prose h3 { margin-top: var(--space-xl); }
.guide-content.prose h2:first-child, .guide-content.prose h3:first-child { margin-top: 0; }
.guide-content.prose p + p { margin-top: var(--space-md); }
.section > .container--narrow > .animate-on-scroll > h2 { margin-bottom: var(--space-md); }
/* Team grid: center when fewer than a full row */
.team-grid, .team-cards { justify-content: center; }
.team-grid.grid-3, .team-grid.grid-4 { display: flex; flex-wrap: wrap; }
.team-grid.grid-3 > *, .team-grid.grid-4 > * { flex: 0 0 calc(25% - var(--space-lg)); max-width: 320px; }
@media (max-width: 768px) { .team-grid.grid-3 > *, .team-grid.grid-4 > * { flex-basis: calc(50% - var(--space-md)); } }
.stats__item--long .stat-number { font-size: 30px; }

/* ==========================================================================
   v1.2.0: client brand badge + badge palette (pine / cream / terracotta)
   Source: Christina's brand files (Desktop/calitovegas). Pine #0B2E2C and
   cream #FCF0DC measured from the badge; terracotta from the palette card.
   ========================================================================== */
:root {
    --ctv-pine: #0B2E2C;
    --ctv-pine-2: #133B38;
    --ctv-cream: #FCF0DC;
    --ctv-cream-soft: #F8F1E4;
    --color-bg-warm: var(--ctv-cream-soft);
    --color-border-light: #eadfcb;
}

/* Header: the badge is the logo. Big over the hero, compact once scrolled. */
.header__logo-img { max-height: 84px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); transition: max-height 250ms ease; }
.site-header.is-scrolled .header__logo-img,
.site-header--solid .header__logo-img { max-height: 60px; filter: none; }
.header__inner { min-height: 96px; }
.site-header.is-scrolled, .site-header--solid { background-color: rgba(252, 240, 220, 0.97); box-shadow: 0 1px 0 #eadfcb; }
.site-header.is-scrolled .nav-list > li > a,
.site-header--solid .nav-list > li > a,
.site-header.is-scrolled .header__phone,
.site-header--solid .header__phone { color: var(--ctv-pine); }
.site-header.is-scrolled .header__hamburger span,
.site-header--solid .header__hamburger span { background-color: var(--ctv-pine); }
@media (max-width: 768px) {
    .header__logo-img { max-height: 60px; }
    .site-header.is-scrolled .header__logo-img, .site-header--solid .header__logo-img { max-height: 48px; }
    .header__inner { min-height: 72px; }
}

/* Hero and page heroes: pine-tinted overlay to sit with the badge */
.hero__overlay {
    background: linear-gradient(to bottom,
        rgba(11, 46, 44, 0.60) 0%,
        rgba(11, 46, 44, 0.30) 42%,
        rgba(11, 46, 44, 0.70) 100%);
}
.page-hero { background: linear-gradient(135deg, var(--ctv-pine) 0%, #061c1b 100%); }
.page-hero__content { padding-top: 96px; }

/* Warm sections read as the badge's cream */
.section--warm { background-color: var(--ctv-cream-soft); }

/* Homepage about: the round team badge, no crop, no box */
.about-preview__image img { border-radius: 50%; box-shadow: 0 18px 50px rgba(11,46,44,0.18); aspect-ratio: 1/1; object-fit: cover; max-width: 460px; margin-inline: auto; display: block; }

/* Footer: pine band, badge large */
.site-footer { background-color: var(--ctv-pine); }
.footer__logo-img { max-height: 120px; margin-bottom: 1rem; }
.footer__name { display: none; }
@media (max-width: 768px) { .footer__logo-img { max-height: 96px; } }

/* Dark CTA band matches the footer */
.contact-cta, .section--dark { background-color: var(--ctv-pine-2); }

/* Buttons: terracotta primary, pine outline secondary on light */
.btn-secondary { border-color: var(--ctv-pine); color: var(--ctv-pine); }
.btn-secondary:hover { background: var(--ctv-pine); color: var(--ctv-cream); }
.btn-on-dark.btn-secondary, .btn-secondary.btn-on-dark { border-color: rgba(252,240,220,0.7); color: var(--ctv-cream); }

/* Team monogram tiles in pine */
.team-card__placeholder { background: linear-gradient(160deg, var(--ctv-pine), var(--ctv-pine-2)); color: var(--ctv-cream); }

/* Table rule color */
.prose thead th { border-bottom-color: var(--ctv-pine); }
.prose tbody tr:nth-child(even) td { background: rgba(252, 240, 220, 0.55); }

/* v1.2.1: hero legibility. Heavier type, a soft dark pool behind the copy,
   no thin letterspaced subtitle on a busy photo. */
.hero__content { max-width: 920px; }
.hero__content::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 140%; height: 170%;
    transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(6, 24, 23, 0.62) 0%, rgba(6, 24, 23, 0.38) 45%, rgba(6, 24, 23, 0) 72%);
}
.hero__title { font-weight: 600; font-size: 64px; letter-spacing: 1.5px; line-height: 1.08; text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5); color: #fff; }
.hero__subtitle {
    font-family: var(--font-body); font-weight: 500; font-size: 19px; letter-spacing: 0.3px; text-transform: none;
    line-height: 1.5; color: #fff; max-width: 620px; text-shadow: 0 1px 10px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.6);
}
.hero__overlay { background: linear-gradient(to bottom, rgba(6,24,23,0.55) 0%, rgba(6,24,23,0.35) 45%, rgba(6,24,23,0.65) 100%); }
.page-hero__title { font-weight: 600; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.page-hero__subtitle { font-weight: 500; text-transform: none; letter-spacing: 0.3px; font-size: 17px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.nav-list > li > a, .header__phone { text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.site-header.is-scrolled .nav-list > li > a, .site-header.is-scrolled .header__phone,
.site-header--solid .nav-list > li > a, .site-header--solid .header__phone { text-shadow: none; }
@media (max-width: 768px) { .hero__title { font-size: 38px; } .hero__subtitle { font-size: 16px; } .page-hero__subtitle { font-size: 14px; } }

/* ==========================================================================
   v1.3.0: brand palette card is the source of truth (Christina's brand sheet).
   Deep Charcoal #25282A · Desert Sage #7D8974 · Warm Sand #D7C2A3
   Terracotta #B85F43 · Vegas Teal #287D7A · Warm Cream #F5F0E7
   Lead colors are the logo's: Vegas Teal (T) and Terracotta (D).
   Logo: Towle Doolin Group / Lyons Share horizontal lockup on a cream header.
   Supersedes the v1.2.0 pine experiment.
   ========================================================================== */
:root {
    --ctv-charcoal: #25282A;
    --ctv-sage: #7D8974;
    --ctv-sand: #D7C2A3;
    --ctv-terracotta: #B85F43;
    --ctv-teal: #287D7A;
    --ctv-teal-dark: #1F6361;
    --ctv-cream: #F5F0E7;
    --ctv-pine: var(--ctv-charcoal);
    --ctv-pine-2: var(--ctv-teal);
    --ctv-cream-soft: var(--ctv-cream);
    --color-bg-warm: var(--ctv-cream);
    --color-border-light: #e6dccb;
    --color-link: var(--ctv-teal);
    --color-accent: var(--ctv-terracotta);
}

/* Header: always solid Warm Cream so the lockup reads on every page */
.site-header, .site-header.is-scrolled, .site-header--solid {
    background-color: var(--ctv-cream); box-shadow: 0 1px 0 var(--ctv-sand); padding: 10px 0; backdrop-filter: none;
}
.header__inner { min-height: 76px; }
.header__logo-img, .site-header.is-scrolled .header__logo-img, .site-header--solid .header__logo-img { max-height: 58px; filter: none; }
.header__logo-img--light { display: none !important; }
.header__logo-img--dark { display: block !important; }
.nav-list > li > a, .header__phone,
.site-header:not(.is-scrolled) .nav-list > li > a, .site-header:not(.is-scrolled) .header__phone { color: var(--ctv-charcoal); text-shadow: none; }
.nav-list > li > a::after { background-color: var(--ctv-terracotta); }
.nav-list > li > a:hover, .nav-list > li.current-menu-item > a { color: var(--ctv-teal); }
.header__phone:hover { color: var(--ctv-teal); }
.header__hamburger span, .site-header .header__hamburger span { background-color: var(--ctv-charcoal); }
@media (max-width: 768px) {
    .header__logo-img, .site-header.is-scrolled .header__logo-img { max-height: 40px; }
    .header__inner { min-height: 60px; }
}

/* Hero sits below the header; charcoal overlay, copy on a soft dark pool */
.hero { height: 100vh; min-height: 640px; }
.hero__content { margin-top: 48px; }
.hero__overlay { background: linear-gradient(to bottom, rgba(37,40,42,0.35) 0%, rgba(37,40,42,0.30) 40%, rgba(37,40,42,0.60) 100%); }
.hero__content::before { background: radial-gradient(ellipse at center, rgba(20,22,23,0.62) 0%, rgba(20,22,23,0.38) 45%, rgba(20,22,23,0) 72%); }
.page-hero { background: linear-gradient(135deg, var(--ctv-charcoal) 0%, #17191a 100%); }
.page-hero__content { padding-top: 96px; }
@media (max-width: 768px) { .hero { min-height: 560px; } .hero__content { margin-top: 36px; } .page-hero__content { padding-top: 70px; } }

/* Section label / eyebrow in Vegas Teal, stats in Terracotta */
.section-label { color: var(--ctv-teal); }
.stat-number { color: var(--ctv-terracotta); }
.stat-label { color: var(--ctv-sage); }

/* Buttons: Terracotta primary, Vegas Teal secondary */
.btn-primary { background-color: var(--ctv-terracotta); border-color: var(--ctv-terracotta); color: #fff; }
.btn-primary:hover { background-color: #a0513a; border-color: #a0513a; }
.btn-secondary { border-color: var(--ctv-teal); color: var(--ctv-teal); background: transparent; }
.btn-secondary:hover { background: var(--ctv-teal); color: #fff; }
.btn-secondary.btn-on-dark, .btn-on-dark.btn-secondary { border-color: rgba(245,240,231,0.75); color: var(--ctv-cream); }
.btn-secondary.btn-on-dark:hover { background: var(--ctv-cream); color: var(--ctv-teal); }

/* Links in copy: Vegas Teal */
.prose a, .guide-content a { color: var(--ctv-teal); text-decoration-color: rgba(40,125,122,0.4); }
.prose a:hover, .guide-content a:hover { color: var(--ctv-terracotta); }
.link-arrow { color: var(--ctv-teal); }

/* Dividers and accents in Terracotta and Sand */
.prose h2::before, .section-divider { background-color: var(--ctv-terracotta); }
.prose thead th { border-bottom-color: var(--ctv-teal); }
.prose tbody tr:nth-child(even) td { background: rgba(215,194,163,0.18); }
.prose blockquote { border-left-color: var(--ctv-terracotta); background: var(--ctv-cream); }

/* Dark bands: Vegas Teal CTA, Deep Charcoal footer */
.contact-cta, .section--dark { background-color: var(--ctv-teal); }
.contact-cta .section-label { color: var(--ctv-sand); }
.contact-cta .btn-primary { background: var(--ctv-terracotta); border-color: var(--ctv-terracotta); }
.site-footer { background-color: var(--ctv-charcoal); }
.footer__heading { color: var(--ctv-sand); }
.footer__menu a:hover, .footer__contact a:hover { color: var(--ctv-sand); }
/* Footer lockup on a Warm Cream plate so the charcoal type reads */
.footer__logo-img { max-height: none; width: 100%; max-width: 300px; background: var(--ctv-cream); padding: 14px 18px; border-radius: 4px; box-sizing: border-box; }

/* Warm sections */
.section--warm { background-color: var(--ctv-cream); }

/* Community cards: terracotta rule under the name */
.community-card__name::after { content: ''; display: block; width: 32px; height: 2px; background: var(--ctv-terracotta); margin-top: 8px; }

/* Team monogram tiles in Vegas Teal */
.team-card__placeholder { background: linear-gradient(160deg, var(--ctv-teal), var(--ctv-teal-dark)); color: var(--ctv-cream); }

/* Floating call button */
.phone-widget__toggle, .phone-widget button, .phone-widget__btn { background-color: var(--ctv-terracotta); }

/* About image: round badge art, soft teal shadow */
.about-preview__image img { box-shadow: 0 18px 50px rgba(40,125,122,0.18); }

.contact-cta p, .contact-cta .body-large { color: rgba(245,240,231,0.92); }

/* v1.3.2: header breakpoints. Full nav + phone needs ~1280px with the lockup;
   hide the phone first, then collapse to the hamburger below 1200px. */
@media (max-width: 1320px) { .header__phone { display: none; } }
@media (max-width: 1199px) {
    .header__nav { display: none; }
    .header__hamburger { display: flex; }
}
.header__nav { flex: 1; justify-content: center; }
.nav-list { gap: 28px; }

/* v1.3.3: TD + Towle Doolin Group header lockup (Lyons Share moved to the footer) */
.header__logo-img, .site-header.is-scrolled .header__logo-img, .site-header--solid .header__logo-img { max-height: 56px; width: auto; }
@media (max-width: 768px) { .header__logo-img, .site-header.is-scrolled .header__logo-img { max-height: 42px; } }
.footer__logo-img { max-width: 280px; padding: 12px 16px; }
.footer__bottom { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.footer__brokerage { flex: 0 0 auto; }
.footer__brokerage-logo { height: 54px; width: auto; display: block; opacity: 0.95; }
@media (max-width: 768px) { .footer__bottom { flex-direction: column; align-items: flex-start; } .footer__brokerage-logo { height: 44px; } }

/* v1.4.0: no eyebrows anywhere */
.section-label, .eyebrow, .hero__eyebrow, .page-hero__eyebrow { display: none !important; }

/* ==========================================================================
   v1.5.0: headings, hero balance, jump menu, FAQ accordions
   ========================================================================== */

/* Heading scale. Cinzel has no lowercase, so size and weight do the work. */
h2 { font-size: 38px; font-weight: 500; letter-spacing: 0.5px; line-height: 1.2; text-wrap: balance; }
h3 { font-size: 26px; font-weight: 500; }
.section__header { margin-bottom: var(--space-2xl); }
.section__header h2 { max-width: 760px; margin-inline: auto; }
.prose h2, .guide-content h2 { font-size: 29px; font-weight: 600; letter-spacing: 0.4px; line-height: 1.25; margin-top: var(--space-2xl); margin-bottom: var(--space-sm); scroll-margin-top: 110px; text-wrap: balance; }
.prose h3, .guide-content h3 {
    font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: 0; text-transform: none;
    line-height: 1.35; margin-top: var(--space-lg); margin-bottom: 8px; color: var(--ctv-charcoal);
}
.prose h2 + p, .guide-content h2 + p { margin-top: 0; }
@media (max-width: 767px) {
    h2 { font-size: 27px; }
    .prose h2, .guide-content h2 { font-size: 23px; }
    .prose h3, .guide-content h3 { font-size: 17px; }
}

/* Hero: centred in the space below the header, balanced line breaks, even rhythm */
.hero { padding-top: 76px; box-sizing: border-box; }
.hero__content { margin-top: 0; max-width: 980px; }
.hero__title { font-size: 58px; line-height: 1.1; margin-bottom: 18px; text-wrap: balance; }
.hero__subtitle { max-width: 640px; margin: 0 auto 34px; text-wrap: balance; }
.hero__cta { margin-top: 0; }
.hero__content::before { width: 120%; height: 150%; }
@media (max-width: 767px) { .hero { padding-top: 60px; } .hero__title { font-size: 36px; } .hero__subtitle { margin-bottom: 26px; } }

/* "On this page" jump menu */
.page-toc { margin: var(--space-lg) 0 0; padding: 20px 24px; background: var(--ctv-cream); border-left: 3px solid var(--ctv-terracotta); }
.page-toc__title { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ctv-teal); margin: 0 0 10px; }
.page-toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.page-toc li { margin: 0 0 8px; break-inside: avoid; font-size: 15px; line-height: 1.4; }
.page-toc li::before { display: none; }
.page-toc a { color: var(--ctv-charcoal); text-decoration: none; border-bottom: 1px solid rgba(215,194,163,0.9); }
.page-toc a:hover { color: var(--ctv-teal); border-bottom-color: var(--ctv-teal); }
@media (max-width: 767px) { .page-toc ul { columns: 1; } }
.section--intro { padding-bottom: var(--space-2xl); }
.section--neighborhoods { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.neighborhood-overview + .page-toc + .neighborhood-overview > h2:first-child,
.guide-content + .page-toc + .guide-content > h2:first-child { margin-top: var(--space-xl); }

/* FAQ accordions */
.faq-list { margin-top: var(--space-md); border-top: 1px solid rgba(215,194,163,0.8); }
.faq-item { border-bottom: 1px solid rgba(215,194,163,0.8); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
    font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ctv-charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--ctv-terracotta); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--ctv-teal); }
.faq-item__answer { padding: 0 0 18px; }
.faq-item__answer p:last-child { margin-bottom: 0; }

/* Homepage: California math + guide cards (v1.5.0) */
.home-editorial .prose h2 { font-size: 38px; font-weight: 500; text-align: center; margin: 0 auto var(--space-md); }
.home-editorial .prose > p:first-of-type { text-align: center; max-width: 720px; margin-inline: auto; }
.home-editorial .prose > p:last-child { text-align: center; }
.home-editorial__cards { max-width: none; }
.guide-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin: var(--space-xl) 0 var(--space-lg); }
.guide-card { display: flex; flex-direction: column; background: #fff; text-decoration: none !important; border: 0 !important; box-shadow: var(--shadow-sm); transition: transform 250ms ease, box-shadow 250ms ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.prose .guide-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0; display: block; }
.guide-card__body { display: block; padding: 18px 20px 22px; border-top: 3px solid var(--ctv-terracotta); }
.guide-card__title { display: block; font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--ctv-charcoal); margin-bottom: 8px; }
.guide-card__text { display: block; font-size: 14px; line-height: 1.55; color: var(--color-text-body, #4a4a4a); }
.guide-cards__more { text-align: center; font-size: 15px; }
@media (max-width: 1024px) { .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guide-cards { grid-template-columns: 1fr; } .home-editorial .prose h2 { font-size: 27px; } }

/* Drop cap only on the intro block, not the guide body after the jump menu / tiles */
.section:not(.section--intro) .community-overview > p:first-of-type::first-letter,
.page-toc + .neighborhood-overview > p:first-of-type::first-letter {
    float: none; font-size: inherit; line-height: inherit; margin: 0; padding: 0; color: inherit; font-family: inherit; font-weight: inherit;
}

/* ==========================================================================
   v1.6.0: transparent header over the hero until scroll (Koen)
   ========================================================================== */
.site-header { transition: background-color 300ms ease, box-shadow 300ms ease, padding 300ms ease; }
.site-header:not(.is-scrolled):not(.site-header--solid) {
    background-color: transparent; box-shadow: none; padding: 18px 0;
    background-image: linear-gradient(to bottom, rgba(20,22,23,0.45), rgba(20,22,23,0));
}
.site-header:not(.is-scrolled):not(.site-header--solid) .header__logo-img--dark { display: none !important; }
.site-header:not(.is-scrolled):not(.site-header--solid) .header__logo-img--light { display: block !important; }
.site-header:not(.is-scrolled):not(.site-header--solid) .nav-list > li > a,
.site-header:not(.is-scrolled):not(.site-header--solid) .header__phone { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.site-header:not(.is-scrolled):not(.site-header--solid) .nav-list > li > a:hover { color: var(--ctv-sand); }
.site-header:not(.is-scrolled):not(.site-header--solid) .header__hamburger span { background-color: #fff; }
.site-header.is-scrolled .header__logo-img--light { display: none !important; }
.site-header.is-scrolled .header__logo-img--dark { display: block !important; }
/* Pages with no hero (privacy policy, 404, search): keep the solid bar */
body:not(:has(.hero, .page-hero)) .site-header:not(.is-scrolled) { background-color: var(--ctv-cream); background-image: none; box-shadow: 0 1px 0 var(--ctv-sand); }
body:not(:has(.hero, .page-hero)) .site-header:not(.is-scrolled) .header__logo-img--dark { display: block !important; }
body:not(:has(.hero, .page-hero)) .site-header:not(.is-scrolled) .header__logo-img--light { display: none !important; }
body:not(:has(.hero, .page-hero)) .site-header:not(.is-scrolled) .nav-list > li > a,
body:not(:has(.hero, .page-hero)) .site-header:not(.is-scrolled) .header__phone { color: var(--ctv-charcoal); text-shadow: none; }
body:not(:has(.hero, .page-hero)) .site-header:not(.is-scrolled) .header__hamburger span { background-color: var(--ctv-charcoal); }

/* Hero now fills the whole viewport behind the header */
.hero { padding-top: 0; }
.hero__title { margin-bottom: 30px; }

/* Homepage rhythm: math (cream) · regions (white) · guides (cream) · reviews (white) */
.home .communities-preview { background-color: #fff; }

body:not(:has(.hero, .page-hero)) #main-content { padding-top: 130px; }
@media (max-width: 767px) { body:not(:has(.hero, .page-hero)) #main-content { padding-top: 100px; } }

/* v1.7.0: vector logos */
.header__logo-img { height: 56px; width: auto; max-height: none !important; }
@media (max-width: 767px) { .header__logo-img { height: 40px; } }
.footer__logo-img { background: none; padding: 0; border-radius: 0; width: auto; height: 76px; max-width: 100%; margin-bottom: 1.25rem; }
.footer__brokerage-logo { height: 58px; opacity: 1; }
@media (max-width: 767px) { .footer__logo-img { height: 60px; } .footer__brokerage-logo { height: 46px; } }

/* ==========================================================================
   v1.7.0: balanced card grids. Rows always fill, whatever the count.
   12-column grid; spans chosen by how many cards there are.
   ========================================================================== */
.grid-balanced { display: grid !important; grid-template-columns: repeat(12, 1fr); gap: var(--space-lg); }
.grid-balanced > * { grid-column: span 4; flex: none !important; max-width: none !important; }
/* 2 → halves · 4 and 8 → quarters · 5 → 2 halves + 3 thirds · 7 → 3 thirds + 4 quarters · 10 → 2 halves + 8 quarters */
.grid-balanced:has(> :nth-child(2):last-child) > * { grid-column: span 6; }
.grid-balanced:has(> :nth-child(4):last-child) > *,
.grid-balanced:has(> :nth-child(8):last-child) > * { grid-column: span 3; }
.grid-balanced:has(> :nth-child(5):last-child) > :nth-child(-n+2) { grid-column: span 6; }
.grid-balanced:has(> :nth-child(7):last-child) > * { grid-column: span 3; }
.grid-balanced:has(> :nth-child(7):last-child) > :nth-child(-n+3) { grid-column: span 4; }
.grid-balanced:has(> :nth-child(10):last-child) > * { grid-column: span 4; }
.grid-balanced:has(> :nth-child(10):last-child) > :first-child { grid-column: span 12; }
/* the wide cards get a wider image, not a taller one */
.grid-balanced > .community-card { aspect-ratio: auto; height: 300px; }
.grid-balanced:has(> :nth-child(7):last-child) > :nth-child(n+4),
.grid-balanced:has(> :nth-child(8):last-child) > *,
.grid-balanced:has(> :nth-child(4):last-child) > * { height: 240px; }
.grid-balanced > .resource-card { height: 100%; }
.grid-balanced:has(> :nth-child(10):last-child) > .resource-card:first-child { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
.grid-balanced:has(> :nth-child(10):last-child) > .resource-card:first-child .resource-card__image { height: 100%; }
.grid-balanced:has(> :nth-child(10):last-child) > .resource-card:first-child .resource-card__image img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.grid-balanced:has(> :nth-child(10):last-child) > .resource-card:first-child .resource-card__title { font-size: 28px; }
@media (max-width: 1024px) { .grid-balanced:has(> :nth-child(10):last-child) > .resource-card:first-child { display: block; } }
.resource-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) {
    .grid-balanced > * { grid-column: span 6 !important; }
    .grid-balanced:has(> :nth-child(odd):last-child) > :first-child { grid-column: span 12 !important; }
    .grid-balanced > .community-card { height: 240px; }
}
@media (max-width: 600px) { .grid-balanced > * { grid-column: span 12 !important; } }

/* Review cards: homepage (3) and reviews page (3 + swipeable row) */
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.review-card {
    margin: 0; background: #fff; padding: 32px 30px 28px; position: relative; display: flex; flex-direction: column;
    border-top: 3px solid var(--ctv-terracotta); box-shadow: var(--shadow-sm);
}
.section--warm .review-card, .reviews-featured .review-card { background: #fff; }
.review-card__mark { font-family: var(--font-heading); font-size: 56px; line-height: 0.6; color: var(--ctv-teal); margin-bottom: 14px; }
.review-card__quote { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--ctv-charcoal); flex: 1; font-style: normal; }
.review-card__who { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(215,194,163,0.7); padding-top: 14px; }
.review-card__who cite { font-style: normal; font-weight: 600; font-size: 15px; color: var(--ctv-charcoal); }
.review-card__who span { font-size: 13px; color: var(--ctv-sage); }
.testimonials-section .review-cards { margin-bottom: var(--space-xl); }
.reviews-intro { text-align: center; max-width: 680px; margin: 0 auto var(--space-xl); font-size: 17px; }
.reviews-more__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: var(--space-lg); }
.reviews-more__head h2 { margin: 0; font-size: 30px; text-align: left; }
.reviews-more__nav { display: flex; align-items: center; gap: 10px; }
.reviews-more__count { font-size: 13px; color: var(--ctv-sage); margin-right: 6px; letter-spacing: 0.5px; }
.reviews-more__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ctv-teal); background: transparent; color: var(--ctv-teal); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.reviews-more__btn:hover { background: var(--ctv-teal); color: #fff; }
.reviews-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.reviews-rail::-webkit-scrollbar { display: none; }
.review-card--rail { scroll-snap-align: start; }
@media (max-width: 1024px) { .review-cards { grid-template-columns: 1fr 1fr; } .review-cards > :nth-child(3) { grid-column: span 2; } .reviews-rail { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .review-cards { grid-template-columns: 1fr; } .review-cards > :nth-child(3) { grid-column: auto; } .reviews-rail { grid-auto-columns: 85%; } }

/* v1.7.2: reviews page is one carousel */
.reviews-carousel-section .reviews-rail { padding: 4px 2px 8px; }
.reviews-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: var(--space-lg); }
.reviews-nav__count { font-size: 14px; color: var(--ctv-sage); min-width: 90px; text-align: center; letter-spacing: 0.3px; }

/* v1.7.3: reviews auto-scroll, pause on hover (no arrows) */
.reviews-marquee { overflow: hidden; position: relative; padding: 6px 0 10px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%); }
.reviews-marquee__track { display: flex; gap: 24px; width: max-content; }
.review-card--marquee { width: 360px; flex: 0 0 360px; }
.reviews-marquee__track.is-running { animation: reviewsScroll calc(var(--review-count) * 7s) linear infinite; }
.reviews-marquee:hover .reviews-marquee__track,
.reviews-marquee:focus-within .reviews-marquee__track { animation-play-state: paused; }
@keyframes reviewsScroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 12px)); } }
@media (max-width: 640px) { .review-card--marquee { width: 280px; flex-basis: 280px; } }
@media (prefers-reduced-motion: reduce) {
    .reviews-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .reviews-marquee__track.is-running { animation: none; }
}
.reviews-nav { display: none; }

/* v1.7.4: Vegas Teal is an accent, never a section fill (Koen).
   Contact band = Warm Cream with charcoal type, a short teal rule, terracotta + teal buttons. */
.contact-cta, .section--dark, .section.section--dark.contact-cta {
    background-color: var(--ctv-cream) !important; color: var(--ctv-charcoal);
    border-top: 1px solid rgba(215,194,163,0.7);
}
.contact-cta h2, .section--dark h2 { color: var(--ctv-charcoal) !important; }
.contact-cta h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--ctv-teal); margin: 18px auto 0; }
.contact-cta p, .contact-cta .body-large, .section--dark p { color: #4a4d4f !important; }
.contact-cta .btn-primary { background: var(--ctv-terracotta); border-color: var(--ctv-terracotta); color: #fff; }
.contact-cta .btn-secondary, .contact-cta .btn-on-dark, .contact-cta .btn-secondary.btn-on-dark { border-color: var(--ctv-teal) !important; color: var(--ctv-teal) !important; background: transparent; }
.contact-cta .btn-secondary:hover, .contact-cta .btn-on-dark:hover { background: var(--ctv-teal) !important; color: #fff !important; }

/* v1.7.7: two hero buttons, equal width */
.hero__cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero__btn { min-width: 250px; justify-content: center; text-align: center; }
.hero .btn-secondary.btn-on-dark { border: 1px solid rgba(255,255,255,0.85); color: #fff; background: rgba(255,255,255,0.06); backdrop-filter: blur(2px); }
.hero .btn-secondary.btn-on-dark:hover { background: #fff; color: var(--ctv-charcoal); }
.hero__subtitle { max-width: 560px; }
@media (max-width: 600px) { .hero__btn { min-width: 0; width: 100%; } }
.hero__subtitle { max-width: 760px; }
@media (max-width: 480px) { .header__actions .btn-primary.btn-sm { display: none; } .header__logo-img { height: 38px; } }

/* v1.7.9: play the hero video on phones too (base theme hid it) */
@media (max-width: 767px) { .hero__video { display: block !important; } }
@media (max-width: 480px) { .header__logo { max-width: 72%; } .header__logo-img { max-width: 100%; height: auto; max-height: 38px !important; } .header__inner { gap: 12px; } .header__hamburger { flex-shrink: 0; } }

/* v1.7.11: no sideways page scroll on phones. Wide tables scroll inside their own box. */
@media (max-width: 767px) {
    .prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; }
    .prose thead th, .prose tbody td { min-width: 96px; }
}
html, body { overflow-x: clip; }

/* v1.7.12: subtitle always narrower than the headline, two balanced lines */
.hero__subtitle { max-width: 440px !important; text-wrap: balance; }
@media (max-width: 767px) { .hero__subtitle { max-width: 320px !important; } }
@media (max-width: 600px) { .hero__cta { max-width: 290px; margin-inline: auto; } .hero__btn { width: 100%; } }
@media (max-width: 600px) { .hero__cta { max-width: 300px; } .hero__btn { font-size: 12px; letter-spacing: 1.2px; padding-left: 12px; padding-right: 12px; white-space: nowrap; } }

/* v1.7.20 · WCAG AA contrast. Brand hues kept; text and button tones nudged
   just enough to reach 4.5:1 (logos and large display type untouched). */
:root { --ctv-terra-ink: #B25B40; --ctv-terra-ink-warm: #A5553C; --ctv-teal-ink: #267673; --color-link: var(--ctv-teal-ink); --color-text-muted: #6B6B6B; }
.btn-primary, .btn-sm, .contact-form__submit, a.btn-primary { background-color: var(--ctv-terra-ink) !important; border-color: var(--ctv-terra-ink) !important; }
.btn-primary:hover, .btn-sm:hover, .contact-form__submit:hover { background-color: #9E4F37 !important; border-color: #9E4F37 !important; }
.contact-details a { color: var(--ctv-terra-ink); }
.section--warm .contact-details a { color: var(--ctv-terra-ink-warm); }
.prose a, .guide-cards__more a, .page-toc__title, .page-toc a { color: var(--ctv-teal-ink); }
.btn-secondary, .btn-on-dark.btn-secondary, .btn-secondary.btn-on-dark { color: var(--ctv-teal-ink); border-color: var(--ctv-teal-ink); }
.btn-secondary:hover, .btn-on-dark.btn-secondary:hover { background: var(--ctv-teal-ink); color: #fff; }
.stat-label, figcaption span, figcaption { color: #656E5D; }
.prose th, .prose em, .team-card__title, .text-muted { color: #6B6B6B; }
.review-card__who span { color: #656E5D !important; }
.contact-cta .btn-secondary, .contact-cta .btn-secondary.btn-on-dark { color: var(--ctv-teal-ink) !important; border-color: var(--ctv-teal-ink) !important; }
.contact-cta .btn-secondary:hover { background: var(--ctv-teal-ink) !important; color: #fff !important; }
.section--warm a:not([class]) { color: var(--ctv-terra-ink-warm); }
.section--warm .prose a:not([class]) { color: var(--ctv-teal-ink); }
.breadcrumb a, .breadcrumb .container > a { color: var(--ctv-terra-ink-warm) !important; }

/* v1.7.32 · Agent pages: the name sat charcoal on the dark fallback gradient.
   Warm Cream band with charcoal type until headshots arrive. */
.member-hero { background: var(--ctv-cream) !important; border-bottom: 1px solid var(--ctv-sand); padding-bottom: var(--space-2xl); }
.member-hero__info h1 { color: var(--ctv-charcoal); }
.member-hero__title { color: var(--ctv-terra-ink-warm); }
.member-hero__company { color: #5c5f61; }
.member-hero__contact a { color: var(--ctv-terra-ink-warm); }
.member-hero__grid:not(:has(.member-hero__photo)) { grid-template-columns: 1fr; }

/* v1.7.38 · Real team photo (cutout on Warm Cream) replaces the round badge. */
.about-preview__image img { border-radius: 18px !important; aspect-ratio: auto !important; object-fit: contain !important; max-width: 440px; box-shadow: 0 18px 50px rgba(37,40,42,0.12) !important; }
.prose .team-photo, .team-photo { margin: 0 auto var(--space-xl); max-width: 420px; }
.team-photo img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 50px rgba(37,40,42,0.12); display: block; }
.about-preview__image img { max-height: none !important; width: 100% !important; }
.review-cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.review-cards:has(> :only-child) { grid-template-columns: minmax(0, 420px); justify-content: center; }
@media (max-width: 767px) { .review-cards:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; } }
.about-preview__image img { height: auto !important; }
.about-preview__image img { aspect-ratio: 1 / 1 !important; object-fit: cover !important; max-height: none !important; }
.team-photo--hero { max-width: 440px; margin: 0 auto; }
.team-photo__names { display: flex; justify-content: center; gap: var(--space-2xl); margin-top: var(--space-lg); text-align: center; }
.team-photo__names a { display: flex; flex-direction: column; gap: 2px; color: var(--ctv-charcoal); text-decoration: none; }
.team-photo__names strong { font-family: var(--font-heading, 'Cinzel', serif); font-size: 22px; font-weight: 600; }
.team-photo__names span { font-size: 14px; color: #5c5f61; }
.team-photo__names a:hover strong { color: var(--ctv-teal-ink); }
.team-photo__names a { min-width: 210px; }
.team-photo--hero { max-width: 460px; } .team-photo img { aspect-ratio: 1 / 1; object-fit: cover; }

/* v1.7.46: AA contrast on the resources index "Read Guide" links (was 4.41:1) */
.resource-card__link { color: var(--ctv-terra-ink, #B25B40); }

/* v1.7.46: phone numbers never split across lines */
.ctv-nowrap { white-space: nowrap; }

/* v1.7.48: tighten the white gap between the team photo block and the stats row (was 240px) */
.about-preview { padding-bottom: 56px; }
.about-preview + .stats-section { padding-top: 24px; }
@media (max-width: 768px) {
  .about-preview { padding-bottom: 24px; }
  .about-preview + .stats-section { padding-top: 16px; }
}

/* v1.7.49: About page, team photo beside the shared intro (like the homepage block and the Marc and Michelle site) */
.team-split { align-items: center; }
.team-split .about-preview__image img { max-width: 480px; margin-inline: auto; display: block; }
.team-split__content h2 { margin-bottom: 0; }
.team-split__text p { margin: 0 0 1em; line-height: 1.75; color: var(--color-text-secondary, #4a4a4a); }
.team-split__text p:last-child { margin-bottom: 0; }
.team-split__people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(37,40,42,0.12); }
.team-split__person { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,0.6); transition: background .2s ease, transform .2s ease; }
.team-split__person:hover, .team-split__person:focus-visible { background: #fff; transform: translateY(-2px); }
.team-split__person strong { font-family: var(--font-heading, inherit); font-size: 1.15rem; color: var(--ctv-terra-ink, #B25B40); font-weight: 600; }
.team-split__person span { font-size: 0.8rem; color: var(--color-text-muted, #6B6B6B); letter-spacing: .02em; }
.team-split__person em { font-style: normal; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ctv-teal-ink, #267673); margin-top: 6px; font-weight: 600; }
@media (max-width: 767px) { .team-split__people { grid-template-columns: 1fr; } }

/* v1.7.49: reviews page with fewer than 4 reviews: static and centered, no marquee clones */
.reviews-marquee--static { -webkit-mask-image: none !important; mask-image: none !important; overflow: visible; }
.reviews-marquee--static .reviews-marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) {
  .team-split { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .team-split .about-preview__image img { max-width: 540px; }
  .team-split .about-preview__image { position: sticky; top: 120px; align-self: start; }
  .team-split { align-items: start; }
}
.team-split__person strong { color: var(--ctv-terra-ink-warm, #A5553C); }

/* v1.7.50: contact page social links */
.contact-social { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.contact-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--ctv-teal-ink, #267673); text-decoration: none; font-size: 0.95rem; padding: 6px 0; }
.contact-social a:hover, .contact-social a:focus-visible { color: var(--ctv-terra-ink, #B25B40); }
.contact-social svg { width: 22px; height: 22px; flex: 0 0 22px; }

/* v1.7.50: MLS search page */
.idx-section { padding-top: 48px; }
.idx-frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(37,40,42,0.08); border: 1px solid rgba(37,40,42,0.08); }
.idx-frame iframe { display: block; width: 100%; height: 1500px; border: 0; }
@media (max-width: 767px) { .idx-frame iframe { height: 1300px; } .idx-section { padding-top: 24px; } }
.idx-note { margin-top: 20px; color: var(--color-text-secondary, #4a4a4a); max-width: 760px; }

/* v1.7.52: team cards carry credentials, a short intro and the phone */
.team-split__person { padding: 18px 18px 16px; }
.team-split__person:hover, .team-split__person:focus-within { background: #fff; transform: none; }
.team-split__name { text-decoration: none; }
.team-split__name strong { font-family: var(--font-heading, inherit); font-size: 1.15rem; color: var(--ctv-terra-ink-warm, #A5553C); font-weight: 600; }
.team-split__line { margin: 8px 0 6px; font-size: 0.9rem; line-height: 1.6; color: var(--color-text-secondary, #4a4a4a); }
.team-split__phone { color: var(--ctv-terra-ink-warm, #A5553C); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.team-split__more { font-style: normal; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ctv-teal-ink, #267673); margin-top: 8px; font-weight: 600; text-decoration: none; }
.team-split__brokerage { margin-top: 14px; font-size: 0.85rem; color: var(--color-text-muted, #6B6B6B); }

/* v1.7.53 community map */
.community-map__frame { border-radius: 12px; overflow: hidden; background: #e9e5df; box-shadow: 0 10px 30px rgba(37,40,42,0.08); border: 1px solid rgba(37,40,42,0.08); aspect-ratio: 16 / 9; }
.community-map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.community-map__link { margin-top: 12px; text-align: right; }
@media (max-width: 767px) { .community-map__frame { aspect-ratio: 4 / 5; } .community-map__link { text-align: left; } }

/* v1.7.54 Sun City highlight */
.suncity__head { max-width: 760px; margin: 0 auto var(--space-xl, 40px); text-align: center; }
.suncity__head h2 { margin-top: 8px; }
.suncity__head .body-large { margin-top: 16px; }
.suncity__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.suncity-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(37,40,42,0.08); box-shadow: 0 10px 30px rgba(37,40,42,0.06); color: inherit; text-decoration: none; transition: transform 300ms ease, box-shadow 300ms ease; }
.suncity-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(37,40,42,0.12); }
.suncity-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.suncity-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.suncity-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.suncity-card__where { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ctv-teal); font-weight: 600; }
.suncity-card__name { margin: 0; }
.suncity-card__body p { margin: 0; }
.suncity-card__cta { margin-top: auto; padding-top: 8px; color: #A5523A; font-weight: 600; }
.suncity-card--lead .suncity-card__where { color: #A5523A; }
@media (max-width: 767px) { .suncity__grid { grid-template-columns: 1fr; } .suncity__head { text-align: left; } .suncity-card__body { padding: 20px; } }

/* v1.7.54 valley map */
.vmap .section__header .body-large { margin-top: 12px; }
.vmap__layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 32px; align-items: start; }
.vmap__scroll { border: 1px solid rgba(37,40,42,0.1); box-shadow: 0 10px 30px rgba(37,40,42,0.08); background: #ece8e1; }
.vmap__canvas { position: relative; }
.vmap__image { display: block; width: 100%; height: auto; }
.vmap__pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--ctv-teal); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; z-index: 1; }
.vmap__pin--lead { background: #A5523A; width: 30px; height: 30px; font-size: 13px; z-index: 2; }
.vmap__pin:hover, .vmap__pin:focus-visible { background: var(--ctv-teal-dark); z-index: 5; outline: none; }
.vmap__pin--lead:hover, .vmap__pin--lead:focus-visible { background: #8f4630; }
.vmap__pin::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: #25282A; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
.vmap__pin:hover::after, .vmap__pin:focus-visible::after { opacity: 1; }
.vmap__hint { display: none; margin-top: 8px; color: #5d5f61; }
.vmap__credit { margin-top: 8px; font-size: 12px; color: #5d5f61; }
.vmap__credit a { color: inherit; }
.vmap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vmap__list li { display: flex; gap: 12px; align-items: flex-start; }
.vmap__num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--ctv-teal); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.vmap__item--lead .vmap__num { background: #A5523A; }
.vmap__list a { font-weight: 600; }
.vmap__subs { display: block; font-size: 0.875rem; line-height: 1.5; margin-top: 2px; color: #5d5f61; }
.vmap__subs a { font-weight: 400; }
.vmap__figure { min-width: 0; }
@media (max-width: 1023px) { .vmap__layout { grid-template-columns: minmax(0, 1fr); } .vmap__list { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (max-width: 767px) {
  .vmap__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vmap__canvas { width: 760px; }
  .vmap__hint { display: block; }
  .vmap__list { grid-template-columns: 1fr; }
}

/* v1.7.60 phones: Matrix form is 654px wide, so phones get a button that opens the full search in a new tab */
.idx-phone { display: none; }
@media (max-width: 767px) {
  .idx-phone { display: block; margin-bottom: 20px; padding: 20px; background: var(--color-bg-warm, #f5f0e8); border: 1px solid rgba(37,40,42,0.08); }
  .idx-phone p { margin: 0 0 14px; }
  .idx-phone__btn { display: block; width: 100%; text-align: center; }
}
