/* ═══════════════════════════════════════════
   RE/MAX North — Premium Design System
   ═══════════════════════════════════════════ */

:root {
    --red: #DC1431;
    --red-dark: #B00E27;
    --blue: #003DA5;
    --blue-dark: #002D7A;
    --navy: #0A1628;
    --dark: #0D0D0D;
    --dark-2: #1A1A2E;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --cream: #FAFAF8;
    --gold: #C8A951;

    --font-main: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(220,20,49,0.15);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-main); color: var(--gray-900); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Preloader ── */
#preloader {
    position: fixed; inset: 0; z-index: 10000; background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-balloon { animation: floatBalloon 2s ease-in-out infinite; margin-bottom: 1.5rem; }
@keyframes floatBalloon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.loader-bar { width: 120px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.loader-progress { height: 100%; background: var(--red); border-radius: 10px; animation: loadProgress 1.8s var(--ease-out-expo) forwards; }
@keyframes loadProgress { from { width: 0; } to { width: 100%; } }

/* ── Custom Cursor ── */
.cursor-dot, .cursor-ring {
    position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999;
    transition: opacity 0.3s;
}
.cursor-dot { width: 6px; height: 6px; background: var(--red); transform: translate(-50%, -50%); }
.cursor-ring {
    width: 36px; height: 36px; border: 1.5px solid rgba(220,20,49,0.4);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), border-color 0.3s;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--red); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Container ── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 0; }

/* ── Section Headers ── */
.section-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--red); margin-bottom: 1rem;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--red); display: inline-block; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; color: var(--gray-900); }
.section-title em { font-style: italic; color: var(--red); }
.section-sub { font-size: 1.1rem; color: var(--gray-600); max-width: 560px; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem;
    transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: rgba(255,255,255,0.15); transform: translateX(-101%);
    transition: transform 0.5s var(--ease-out-expo);
}
.btn:hover::before { transform: translateX(0); }
.btn i { transition: transform 0.3s var(--ease-spring); }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s var(--ease-out-expo);
}
#navbar.scrolled {
    background: rgba(255,255,255,0.92); backdrop-filter: blur(20px) saturate(180%);
    padding: 0.7rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
#navbar.scrolled .nav-link { color: var(--gray-700); }
#navbar.scrolled .nav-link:hover, #navbar.scrolled .nav-link.active { color: var(--red); }
#navbar.scrolled .logo-remax { color: var(--blue); }
#navbar.scrolled .logo-sub { color: var(--gray-600); }

.nav-container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; z-index: 1001; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-remax { font-weight: 800; font-size: 1.2rem; color: var(--white); letter-spacing: -0.02em; transition: color 0.4s; }
.logo-sub { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); transition: color 0.4s; }

.nav-links { display: flex; gap: 2rem; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.8); transition: color 0.3s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--red); transition: width 0.3s var(--ease-out-expo); }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
    padding: 0.6rem 1.4rem; border-radius: var(--radius-full);
    background: var(--red); color: var(--white); font-weight: 600; font-size: 0.85rem;
    transition: all 0.3s var(--ease-out-expo);
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; z-index: 1001; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s var(--ease-out-expo); }
#navbar.scrolled .nav-toggle span { background: var(--gray-700); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 999; background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.5s var(--ease-out-expo);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner { text-align: center; }
.mobile-link {
    display: block; font-family: var(--font-display); font-size: 2rem; color: var(--white);
    padding: 0.6rem 0; opacity: 0; transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo), color 0.3s;
}
.mobile-menu.open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-link:hover { color: var(--red); }
.mobile-cta { display: inline-block; margin-top: 2rem; padding: 0.8rem 2rem; border-radius: var(--radius-full); background: var(--red); color: var(--white); font-weight: 600; }

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: var(--navy);
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80') center/cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.75) 50%, rgba(220,20,49,0.15) 100%);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particles .particle {
    position: absolute; width: 3px; height: 3px; background: rgba(255,255,255,0.2);
    border-radius: 50%; animation: floatParticle var(--dur, 8s) linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(var(--drift, 40px)) scale(1); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.2rem;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 500;
    color: rgba(255,255,255,0.9); margin-bottom: 2rem; backdrop-filter: blur(10px);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }

.hero-title { font-family: var(--font-display); color: var(--white); margin-bottom: 1.5rem; }
.title-line { display: block; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.15; }
.title-line.accent { color: var(--red); font-style: italic; }

