/* ============================================================
   Fortujoy - Main Stylesheet
   Brand: Luxury Black #111 + Gold #C9A84C
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
    --black: #111111;
    --black-light: #1A1A1A;
    --black-soft: #222222;
    --gold: #C9A84C;
    --gold-dark: #B8943F;
    --gold-light: #D4B96A;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --cream: #F5F5F0;
    --gray-100: #F8F8F6;
    --gray-200: #E8E8E4;
    --gray-300: #E0E0E0;
    --gray-500: #999999;
    --gray-600: #666666;
    --gray-700: #444444;
    --success: #28A745;
    --error: #DC3545;

    --font-heading: 'Playfair Display', Georgia, 'Noto Serif SC', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 5rem;
    --space-2xl: 7.5rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-nav: 0 1px 0 rgba(0,0,0,0.08);

    --nav-height: 72px;
    --container-width: 1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.section-title h2 { margin-bottom: var(--space-sm); }
.section-title p { color: var(--gray-600); font-size: 1.125rem; }
.section-title .gold-line {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: var(--space-md) auto 0;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
}
.btn--primary {
    background: var(--gold);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197,165,90,0.4);
}
.btn--outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}
.btn--outline:hover {
    background: var(--white);
    color: var(--black);
}
.btn--outline-dark {
    border: 2px solid var(--black);
    color: var(--black);
    background: transparent;
}
.btn--outline-dark:hover {
    background: var(--black);
    color: var(--white);
}
.btn--outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    background: transparent;
}
.btn--outline-light:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn--gold {
    background: var(--gold);
    color: var(--white);
}
.btn--gold:hover {
    background: #b8943f;
}
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}
.nav--scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-nav);
}
.nav--scrolled .nav__link,
.nav--scrolled .nav__phone { color: var(--black); }
.nav--scrolled .nav__lang { color: var(--gold); border-color: var(--gold); }
.nav--scrolled .nav__toggle span { background: var(--black); }

.nav__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}
.nav__logo-img {
    height: 44px;
    width: auto;
    /* Recolor dark logo to gold #C9A84C on dark backgrounds */
    filter: brightness(0) saturate(100%) invert(71%) sepia(30%) saturate(600%) hue-rotate(10deg) brightness(90%) contrast(88%);
}
.nav--scrolled .nav__logo-img {
    /* On white scrolled nav, show original dark logo */
    filter: none;
}
.nav__menu { display: flex; align-items: center; gap: var(--space-lg); }
.nav__link {
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.2s;
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }
.nav__link:hover { color: var(--gold); }
.nav--scrolled .nav__link:hover { color: var(--gold); }
.nav__link--active { color: var(--gold); }

.nav__actions { display: flex; align-items: center; gap: var(--space-md); }
.nav__lang {
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav__lang:hover { border-color: var(--gold); color: var(--gold); }
.nav__phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
}
.nav__phone:hover { color: var(--gold); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}
.nav__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle--active span:nth-child(2) { opacity: 0; }
.nav__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Nav Dropdowns ── */
.nav__dropdown { position: relative; }
.nav__link--has-dropdown::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s;
}
.nav__dropdown:hover .nav__link--has-dropdown::after { transform: rotate(180deg); }
.nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1001;
    border-top: 2px solid var(--gold);
}
.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.nav__dropdown-link {
    display: block;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    color: var(--black);
    text-transform: none;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.nav__dropdown-link:hover {
    background: var(--off-white);
    color: var(--gold);
}

/* ── Section Subtitle (luxury eyebrow) ── */
.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

/* ── Dark Section ── */
.section--dark {
    background: var(--black);
    color: var(--white);
}
.section--dark .section-title h2 { color: var(--white); }
.section--dark .section-title p { color: rgba(255,255,255,0.6); }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: var(--space-lg);
    max-width: 800px;
}
.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: var(--space-md);
}
.hero__title {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    line-height: 1.15;
}
.hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    font-weight: 300;
}
.hero__cta { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
}
.hero__scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    margin: 6px auto 0;
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ── Stats Bar ── */
.stats {
    background: var(--black);
    padding: var(--space-xl) 0;
    color: var(--white);
    border-top: 1px solid rgba(201,168,76,0.2);
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}
.stats__item { padding: var(--space-md); }
.stats__number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}
.stats__label { font-size: 0.875rem; opacity: 0.8; }

/* ── Section Spacing ── */
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--cream); }

