/* =============================================
   Shome Team – Full CSS Design System
   ============================================= */

:root {
    --navy:        #0F172A;
    --navy-light:  #1E293B;
    --gold:        #D4AF37;
    --gold-light:  #F0D060;
    --red:         #BE2034; /* RE/MAX accent */
    --white:       #FFFFFF;
    --off-white:   #F8FAFC;
    --slate:       #64748B;
    --border:      #E2E8F0;
    --text:        #1E293B;
    --text-light:  #64748B;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --transition:   all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm:    0 4px 6px rgba(0,0,0,0.04);
    --shadow-md:    0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg:    0 25px 60px rgba(0,0,0,0.12);
    --radius:       12px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; transition: var(--transition); }
ul    { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; }

/* ---- Layout ---- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-pad  { padding: 100px 0; }
.bg-light     { background: var(--off-white); }
.bg-navy      { background: var(--navy); }
.text-center  { text-align: center; }
.mt-20        { margin-top: 20px; }
.mt-40        { margin-top: 40px; }
.flex         { display: flex; }
.align-center { align-items: center; }
.gap-20       { gap: 20px; }

/* ---- Typography ---- */
.section-label  { text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-bottom: 12px; display: block; }
.section-title  { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); margin-bottom: 1rem; }
.section-intro  { font-size: 1.15rem; color: var(--text-light); max-width: 640px; margin: 0 auto; line-height: 1.8; }
.page-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); margin-bottom: 1rem; }

/* ---- Buttons ---- */
.btn {
    border-radius: 8px;
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-nav { background: var(--gold); color: var(--navy); padding: 10px 22px; font-size: 0.9rem; }
.btn-nav:hover { background: var(--gold-light); }

.btn-full { width: 100%; text-align: center; }

/* ---- Navbar ---- */
.navbar {
    border-radius: 0;
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }

.logo { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1; }
.logo-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--slate); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a { padding: 8px 12px; font-size: 0.9rem; font-weight: 500; color: var(--navy); border-radius: var(--radius); }
.nav-links > a:hover, .nav-links > a.active { color: var(--gold); }

/* Dropdowns */
.nav-dropdown { position: relative; }
.dropdown-toggle { padding: 8px 12px; font-size: 0.9rem; font-weight: 500; color: var(--navy); cursor: pointer; display: block; }
.dropdown-toggle:hover { color: var(--gold); }
.dropdown-menu {
    border-radius: 10px;
    overflow: hidden;
    position: absolute; top: 100%; left: 50%;
    margin-top: 8px; /* Creates the visual gap */
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 100;
}
.nav-dropdown::after {
    /* Invisible bridge to prevent hover loss */
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0; height: 16px;
    z-index: 99;
    display: none;
}
.nav-dropdown:hover::after { display: block; }
.dropdown-menu a { padding: 12px 20px; font-size: 0.9rem; display: block; border-bottom: 1px solid var(--border); }
.dropdown-menu a:hover { background: var(--off-white); color: var(--gold); }
.nav-dropdown:hover .dropdown-menu { display: flex; }

/* Mobile toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 200; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Page Hero Banner (for inner pages) ---- */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 50%;
    background: rgba(255,255,255,0.02);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero-label { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; margin-bottom: 16px; display: block; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; margin-top: 16px; }

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-body { padding: 28px; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* Property Card */
.property-card .card-img { height: 240px; }
.property-badge { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--navy); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; letter-spacing: 1px; text-transform: uppercase; border-radius: 6px; }
.property-card-img-wrap { position: relative; }
.property-price { font-family: var(--font-heading); font-size: 1.5rem; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.property-address { color: var(--slate); font-size: 0.9rem; margin-bottom: 16px; }
.property-stats { display: flex; gap: 20px; font-size: 0.85rem; color: var(--slate); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.property-stats span { display: flex; align-items: center; gap: 4px; }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Icon Feature Cards ---- */
.feature-card { padding: 40px 30px; border-top: 3px solid var(--gold); background: var(--white); border: 1px solid var(--border); border-radius: 12px; transition: var(--transition); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.feature-icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--navy); padding: 50px 0; }
.stats-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 3rem; color: var(--gold); line-height: 1; }
.stat-label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); margin-top: 8px; }