.hero-sub { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats { display: flex; align-items: center; gap: 2rem; justify-content: center; }
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--white); }
.stat-plus, .stat-percent { font-family: var(--font-display); font-size: 1.5rem; color: var(--red); font-weight: 600; }
.stat-label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.4); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--red), transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.5; } 100% { opacity: 1; transform: scaleY(1); } }

/* ═══════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════ */
.marquee-section { background: var(--red); padding: 1rem 0; overflow: hidden; }
.marquee-track { display: flex; }
.marquee-content {
    display: flex; align-items: center; gap: 2rem; white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white);
}
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-images { position: relative; }
.about-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-img-main img { width: 100%; height: 450px; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.about-img-main:hover img { transform: scale(1.03); }
.about-img-float {
    position: absolute; bottom: -30px; right: -30px; width: 200px;
    border-radius: var(--radius); overflow: hidden; border: 5px solid var(--cream);
    box-shadow: var(--shadow-lg);
}
.about-img-float img { width: 100%; height: 180px; object-fit: cover; }
.about-experience {
    position: absolute; top: -20px; left: -20px; background: var(--red);
    color: var(--white); padding: 1.5rem; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow-glow);
}
.exp-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; }
.exp-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }

.about-text { color: var(--gray-600); margin-bottom: 1rem; font-size: 1.05rem; }
.about-features { display: flex; flex-direction: column; gap: 1.2rem; margin: 2rem 0; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(220,20,49,0.08);
    display: flex; align-items: center; justify-content: center; color: var(--red);
    font-size: 1.1rem; flex-shrink: 0;
}
.feature h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.feature p { font-size: 0.85rem; color: var(--gray-600); }

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
    position: relative; padding: 2.5rem 2rem; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--gray-200);
    transition: all 0.5s var(--ease-out-expo); cursor: pointer; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--red), var(--red-dark));
    opacity: 0; transition: opacity 0.5s var(--ease-out-expo); border-radius: inherit;
}
.service-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow-xl); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover * { color: var(--white); }
.service-number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gray-100); line-height: 1; margin-bottom: 1rem; transition: color 0.5s; }
.service-card:hover .service-number { color: rgba(255,255,255,0.15); }
.service-icon { font-size: 1.5rem; color: var(--red); margin-bottom: 1rem; transition: color 0.5s; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem; transition: color 0.5s; }
.service-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; transition: color 0.5s; }
.service-arrow {
    position: absolute; bottom: 1.5rem; right: 1.5rem; width: 36px; height: 36px;
    border-radius: 50%; background: var(--gray-100); display: flex; align-items: center;
    justify-content: center; font-size: 0.8rem; color: var(--gray-600);
    transition: all 0.4s var(--ease-spring); opacity: 0; transform: translateX(-10px);
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); background: rgba(255,255,255,0.2); color: var(--white); }

/* ═══════════════════════════════════════════
   LISTINGS
   ═══════════════════════════════════════════ */
.listings { background: var(--gray-100); }
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.listing-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: all 0.5s var(--ease-out-expo); }
.listing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.listing-img { position: relative; overflow: hidden; height: 260px; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.listing-card:hover .listing-img img { transform: scale(1.08); }
.listing-badge {
    position: absolute; top: 1rem; left: 1rem; padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full); background: var(--blue); color: var(--white);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.listing-badge.hot { background: var(--red); }
.listing-badge.new { background: #059669; }
.listing-price {
    position: absolute; bottom: 1rem; left: 1rem; font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700; color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.listing-overlay {
    position: absolute; inset: 0; background: rgba(10,22,40,0.6); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s var(--ease-out-expo);
}
.listing-card:hover .listing-overlay { opacity: 1; }
.listing-info { padding: 1.5rem; }
.listing-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.listing-address { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 1rem; }
.listing-address i { color: var(--red); margin-right: 0.3rem; }
.listing-features { display: flex; gap: 1.2rem; font-size: 0.8rem; color: var(--gray-600); }
.listing-features i { color: var(--red); margin-right: 0.3rem; }
.listings-cta { text-align: center; margin-top: 3rem; }

/* ═══════════════════════════════════════════
   PARALLAX CTA
   ═══════════════════════════════════════════ */
.parallax-cta { position: relative; padding: 6rem 0; overflow: hidden; }
.parallax-bg {
    position: absolute; inset: -20%; z-index: 0;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1400&q=80') center/cover fixed;
}
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,22,40,0.9), rgba(220,20,49,0.7)); z-index: 1; }
.parallax-content { position: relative; z-index: 2; text-align: center; color: var(--white); }
.parallax-content h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 1rem; }
.parallax-content p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════
   AGENTS
   ═══════════════════════════════════════════ */