/* ── Team Cards ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card__photo {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: var(--space-lg) auto var(--space-md);
    border: 3px solid var(--gold);
}
.team-card__placeholder {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    margin: var(--space-lg) auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 3rem;
    border: 3px solid var(--gray-300);
}
.team-card__name { font-size: 1.25rem; margin-bottom: var(--space-xs); }
.team-card__title { color: var(--gold); font-size: 0.875rem; font-weight: 600; margin-bottom: var(--space-md); }
.team-card__bio {
    padding: 0 var(--space-lg);
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}
.team-card__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0 var(--space-lg) var(--space-lg);
}
.team-card__tag {
    background: var(--off-white);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Video Cards ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.video-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card__thumb {
    position: relative;
    aspect-ratio: 9/16;
    background: var(--gray-200);
    overflow: hidden;
    max-height: 280px;
}
.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}
.video-card:hover .video-card__play { opacity: 1; }
.video-card__play svg { width: 48px; height: 48px; fill: var(--white); }
.video-card__info { padding: var(--space-md); }
.video-card__title { font-size: 1rem; margin-bottom: var(--space-xs); }
.video-card__meta { color: var(--gray-600); font-size: 0.8125rem; }

/* ── Listing Cards ── */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.listing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-card__img {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--gray-200);
    overflow: hidden;
}
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}
.listing-card__info { padding: var(--space-md); }
.listing-card__price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-xs);
}
.listing-card__address { color: var(--gray-600); font-size: 0.875rem; margin-bottom: var(--space-sm); }
.listing-card__details {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8125rem;
    color: var(--gray-700);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-300);
}
.listing-card__detail { display: flex; align-items: center; gap: 0.25rem; }
.listing-card__school {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
}

/* ── Listings Page ── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}
.listings-filter {
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.listings-filter__label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-right: var(--space-xs);
}
.listings-filter__btn {
    padding: 0.375rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.25s;
}
.listings-filter__btn:hover { border-color: var(--gold); color: var(--gold); }
.listings-filter__btn--active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
.listings-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.listings-cta__content h3 { margin-bottom: var(--space-xs); }
.listings-cta__content p { color: var(--gray-600); font-size: 0.9375rem; max-width: 500px; }

/* ── Article Cards ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card__thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--black), var(--black-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2rem;
}
.article-card__info { padding: var(--space-md); }
.article-card__category {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}
.article-card__title { font-size: 1.125rem; margin-bottom: var(--space-sm); line-height: 1.4; }
.article-card__summary { color: var(--gray-600); font-size: 0.875rem; line-height: 1.6; margin-bottom: var(--space-md); }
.article-card__date { color: var(--gray-500); font-size: 0.8125rem; }

/* ── Testimonials Carousel ── */
.testimonials { overflow: hidden; }
.testimonials__track {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-card {
    min-width: 100%;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}
.testimonial-card__stars {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}
.testimonial-card__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    font-style: italic;
}
.testimonial-card__author { font-weight: 600; }
.testimonial-card__location { color: var(--gray-600); font-size: 0.875rem; }

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    cursor: pointer;
    transition: background 0.3s;
}
.testimonials__dot--active { background: var(--gold); }

/* ── Service Areas ── */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.area-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.area-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.area-card__name { font-family: var(--font-heading); font-size: 1.125rem; margin-bottom: var(--space-xs); }
.area-card__desc { color: var(--gray-600); font-size: 0.8125rem; }

/* ── AI Assistant Entry ── */
.ai-entry {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    color: var(--white);
    text-align: center;
    padding: var(--space-2xl) 0;
}
.ai-entry h2 { color: var(--white); margin-bottom: var(--space-sm); }
.ai-entry p { opacity: 0.9; margin-bottom: var(--space-lg); font-size: 1.125rem; }

/* ── Contact Form ── */
.contact-section { padding: var(--space-2xl) 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.contact-form .form-group { margin-bottom: var(--space-md); }
.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,165,90,0.1);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-info { padding: var(--space-lg); }
.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.contact-info__icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}
.contact-info__text h4 { margin-bottom: var(--space-xs); }
.contact-info__text p { color: var(--gray-600); font-size: 0.9375rem; }
.contact-info__text a { color: var(--gold); }
.contact-info__text a:hover { text-decoration: underline; }

.form-success {
    text-align: center;
    padding: var(--space-xl);
}
.form-success svg { margin: 0 auto var(--space-md); }
.form-success h3 { margin-bottom: var(--space-sm); }
.form-success p { color: var(--gray-600); }

/* ── Footer ── */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-lg);
}
.footer__container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-md); }
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo {
    height: 40px;
    margin-bottom: var(--space-md);
    filter: brightness(0) saturate(100%) invert(71%) sepia(30%) saturate(600%) hue-rotate(10deg) brightness(90%) contrast(88%);
}
.footer__slogan { color: var(--gold); font-style: italic; margin-bottom: var(--space-md); }
.footer__social { display: flex; gap: var(--space-md); }
.footer__social-link {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer__social-link:hover { color: var(--gold); }
.footer__links h4,
.footer__contact h4 {
    color: var(--gold);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer__links a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
    transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold); }