/* ---- Testimonials ---- */
.testimonials-wrap { padding: 100px 0; background: var(--off-white); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 10%; }
.testimonial-card { background: var(--white); border-radius: 16px; padding: 50px; box-shadow: var(--shadow-md); text-align: center; max-width: 800px; margin: 0 auto; }
.testimonial-stars { color: var(--gold); font-size: 1.4rem; margin-bottom: 20px; }
.testimonial-quote { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.7; color: var(--navy); margin-bottom: 24px; }
.testimonial-author { font-weight: 600; color: var(--slate); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; }
.slider-controls { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; font-size: 1.1rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: var(--navy); color: var(--white); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--gold); }

/* ---- Step Process ---- */
.steps-wrap { counter-reset: step-counter; display: flex; flex-direction: column; gap: 30px; }
.step-item { display: flex; gap: 30px; align-items: flex-start; padding: 30px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; transition: var(--transition); }
.step-item:hover { box-shadow: var(--shadow-md); }
.step-number { counter-increment: step-counter; width: 52px; height: 52px; min-width: 52px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.step-content h3 { margin-bottom: 8px; font-size: 1.2rem; }
.step-content p { color: var(--text-light); }

/* ---- Area Tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag { background: var(--navy); color: var(--white); padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; letter-spacing: 1px; }

/* ---- Forms ---- */
.form-wrap { background: var(--white); border-radius: 16px; padding: 48px; box-shadow: var(--shadow-md); }
.form-wrap h3 { font-size: 1.8rem; margin-bottom: 6px; }
.form-wrap p { color: var(--text-light); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--off-white); font-family: var(--font-body); font-size: 1rem; color: var(--text); transition: var(--transition); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; font-size: 0.95rem; }
.form-alert.success { background: #D1FAE5; color: #065F46; border-left: 4px solid #10B981; }
.form-alert.error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid #EF4444; }

/* ---- CTA Banner Section ---- */
.cta-banner { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); padding: 80px 0; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; }
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Blog Cards ---- */
.blog-card .card-img { height: 200px; }
.blog-card-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-light); font-size: 0.95rem; }
.read-more { display: inline-block; margin-top: 16px; color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.read-more:hover { color: var(--gold); }

/* ---- Footer ---- */
.footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.footer-logo { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--white); margin-bottom: 12px; }
.footer-brokerage { font-size: 0.85rem; line-height: 1.8; margin-top: 12px; }
.footer-social { margin-top: 20px; }
.social-icon { color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.social-icon:hover { color: var(--gold-light); }
.footer-links-col h4, .footer-contact-col h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: 20px; font-weight: 600; }
.footer-links-col a, .footer-contact-col a { display: block; margin-bottom: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-links-col a:hover, .footer-contact-col a:hover { color: var(--gold); }
.footer-contact-col p { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ---- Team Card ---- */
.team-card { background: var(--white); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; transition: var(--transition); text-align: center; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-card-img { width: 100%; height: 360px; object-fit: cover; object-position: top; background: #E2E8F0; display: flex; align-items: center; justify-content: center; color: var(--slate); font-size: 1rem; background-image: url('../images/shometeam-2.png'); background-size: cover; background-position: top center; }
.team-card-body { padding: 30px 24px; }
.team-card-body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.team-card-role { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 16px; }
.team-card-bio { color: var(--text-light); font-size: 0.92rem; margin-bottom: 24px; }
.team-contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Page Content Section ---- */
.content-section { padding: 80px 0; }
.content-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.img-with-shadow { box-shadow: 20px 20px 0 var(--gold); width: 100%; }
.check-list { list-style: none; }
.check-list li { padding: 10px 0; display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; border-bottom: 1px solid var(--border); }
.check-list li:last-child { border: none; }
.check-list .icon { color: var(--gold); font-weight: 700; margin-top: 2px; flex-shrink: 0; }

/* ---- Resource Cards ---- */
.resource-card { background: var(--white); padding: 36px; border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: 12px; transition: var(--transition); }
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.resource-card h3 { margin: 16px 0 10px; }
.resource-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

/* ---- Lead Capture Page ---- */
.lead-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy) 50%, var(--navy-light) 100%); display: flex; align-items: center; padding: 120px 0 60px; }
.lead-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lead-text h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.lead-text p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 30px; }
.lead-benefits { list-style: none; }
.lead-benefits li { display: flex; gap: 12px; color: rgba(255,255,255,0.85); padding: 8px 0; font-size: 1rem; }
.lead-benefits .icon { color: var(--gold); }

