/*
Theme Name: RE/MAX 507 Luxury
Theme URI: https://remax-507.com
Author: Antigravity
Version: 2.1.0
Text Domain: remax-507
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --bg-color:        #ffffff;
    --text-color:      #0a0a0a;
    --accent-color:    #0C2749;
    --accent-light:    #1a3f6f;
    --accent-glow:     rgba(12, 39, 73, 0.15);
    --secondary-bg:    #f4f4f4;
    --border-color:    rgba(12, 39, 73, 0.15);
    --font-header:     'Playfair Display', serif;
    --font-body:       'Inter', sans-serif;
    --transition-slow: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    --transition-med:  0.5s ease;
    --card-shadow:     0 20px 60px rgba(0,0,0,0.12);
}

/* ============================================================
   RESET
   ============================================================ */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.section    { padding: 10rem 0; }
.playfair   { font-family: var(--font-header); }

h2.playfair {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
h2.playfair span { color: var(--accent-color); font-style: italic; }

.section-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: block;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: var(--transition-slow); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }

/* ============================================================
   NAVIGATION — Always Visible
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 1.8rem 0;
    background-color: var(--accent-color); /* safe default */
    transition: var(--transition-med);
}
#navbar.hero-nav { background-color: transparent; }
#navbar.scrolled {
    padding: 1rem 0;
    background-color: var(--accent-color) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

#navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo-img { height: 52px; width: auto; object-fit: contain; display: block; }
a.logo-link { display: flex; align-items: center; text-decoration: none; }

.nav-links {
    display: flex; list-style: none;
    gap: 2.5rem; align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* Scrolled state */
#navbar.scrolled .nav-links a           { color: rgba(255,255,255,0.75); }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active   { color: #fff; }

/* CTA button in nav */
#navbar.scrolled .nav-links .cta .btn-primary {
    background: #fff !important; color: var(--accent-color) !important;
    border-color: #fff !important;
}
#navbar.hero-nav:not(.scrolled) .cta .btn-primary {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    color: #fff; border: 1px solid rgba(255,255,255,0.5);
}
#navbar.hero-nav:not(.scrolled) .cta .btn-primary:hover {
    background: #fff; color: var(--accent-color); border-color: #fff;
}

