/* ==============================================
   RE-ALLY — MOBILE STYLESHEET (v5.0)
   Phone-only (max-width 768px)
   Reference: Picture 1 (cards), Picture 2 (testimonials), Picture 3 (team)
   ============================================== */

@media (max-width: 768px) {

  /* ---------- GLOBAL ---------- */
  body {
    padding-bottom: 0 !important;
    background: #fafafa !important;
  }
  .page-wrap {
    padding-top: 56px !important;
  }

  /* ---------- NAV ---------- */
  nav {
    height: 56px !important;
    padding: 0 4% !important;
    justify-content: space-between !important;
  }
  .nav-logo-img, nav img, nav .nav-logo img { height: 28px !important; }
  #hamburgerBtn span { width: 20px !important; height: 1.5px !important; }
  #desktopLinks { display: none !important; }

  /* ---------- DRAWER (full-screen red, left-aligned) ---------- */
  #mobileDrawer {
    top: 56px !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: #650002 !important;
    padding: 2rem 8% !important;
    align-items: flex-start !important;
  }
  #mobileDrawer a {
    color: #fafafa !important;
    font-family: 'Tenor Sans', sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(250,250,250,0.12) !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
  }
  #mobileDrawer a[href="sreyan.html"] {
    color: rgba(250,250,250,0.6) !important;
    font-size: 0.78rem !important;
    padding-left: 1.25rem !important;
  }
  #mobileDrawer a:last-child {
    background: #fafafa !important;
    color: #650002 !important;
    margin-top: 1.75rem !important;
    border-radius: 30px !important;
    border-bottom: none !important;
    padding: 12px 28px !important;
    width: fit-content !important;
    align-self: flex-start !important;
    font-size: 0.78rem !important;
    text-align: center !important;
  }

  /* ============================================
     HERO — tight top, smaller h1 single line
     ============================================ */
  .hero {
    padding: 64px 4% 22px !important;
    min-height: auto !important;
    text-align: center !important;
  }
  .hero-split {
    display: grid !important;
    grid-template-areas: "h1" "video" "text" "btn" !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .hero-text-col { display: contents !important; }
  /* Hide "Hyderabad · Real Estate" pill */
  .hero-text-col > span:first-child { display: none !important; }

  /* H1 — single line, smaller, "Not a broker —" black + "an ally" red */
  .hero-text-col h1 {
    grid-area: h1;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.05rem, 5vw, 1.4rem) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin: 0 0 0.85rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    color: #1a1a1a !important;
    white-space: nowrap !important;
    padding: 0 !important;
  }
  .hero-text-col h1 span { color: #650002 !important; }

  /* Video — centered, smaller */
  .hero-video-col, #heroVideoBox {
    grid-area: video;
    aspect-ratio: 16/10 !important;
    width: 86% !important;
    max-width: 360px !important;
    margin: 0 auto 1rem !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.16) !important;
  }
  .hero-video-placeholder { border-radius: 14px !important; }

  /* First paragraph */
  .hero-text-col p:nth-of-type(1) {
    grid-area: text;
    font-size: 0.8rem !important;
    line-height: 1.55 !important;
    margin: 0 auto 1rem !important;
    max-width: 92% !important;
    color: #1a1a1a !important;
    text-align: center !important;
  }
  /* Hide italic tagline */
  .hero-text-col p:nth-of-type(2) { display: none !important; }

  /* Buttons — only Talk to Us */
  .hero-text-col > div[style*="flex-wrap"] {
    grid-area: btn;
    justify-content: center !important;
  }
  .hero-text-col > div[style*="flex-wrap"] > a.hero-btn-primary { display: none !important; }
  .hero-text-col > div[style*="flex-wrap"] > a.hero-btn-secondary {
    padding: 11px 26px !important;
    font-size: 0.7rem !important;
    background: #650002 !important;
    color: #fafafa !important;
    border: none !important;
  }

  /* ============================================
     PROPERTIES — Picture 1 style (dark cards, swipe row)
     ============================================ */
  .listings-sec {
    padding: 32px 4% !important;
    background: #b3b3b3 !important;
    text-align: center !important;
  }
  .listings-inner { padding: 0 !important; }
  /* Header area */
  .listings-sec > div > div:first-child {
    padding: 0 !important;
    text-align: center !important;
    margin-bottom: 1.25rem !important;
  }
  .listings-sec > div > div:first-child > span {
    color: #1a1a1a !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    display: block !important;
    margin-bottom: 0.35rem !important;
  }
  .listings-sec h2 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    letter-spacing: 0.02em !important;
  }
  .listings-sec h2 span { color: #650002 !important; }

  /* Grid → 3 columns in 1 row, no swipe */
  .listings-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0.55rem !important;
    overflow: visible !important;
    padding: 0 !important;
    align-items: stretch !important;
  }

  /* Every card — tight Picture 1 style */
  .listings-grid > * {
    flex-shrink: initial !important;
    width: auto !important;
    max-width: none !important;
    scroll-snap-align: none;
    background: #1a1a1a !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 3/4.5 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18) !important;
  }

  /* === SREYAN CARD === */
  .listings-grid > a.listing-card-link {
    color: #fafafa !important;
    text-decoration: none !important;
  }
  /* Image fills the card as background */
  .listings-grid > a.listing-card-link > .listing-card {
    background: transparent !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .listing-card-img {
    aspect-ratio: auto !important;
    height: 100% !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
  }
  .listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
  /* Hide the entire body section — image fills card */
  .listing-card-body, .listing-card > div:last-child {
    display: none !important;
  }
  /* 10% black overlay on image */
  .listing-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
  }
  /* Project name centered on image, uppercase, no shadow */
  .listing-card-img::after {
    content: 'SREYAN VILLA PROPERTIES';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fafafa;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    width: 85%;
  }
  /* Hide "For Sale" badge — clean look */
  .listing-card-img > span[style*="left:12px"] {
    display: none !important;
  }
  .listing-card-img > span[style*="right:12px"] {
    display: none !important;
  }

  /* === How We Choose card === */
  .listings-grid > .prop-box:nth-child(2) {
    background: #565656 !important;
    padding: 0.6rem 0.55rem 0.65rem !important;
    aspect-ratio: 3/4.5 !important;
    text-align: left !important;
    color: #fafafa !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  .listings-grid > .prop-box:nth-child(2) > span:first-child {
    color: rgba(250,250,250,0.6) !important;
    font-size: 0.42rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 0.35rem !important;
  }
  .listings-grid > .prop-box:nth-child(2) h3 {
    color: #fafafa !important;
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
    margin: 0 0 0.45rem !important;
    text-align: left !important;
    font-weight: 600 !important;
  }
  /* Show the checklist - compact */
  .listings-grid > .prop-box:nth-child(2) > div[style*="flex-direction:column"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .listings-grid > .prop-box:nth-child(2) > div[style*="flex-direction:column"] > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  /* Tiny check icon */
  .listings-grid > .prop-box:nth-child(2) > div[style*="flex-direction:column"] > div > div {
    width: 11px !important;
    height: 11px !important;
    background: #650002 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  .listings-grid > .prop-box:nth-child(2) > div[style*="flex-direction:column"] > div svg {
    width: 6px !important;
    height: 6px !important;
    fill: #fafafa !important;
  }
  .listings-grid > .prop-box:nth-child(2) > div[style*="flex-direction:column"] > div span {
    color: rgba(250,250,250,0.95) !important;
    font-size: 0.48rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .listings-grid > .prop-box:nth-child(2) > p {
    color: rgba(250,250,250,0.65) !important;
    font-size: 0.42rem !important;
    line-height: 1.4 !important;
    margin: auto 0 0 !important;
    padding-top: 0.4rem !important;
    border-top: 1px solid rgba(250,250,250,0.15) !important;
    text-align: left !important;
  }

  /* === More projects coming soon === */
  .listings-grid > .prop-box:nth-child(3) {
    background: #650002 !important;
    padding: 0.7rem 0.7rem 0.8rem !important;
    aspect-ratio: 3/4.5 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .listings-grid > .prop-box:nth-child(3) > div:first-child {
    width: 28px !important; height: 28px !important;
    margin: 0 auto 0.5rem !important;
    background: rgba(250,250,250,0.15) !important;
  }
  .listings-grid > .prop-box:nth-child(3) > div:first-child svg {
    width: 14px !important; height: 14px !important;
  }
  .listings-grid > .prop-box:nth-child(3) h3 {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    margin: 0 0 0.3rem !important;
    text-align: center !important;
    color: #fafafa !important;
    font-weight: 600 !important;
  }
  .listings-grid > .prop-box:nth-child(3) p {
    font-size: 0.48rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 !important;
    color: rgba(250,250,250,0.8) !important;
  }

  /* Tagline below cards */
  .listings-tagline {
    font-size: 0.72rem !important;
    line-height: 1.5 !important;
    margin: 1rem auto 0 !important;
    max-width: 92% !important;
    color: #565656 !important;
    text-align: center !important;
    font-style: italic !important;
  }

  /* ============================================
     OUR PROMISE — Picture 2 style (testimonial)
     ============================================ */
  /* Wrapper */
  div[style*="background:#fafafa;padding:64px"] {
    padding: 32px 0 !important;
  }
  /* Header — centered */
  div[style*="background:#fafafa"] > div > div:first-child {
    text-align: center !important;
    padding: 0 4% !important;
    margin-bottom: 1.25rem !important;
    max-width: 100% !important;
  }
  div[style*="background:#fafafa"] > div > div:first-child > span:first-child {
    background: transparent !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.18em !important;
    display: inline-block !important;
    margin: 0 auto 0.4rem !important;
    font-family: 'Tenor Sans', sans-serif !important;
  }
  div[style*="background:#fafafa"] h2 {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
    margin: 0 auto 0.45rem !important;
    text-align: center !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }
  div[style*="background:#fafafa"] > div > div:first-child > p {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin: 0 auto !important;
    max-width: 92% !important;
    text-align: center !important;
    color: #565656 !important;
  }

  /* Promise grid → 3 columns in 1 row, no swipe */
  /* "Follow Along" / Join Our Journey block — centered tight */
  div[style*="background:#fafafa"] > div > div[style*="border-top"] {
    padding-top: 1.5rem !important;
    margin-top: 0 !important;
    text-align: center !important;
  }
  div[style*="background:#fafafa"] > div > div[style*="border-top"] > span {
    font-size: 0.58rem !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: 0.16em !important;
    display: block !important;
    text-align: center !important;
  }
  div[style*="background:#fafafa"] > div > div[style*="border-top"] > h2 {
    font-size: 1.25rem !important;
    margin: 0 0 0.5rem !important;
    text-align: center !important;
  }
  div[style*="background:#fafafa"] > div > div[style*="border-top"] > p {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin: 0 auto 1rem !important;
    max-width: 92% !important;
    text-align: center !important;
  }
  div[style*="background:#fafafa"] > div > div[style*="border-top"] .social-pill {
    padding: 8px 16px !important;
    font-size: 0.62rem !important;
  }

  /* ---------- JOURNEY / SOCIAL ---------- */
  .journey-sec {
    padding: 32px 4% !important;
    text-align: center !important;
  }
  .journey-sec h2 { font-size: 1.4rem !important; text-align: center !important; }
  .journey-sec p { font-size: 0.8rem !important; text-align: center !important; }

  /* ============================================
     TEAM — Picture 3 style (tall portrait cards)
     ============================================ */
  .team-section {
    padding: 32px 4% !important;
    text-align: left !important;
    background: #b3b3b3 !important;
  }
  .team-bento {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    text-align: left !important;
  }
  .team-bento > div:first-child {
    text-align: left !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
  }
  /* "The Team" label — left aligned plain black */
  .team-bento > div:first-child > span:first-child,
  .team-bento span[class*="pill"],
  .team-bento span[style*="background"] {
    background: transparent !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    margin-bottom: 0.4rem !important;
    text-align: left !important;
  }
  /* Title left aligned, 2 lines */
  .team-bento h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin: 0 0 0.5rem !important;
    text-align: left !important;
    text-transform: none !important;
    color: #1a1a1a !important;
    letter-spacing: -0.01em !important;
  }
  .team-bento h2 br { display: inline !important; }
  .team-bento p {
    font-size: 0.8rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
    color: #565656 !important;
  }

  /* Bento grid: 3 portrait cards in 1 row - FORCE with high specificity */
  .team-section .team-bento .bento-grid,
  .bento-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  /* Hide the "Building from day one" red card - multiple selectors for safety */
  .bento-card[style*="#650002"],
  .bento-card[style*="background:#650002"],
  .bento-grid > .bento-card[style*="650002"] {
    display: none !important;
    visibility: hidden !important;
  }
  /* Person cards — rectangular photo with rounded corners + name/role below */
  .bento-grid > .bento-card {
    aspect-ratio: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Inner photo container = rectangular with rounded corners */
  .bento-card > div:first-child {
    width: 100% !important;
    aspect-ratio: 1/1.15 !important;
    height: auto !important;
    border-radius: 14px !important;
    background: linear-gradient(160deg, #565656, #1a1a1a) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
  }
  /* Avatar icon centered in photo */
  .bento-card svg[viewBox="0 0 24 24"] {
    width: 30px !important;
    height: 30px !important;
    fill: rgba(250,250,250,0.6) !important;
    margin: 0 !important;
  }
  /* Name + role label BELOW the photo, LEFT-aligned */
  .bento-card > div[style*="position:absolute"] {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 0 0 2px !important;
    margin: 0 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
  }
  .bento-card > div[style*="position:absolute"] > div:first-child {
    color: #1a1a1a !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    text-shadow: none !important;
    text-align: left !important;
  }
  .bento-card > div[style*="position:absolute"] > div:last-child {
    color: #565656 !important;
    font-size: 0.5rem !important;
    letter-spacing: 0.06em !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    text-shadow: none !important;
    text-align: left !important;
    font-family: 'Urbanist', sans-serif !important;
  }

  /* About Us button — hidden on mobile per request */
  .team-about-btn {
    display: none !important;
  }

  /* ---------- FOOTER (3-column horizontal) ---------- */
  footer {
    padding: 24px 4% 16px !important;
    text-align: left !important;
  }
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0.8rem !important;
    text-align: left !important;
    align-items: start !important;
  }
  .footer-grid > div { text-align: left !important; }
  .footer-grid > div:first-child img {
    height: 28px !important;
    margin: 0 0 6px !important;
  }
  .f-tag { font-size: 0.62rem !important; margin: 0 0 4px !important; text-align: left !important; }
  .f-desc { font-size: 0.58rem !important; line-height: 1.4 !important; text-align: left !important; max-width: 100% !important; margin: 0 !important; }
  .footer-grid h4 {
    font-size: 0.55rem !important;
    margin: 0 0 0.4rem !important;
    letter-spacing: 0.14em !important;
    text-align: left !important;
    color: #b3b3b3 !important;
  }
  .footer-grid ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
  .footer-grid ul li { font-size: 0.62rem !important; margin-bottom: 0.3rem !important; line-height: 1.3 !important; }
  .footer-grid a { font-size: 0.62rem !important; text-align: left !important; }
  .footer-bot {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.56rem !important;
    margin-top: 0.9rem !important;
    padding-top: 0.7rem !important;
    border-top: 1px solid rgba(179,179,179,0.2) !important;
    flex-wrap: wrap !important;
  }

  /* ---------- FLOATING WHATSAPP / CALL ---------- */
  .float-cta { bottom: 14px !important; right: 14px !important; gap: 6px !important; }
  .float-btn { font-size: 0.6rem !important; padding: 8px 13px !important; }

  /* ============================================
     OTHER PAGES (kept compact)
     ============================================ */
  .ab-hero, .ct-hero, .ls-hero, .svc-hero {
    padding-top: 76px !important;
    padding-bottom: 24px !important;
    text-align: center !important;
  }
  .ab-hero h1, .ct-hero h1, .ls-hero h1, .svc-hero h1 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
  .ab-hero p, .ct-hero p, .ls-hero p, .svc-hero p {
    font-size: 0.8rem !important;
    text-align: center !important;
  }
  .ab-story, .ab-values, .ab-team, .ab-cta,
  .ct-main, .ct-info, .ls-body, .ls-next,
  .svc-cards, .svc-cta {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  /* Services swipe */
  .svc-cards, .ab-values .grid {
    display: flex !important;
    gap: 0.6rem !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 4% 1rem !important;
    margin: 0 -4% !important;
    grid-template-columns: none !important;
    scrollbar-width: none;
  }
  .svc-cards::-webkit-scrollbar, .ab-values .grid::-webkit-scrollbar { display: none; }
  .svc-card, .ab-values .val-card {
    flex-shrink: 0 !important;
    width: 80vw !important;
    max-width: 290px !important;
    scroll-snap-align: center;
  }

  /* Listings page main card */
  .ls-card { grid-template-columns: 1fr !important; border-radius: 14px !important; }
  .ls-gallery .thumbs { display: none !important; }
  .ls-gallery .main-img { aspect-ratio: 16/9 !important; }
  .ls-detail { padding: 0.85rem 1rem 1rem !important; text-align: center !important; }
  .ls-price { font-size: 1.4rem !important; text-align: center !important; }
  .ls-price-sub { justify-content: center !important; font-size: 0.65rem !important; }
  .ls-name { font-size: 1rem !important; text-align: center !important; }
  .ls-loc { font-size: 0.72rem !important; text-align: center !important; }
  .ls-chips { justify-content: center !important; gap: 4px !important; }
  .ls-chips span { font-size: 0.6rem !important; padding: 2px 8px !important; }
  .ls-chips span:nth-child(4), .ls-chips span:nth-child(5):not(.accent) { display: none !important; }
  .ls-desc { display: none !important; }
  .ls-stats { gap: 2px !important; padding: 0.6rem 0 !important; }
  .ls-stats .st b { font-size: 0.72rem !important; }
  .ls-stats .st small { font-size: 0.46rem !important; }
  .ls-btns a { padding: 9px 6px !important; font-size: 0.6rem !important; }
  .ls-quickinfo { padding: 1rem !important; }
  .ls-qi-grid { grid-template-columns: 1fr 1fr !important; gap: 0.7rem 0.5rem !important; }
  .ls-qi-grid .qi { text-align: center !important; }
  .ls-qi-grid .qi b { font-size: 0.5rem !important; }
  .ls-qi-grid .qi span { font-size: 0.72rem !important; }
  .ls-next-inner { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* Contact */
  .ct-main { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  .ct-field label { font-size: 0.65rem !important; }
  .ct-field input, .ct-field textarea, .ct-field select {
    font-size: 0.88rem !important;
    padding: 10px 12px !important;
  }
  .ct-submit { font-size: 0.66rem !important; padding: 12px 18px !important; }

  /* Landing */
  .landing-grid { grid-template-columns: 1fr !important; gap: 1.75rem !important; }
  .lp-h1 { font-size: 1.55rem !important; }
  .lp-form-box { padding: 1.5rem 1.25rem !important; }

  /* About */
  .ab-story p { font-size: 0.82rem !important; line-height: 1.6 !important; text-align: center !important; }
  .ab-values .val-card { padding: 1.1rem 1rem !important; }
  .ab-values .val-card h3 { font-size: 0.95rem !important; }
  .ab-values .val-card p { font-size: 0.78rem !important; }

}

/* ==============================================
   VERY SMALL PHONES (≤380px)
   ============================================== */
@media (max-width: 380px) {
  nav { height: 52px !important; }
  .nav-logo-img, nav img { height: 24px !important; }
  .hero-text-col h1 { font-size: 1rem !important; }
  .listings-sec h2 { font-size: 1.35rem !important; }
  div[style*="background:#fafafa"] h2 { font-size: 1.4rem !important; }
  .team-bento h2 { font-size: 1.35rem !important; }
}

/* ==============================================
   HARD CONTAINMENT OVERRIDES (mobile)
   Fixes overflow + inline-style conflicts
   ============================================== */
@media (max-width: 768px) {
  /* Prevent any horizontal page overflow */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Force listings grid to fit screen */
  .listings-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Force every card to shrink */
  .listings-grid > * {
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Listing-card wrapper inside the link */
  .listings-grid > a.listing-card-link {
    display: block !important;
    min-width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }
  .listings-grid > a.listing-card-link > .listing-card {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background: #1a1a1a !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Promise grid — FORCE 3 columns 1:1 squares with centered content */
  div[style*="background:#fafafa"] .promise-cards-row,
  .promise-cards-row[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    width: 92% !important;
    max-width: 92% !important;
    margin: 0 auto 1.5rem !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  div[style*="background:#fafafa"] .promise-cards-row > .promise-card-new,
  .promise-cards-row > div.promise-card-new {
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    padding: 0.55rem 0.4rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
  }
  /* Hide the absolute icon circle — too cramped in tiny square */
  .promise-card-new > div:first-child[style*="position:absolute"] {
    display: none !important;
  }
  /* Inner content wrapper - center everything */
  .promise-card-new > div:not(:first-child),
  .promise-card-new > div[style*="margin-top:auto"] {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* Title - centered */
  .promise-card-new h3 {
    font-size: 0.55rem !important;
    line-height: 1.2 !important;
    margin: 0 0 0.3rem !important;
    max-width: 100% !important;
    text-align: center !important;
    font-weight: 600 !important;
  }
  /* Body - centered */
  .promise-card-new p {
    font-size: 0.44rem !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* Force team grid to fit (with minmax for proper shrinking) */
  .bento-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .bento-grid > .bento-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Section wrappers shouldn't allow horizontal scroll */
  .listings-sec,
  .team-section,
  div[style*="background:#fafafa"] {
    overflow: hidden !important;
  }
}

/* ==============================================
   FINAL OVERRIDES — guaranteed last to apply
   ============================================== */
@media (max-width: 768px) {
  /* Building from day one — hide unconditionally */
  .bento-card[style*="650002"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .bento-card[style*="650002"] * {
    display: none !important;
  }
}
