/* ==========================================================================
   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: 'Playfair Display', serif;
    --font-body: 'Inter', 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: 72px;
    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%;
    height: 100vh;
    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;
    justify-content: center;
    gap: var(--space-3xl);
    text-align: center;
}

.stats__item {
    display: flex;
    flex-direction: column;
    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-border);
    color: var(--color-text-primary);
    transition: border-color 200ms ease, background-color 200ms ease;
}

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

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

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

.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; }

    .stat-number { font-size: 56px; }

    .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 */
    .stats {
        gap: var(--space-xl);
        flex-wrap: wrap;
    }

    .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; }

    .stat-number { font-size: 48px; }

    .stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .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); }
}


/* ==========================================================================
   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; }

/* Hide Properties nav dropdown when no property provider is configured */
.provider-none .menu-item-properties { display: none; }

/* 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;
}