/* Mobile toggle — hidden by default */
.mobile-menu-toggle { display: none; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    height: 100vh; position: relative;
    overflow: hidden; background: #000; z-index: 1;
}
.hero-visual {
    position: absolute; inset: 0;
    width: 100%; height: 120%;
    background-image: url('panama_sunset_skyline.jpg');
    background-size: cover; background-position: center top;
    transform: scale(1.1); z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.2) 0%, rgba(5,15,35,0.52) 55%, rgba(5,15,50,0.88) 100%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3;
    height: 100vh; display: flex;
    flex-direction: column; justify-content: center;
    align-items: center; text-align: center;
    padding: 0 5vw;
}
.hero-eyebrow {
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 4px; color: rgba(255,255,255,0.6);
    font-weight: 500; margin-bottom: 1.8rem;
}
.hero-title {
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: 0.88; margin-bottom: 2rem;
    text-transform: uppercase; font-weight: 300; color: #fff;
}
.hero-title span { font-style: italic; color: #fff; }
#hero .tagline {
    color: rgba(255,255,255,0.85);
    font-size: clamp(0.82rem, 1.6vw, 1.05rem);
    letter-spacing: 0.15em; text-transform: uppercase;
    font-weight: 300; max-width: 560px;
    line-height: 1.8; margin-bottom: 3rem;
}
.hero-cta-group {
    display: flex; gap: 1.5rem;
    margin-bottom: 5rem;
    flex-wrap: wrap; justify-content: center;
}
.btn-hero-primary {
    padding: 1rem 2.5rem; background: #fff; color: var(--accent-color);
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 2.5px; font-weight: 700;
    border-radius: 3px; border: 1px solid #fff;
    text-decoration: none; transition: all 0.4s;
    display: inline-block;
}
.btn-hero-primary:hover { background: transparent; color: #fff; }

/* Hero Stats */
.hero-stats {
    display: flex; align-items: center; gap: 3rem;
    padding: 1.8rem 3rem;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
}
.hero-stat   { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.stat-number { font-family: var(--font-header); font-size: 1.55rem; color: #fff; line-height: 1; }
.stat-label  { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.5); }
.hero-stat-divider { width: 1px; height: 38px; background: rgba(255,255,255,0.2); }

/* Scroll indicator */
.hero-scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); z-index: 4; }
.scroll-line {
    width: 1px; height: 72px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
    margin: 0 auto; animation: scrollSlide 2s infinite;
}
@keyframes scrollSlide {
    0%   { transform: scaleY(0); transform-origin: top;    }
    50%  { transform: scaleY(1); transform-origin: top;    }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   VISION SECTION
   ============================================================ */
.strategy-pill {
    padding: 2.5rem 3rem; border-radius: 6px;
    background: #fff; border-left: 3px solid var(--accent-color);
    box-shadow: 0 2px 24px rgba(12,39,73,0.07);
    margin-bottom: 2rem;
}
.strategy-pill:last-child { margin-bottom: 0; }
.strategy-pill h4 {
    color: var(--accent-color); margin-bottom: 0.9rem;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem;
}
.strategy-pill p { color: #555; font-size: 0.97rem; line-height: 1.7; }

/* ============================================================
   CATEGORIES SCROLL SECTION (sticky storytelling)
   ============================================================ */
#categories-section {
    background: #fafafa;
    position: relative;
}

/* Full header above the sticky grid */
.categories-title-block {
    padding: 8rem 5vw 5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.categories-title-block h2.playfair { color: var(--text-color); }

/* The sticky grid wrapper */
.categories-sticky-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* height determined by items in the list panel */
}

/* LEFT — scrollable list of categories */
.categories-list-panel { /* natural flow */ }

/* Each category item takes full viewport height so ONE fits at a time */
.category-item {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 5vw 5rem 5vw;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}
.category-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.2,1,0.3,1);
}
.category-item.cat-active::before,
.category-item:hover::before { transform: scaleY(1); }
.category-item.cat-active     { background: rgba(12,39,73,0.025); }

.cat-number {
    font-family: var(--font-header);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 300;
    color: rgba(12,39,73,0.08);
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: color 0.4s;
}
.category-item.cat-active .cat-number,
.category-item:hover        .cat-number { color: rgba(12,39,73,0.15); }

.cat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}
.cat-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.cat-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 1.8rem;
}
.cat-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(12,39,73,0.45);
    font-weight: 500;
}
.cat-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}
.cat-cta-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.category-item.cat-active .cat-cta-link,
.category-item:hover       .cat-cta-link { opacity: 1; transform: translateX(0); }
.cat-cta-link:hover svg { transform: translateX(4px); }

/* RIGHT — sticky image panel */
.categories-image-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: start;
    overflow: hidden;
}
.category-display-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.category-display-img.fading {
    opacity: 0;
    transform: scale(1.04);
}
.cat-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.1) 0%, rgba(5,15,40,0.45) 100%);
    pointer-events: none;
}
/* Progress bar on image panel */
.cat-progress-track {
    position: absolute;
    right: 2rem; top: 3rem; bottom: 3rem;
    width: 2px;
    background: rgba(255,255,255,0.15);
}
.cat-progress-fill {
    width: 100%;
    background: #fff;
    height: 25%; /* updated by JS */
    transition: height 0.6s cubic-bezier(0.2,1,0.3,1);
}
/* Text overlay on image */
.cat-overlay-text {
    position: absolute;
    bottom: 3rem; left: 3rem; right: 4rem;
    color: #fff; pointer-events: none;
}
.cat-overlay-label {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}
.cat-overlay-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.55);
    transition: all 0.4s ease;
}

/* ============================================================
   ADVISOR CAROUSEL (Homepage)
   ============================================================ */