.footer__contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}
.footer__contact a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer__contact a:hover { color: var(--gold); }
.footer__bottom {
    text-align: center;
    padding-top: var(--space-lg);
    color: rgba(255,255,255,0.4);
    font-size: 0.8125rem;
}

/* ── Scroll Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in--visible { opacity: 1; transform: translateY(0); }

/* ── View All Link ── */
.view-all {
    text-align: center;
    margin-top: var(--space-xl);
}
.view-all a {
    color: var(--gold);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}
.view-all a:hover { color: var(--gold-dark); }
.view-all a::after { content: ' →'; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .hero__title { font-size: 2.25rem; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }
    .section { padding: var(--space-xl) 0; }

    /* Mobile nav */
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }
    .nav__menu--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav__menu .nav__link { color: var(--black); font-size: 1.125rem; }
    .nav__phone span { display: none; }

    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .stats__number { font-size: 2rem; }

    .team-grid,
    .video-grid,
    .listing-grid,
    .article-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

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

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

    .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.625rem; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .areas-grid { grid-template-columns: 1fr; }
}

/* ── Page Hero (sub-pages) ── */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    text-align: center;
    color: var(--white);
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,17,17,0.95), rgba(17,17,17,0.8));
}
.page-hero__content {
    position: relative;
    z-index: 2;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-xl);
}
.page-hero__content h1 { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.page-hero__content p { opacity: 0.8; font-size: 1.125rem; }

/* ── Team Member Profile ── */
.member-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--gray-200);
}
.member-profile:last-child { border-bottom: none; }
.member-profile--lead { padding-bottom: var(--space-2xl); }
.member-profile__photo {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.member-profile__placeholder {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gray-500);
}
.member-profile__name { font-size: 2rem; margin-bottom: var(--space-xs); }
.member-profile__title { color: var(--gold); font-size: 1rem; font-weight: 600; margin-bottom: var(--space-md); }
.member-profile__tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.member-profile__bio {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}
.member-profile__contact { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.member-profile__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-600);
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.member-profile__contact-item:hover { color: var(--gold); }

@media (max-width: 768px) {
    .page-hero { min-height: 240px; }
    .page-hero__content h1 { font-size: 1.75rem; }
    .member-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    .member-profile__photo,
    .member-profile__placeholder {
        max-width: 200px;
        margin: 0 auto;
    }
    .member-profile__tags { justify-content: center; }
    .member-profile__contact { justify-content: center; }
}

/* ══════════════════════════════════════════════════
   AI Consultation Overlay
   ══════════════════════════════════════════════════ */
.consultation-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
.consultation-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.consultation-panel {
    width: 100%;
    max-width: 480px;
    height: 85vh;
    max-height: 700px;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.consultation-overlay.active .consultation-panel {
    transform: translateY(0);
}

/* Header */
.consultation-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-md);
    background: var(--black);
    color: var(--white);
    flex-shrink: 0;
}
.consultation-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.consultation-close:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}
.consultation-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
}
.consultation-badge {
    background: var(--gold);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Messages area */
.consultation-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--gray-100);
}

/* Message bubbles */
.consultation-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 88%;
    animation: msgFadeIn 0.3s ease;
}
.consultation-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.consultation-msg-assistant {
    align-self: flex-start;
}