/* ---- Community Page ---- */
.community-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.community-stat { text-align: center; background: var(--white); border-radius: 12px; padding: 30px; border: 1px solid var(--border); }
.community-stat .val { font-family: var(--font-heading); font-size: 2rem; color: var(--navy); display: block; }
.community-stat .lbl { color: var(--slate); font-size: 0.9rem; }

/* ---- Accordion ---- */
.accordion-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.accordion-header { padding: 20px 24px; display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; background: var(--white); transition: var(--transition); }
.accordion-header:hover { background: var(--off-white); }
.accordion-header .icon { transition: var(--transition); }
.accordion-header.open { background: var(--navy); color: var(--white); }
.accordion-header.open .icon { transform: rotate(45deg); }
.accordion-body { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; background: var(--off-white); border-radius: 0 0 10px 10px; }
.accordion-body.open { max-height: 200px; padding: 20px 24px; }

/* ---- Mortgage Calculator ---- */
.calc-wrap { background: var(--white); border-radius: 16px; padding: 40px; border: 1px solid var(--border); }
.calc-result { background: var(--navy); border-radius: 12px; color: var(--white); padding: 24px 30px; margin-top: 24px; text-align: center; display: none; }
.calc-result.show { display: block; }
.calc-result .result-number { font-family: var(--font-heading); font-size: 2.5rem; color: var(--gold); display: block; }

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

@keyframes slideIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-anim { animation: slideIn 0.9s ease forwards; }
.hero-anim.d1 { animation-delay: 0.15s; opacity: 0; }
.hero-anim.d2 { animation-delay: 0.3s; opacity: 0; }
.hero-anim.d3 { animation-delay: 0.45s; opacity: 0; }

/* ---- Homepage Hero ---- */
.home-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.45) 100%),
                url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    display: flex; align-items: center; position: relative; padding-top: 72px;
}
.home-hero-content { position: relative; z-index: 2; padding: 60px 0; }
.home-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 800px; margin-bottom: 20px; }
.home-hero p { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 600px; margin-bottom: 40px; }
.home-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

/* Search bar on hero */
.hero-search { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25); padding: 20px; display: flex; gap: 12px; max-width: 640px; flex-wrap: wrap; }
.hero-search input { flex: 1 1 200px; padding: 12px 16px; border: none; background: var(--white); font-size: 1rem; min-width: 0; }
.hero-search select { flex: 1 1 160px; padding: 12px 16px; border: none; background: var(--white); font-size: 1rem; }
.hero-search .btn { flex-shrink: 0; }

/* ---- Social Icons ---- */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-icon-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.social-icon-link:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ---- Responsive — 1024px (Tablet Landscape) ---- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: span 3; }
    .nav-links > a { padding: 8px 8px; font-size: 0.85rem; }
}

/* ---- Responsive — 900px ---- */
@media (max-width: 900px) {
    .grid-2, .grid-3, .content-two-col, .lead-container { grid-template-columns: 1fr; gap: 30px; }
    .community-stats { grid-template-columns: 1fr 1fr; }
    .stats-bar .container { justify-content: center; gap: 30px; }
    .page-hero { padding: 130px 0 60px; }
    .lead-page { padding: 100px 0 50px; }
}

