﻿/* ========================================
   RACE PROPERTIES — RESPONSIVE BREAKPOINTS
   ======================================== */

/* ============================================================
   TABLET LANDSCAPE  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {

    /* ── Nav ── */
    .nav-links  { display: none; }
    .nav-cta    { display: none; }
    .hamburger  { display: flex; }

    /* ── Index sections ── */
    .about-grid         { grid-template-columns: 1fr; gap: 48px; }
    .about-image        { max-width: 500px; }
    .investors-grid     { grid-template-columns: 1fr; gap: 60px; }
    .lifestyle-card     { flex: 0 0 320px; height: 440px; }

    /* ── Footer ── */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

    /* ── Inner pages ── */
    .split-grid         { grid-template-columns: 1fr; gap: 48px; }
    .split-grid.reverse { direction: ltr; }
    .contact-grid       { grid-template-columns: 1fr; gap: 48px; }
    .investors-stats    { grid-template-columns: 1fr 1fr; }
    .amenity-grid       { grid-template-columns: repeat(4, 1fr); }
    .page-hero          { height: 50vh; }
}

/* ============================================================
   TABLET PORTRAIT  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {

    :root { --section-padding: clamp(56px, 10vh, 96px); }

    /* ── Typography ── */
    .section-label   { margin-bottom: 32px; }
    .section-heading { font-size: clamp(1.9rem, 6vw, 3rem); }

    /* ── Index – estate cards ── */
    .estate-grid { grid-template-columns: 1fr; gap: 24px; }
    .estate-card { padding: 36px 28px; }

    /* ── Index – gallery ── */
    .gallery-grid     { grid-template-columns: 1fr 1fr; }
    .gallery-item-wide { grid-column: span 2; padding-bottom: 37.5%; }

    /* ── Index – investors stats ── */
    .investors-stats { grid-template-columns: 1fr 1fr; }

    /* ── Index – about stats ── */
    .about-stats { flex-wrap: wrap; gap: 32px; }
    .stat        { flex: 0 0 calc(50% - 16px); }

    /* ── Lifestyle scroll ── */
    .lifestyle-card { flex: 0 0 280px; height: 400px; }

    /* ── Hero ── */
    .hero-subtitle br { display: none; }

    /* ── Footer ── */
    .footer-top          { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
    .footer-brand        { text-align: center; }
    .footer-links,
    .footer-contact,
    .footer-social       { text-align: center; }
    .footer-links ul,
    .footer-contact ul   { padding: 0; }
    .social-links        { justify-content: center; }

    /* ── Inner page hero ── */
    .page-hero       { height: 46vh; min-height: 320px; }
    .page-hero-title { font-size: clamp(2rem, 7vw, 3.5rem); }
    .page-hero-tall  { height: 56vh; }

    /* ── Inner – split grid ── */
    .split-grid         { grid-template-columns: 1fr; gap: 40px; }
    .split-grid.reverse { direction: ltr; }
    .split-image        { max-height: 340px; }

    /* ── Inner – amenity ── */
    .amenity-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* ── Contact ── */
    .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrap { padding: 36px 24px; }
    .form-row        { grid-template-columns: 1fr; }

    /* ── Gallery page ── */
    .gallery-filter { gap: 8px; }
    .filter-btn     { padding: 8px 16px; font-size: 0.65rem; }

    /* ── Spec table ── */
    .spec-table td { padding: 12px 8px; font-size: 0.88rem; }

    /* ── Feature list ── */
    .feature-list li { font-size: 0.9rem; }

    /* ── Map ── */
    .map-placeholder { height: 280px; }

    /* ── Location Stats ── */
    .location-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
    .location-time { font-size: 2.2rem; }

    /* ── Real Footage ── */
    .real-footage-wrapper { padding-bottom: 56%; }
    .real-footage-desc { font-size: 0.9rem; }

    /* ── Cursor – hide on touch ── */
    .cursor-dot,
    .cursor-ring { display: none !important; }
}

/* ============================================================
   MOBILE  ≤ 480px
   ============================================================ */