.consultation-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--black);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.consultation-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.consultation-msg-assistant .consultation-bubble {
    background: var(--white);
    color: var(--black);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.consultation-msg-user .consultation-bubble {
    background: var(--gold);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-dots {
    display: inline-flex;
    gap: 3px;
}
.typing-dots span {
    font-size: 1.5rem;
    line-height: 1;
    animation: typingBounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Suggestion chips */
.consultation-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}
.consultation-chip {
    background: var(--white);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.consultation-chip:hover {
    background: var(--gold);
    color: var(--white);
}

/* Input bar */
.consultation-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px var(--space-md);
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    flex-shrink: 0;
}
.consultation-input {
    flex: 1;
    border: 1.5px solid var(--gray-200);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.consultation-input:focus {
    border-color: var(--gold);
}
.consultation-input::placeholder {
    color: #999;
}

.consultation-mic-btn,
.consultation-send-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.consultation-mic-btn {
    background: var(--gray-100);
    color: var(--gray-600);
}
.consultation-mic-btn:hover {
    background: var(--black);
    color: var(--white);
}
.consultation-mic-btn.recording {
    background: #e74c3c;
    color: white;
    animation: micPulse 1.2s infinite;
}
.consultation-mic-btn.processing {
    background: var(--gray-200);
    color: var(--gray-500);
    cursor: wait;
}

.consultation-send-btn {
    background: var(--gold);
    color: var(--white);
}
.consultation-send-btn:hover {
    background: var(--gold-dark);
}
.consultation-send-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

@keyframes micPulse {
    0% { box-shadow: 0 0 0 0 rgba(231,76,60,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile: full screen panel */
@media (max-width: 520px) {
    .consultation-panel {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ── Floating AI Chat Trigger Button ── */
.ai-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    filter: drop-shadow(0 4px 20px rgba(201,168,76,0.4));
    animation: fabEntry 0.6s ease-out 1.5s both;
}

.ai-fab__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #d4a843);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: 0 4px 24px rgba(201,168,76,0.4);
}
.ai-fab__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(201,168,76,0.5);
}
.ai-fab__btn svg {
    width: 28px;
    height: 28px;
}

/* Ping dot */
.ai-fab__ping {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: fabPing 2s infinite;
}

/* Text hint that slides in */
.ai-fab__hint {
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 12px;
    opacity: 0;
    transform: translateX(20px);
    animation: hintSlide 0.5s ease-out 3s both;
    pointer-events: none;
}

@keyframes fabEntry {
    from { opacity: 0; transform: translateY(40px) scale(0.5); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fabPing {
    0% { box-shadow: 0 0 0 0 rgba(231,76,60,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}
@keyframes hintSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Hide floating button when consultation overlay is active */
.consultation-overlay.active ~ .ai-fab,
body.consult-open .ai-fab { display: none; }

@media (max-width: 520px) {
    .ai-fab { bottom: 20px; right: 16px; }
    .ai-fab__btn { width: 54px; height: 54px; }
    .ai-fab__hint { display: none; }
}

/* ═══════════════════════════════════════
   Page Header (shared for blog, listings etc.)
   ═══════════════════════════════════════ */
.page-header {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 48px;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 8px;
}
.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* ═══════════════════════════════════════
   Blog Filters
   ═══════════════════════════════════════ */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}
.blog-filter {
    padding: 8px 20px;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}
.blog-filter:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.blog-filter--active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* ═══════════════════════════════════════
   Pagination
   ═══════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}
.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination__link:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.pagination__link--active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* ═══════════════════════════════════════
   Empty State
   ═══════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-state h2 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 12px;
}
.empty-state p {
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════
   Article Detail
   ═══════════════════════════════════════ */
.article-detail__header {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 40px;
}
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    opacity: 0.7;
}
.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 6px;
}
.article-detail__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.3;
    max-width: 700px;
}
.article-detail__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.875rem;
}
.article-detail__category {
    background: var(--gold);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-detail__date {
    color: rgba(255,255,255,0.6);
}
.article-detail__hero {
    margin-top: -20px;
    margin-bottom: 32px;
}
.article-detail__hero-img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    aspect-ratio: 16/9;
    object-fit: cover;
}
.container--narrow {
    max-width: 760px;
    margin: 0 auto;
}
.article-detail__body {
    padding: 48px 0;
}

/* Article Content Typography */
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}
.article-content h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin: 32px 0 12px;
}
.article-content h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin: 24px 0 8px;
}
.article-content p {
    line-height: 1.85;
    margin-bottom: 18px;
    color: var(--text);
}
.article-content strong {
    color: var(--black);
}
.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}
.article-content li {
    line-height: 1.8;
    margin-bottom: 6px;
}
.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-cream);
    border-radius: 0 8px 8px 0;
}
.article-content blockquote p {
    margin-bottom: 0;
    color: var(--text-light);
    font-style: italic;
}
.article-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}
.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.article-content .table-responsive {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.article-content th {
    background: var(--black);
    color: var(--white);
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.article-content td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}
.article-content tbody tr:hover {
    background: var(--bg-cream);
}
.article-content tbody tr:last-child td {
    border-bottom: none;
}
.article-content a {
    color: var(--gold);
    text-decoration: underline;
}

/* Article Tags */
.article-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}
.article-tag {
    background: var(--bg-cream);
    color: var(--text-light);
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
}

/* Article CTA */
.article-detail__cta {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, var(--black) 0%, #2a3f6a 100%);
    border-radius: 12px;
    color: var(--white);
    text-align: center;
}
.article-detail__cta p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.article-detail__cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.article-detail__cta .btn--outline {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
}
.article-detail__cta .btn--outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Related Articles */
.article-detail__related {
    padding: 64px 0;
    background: var(--bg-cream);
}
.article-detail__related h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 32px;
    color: var(--black);
}

