/* ============================================================
   JADE VARIN PROPERTIES — MOBILE CSS (FINAL)
   Only touches ≤768px. Desktop untouched.
   ============================================================ */

@media (max-width: 768px) {

  /* ━━━ SCROLL: natural iOS scrolling ━━━━━━━━━━━━━━━━━━━━━━ */
  html {
    overflow-x: clip !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
  }
  body {
    overflow-x: clip !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
    height: auto !important;
    max-height: none !important;
    background-color: var(--bg) !important;
  }

  /* ━━━ SECTION BACKGROUNDS: restore white/cream on mobile ━━ */
  .sec        { background-color: var(--white) !important; }
  .sec-cream  { background-color: var(--cream) !important; }
  /* Dark sections keep their dark bg */
  .sec-dark   { background-color: var(--black) !important; }

  /* ━━━ NAV: bigger logo, clean layout ━━━━━━━━━━━━━━━━━━━━━ */
  nav {
    height: 126px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .nav-links, .nav-right, .nav-wa { display: none !important; }
  .nav-logo {
    width: 300px !important;
    height: 100px !important;
    max-width: calc(100vw - 80px) !important;
    flex-shrink: 1 !important;
  }
  .hamburger {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  /* ━━━ HOME HERO ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .hero {
    min-height: 100dvh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    align-items: flex-end !important;
  }
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(10,10,10,0.97) 0%,
      rgba(10,10,10,0.82) 45%,
      rgba(10,10,10,0.40) 100%
    ) !important;
  }
  /* Portrait: top:14% keeps face below nav */
  .hero-jade-portrait {
    display: block !important;
    position: absolute !important;
    right: 0 !important;
    top: 16% !important;
    bottom: 0 !important;
    width: 50% !important;
    object-fit: contain !important;
    object-position: center top !important;
    opacity: 0.78 !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }
  .hero-content {
    position: relative !important;
    z-index: 3 !important;
    text-align: center !important;
    /* Full width text — portrait is behind as atmospheric overlay */
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 24px 52px !important;
  }
  h1.hero-h1 {
    font-size: 28px !important;
    line-height: 1.12 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }
  .hero-h1-sub { display: none !important; }
  .hero-sub    { display: none !important; }
  .hero-badge  { margin-bottom: 12px !important; }
  .hero-btns {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
  }
  .hero-btns .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    font-size: 12px !important;
    min-height: 48px !important;
  }
  .hero-scroll { display: none !important; }

  /* ━━━ PAGE HEROES (inner pages) ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .page-hero {
    min-height: 68dvh !important;
    padding: 130px 24px 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  .page-hero-content {
    text-align: center !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
  }
  .page-hero-content h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }
  .page-hero-content p {
    font-size: 15px !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  .page-hero-content .eyebrow {
    display: block !important;
    text-align: center !important;
  }
  .page-hero-content .eyebrow::before { display: none !important; }

  /* Meet Jade: face position set inline in meet-jade.html (15% 28%)
     Inline style cannot be overridden by CSS; edit HTML directly. */
  /* Selling: face in top of portrait image */
  .page-hero-bg[style*="jade-portrait-4"] {
    background-position: center 12% !important;
  }

  /* ━━━ BREADCRUMB ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .breadcrumb {
    padding: 10px 20px !important;
    font-size: 11px !important;
    text-align: center !important;
    background: var(--white) !important;
  }

  /* ━━━ EYEBROWS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .eyebrow, .eyebrow-jade {
    text-align: center !important;
    display: block !important;
  }
  .eyebrow::before, .eyebrow-jade::before { display: none !important; }

  /* ━━━ H2 HEADINGS: centered, no decorative split ━━━━━━━━━━
     Fixes: "Bay of / Banderas", "Property in / Mexico?",
     "in Paradise", "A Complete Sales Strategy"              */
  /* ALL headings: centered, readable, no decorative drift */
  h1, h2, h3,
  .h2, h2.h2, .h2-w,
  h2[style*="font-family"],
  h2[style*="Playfair"] {
    text-align: center !important;
    font-size: clamp(19px, 5vw, 26px) !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word !important;
  }
  /* em/italic stays inline — prevents drift like "Bay of / Banderas" */
  h2 em, .h2 em, h1 em { display: inline !important; }
  /* Page hero h1 is bigger */
  .page-hero-content h1 {
    font-size: 28px !important;
  }

  /* ━━━ SECTION SPACING ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .sec       { padding: 56px 20px !important; }
  .sec-sm    { padding: 40px 20px !important; }
  .sec-cream { padding: 56px 20px !important; }
  .sec-dark  { padding: 56px 20px !important; }
  section[style*="padding:72px 80px"],
  section[style*="padding:56px 80px"],
  section[style*="padding:108px 80px"] {
    padding: 52px 20px !important;
  }
  /* Fix sections with padding:0 (meet-jade credential grid) */
  section[style*="padding:0;overflow:hidden"] {
    overflow: visible !important;
  }

  /* ━━━ SPLIT LAYOUT: stack photo then text ━━━━━━━━━━━━━━━━ */
  .split {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .split-photo { width: 100% !important; order: 0 !important; }
  .split-photo img {
    width: 100% !important;
    height: 280px !important;
    max-height: 300px !important;
    object-fit: cover !important;
    object-position: center 20% !important;
  }
  .split > div:not(.split-photo) {
    padding: 40px 20px !important;
    text-align: center !important;
    order: 1 !important;
  }
  .split .body-text p { text-align: left !important; }
  .split .dash-list li { text-align: left !important; }
  .split-photo-accent { display: none !important; }

  /* ━━━ INLINE GRIDS: collapse all to single column ━━━━━━━━ */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  [style*="grid-template-columns:1fr 1fr;gap:60px"],
  [style*="grid-template-columns:1fr 1fr;gap:64px"],
  [style*="grid-template-columns:1fr 1fr;gap:72px"],
  [style*="grid-template-columns:1fr 1fr;gap:80px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  [style*="grid-template-columns:1fr 1fr auto"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(4"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  /* ━━━ AREAS heading fix (index.html areas section) ━━━━━━━━ */
  #areas > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 32px !important;
  }
  #areas > div[style*="grid-template-columns"] p {
    text-align: center !important;
  }

  /* ━━━ AREAS PAGE intro text ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  [style*="max-width:700px;margin:0 auto"],
  [style*="max-width:780px;margin:0 auto"],
  [style*="max-width:800px;margin:0 auto"],
  [style*="max-width:680px;margin:0 auto"] {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  [style*="display:inline-block"][style*="600px"] {
    display: block !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  /* ━━━ TRUST BAR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .trust {
    gap: 16px !important;
    padding: 14px 20px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .trust-lbl, .tdiv, .tsub { display: none !important; }
  .tname { font-size: 11px !important; }

  /* ━━━ ABOUT (homepage) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  #about {
    display: flex !important;
    flex-direction: column !important;
    min-height: unset !important;
  }
  #about > div:first-child { min-height: 320px !important; }
  #about > div:last-child {
    padding: 44px 20px !important;
    text-align: center !important;
    background: var(--white) !important;
  }
  #about .dash-list li { text-align: left !important; }
  #about p { text-align: center !important; }

  /* ━━━ REVIEWS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  #reviews > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }
  .tcard {
    padding: 28px 20px !important;
    text-align: center !important;
    background: var(--white) !important;
  }
  .tcard-quote { font-size: 15px !important; }

  /* ━━━ WHY JADE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  #why-jade > div:last-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 2px !important;
  }
  #why-jade > div:last-child > div {
    padding: 22px 14px !important;
    text-align: center !important;
  }

  /* ━━━ AREA CARDS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .ac-grid { grid-template-columns: 1fr !important; gap: 3px !important; }
  .ac, .ac.lg {
    grid-column: span 1 !important;
    min-height: 110px !important;
    padding: 24px 20px !important;
  }
  .ac-name { font-size: 20px !important; }
  .ac.lg .ac-name { font-size: 22px !important; }

  /* ━━━ CARDS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .cards-grid, .cards-grid-3, .cards-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }
  .card { padding: 28px 20px !important; }

  /* ━━━ PROCESS / STATS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .process-steps { grid-template-columns: 1fr !important; }
  .ps { padding: 24px 20px !important; text-align: center !important; }
  .stats-strip { grid-template-columns: 1fr !important; }
  .stat {
    padding: 32px 20px !important;
    text-align: center !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  }

  /* ━━━ JADE STRIP ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .jade-strip {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  /* Show only the first portrait photo + the text panel. Hide second/third photo. */
  .jade-strip .jp:last-child { display: none !important; }
  .jade-strip .jp:first-child { height: 280px !important; }
  .jp { height: 280px !important; }
  .jpanel {
    min-height: 300px !important;
    padding: 44px 20px !important;
    text-align: center !important;
  }
  .jpanel .h2 { font-size: 24px !important; text-align: center !important; }

  /* ━━━ YOUTUBE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  #youtube { padding: 52px 20px !important; text-align: center !important; }
  #youtube > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ━━━ BANNER: hide redundant branding banner ━━━━━━━━━━━━━━ */
  .banner { display: none !important; }

  /* ━━━ FAQ: visible questions, strong contrast ━━━━━━━━━━━━━
     The style.css 900px block was darkening body background,
     making .faq-q text (color:black) invisible on dark bg.
     That's now fixed in style.css. These rules ensure contrast. */
  .fi {
    border-bottom: 1px solid var(--gray-light) !important;
    background: transparent !important;
  }
  .faq-q {
    font-size: 16px !important;
    font-family: 'Playfair Display', serif !important;
    padding: 20px 0 !important;
    min-height: 60px !important;
    color: var(--black) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
  }
  .faq-q::after {
    content: '+' !important;
    font-size: 22px !important;
    color: var(--gold) !important;
    flex-shrink: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
  }
  .fi.open .faq-q { color: var(--jade) !important; }

  /* FAQ on dark backgrounds (.sec-dark in area subpages) */
  .sec-dark .fi {
    border-bottom: 1px solid rgba(255,255,255,0.14) !important;
  }
  .sec-dark .faq-q {
    color: rgba(255,255,255,0.88) !important;
  }
  .sec-dark .fi.open .faq-q {
    color: var(--gold) !important;
  }
  .sec-dark .fa p {
    color: rgba(255,255,255,0.62) !important;
  }
  .fi.open .faq-q::after { transform: rotate(45deg) !important; }
  .fa { max-height: 0 !important; overflow: hidden !important; }
  .fi.open .fa { max-height: 400px !important; }
  .fa p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    padding: 0 0 20px !important;
    text-align: left !important;
    color: var(--gray) !important;
  }

  /* ━━━ CTA STRIP ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .cta-strip { padding: 52px 20px !important; text-align: center !important; }
  .cta-strip .btns {
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    gap: 10px !important;
  }
  .cta-strip .btns .btn { width: 100% !important; justify-content: center !important; }
  .cta-strip h2 { font-size: 24px !important; text-align: center !important; }

  /* ━━━ TESTIMONIALS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .testimonials { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* ━━━ CONTACT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-inner { padding: 72px 20px !important; }
  .cf { padding: 28px 20px !important; }

  /* ━━━ FORMS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .fg-row { grid-template-columns: 1fr !important; }
  .fg input, .fg select, .fg textarea {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }
  .fg { margin-bottom: 14px !important; }
  .btn-sub { padding: 16px !important; font-size: 13px !important; min-height: 52px !important; }

  /* ━━━ FOOTER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  footer { padding: 48px 20px 80px !important; }
  .ft-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .ft-logo { height: 100px !important; margin-bottom: 20px !important; }
  .ft-desc { max-width: 100% !important; font-size: 13px !important; margin-bottom: 16px !important; }
  .ft-aff { margin-bottom: 14px !important; }
  .ft-soc {
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
  .fc { border-bottom: 1px solid rgba(255,255,255,0.07) !important; }
  .fc h4 {
    padding: 16px 0 !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
  }
  .fc h4::after { content: '+' !important; font-size: 18px !important; color: var(--gold) !important; }
  .fc h4.open::after { transform: rotate(45deg) !important; }
  .fc ul { max-height: 0 !important; overflow: hidden !important; transition: max-height 0.4s ease !important; }
  .fc ul.open { max-height: 300px !important; padding-bottom: 20px !important; }
  .fc li { margin-bottom: 12px !important; }
  .fc a { font-size: 14px !important; }
  .ft-bot {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
  }
  .ft-copy { font-size: 10px !important; }
  .ft-contact-always { display: block !important; padding: 18px 0 !important; }

  /* ━━━ WHATSAPP ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .wa-float {
    bottom: 16px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 99 !important;
  }
  #sticky-wa { display: none !important; }

  /* ━━━ MOBILE MENU ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  .mob { z-index: 9999 !important; position: fixed !important; inset: 0 !important; }

  /* ━━━ IMAGES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  img { max-width: 100% !important; }

}

/* ━━━ SMALL PHONES ≤390px ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 390px) {
  nav { height: 108px !important; }
  .nav-logo {
    width: 230px !important;
    height: 78px !important;
    max-width: calc(100vw - 72px) !important;
  }
  h1.hero-h1 { font-size: 24px !important; }
  .hero-badge { display: none !important; }
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px 40px !important;
  }
  .hero-jade-portrait { width: 42% !important; top: 18% !important; }
  .h2, h2.h2, h2 { font-size: clamp(17px, 4.8vw, 22px) !important; }
  .page-hero-content h1 { font-size: 24px !important; }
  .page-hero { padding: 110px 18px 48px !important; }
  .sec { padding: 48px 16px !important; }
  .faq-q { font-size: 14px !important; }
}