@media (max-width: 480px) {

    :root { --section-padding: clamp(44px, 8vh, 72px); }

    /* ── Nav ── */
    .nav-logo img              { height: 32px; }
    #navbar.scrolled .nav-logo img { height: 28px; }
    .mobile-nav-links a        { font-size: 1.8rem; }

    /* ── Hero ── */
    .hero-title                 { font-size: clamp(2rem, 9vw, 3.2rem); }
    .hero-label span:last-child { font-size: 0.7rem; letter-spacing: 0.18em; }
    .label-line                 { width: 32px; height: 2px; }
    .hero-subtitle              { font-size: 0.88rem; padding: 0 8px; }
    .hero-cta                   { padding: 14px 28px; font-size: 0.65rem; }
    .scroll-indicator           { bottom: 24px; }
    .scroll-line                { height: 40px; }

    /* ── Section headings ── */
    .section-heading { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .vision-text     { font-size: clamp(1.2rem, 5vw, 1.7rem); }
    .quote-mark      { font-size: 5rem; top: -40px; left: -10px; }

    /* ── Gallery – single column ── */
    .gallery-grid      { grid-template-columns: 1fr; gap: 12px; }
    .gallery-item      { padding-bottom: 75%; }
    .gallery-item-wide { grid-column: span 1; padding-bottom: 75%; }

    /* ── Gallery filter ── */
    .gallery-filter { gap: 8px; flex-wrap: wrap; }
    .filter-btn     { padding: 8px 14px; font-size: 0.62rem; }

    /* ── Investor stat cards ── */
    .investors-stats        { grid-template-columns: 1fr 1fr; gap: 12px; }
    .investor-stat-card     { padding: 24px 18px; }
    .investor-stat-number   { font-size: 1.8rem; }
    .investor-stat-highlight { font-size: 1.2rem; }

    /* ── About – stat numbers ── */
    .about-stats { gap: 24px; }
    .stat        { flex: 0 0 100%; }
    .stat-number { font-size: 1.5rem; }

    /* ── Lifestyle ── */
    .lifestyle-card           { flex: 0 0 260px; height: 360px; }
    .lifestyle-card-overlay h3 { font-size: 1.2rem; }

    /* ── Buttons ── */
    .btn-primary,
    .btn-submit { width: 100%; justify-content: center; padding: 18px 24px; }

    /* ── Inner page hero ── */
    .page-hero       { height: 42vh; min-height: 280px; padding-bottom: 40px; }
    .page-hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
    .page-hero-tall  { height: 52vh; }

    /* ── Split image ── */
    .split-image { max-height: 260px; }

    /* ── Amenity grid ── */
    .amenity-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .amenity-item { padding: 24px 12px; }
    .amenity-icon { width: 32px; height: 32px; }
    .amenity-label { font-size: 0.65rem; }

    /* ── Contact form ── */
    .contact-form-wrap { padding: 28px 16px; }
    .form-row          { grid-template-columns: 1fr; }
    .contact-detail    { gap: 14px; }

    /* ── Spec table – stack rows ── */
    .spec-table,
    .spec-table tr,
    .spec-table td    { display: block; width: 100%; }
    .spec-table tr    { border-bottom: none; padding: 8px 0; }
    .spec-table td:first-child { width: 100%; padding-bottom: 2px; }
    .spec-table td:last-child  { padding-top: 0; font-size: 0.95rem; }

    /* ── Map ── */
    .map-placeholder { height: 220px; }

    /* ── Location Stats ── */
    .location-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .location-time { font-size: 2rem; }
    .location-stat { min-width: 80px; }

    /* ── Real Footage ── */
    .real-footage-wrapper { padding-bottom: 65%; }
    .real-footage-desc { font-size: 0.85rem; }

    /* ── Footer ── */
    .footer-logo    { height: 36px; display: block; margin: 0 auto; }
    .footer-tagline { font-size: 0.85rem; }
    .social-links   { flex-wrap: wrap; justify-content: center; }

    /* ── Override inline grid styles on investor/about pages ── */
    [style*="repeat(4,1fr)"],
    [style*="repeat(4, 1fr)"] { grid-template-columns: 1fr 1fr !important; }

    [style*="repeat(3,1fr)"],
    [style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }

    /* ── Scroll-to-top btn ── */
    #scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ============================================================
   LARGE DESKTOP  ≥ 1440px
   ============================================================ */
@media (min-width: 1440px) {
    .container      { width: min(85%, 1600px); }
    .lifestyle-card { flex: 0 0 440px; height: 580px; }
    .about-grid     { gap: 120px; }
    .investors-grid { gap: 120px; }
}