/* ═══════════════════════════════════════
   Article Card Thumbnail Image
   ═══════════════════════════════════════ */
.article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-card:hover .article-card__thumb img {
    transform: scale(1.05);
}

/* ═══════════════════════════════════════
   Responsive: Article Detail
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .article-detail__title {
        font-size: 1.5rem;
    }
    .article-detail__cta-btns {
        flex-direction: column;
        align-items: center;
    }
    .article-content h2 {
        font-size: 1.3rem;
    }
}
@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 32px;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
}

/* ============================================================
   Video Gallery
   ============================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(17, 17, 17, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(17, 17, 17, 0.15);
}

.video-card__player {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--black);
    cursor: pointer;
    overflow: hidden;
}

.video-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-card__thumb {
    transform: scale(1.05);
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
    padding: 0;
}

.video-card:hover .video-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card__info {
    padding: 1.25rem 1.5rem;
}

.video-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.video-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.video-card__desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Video Lightbox */
body.lightbox-open {
    overflow: hidden !important;
}

body.lightbox-open .nav,
body.lightbox-open .page-header,
body.lightbox-open .section,
body.lightbox-open .footer {
    visibility: hidden !important;
}

.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox__close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-lightbox__close:hover {
    background: rgba(255,255,255,0.3);
}

.video-lightbox__wrap {
    width: 90%;
    max-width: 960px;
    position: relative;
    z-index: 99999;
}

.video-lightbox__player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-lightbox__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-lightbox__wrap {
        width: 96%;
    }
}

@media (max-width: 480px) {
    .video-card__info {
        padding: 1rem;
    }
}

/* ============================================================
   New Luxury Components
   ============================================================ */

/* ── Dual CTA (Buy/Sell) ── */
.dual-cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.dual-cta__card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}
.dual-cta__card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.dual-cta__icon { color: var(--gold); margin-bottom: var(--space-md); }
.dual-cta__label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}
.dual-cta__card h3 { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.dual-cta__card > p { color: var(--gray-600); margin-bottom: var(--space-lg); }

/* ── About Preview ── */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.about-preview__image img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.about-preview__content .section-subtitle { text-align: left; }
.about-preview__content h2 { text-align: left; margin-bottom: var(--space-md); }
.about-preview__content > p {
    color: rgba(255,255,255,0.75);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}
.about-preview__stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}
.about-preview__stats strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--gold);
}
.about-preview__stats span {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* ── Video Empty State ── */
.video-empty {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
}
.video-empty__icon {
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: var(--space-lg);
}
.video-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}
.video-empty p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}
.video-empty__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Agent Profile (team page) ── */
.agent-profile {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
.agent-profile__photo {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-lg));
}
.agent-profile__photo img {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 3/4;
    object-fit: cover;
}
.agent-profile__content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: var(--space-xs);
}
.agent-profile__title {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-xl);
}
.agent-profile__bio p {
    color: var(--gray-700);
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: var(--space-md);
}
.agent-profile__contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}
.agent-profile__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.25s;
}
.agent-profile__contact-link:hover { color: var(--gold); }

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}
.credential-card {
    padding: var(--space-xl);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: border-color 0.3s;
}
.credential-card:hover { border-color: var(--gold); }
.credential-card__icon {
    color: var(--gold);
    margin-bottom: var(--space-md);
}
.credential-card h3 {
    color: var(--white);
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
}
.credential-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}
.philosophy-item { padding: var(--space-lg) 0; }
.philosophy-item__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-md);
}
.philosophy-item h3 { margin-bottom: var(--space-sm); }
.philosophy-item p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Neighborhood Cards ── */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.neighborhood-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    display: block;
}
.neighborhood-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--black-soft);
    transition: transform 0.5s ease;
}
.neighborhood-card:hover .neighborhood-card__bg { transform: scale(1.08); }
.neighborhood-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
}
.neighborhood-card__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-lg);
    color: var(--white);
    z-index: 2;
}
.neighborhood-card__content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}
.neighborhood-card__content p { font-size: 0.875rem; opacity: 0.8; }