.advisor-carousel-section {
    padding: 10rem 0;
    overflow: hidden;
    background: var(--secondary-bg);
}
.carousel-container {
    display: flex; gap: 2rem;
    padding: 2rem 5vw;
    cursor: grab; user-select: none;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-container:active { cursor: grabbing; }

.carousel-card {
    flex: 0 0 300px; height: 460px;
    border-radius: 14px; overflow: hidden;
    position: relative; background: #1a2a40;
    transition: var(--transition-med);
    box-shadow: 0 8px 32px rgba(12,39,73,0.18);
}
.carousel-card img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.4);
    transition: var(--transition-slow);
}
.carousel-card:hover img { filter: grayscale(0); transform: scale(1.05); }
.carousel-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
    color: #fff;
}
.carousel-info h3 { font-family: var(--font-header); font-size: 1.5rem; margin-bottom: 0.3rem; color: #fff; }
.carousel-info p  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.65; }

/* ============================================================
   LISTINGS SECTION
   ============================================================ */
.listings-section {
    padding: 10rem 0;
    background: var(--accent-color);
    position: relative; overflow: hidden;
}
.listings-section::before {
    content: '';
    position: absolute; top: -50%; right: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.listings-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem; align-items: center;
}
.listings-text { color: #fff; }
.listings-eyebrow { color: rgba(255,255,255,0.5); }
.listings-title { font-size: clamp(2.4rem, 4vw, 4rem); color: #fff; margin-bottom: 1.8rem; line-height: 1.1; }
.listings-title span { color: rgba(255,255,255,0.6); font-style: italic; }
.listings-lead { font-size: 1.02rem; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 2.5rem; max-width: 500px; }

.listings-features { list-style: none; margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1.2rem; }
.listings-features li { display: flex; align-items: center; gap: 1rem; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.listings-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.listings-icon svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.8); }

.btn-listings-primary {
    display: inline-flex; align-items: center;
    padding: 1.1rem 2.5rem;
    background: #fff; color: var(--accent-color);
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 2.5px; font-weight: 700;
    border-radius: 4px; border: 1px solid #fff;
    text-decoration: none; transition: all 0.4s;
    margin-right: 1.5rem; margin-bottom: 1rem;
}
.btn-listings-primary:hover { background: transparent; color: #fff; transform: translateY(-3px); }

.btn-listings-outline {
    display: inline-block; padding: 1.1rem 2.5rem;
    background: transparent; color: rgba(255,255,255,0.7);
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 2px; font-weight: 500;
    border-radius: 4px; border: 1px solid rgba(255,255,255,0.25);
    text-decoration: none; transition: all 0.4s;
    margin-bottom: 1rem;
}
.btn-listings-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; transform: translateY(-2px); }

/* Card stack */
.listings-visual { position: relative; }
.listings-card-stack { position: relative; height: 460px; }
.listing-preview-card {
    position: absolute; border-radius: 12px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}
.listing-preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpc-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff; display: flex; justify-content: space-between; align-items: flex-end;
}
.lpc-price { font-family: var(--font-header); font-size: 1.15rem; }
.lpc-loc   { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; }
.lpc-1 { width: 72%; height: 370px; bottom: 0; right: 0; z-index: 3; }
.lpc-2 { width: 62%; height: 310px; bottom: 55px; right: 45px; z-index: 2; transform: rotate(-3deg); filter: brightness(0.75); }
.lpc-3 { width: 55%; height: 270px; bottom: 100px; right: 85px; z-index: 1; transform: rotate(-6deg); filter: brightness(0.5); }
.listings-card-stack:hover .lpc-2 { transform: rotate(-5deg) translateY(-10px); filter: brightness(0.85); }
.listings-card-stack:hover .lpc-3 { transform: rotate(-9deg) translateY(-20px); filter: brightness(0.65); }

/* ============================================================
   QUADRANT SECTION
   ============================================================ */