.agents { background: var(--white); }
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.agent-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--gray-200); transition: all 0.5s var(--ease-out-expo); }
.agent-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }
.agent-img { position: relative; height: 320px; overflow: hidden; }
.agent-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease-out-expo); }
.agent-card:hover .agent-img img { transform: scale(1.05); }
.agent-socials {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%) translateY(20px);
    display: flex; gap: 0.5rem; opacity: 0; transition: all 0.4s var(--ease-out-expo);
}
.agent-card:hover .agent-socials { opacity: 1; transform: translateX(-50%) translateY(0); }
.agent-socials a {
    width: 38px; height: 38px; border-radius: 50%; background: var(--white);
    display: flex; align-items: center; justify-content: center; color: var(--red);
    font-size: 0.85rem; transition: all 0.3s;
}
.agent-socials a:hover { background: var(--red); color: var(--white); }
.agent-info { padding: 1.5rem; text-align: center; }
.agent-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.agent-title { display: block; font-size: 0.8rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.agent-info p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials { background: var(--gray-100); }
.testimonials-slider { position: relative; max-width: 700px; margin: 0 auto; }
.testimonial-card {
    display: none; background: var(--white); border-radius: var(--radius-lg); padding: 3rem;
    box-shadow: var(--shadow-md); text-align: center;
    animation: fadeInTest 0.5s var(--ease-out-expo);
}
.testimonial-card.active { display: block; }
@keyframes fadeInTest { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1.5rem; display: flex; gap: 0.3rem; justify-content: center; }
.testimonial-card blockquote { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--gray-700); line-height: 1.8; margin-bottom: 2rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.author-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--red);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--gray-500); }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.test-prev, .test-next {
    width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gray-300);
    display: flex; align-items: center; justify-content: center; color: var(--gray-600);
    transition: all 0.3s;
}
.test-prev:hover, .test-next:hover { border-color: var(--red); color: var(--red); }
.test-dots { display: flex; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); transition: all 0.3s; cursor: pointer; }
.dot.active { background: var(--red); width: 24px; border-radius: 4px; }

/* ═══════════════════════════════════════════
   AREAS
   ═══════════════════════════════════════════ */
.areas { background: var(--white); }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.area-card { position: relative; height: 280px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.area-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.area-card:hover img { transform: scale(1.1); }
.area-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
    color: var(--white); transition: background 0.4s;
}
.area-card:hover .area-overlay { background: linear-gradient(to top, rgba(220,20,49,0.8) 0%, rgba(220,20,49,0.2) 100%); }
.area-overlay h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.area-overlay span { font-size: 0.8rem; opacity: 0.8; }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info .section-title { margin-bottom: 0.8rem; }
.contact-info > p { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(220,20,49,0.08);
    display: flex; align-items: center; justify-content: center; color: var(--red);
    flex-shrink: 0; font-size: 1rem;
}
.contact-item strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.9rem; color: var(--gray-600); }
.contact-item a { color: var(--red); font-weight: 600; }
.contact-socials { display: flex; gap: 0.8rem; }
.contact-socials a {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gray-300);
    display: flex; align-items: center; justify-content: center; color: var(--gray-600);
    transition: all 0.3s;
}
.contact-socials a:hover { border-color: var(--red); background: var(--red); color: var(--white); }

.contact-form-wrap {
    background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { position: relative; margin-bottom: 1.2rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 1rem 1rem 0.6rem; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); font-size: 0.95rem; background: var(--gray-100);
    transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(220,20,49,0.08);
}
.form-group label {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    font-size: 0.9rem; color: var(--gray-400); pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}
.form-group textarea ~ label { top: 1.2rem; transform: none; }
.form-group select ~ label { top: 0.4rem; transform: none; font-size: 0.75rem; color: var(--gray-600); }
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0.4rem; transform: none; font-size: 0.75rem; color: var(--red);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-cmn { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--red); }
.footer-links h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-links a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); padding: 0.3rem 0; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
[data-animate] { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate].visible { opacity: 1; transform: translate(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-images { max-width: 500px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
    .agents-grid { grid-template-columns: repeat(2, 1fr); }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .section { padding: 4rem 0; }
    .services-grid { grid-template-columns: 1fr; }
    .listings-grid { grid-template-columns: 1fr; }
    .agents-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1.2rem; }
    .stat-divider { width: 40px; height: 1px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .testimonial-card { padding: 2rem 1.5rem; }
    .about-img-float { display: none; }
}