/* ── Neighborhood Guide Page ── */
.hood-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}
.hood-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--black);
    transition: border-color 0.3s, transform 0.3s;
}
.hood-nav__item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.hood-nav__name {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.hood-nav__tag {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.hood-section { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.hood-section:nth-child(even) { background: var(--off-white); }

.hood-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
.hood-detail--reverse .hood-detail__image { order: 2; }
.hood-detail--reverse .hood-detail__content { order: 1; }

.hood-detail__img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/11;
    position: sticky;
    top: calc(var(--nav-height) + var(--space-lg));
}
.hood-detail__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hood-detail__img-wrap:hover img { transform: scale(1.05); }

.hood-detail__content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}
.hood-detail__intro {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.hood-detail__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}
.hood-section:nth-child(even) .hood-detail__stats { background: var(--cream); }
.hood-detail__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.125rem;
}
.hood-detail__stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hood-detail__highlights {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-xl);
}
.hood-detail__highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.hood-detail__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* ── Dark Testimonials ── */
.section--dark .testimonial-card__text {
    color: rgba(255,255,255,0.85);
    font-size: 1.25rem;
}
.section--dark .testimonial-card__author { color: var(--gold); }
.section--dark .testimonial-card__location { color: rgba(255,255,255,0.5); }
.testimonial-card__quote {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: -1.5rem;
}

/* ── Contact CTA Band ── */
.contact-cta { text-align: center; }
.contact-cta h2 { margin-bottom: var(--space-sm); }

/* ── Process Grid (buy/sell pages) ── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.process-step {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}
.process-step__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: var(--space-md);
}
.process-step h3 { margin-bottom: var(--space-sm); }
.process-step p { color: var(--gray-600); font-size: 0.9375rem; }

/* ── Valuation Form Grid ── */
.valuation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ── Page Hero Tall Variant ── */
.page-hero--tall { min-height: 50vh; }
.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* ── Advantages Grid ── */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.advantage-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}
.advantage-card__icon {
    color: var(--gold);
    margin-bottom: var(--space-md);
}
.advantage-card h3 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}
.advantage-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

/* ── Marketing Showcase ── */
.marketing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}
.marketing-card {
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color 0.3s;
}
.marketing-card:hover { border-color: var(--gold); }
.marketing-card h3 { margin-bottom: var(--space-sm); }
.marketing-card p { color: var(--gray-600); font-size: 0.9375rem; }

/* ── New Responsive Rules ── */
@media (max-width: 1024px) {
    .hero__title { font-size: 3rem; }
    .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .hood-detail { gap: var(--space-xl); }
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero__title { font-size: 2.25rem; }
    .dual-cta__grid { grid-template-columns: 1fr; }
    .about-preview {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-preview__image img {
        margin: 0 auto;
        max-width: 300px;
    }
    .about-preview__content .section-subtitle,
    .about-preview__content h2 { text-align: center; }
    .about-preview__stats { justify-content: center; }
    .neighborhoods-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .valuation-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .marketing-grid { grid-template-columns: 1fr; }
    .listings-grid { grid-template-columns: 1fr; }
    .listings-cta { flex-direction: column; text-align: center; }
    .agent-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .agent-profile__photo { position: static; max-width: 280px; margin: 0 auto; }
    .agent-profile__contact { justify-content: center; }
    .credentials-grid { grid-template-columns: 1fr; }
    .philosophy-grid { grid-template-columns: 1fr; }

    /* Neighborhood guide page */
    .hood-detail {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .hood-detail--reverse .hood-detail__image { order: 0; }
    .hood-detail--reverse .hood-detail__content { order: 0; }
    .hood-detail__img-wrap { position: static; }
    .hood-nav__item { padding: var(--space-sm) var(--space-md); }
    .hood-nav__name { font-size: 0.9375rem; }

    /* Mobile dropdown */
    .nav__dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        padding-left: var(--space-lg);
        background: transparent;
        display: none;
    }
    .nav__dropdown--open .nav__dropdown-menu { display: block; }
    .nav__dropdown-link {
        color: var(--black);
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.75rem; }
    .neighborhoods-grid { grid-template-columns: 1fr; }
}

/* --- Listing Detail Page --- */

/* Header bar */
.listing-detail__header {
    background: var(--black);
    padding: var(--space-lg) 0;
    margin-top: var(--nav-height);
}
.listing-detail__breadcrumb {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-md);
}
.listing-detail__breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.listing-detail__breadcrumb a:hover { color: var(--gold); }
.listing-detail__breadcrumb span { margin: 0 0.375rem; }
.listing-detail__title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}
.listing-detail__price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
}
.listing-detail__address {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin-top: 0.375rem;
}
.listing-detail__badges { display: flex; gap: var(--space-sm); align-items: center; }
.listing-detail__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
}
.listing-detail__badge--school { border-color: var(--gold); color: var(--gold); }