.quadrant-section { display: flex; flex-wrap: wrap; height: 100vh; }
.quadrant {
    flex: 1 1 50%; height: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 0.5px solid var(--border-color);
    position: relative; cursor: pointer; overflow: hidden;
}
.quadrant h2 { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 300; }
.quadrant::after {
    content: ''; position: absolute; inset: 0;
    background: var(--accent-color);
    transform: scaleX(0); transform-origin: right;
    transition: var(--transition-slow); z-index: -1;
}
.quadrant:hover::after { transform: scaleX(1); }
.quadrant:hover h2, .quadrant:hover p { color: #fff; }

/* ============================================================
   ADVISOR GRID (Team page)
   ============================================================ */
.advisor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem; margin-top: 4rem;
}
.advisor-card { text-align: center; }
.advisor-photo {
    width: 100%; aspect-ratio: 3/4;
    background: #e8edf2; margin-bottom: 1.2rem;
    overflow: hidden; filter: grayscale(0.3);
    transition: var(--transition-med);
}
.advisor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.advisor-card:hover .advisor-photo { filter: grayscale(0); }

/* ============================================================
   CONTACT / FORM SECTION
   ============================================================ */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    padding: 3rem 0 6rem;
    align-items: start;
}
.contact-info-col h2.playfair { margin-bottom: 2rem; }
.contact-info-col p { color: #555; line-height: 1.8; margin-bottom: 2rem; font-size: 0.98rem; }
.contact-detail-item {
    display: flex; align-items: flex-start;
    gap: 1rem; margin-bottom: 1.8rem;
}
.contact-detail-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.contact-detail-icon svg { width: 18px; height: 18px; fill: #fff; }
.contact-detail-text strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-color); margin-bottom: 0.3rem; }
.contact-detail-text span, .contact-detail-text a { font-size: 0.95rem; color: #444; text-decoration: none; }
.contact-detail-text a:hover { color: var(--accent-color); }

.contact-form-col {
    background: #fff;
    border: 1px solid rgba(12,39,73,0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 680px;
}
.contact-form-col iframe {
    width: 100%; height: 680px;
    border: none; display: block;
}

/* Social strip on contact */
.contact-social { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.contact-social a {
    width: 40px; height: 40px; border: 1px solid var(--border-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 600; text-decoration: none;
    color: var(--accent-color); letter-spacing: 1px;
    transition: all 0.3s;
}
.contact-social a:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* ============================================================
   INVESTMENT PAGE
   ============================================================ */
.invest-feature-list {
    list-style: none; display: flex; flex-direction: column; gap: 1rem;
}
.invest-feature-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; opacity: 0.8; }
.invest-check-icon {
    width: 22px; height: 22px; background: var(--accent-color);
    border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.invest-check-icon svg { width: 12px; height: 12px; }

/* ============================================================
   NAVY SECTION / CTA
   ============================================================ */
.navy-section { background: var(--accent-color); color: #fff; }
.navy-section h2, .navy-section h3, .navy-section p { color: #fff; }
.navy-section span { color: rgba(255,255,255,0.6); }
.navy-section .btn-primary { background: #fff; color: var(--accent-color); }
.navy-section .btn-primary:hover { background: rgba(255,255,255,0.88); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 1rem 2.5rem; text-decoration: none;
    text-transform: uppercase; font-size: 0.72rem;
    letter-spacing: 2px; transition: all 0.4s;
    display: inline-block; cursor: pointer;
    font-weight: 600; border-radius: 4px;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent-color); color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(12,39,73,0.15);
}
.btn-primary:hover {
    background: transparent; color: var(--accent-color);
    transform: translateY(-3px); box-shadow: 0 8px 24px rgba(12,39,73,0.2);
}
.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color); background: transparent;
}
.btn-outline:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main { background: var(--accent-color); padding: 8rem 0 4rem; color: #fff; }
.footer-top  { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 6rem; }
.footer-col h4 {
    font-family: var(--font-header); color: rgba(255,255,255,0.45);
    margin-bottom: 2rem; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: 2px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1.1rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: all 0.3s; }
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }
.footer-bottom {
    padding-top: 4rem; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; color: rgba(255,255,255,0.35);
}
.social-strip { display: flex; gap: 2rem; }
.social-strip a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.social-strip a:hover { color: #fff; }

/* 3D card */
.threed-card { transition: transform 0.5s; transform-style: preserve-3d; }
.glass { background: #fff; border: 1px solid rgba(12,39,73,0.12); box-shadow: 0 4px 30px rgba(12,39,73,0.07); }

/* ============================================================
   TABLET — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .categories-sticky-wrapper { grid-template-columns: 1fr; }
    .categories-image-panel { position: relative; height: 55vw; min-height: 300px; }
    .category-item { min-height: auto; padding: 4rem 5vw; }
    .cat-number { font-size: 4rem; }

    .listings-content { grid-template-columns: 1fr; gap: 4rem; }
    .listings-visual  { order: -1; }
    .listings-card-stack { height: 300px; }
    .lpc-1 { height: 240px; }
    .lpc-2 { height: 200px; }
    .lpc-3 { height: 170px; }

    .contact-page-wrapper { grid-template-columns: 1fr; gap: 3rem; }

    .quadrant-section { height: auto; }
    .quadrant         { flex: 1 1 100%; height: auto; min-height: 220px; padding: 4rem 2rem; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MOBILE — 768px
   ============================================================ */
@media (max-width: 768px) {

    /* Navbar */
    .mobile-menu-toggle {
        display: flex; flex-direction: column;
        justify-content: space-between;
        width: 28px; height: 20px;
        background: transparent; border: none;
        cursor: pointer; z-index: 1001;
    }
    .mobile-menu-toggle span {
        width: 100%; height: 2px;
        background: #fff; transition: all 0.3s;
    }
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg);  }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 300px; height: 100vh;
        background: var(--accent-color);
        flex-direction: column; justify-content: center;
        align-items: center; gap: 2rem;
        transition: 0.4s cubic-bezier(0.2,1,0.3,1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000; padding: 2rem;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.1rem !important; color: #fff !important; text-align: center; width: 100%; display: block; }
    .nav-links .cta { width: 100%; text-align: center; }
    .nav-links .cta .btn-primary { background: #fff !important; color: var(--accent-color) !important; border: none !important; width: 70%; margin: 0 auto; display: block; }

    /* Hero */
    .hero-stats { flex-direction: column; gap: 1.5rem; padding: 1.5rem; width: 90%; }
    .hero-stat-divider { width: 40px; height: 1px; }
    .hero-cta-group { gap: 1rem; margin-bottom: 3rem; }
    .btn-hero-primary { padding: 0.9rem 1.8rem; font-size: 0.68rem; }

    /* Vision */
    .row { flex-direction: column !important; gap: 3rem !important; }
    .col-6 { width: 100% !important; }

    /* Categories */
    .categories-sticky-wrapper { grid-template-columns: 1fr; }
    .categories-image-panel    { position: relative; height: 65vw; min-height: 250px; }
    .category-item { min-height: auto; padding: 3rem 5vw; }
    .cat-number    { font-size: 3rem; }
    .cat-title     { font-size: 1.8rem; }
    .cat-progress-track { display: none; }

    /* Listings */
    .listings-content    { grid-template-columns: 1fr; gap: 3rem; }
    .listings-card-stack { height: 220px; }
    .lpc-1 { width: 80%; height: 190px; }
    .lpc-2 { width: 70%; height: 160px; bottom: 25px; right: 18px; }
    .lpc-3 { width: 60%; height: 140px; bottom: 48px; right: 33px; }
    .btn-listings-primary, .btn-listings-outline { display: block; text-align: center; margin-right: 0; margin-bottom: 1rem; }

    /* Team grid — SINGLE COLUMN */
    .advisor-grid {
        grid-template-columns: 1fr !important;
        max-width: 360px; margin-left: auto; margin-right: auto;
    }

    /* Contact */
    .contact-page-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-form-col { min-height: 700px; }
    .contact-form-col iframe { height: 700px; }

    /* Quadrant */
    .quadrant-section { height: auto; }
    .quadrant         { flex: 1 1 100%; height: auto; min-height: 200px; padding: 3rem 1.5rem; }

    /* Footer */
    .footer-top {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important; text-align: center;
    }
    .footer-col.brand-col { grid-column: 1 / -1; text-align: center; }
    .footer-col { align-items: center; display: flex; flex-direction: column; text-align: center; }
    .footer-col h4    { font-size: 0.72rem !important; margin-bottom: 1rem !important; }
    .footer-col ul li { margin-bottom: 0.6rem !important; }
    .footer-col ul li a, .footer-col p { font-size: 0.65rem !important; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    .social-strip  { justify-content: center; }

    .carousel-card { flex: 0 0 250px !important; height: 360px !important; }
}

/* ============================================================
   TEAM STRIP SECTION (Homepage)
   ============================================================ */
:root { --accent-gold: #C9A96E; }

.team-strip-section { padding: 8rem 0 0; overflow: hidden; }
.team-strip-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 4rem; flex-wrap: wrap; }
.team-strip-lead { font-size: 1rem; opacity: 0.6; margin-top: 0.8rem; max-width: 500px; }
.team-strip-cta { flex-shrink: 0; white-space: nowrap; }

/* Scrolling track */
.team-scroll-track-outer { position: relative; width: 100%; overflow: hidden; padding-bottom: 4rem; }
.team-scroll-track-outer::before,
.team-scroll-track-outer::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.team-scroll-track-outer::before { left: 0; background: linear-gradient(to right, var(--primary-bg, #0a0e18), transparent); }
.team-scroll-track-outer::after  { right: 0; background: linear-gradient(to left, var(--primary-bg, #0a0e18), transparent); }
.team-scroll-track { display: flex; gap: 1.5rem; width: max-content; animation: teamScroll 35s linear infinite; }
.team-scroll-track:hover { animation-play-state: paused; }
@keyframes teamScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Individual agent card in strip */
.ts-card { flex: 0 0 200px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(201,169,110,0.12); background: var(--secondary-bg); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; cursor: default; }
.ts-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(201,169,110,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.ts-card img { width: 100%; height: 220px; object-fit: cover; object-position: top center; display: block; transition: transform 0.5s ease; }
.ts-card:hover img { transform: scale(1.07); }
.ts-info { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.ts-name { font-family: var(--font-header); font-size: 0.9rem; font-weight: 600; }
.ts-role { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-gold); opacity: 0.85; }

/* ============================================================
   CINEMATIC LISTINGS SECTION
   ============================================================ */
.listings-cinematic { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.lc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); transition: transform 8s ease; filter: brightness(0.35) saturate(0.8); }
.listings-cinematic:hover .lc-bg { transform: scale(1.0); }
.lc-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,14,24,0.92) 0%, rgba(12,39,73,0.75) 50%, rgba(10,14,24,0.55) 100%); }
.lc-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 8rem 0; }
.lc-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 4px; color: var(--accent-gold); font-weight: 600; margin-bottom: 1.5rem; display: block; }
.lc-title { font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1.05; color: #fff; margin-bottom: 1.5rem; }
.lc-title-accent { color: rgba(255,255,255,0.45); font-style: italic; }
.lc-desc { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.85; max-width: 480px; margin-bottom: 2.5rem; }
.lc-stats { display: flex; align-items: center; gap: 2rem; margin-bottom: 3rem; }
.lc-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.lc-stat-num { font-family: var(--font-header); font-size: 2rem; font-weight: 700; color: var(--accent-gold); line-height: 1; }
.lc-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.45); }
.lc-stat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.lc-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.btn-lc-primary { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1.1rem 2.5rem; background: var(--accent-gold); color: #0a0a0a; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2.5px; font-weight: 700; border-radius: 4px; border: 1px solid var(--accent-gold); text-decoration: none; transition: all 0.4s; }
.btn-lc-primary svg { width: 14px; height: 14px; }
.btn-lc-primary:hover { background: transparent; color: var(--accent-gold); transform: translateY(-3px); box-shadow: 0 12px 35px rgba(201,169,110,0.25); }
.btn-lc-ghost { display: inline-block; padding: 1.1rem 2rem; background: transparent; color: rgba(255,255,255,0.6); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); text-decoration: none; transition: all 0.4s; }
.btn-lc-ghost:hover { border-color: rgba(255,255,255,0.55); color: #fff; transform: translateY(-2px); }

/* Mosaic card grid */
.lc-mosaic { display: flex; gap: 1rem; height: 520px; }
.lc-mosaic-main { flex: 1.5; border-radius: 14px; overflow: hidden; position: relative; }
.lc-mosaic-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.lc-mosaic-main:hover img { transform: scale(1.06); }
.lc-mosaic-col { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.lc-mosaic-sm { flex: 1; border-radius: 14px; overflow: hidden; position: relative; }
.lc-mosaic-sm img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.lc-mosaic-sm:hover img { transform: scale(1.06); }
.lc-card-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.2rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

@media (max-width: 1024px) {
    .lc-inner { grid-template-columns: 1fr; gap: 3rem; padding: 6rem 0; }
    .lc-mosaic { height: 360px; }
}
@media (max-width: 768px) {
    .team-strip-header { flex-direction: column; align-items: flex-start; }
    .ts-card { flex: 0 0 160px; }
    .ts-card img { height: 180px; }
    .lc-mosaic { height: 260px; }
    .lc-stats { gap: 1.2rem; }
    .lc-stat-num { font-size: 1.5rem; }
}

/* ============================================================
   TEAM PAGE EXTRA STYLES (Advisors & Stats Bar)
   ============================================================ */
:root {
    --accent-gold: #C9A96E;
    --navy: #0C2749;
}

.team-hero {
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.team-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.10) 0%, transparent 65%);
    pointer-events: none;
}
.team-hero .section-kicker {
    color: var(--accent-gold);
    letter-spacing: 4px;
}
.team-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
}
.team-hero p {
    font-size: 1.1rem;
    opacity: 0.65;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ─── Stats Bar ─── */
.stats-bar {
    background: var(--secondary-bg);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(201,169,110,0.18);
    border-bottom: 1px solid rgba(201,169,110,0.18);
}
.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item .stat-num {
    font-family: var(--font-header);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(12, 39, 73, 0.8);
    opacity: 1;
    margin-top: 0.5rem;
}

/* ─── Section Kicker ─── */
.section-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* ─── Leadership Grid ─── */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 720px;
    margin: 0 auto 5rem;
}

/* ─── Advisor Card v2 ─── */
.advisor-card-v2 {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201,169,110,0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}
.advisor-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    border-color: rgba(201,169,110,0.35);
}
.advisor-card-v2 .card-photo {
    width: 100%;
    aspect-ratio: 4/4;
    overflow: hidden;
    background: var(--accent-color);
    position: relative;
}
.advisor-card-v2 .card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}
.advisor-card-v2:hover .card-photo img {
    transform: scale(1.05);
}
.advisor-card-v2 .card-body {
    padding: 1.4rem 1.4rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.advisor-card-v2 .card-name {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}
.advisor-card-v2 .card-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.advisor-card-v2 .card-divider {
    height: 1px;
    background: rgba(12, 39, 73, 0.1);
    margin-bottom: 0.9rem;
}
.advisor-card-v2 .card-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
}
.advisor-card-v2 .card-contact a {
    font-size: 0.76rem;
    color: rgba(12, 39, 73, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advisor-card-v2 .card-contact a:hover { color: var(--accent-gold); }
.advisor-card-v2 .card-contact .icon {
    color: var(--accent-gold);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.advisor-card-v2 .card-lang {
    font-size: 0.65rem;
    color: rgba(12, 39, 73, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

/* ─── Full Team Grid ─── */
.full-team-section {
    background: var(--secondary-bg);
    padding: 6rem 0 8rem;
}
.team-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

/* Leadership cards slightly bigger */
.advisor-card-v2.leadership .card-name { font-size: 1.25rem; }

/* ─── CTA Section ─── */
.team-cta-section {
    padding: 9rem 0;
    text-align: center;
    background: var(--accent-color);
    position: relative;
    overflow: hidden;
}
.team-cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(201,169,110,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.team-cta-section h2 { color: #fff; }
.team-cta-section p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 1.5rem auto 3rem; font-size: 1.05rem; line-height: 1.85; }
.btn-gold {
    display: inline-block;
    padding: 1.15rem 3.2rem;
    background: var(--accent-gold);
    color: #0a0a0a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid var(--accent-gold);
    transition: all 0.4s;
}
.btn-gold:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201,169,110,0.2);
}

@media (max-width: 768px) {
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .team-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
}
