/* OVERRIDE EXTRA.CSS NOWRAP — must beat !important */
@media (max-width: 768px) {
  .hero-dual-pills,
  .hero-dual-pills--nowrap {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .dual-pill-sep { display: none !important; }
  .dual-pill { width: 100% !important; }

  /* container must never overflow */
  .container { max-width: 100% !important; padding: 0 16px !important; overflow-x: hidden; }
  .hero-content { max-width: 100% !important; overflow: hidden; }
  .hero-left { max-width: 100% !important; width: 100%; }
  .hero-badge { max-width: 100% !important; white-space: normal !important; }

  /* Phone mockup never overflows */
  .phone-3d { width: 100% !important; max-width: 260px; }
  .phone-3d-wrap { overflow: hidden; }
}

/* ================================================================
   PINAYA INDIA — Complete Mobile Responsive CSS
   Covers: all pages, all breakpoints, all components
   ================================================================ */

/* Global overflow fix — prevents horizontal scroll on all pages */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ── HAMBURGER MENU ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10001;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav menu overlay */
/* ── MOBILE MENU OVERLAY ── */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: linear-gradient(160deg,#060d1f 0%,#0a1628 70%,#0d2235 100%) !important;
  z-index: 10000 !important;
  padding: 90px 20px 40px !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow-y: auto !important;
  list-style: none !important;
  animation: menuSlideIn 0.28s ease !important;
}
/* li items */
.nav-links.mobile-open > li {
  display: block !important;
  list-style: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
/* links inside li */
.nav-links.mobile-open > li > a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  padding: 18px 16px !important;
  color: rgba(255,255,255,0.92) !important;
  letter-spacing: 0.3px !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, padding-left 0.15s !important;
}
.nav-links.mobile-open > li > a:active,
.nav-links.mobile-open > li > a:focus {
  background: rgba(13,115,119,0.3) !important;
  color: #5eead4 !important;
  padding-left: 28px !important;
}
@keyframes menuSlideIn {
  from { opacity:0; transform:translateX(30px); }
  to   { opacity:1; transform:translateX(0); }
}

/* ── TABLET (max 1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content      { grid-template-columns: 1fr; gap: 40px; }
  .hero-woman        { display: none; }
  .hero-visual       { display: none; }
  .steps-grid        { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .provider-content  { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid        { grid-template-columns: repeat(2,1fr); }
  .service-detail-grid   { grid-template-columns: 1fr; }
  .service-detail-sticky { position: static; }
  .verticals-grid    { grid-template-columns: 1fr; gap: 24px; }
  .investor-grid     { grid-template-columns: repeat(2,1fr); }
}

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

  /* --- NAVBAR --- */
  .navbar {
    height: 58px;
    padding: 0 14px;
    position: fixed;
    top: 0; left: 0; right: 0;
  }
  .nav-logo { gap: 8px; }
  .nav-logo-img-pill {
    padding: 4px 8px;
    min-width: unset;
  }
  .nav-logo-img-pill img { width: 34px; height: 34px; }

  /* Show brand name but smaller */
  .nav-logo-wordmark { display: flex !important; }
  .wm-saffron, .wm-white, .wm-green {
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
  }

  /* Book Now — icon only */
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-cta .btn-wa {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    min-width: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
  }
  .nav-cta .btn-wa svg { width: 20px; height: 20px; flex-shrink: 0; }
  .nav-cta .btn-wa > *:not(svg) { display: none; }

  /* Show hamburger */
  .hamburger { display: flex; }
  .nav-links  { display: none; }

  /* Mobile overlay menu top offset */
  .nav-links.mobile-open { padding-top: 80px; }

  /* --- HERO --- */
  .hero {
    padding: 76px 16px 44px;
    min-height: unset;
  }
  .hero-content { grid-template-columns: 1fr; }
  .hero-left    { max-width: 100%; }

  .hero-title {
    font-size: clamp(24px, 8vw, 36px) !important;
    line-height: 1.18;
    margin-bottom: 16px;
  }
  .hero-title-accent {
    font-size: 13px !important;
    white-space: normal !important;
    display: block;
    margin-top: 6px;
  }
  .hero-subtitle {
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  /* Dual pills — vertical stack, full width */
  .hero-dual-pills {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin-bottom: 20px;
  }
  .dual-pill {
    width: 100% !important;
    justify-content: flex-start;
    padding: 10px 14px;
  }
  .dual-pill-sep { display: none !important; }

  /* Hero badge */
  .hero-badge { font-size: 11px; padding: 6px 14px; }
  .hero-badge-dot { width: 7px; height: 7px; }

  /* Hero stats row */
  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
  }
  .hero-stat { min-width: 70px; }
  .hero-stat-num  { font-size: 20px; }
  .hero-stat-label { font-size: 10px; }

  /* Hero CTA buttons */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 14px 20px;
  }

  /* --- SECTIONS --- */
  .section, .section-sm { padding: 44px 16px; }
  .container { padding: 0; }
  .section-title    { font-size: clamp(20px, 6vw, 28px); }
  .section-subtitle { font-size: 13px; }
  .section-badge    { font-size: 10px; padding: 5px 12px; }

  /* --- SERVICES GRID --- */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .service-card  { padding: 14px 10px; }
  .service-name  { font-size: 12px; }
  .service-price { font-size: 11px; }
  .service-icon-wrap { width: 48px; height: 48px; font-size: 22px; margin-bottom: 8px; }

  /* --- PAGE HERO (inner pages) --- */
  .page-hero {
    padding: 90px 16px 44px;
    text-align: center;
  }
  .page-hero h1 { font-size: clamp(22px, 7vw, 36px); line-height: 1.2; }
  .page-hero p  { font-size: 13px; }

  /* --- SERVICE DETAIL --- */
  .service-detail-grid {
    display: block;
    padding: 20px 16px;
  }
  .service-detail-sticky { position: static; max-width: 100%; margin-bottom: 32px; }
  .booking-card { padding: 20px 16px; border-radius: 16px; margin-bottom: 24px; }
  .booking-price { font-size: 28px; }
  #svcAvailBadge { padding: 8px 16px; }
  #svcAvailText  { font-size: 12px; }

  /* --- VERTICALS --- */
  .verticals-grid { grid-template-columns: 1fr; gap: 16px; }
  .vertical-card  { padding: 22px 18px; border-radius: 18px; }
  .vc-services-list { grid-template-columns: 1fr 1fr; }
  .vc-pricing { grid-template-columns: repeat(3,1fr); gap: 6px; }

  /* --- STATS STRIP --- */
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 16px; padding: 28px 16px; }
  .stat-num   { font-size: 26px; }
  .stat-label { font-size: 11px; }

  /* --- MISSION STRIP --- */
  .mission-strip { padding: 16px 16px; }
  .mission-grid  { flex-direction: column; gap: 10px; align-items: flex-start; }
  .mission-sep   { display: none; }
  .mission-item strong { font-size: 12px; }
  .mission-item small  { font-size: 10px; }

  /* --- EARN CARDS --- */
  .earn-card-stack { width: 100%; max-width: 300px; margin: 0 auto; }
  .earn-card { width: 100%; left: 0 !important; }

  /* --- INVESTOR SECTION --- */
  .investor-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .inv-card        { padding: 18px 14px; }
  .inv-icon        { font-size: 28px; }
  .inv-card h4     { font-size: 13px; }
  .inv-card p      { font-size: 12px; }
  .recognition-badges { flex-direction: column; align-items: stretch; }
  .rec-badge { padding: 12px 16px; }

  /* --- TESTIMONIALS --- */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* --- FOOTER --- */
  .footer         { padding: 36px 16px 20px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom  { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
  .footer-copy    { font-size: 10px; line-height: 1.7; }
  .footer-legal   { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-col h4  { font-size: 13px; }
  .footer-desc    { font-size: 12px; }

  /* --- ABOUT PAGE --- */
  .story-grid { grid-template-columns: 1fr; }

  /* --- FLOATING WA BUTTON --- */
  .wa-float {
    bottom: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
  }
  .wa-tooltip { display: none; }

  /* --- PRICING STRIP (services page) --- */
  .pricing-strip-flex {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  /* --- LOCATION BANNER --- */
  #pinayaLocBanner {
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100vw - 16px) !important;
    bottom: 76px !important;
    font-size: 12px !important;
  }

  /* --- MISC --- */
  .perk-item  { flex-direction: column; gap: 12px; padding: 18px 16px; }
  .faq-q      { font-size: 14px; }
  .faq-a      { font-size: 13px; }
  .cta-section { padding: 48px 16px; }
  .cta-section h2 { font-size: 22px; }
  .cta-section p  { font-size: 13px; }
  .provider-section { padding: 48px 16px; }
  .btn-wa-large { font-size: 14px; padding: 14px 24px; }

  /* About page trust badges */
  .trust-badges-row { flex-direction: column; gap: 12px; }
}

/* ── SMALL MOBILE (max 420px) ──────────────────────────────────── */
@media (max-width: 420px) {
  .wm-saffron, .wm-white, .wm-green { font-size: 11px !important; letter-spacing: 1px !important; }
  .hero-title { font-size: 22px !important; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .service-card  { padding: 12px 8px; }
  .investor-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .dual-pill .dp-title { font-size: 11px; }
  .dual-pill .dp-sub   { font-size: 9px; }
  .vc-services-list    { grid-template-columns: 1fr; }
  .booking-price       { font-size: 24px; }
  .page-hero h1        { font-size: 20px; }
}

/* vc-svc as link — keep styling, add interactivity */
a.vc-svc {
  color: var(--text) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.15s, transform 0.15s !important;
}
a.vc-svc:hover, a.vc-svc:active {
  background: var(--teal-bg) !important;
  color: var(--teal-dark) !important;
  transform: translateX(4px);
}
a.vc-svc-more {
  color: var(--teal) !important;
}

/* ── RESPONSIVE GRID OVERRIDES (768px) ────────────────────────────── */
@media (max-width: 768px) {
  .story-grid            { grid-template-columns: 1fr; gap: 32px; }
  .verticals-row-2col    { grid-template-columns: 1fr; gap: 16px; }
  .values-grid           { grid-template-columns: 1fr; }
  .join-content-grid     { grid-template-columns: 1fr; gap: 32px; }
  .contact-cards-grid    { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
}