/* Photo Gallery */
.listing-gallery {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md) 0;
}
.listing-gallery__main {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-200);
    cursor: pointer;
}
.listing-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.listing-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.listing-gallery__main:hover .listing-gallery__nav { opacity: 1; }
.listing-gallery__nav:hover { background: rgba(0,0,0,0.7); }
.listing-gallery__nav--prev { left: var(--space-md); }
.listing-gallery__nav--next { right: var(--space-md); }
.listing-gallery__count {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    backdrop-filter: blur(4px);
}
.listing-gallery__thumbs {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-xs);
    scrollbar-width: thin;
}
.listing-gallery__thumb {
    flex-shrink: 0;
    width: 110px;
    height: 75px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    scroll-snap-align: start;
    border: 2px solid transparent;
}
.listing-gallery__thumb:hover { opacity: 0.8; }
.listing-gallery__thumb--active { opacity: 1; border-color: var(--gold); }
.listing-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* No-photo placeholder */
.listing-gallery__placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--gold);
}
.listing-gallery__placeholder svg { opacity: 0.3; }
.listing-gallery__placeholder p { color: var(--gray-500); font-size: 0.9375rem; }

/* Lightbox overlay */
.listing-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}
.listing-lightbox.active { display: flex; }
.listing-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.listing-lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.listing-lightbox__close:hover { opacity: 1; }
.listing-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.listing-lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.listing-lightbox__nav--prev { left: var(--space-lg); }
.listing-lightbox__nav--next { right: var(--space-lg); }
.listing-lightbox__count {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* Two-column layout */
.listing-detail__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3.5rem;
    align-items: start;
    padding: var(--space-xl) 0;
}

/* Property stats grid */
.listing-detail__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}
.listing-stat {
    text-align: center;
    padding: var(--space-lg);
    background: var(--white);
}
.listing-stat__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}
.listing-stat__label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* Section headings */
.listing-detail__section { margin-bottom: var(--space-xl); }
.listing-detail__section h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.listing-detail__description {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.9375rem;
}

/* Features tags */
.listing-detail__features { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.listing-feature-tag {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* Details table */
.listing-detail__table { }
.listing-detail__row {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9375rem;
}
.listing-detail__row:last-child { border-bottom: none; }
.listing-detail__row span:first-child { color: var(--gray-600); }
.listing-detail__row span:last-child { font-weight: 600; color: var(--black); }

/* Map placeholder */
.listing-detail__map {
    aspect-ratio: 16 / 9;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--gray-500);
    font-size: 0.9375rem;
}
.listing-detail__map svg { opacity: 0.3; }

/* Sidebar CTA */
.listing-detail__sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); }
.listing-detail__cta-card {
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.listing-detail__cta-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.listing-detail__cta-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}
.listing-detail__cta-card .btn {
    width: 100%;
    margin-bottom: var(--space-sm);
    justify-content: center;
}
.listing-detail__cta-card .btn:last-child { margin-bottom: 0; }
.listing-detail__source {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--gray-500);
}
.listing-detail__source a { color: var(--gray-500); text-decoration: underline; }
.listing-detail__source a:hover { color: var(--gold); }

/* Agent card in sidebar */
.listing-detail__agent {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    margin: 0 auto var(--space-md);
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .listing-detail__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .listing-detail__sidebar { position: static; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .listing-detail__price { font-size: 2rem; }
    .listing-detail__stats { grid-template-columns: repeat(2, 1fr); }
    .listing-gallery__thumb { width: 80px; height: 56px; }
    .listing-detail__title-row { flex-direction: column; align-items: flex-start; }
    .listing-lightbox__nav { width: 40px; height: 40px; font-size: 1.25rem; }
}

/* Clickable listing cards */
a.listing-card { display: block; color: inherit; text-decoration: none; }
a.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a.listing-card { transition: transform 0.3s, box-shadow 0.3s; }

/* ============================================================
   Mortgage Calculator
   ============================================================ */
.calc {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.calc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}
.calc__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}
.calc__total-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.calc__total {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}
.calc__per-mo {
    font-size: 0.875rem;
    color: var(--gray-500);
}
.calc__body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
}
.calc__chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}
.calc__donut {
    width: 220px;
    height: 220px;
}
.calc__donut-total {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    fill: var(--black);
}
.calc__donut-label {
    font-size: 12px;
    fill: var(--gray-500);
}
.calc__legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calc__legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}
.calc__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.calc__legend-label {
    flex: 1;
    color: var(--gray-600);
}
.calc__legend-value {
    font-weight: 600;
    color: var(--black);
}
.calc__inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.calc__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 4px;
}
.calc__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.calc__input-wrap input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    transition: border-color 0.2s;
}
.calc__input-wrap input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.calc__prefix,
.calc__suffix {
    position: absolute;
    font-size: 0.875rem;
    color: var(--gray-500);
    pointer-events: none;
}
.calc__prefix { left: 12px; }
.calc__suffix { right: 12px; }
.calc__input-wrap:has(.calc__prefix) input { padding-left: 28px; }
.calc__input-wrap:has(.calc__suffix) input { padding-right: 32px; }
.calc__field--dual .calc__input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.calc__radio-group {
    display: flex;
    gap: 8px;
}
.calc__radio {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-600);
}
.calc__radio input { display: none; }
.calc__radio:hover { border-color: var(--gold-light); }
.calc__radio--active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    font-weight: 500;
}
.calc__select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    cursor: pointer;
}
.calc__select:focus {
    outline: none;
    border-color: var(--gold);
}
.calc__pmi-notice {
    font-size: 0.8125rem;
    color: var(--error);
    padding: 8px 12px;
    background: rgba(220,53,69,0.06);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--error);
}