/* ---- Responsive — 768px (Tablet Portrait / Large Phone) ---- */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 4%; }
    .section-pad { padding: 60px 0; }
    .testimonials-wrap { padding: 60px 0; }

    /* Navigation */
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
        background: var(--white); flex-direction: column; gap: 0;
        padding: 10px 0; overflow-y: auto;
        transform: translateX(100%); transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.mobile-open { transform: translateX(0); }
    .nav-links > a, .dropdown-toggle {
        padding: 16px 5%; font-size: 1rem;
        border-bottom: 1px solid var(--border); display: block; width: 100%;
        min-height: 52px; display: flex; align-items: center;
    }
    .nav-dropdown { position: static; width: 100%; }
    .dropdown-menu {
        position: static; transform: none; box-shadow: none; border: none;
        border-left: 3px solid var(--gold); background: var(--off-white);
        display: none !important; flex-direction: column;
        padding-left: 20px; margin: 0 5%; width: 90%; border-radius: 0;
    }
    .nav-dropdown.active .dropdown-menu {
        display: flex !important;
    }
    .dropdown-menu a { min-height: 44px; display: flex; align-items: center; }

    /* Grids */
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer { padding: 50px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: span 2; }
    .footer-social { gap: 8px; }

    /* Hero */
    .home-hero { min-height: auto; padding: 100px 0 60px; }
    .home-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .home-hero p { font-size: 1rem; }
    .home-hero-btns { flex-direction: column; gap: 12px; }
    .home-hero-btns .btn { width: 100%; text-align: center; }
    .hero-search { flex-direction: column; padding: 16px; }
    .hero-search input, .hero-search select { width: 100%; flex: none; }
    .hero-search .btn { width: 100%; }

    /* Inner page hero */
    .page-hero { padding: 110px 0 50px; }
    .page-hero-title { font-size: clamp(1.8rem, 6vw, 2.8rem) !important; }
    .page-hero p { font-size: 1rem; }

    /* CTA */
    .cta-banner { padding: 50px 0; }
    .cta-banner h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    .cta-banner-actions { flex-direction: column; align-items: center; gap: 12px; }
    .cta-banner-actions .btn { width: 100%; max-width: 320px; text-align: center; }

    /* Forms */
    .form-wrap { padding: 28px 20px; }
    .form-wrap h3 { font-size: 1.5rem; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 1rem; padding: 14px 14px; min-height: 50px; }

    /* Lead Pages */
    .lead-page { padding: 100px 0 40px; min-height: auto; }
    .lead-container { grid-template-columns: 1fr; gap: 30px; }
    .lead-text h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

    /* Cards */
    .card:hover { transform: none; } /* disable hover lift on touch */
    .feature-card:hover { transform: none; }
    .resource-card:hover { transform: none; }
    .team-card:hover { transform: none; }

    /* Stats bar */
    .stats-bar { padding: 40px 0; }
    .stats-bar .container { gap: 30px; }
    .stat-number { font-size: 2.2rem; }

    /* Testimonials */
    .testimonial-slide { padding: 0 5%; }
    .testimonial-card { padding: 30px 24px; }
    .testimonial-quote { font-size: 1.1rem; }

    /* Steps */
    .step-item { flex-direction: column; gap: 16px; padding: 24px; }
    .step-number { width: 44px; height: 44px; min-width: 44px; }

    /* Accordion on buy page */
    .accordion-header { font-size: 0.95rem; padding: 16px 18px; min-height: 52px; }

    /* Community stats */
    .community-stat { padding: 20px; }
    .community-stat .val { font-size: 1.5rem; }

    /* Blog */
    .blog-card h3 { font-size: 1.1rem; }

    /* Section titles */
    .section-title { font-size: clamp(1.6rem, 5vw, 2.5rem); }

    /* Buttons — ensure all are touch-friendly */
    .btn { padding: 14px 22px; min-height: 48px; }
    .slider-btn { width: 48px; height: 48px; }
}

/* ---- Responsive — 480px (Small Phones) ---- */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 16px; }
    .section-pad { padding: 50px 0; }

    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .community-stats { grid-template-columns: 1fr; }

    .home-hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .page-hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }

    /* Keep social icons accessible on small screens */
    .social-icon-link { width: 44px; height: 44px; }
    .footer-social { gap: 6px; }

    /* Property cards full width */
    .property-stats { flex-wrap: wrap; gap: 10px; }

    /* Stats bar — 2-wide grid on tiny screens */
    .stats-bar .container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Calc wrap */
    .calc-wrap { padding: 24px 16px; }
    .calc-result .result-number { font-size: 2rem; }

    /* Blog sidebar collapses */
    .blog-sidebar { display: none; }

    /* Smaller form wrap */
    .form-wrap { padding: 24px 16px; border-radius: 12px; }

    /* Step number circle smaller */
    .step-number { font-size: 1rem; }

    /* Lead page adjustments */
    .lead-benefits li { font-size: 0.95rem; }
}

/* ---- Print ---- */
@media print {
    .navbar, .footer-social, .cta-banner, .hero-search, .home-hero-btns { display: none; }
    body { font-size: 12pt; }
    .container { max-width: 100%; padding: 0 10mm; }
}

