/* ═══════════════════════════════════════════════════════
   MOBILE EXPERIENCE — FORE
   Loaded on all pages. All rules scoped to mobile breakpoints.
   Does NOT affect desktop hover interactions.
   ═══════════════════════════════════════════════════════ */

/* ─── SCROLL REVEAL BASE ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── MOBILE-ONLY STYLES ─── */
@media (max-width: 768px) {

  /* ── Smart Nav: hide on scroll down, show on scroll up ── */
  nav {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s, height 0.3s !important;
  }
  nav.nav--hidden {
    transform: translate(-50%, -100%) !important;
    pointer-events: none;
  }

  /* ── Stats bar: remove all dividers, use gap spacing ── */
  .stat-item {
    border-right: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
  }
  .stats-bar {
    gap: 32px !important;
  }

  /* ── Golden Visa card: show content by default ── */
  .golden-visa {
    height: auto !important;
    min-height: auto !important;
    padding: 64px 6% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .gv-card-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 340px;
    height: auto !important;
    aspect-ratio: 420 / 265;
  }
  .golden-visa:hover .gv-card-wrap {
    left: auto !important;
    transform: none !important;
  }
  .gv-content-panel {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    text-align: center;
  }
  .golden-visa:hover .gv-content-panel {
    opacity: 1 !important;
  }
  .gv-hint {
    display: none !important;
  }
  .gv-benefits {
    text-align: left;
  }

  /* ── Property cards: horizontal snap carousel ── */
  .property-grid,
  #propertyGrid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 6% 16px;
    scrollbar-width: none;
    grid-template-columns: unset !important;
  }
  .property-grid::-webkit-scrollbar,
  #propertyGrid::-webkit-scrollbar {
    display: none;
  }
  #propertyGrid .prop-card,
  .property-grid .prop-card,
  #propertyGrid .property-card,
  .property-grid .property-card {
    flex: 0 0 82vw;
    scroll-snap-align: center;
    min-width: 82vw;
  }

  /* ── Carousel dot indicators ── */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0;
  }
  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white-20, rgba(255,255,255,0.2));
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .carousel-dot.active {
    background: var(--gold, #C9A96E);
    transform: scale(1.3);
  }

  /* ── Testimonials carousel ── */
  .testimonial-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
    grid-template-columns: unset !important;
  }
  .testimonial-grid::-webkit-scrollbar {
    display: none;
  }
  .testimonial-card {
    flex: 0 0 88vw;
    scroll-snap-align: center;
    min-width: 88vw;
  }

  /* ── Team cards: disable hover flip, use tap ── */
  .team-flip-card:hover .team-flip-inner {
    transform: none !important;
  }
  .team-flip-card.flipped .team-flip-inner {
    transform: rotateY(180deg) !important;
  }
  .team-flip-hint {
    font-size: 0 !important;
    line-height: 0;
  }
  .team-flip-hint::after {
    content: '\2014  tap to discover  \2014';
    font-size: 9px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  /* ── Academy preview: only show first 3 on mobile ── */
  .academy-modules .academy-module:nth-child(n+4) {
    display: none;
  }

  /* ── Micro-interactions: active tap states ── */
  .btn-primary:active,
  .btn-ghost:active {
    transform: scale(0.97);
    opacity: 0.9;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
  .prop-card:active,
  .property-card:active,
  .testimonial-card:active,
  .blog-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  .nav-hamburger:active {
    opacity: 0.7;
  }
  .mobile-link:active {
    color: var(--gold);
  }

  /* ── Form focus polish ── */
  .form-input:focus,
  .form-select:focus,
  textarea:focus {
    border-color: var(--gold, #C9A96E);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  /* ── Floating WhatsApp CTA adjustments ── */
  .wa-float {
    z-index: 950;
  }
  .wa-tooltip {
    display: none !important;
  }

  /* ── Section dividers enhanced for mobile ── */
  .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border, rgba(201,169,110,0.15)), transparent);
  }
}

/* ─── TOUCH DEVICE OVERRIDES (hover:none) ─── */
@media (hover: none) {
  .golden-visa:hover .gv-card-wrap {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .golden-visa:hover .gv-content-panel {
    opacity: 0;
    pointer-events: none;
  }
  .team-flip-card:hover .team-flip-inner {
    transform: none;
  }
}