/* ══════════════════════════════════════════
   Client Stories (客户故事)
   ══════════════════════════════════════════ */

/* ── Homepage Stories Showcase (video + text mixed) ── */
.stories-showcase {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-lg);
    align-items: stretch;
}

.story-video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.story-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.story-video-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--black);
}
.story-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.story-video-card:hover .story-video-card__thumb img {
    transform: scale(1.03);
}

.story-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(201,168,76,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}
.story-video-card__play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}
.story-video-card:hover .story-video-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gold);
}

.story-video-card__info {
    padding: 1.25rem 1.5rem;
}
.story-video-card__quote {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.story-video-card__author {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9375rem;
}
.story-video-card__meta {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.25rem;
}

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

.stories-text-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stories-text-card__stars {
    color: var(--gold);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.stories-text-card__text {
    font-style: italic;
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.stories-text-card__author {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.875rem;
}
.stories-text-card__location {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

.stories-footer {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ── Stories Page Grid ── */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.story-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}
.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.story-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--black);
    overflow: hidden;
    cursor: pointer;
}
.story-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.story-card:hover .story-card__thumb img {
    transform: scale(1.05);
}

.story-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(201,168,76,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}
.story-card__play::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}
.story-card:hover .story-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.story-card--text .story-card__body {
    padding: 2rem 1.5rem;
}
.story-card--text .story-card__quote-mark {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -0.75rem;
}

.story-card__body {
    padding: 1.25rem 1.5rem;
}

.story-card__badge-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.deal-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.deal-badge--buy { background: rgba(201,168,76,0.12); color: var(--gold); }
.deal-badge--sell { background: rgba(59,130,246,0.12); color: #3b82f6; }
.deal-badge--invest { background: rgba(34,197,94,0.12); color: #22c55e; }
.deal-badge--video { background: rgba(139,92,246,0.12); color: #8b5cf6; }

.story-card__text {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.story-card__stars {
    color: var(--gold);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.story-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.story-card__author {
    font-weight: 600;
    font-size: 0.9375rem;
}
.story-card__location {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ── Story Lightbox (HTML5 video) ── */
.story-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.story-lightbox.active { display: flex; }

.story-lightbox__wrap {
    width: 90%;
    max-width: 900px;
    position: relative;
    z-index: 99999;
}
.story-lightbox__wrap video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}
.story-lightbox__transcript {
    max-height: 180px;
    overflow-y: auto;
    padding: var(--space-md);
    color: rgba(255,255,255,0.75);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-top: var(--space-md);
    text-align: center;
}
.story-lightbox__close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.story-lightbox__close:hover { background: rgba(255,255,255,0.3); }

/* ── Stories Page Hero ── */
.stories-hero {
    background: var(--black);
    color: #fff;
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
}
.stories-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}
.stories-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Stories Filter Chips ── */
.story-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.story-filter {
    padding: 8px 20px;
    border-radius: 24px;
    border: 1.5px solid var(--gray-300);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}
.story-filter:hover { border-color: var(--gold); color: var(--gold); }
.story-filter--active {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .stories-showcase { grid-template-columns: 1fr; }
    .story-grid { grid-template-columns: 1fr; }
    .stories-hero h1 { font-size: 1.75rem; }
    .story-lightbox__wrap { width: 96%; }
}

/* Compact mode (listing embed) */
.calc--compact .calc__header { padding: var(--space-md) var(--space-lg); }
.calc--compact .calc__title { font-size: 1.1rem; }
.calc--compact .calc__total { font-size: 1.5rem; }
.calc--compact .calc__body { grid-template-columns: 240px 1fr; padding: var(--space-md) var(--space-lg) var(--space-lg); }
.calc--compact .calc__donut { width: 180px; height: 180px; }

/* Responsive */
@media (max-width: 768px) {
    .calc__header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .calc__body { grid-template-columns: 1fr; }
    .calc__chart-col { order: -1; }
    .calc__donut { width: 180px; height: 180px; }
    .calc--compact .calc__body { grid-template-columns: 1fr; }
    .calc--compact .calc__donut { width: 160px; height: 160px; }
}
