/* ============================================================
   mobile.css — Star Media Studios
   Complete responsive overrides for phones (≤ 480px)
   and tablets (≤ 768px). Stacks on top of the compiled CSS.
   ============================================================ */

/* ── 1. HAMBURGER MENU BUTTON ──────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(15,23,42,0.15);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: #475569;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── LIGHT THEME: Hamburger and drawer are already styled for light theme
      since light-theme is always active. No overrides needed. ── */

/* ── 2. MOBILE NAV DRAWER ──────────────────────────────────── */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(248,250,252,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 100px 24px 40px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.mobile-nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav-drawer a {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding: 14px 28px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}
.mobile-nav-drawer a:hover,
.mobile-nav-drawer a:active { background: rgba(99,102,241,0.08); color: #6366f1; }
.mobile-nav-drawer .mobile-nav-cta {
  background: #d48c00;
  color: #fff !important;
  margin-top: 8px;
  font-size: 15px;
}
.mobile-nav-drawer .mobile-nav-cta:hover { background: #b87300; }
.mobile-nav-drawer .mobile-nav-login {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.4);
  color: #6366f1 !important;
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #0f172a;
  padding: 8px;
  line-height: 1;
}

/* ============================================================
   ── TABLET BREAKPOINT (≤ 1024px) ───────────────────────────
   ============================================================ */
@media (max-width: 1024px) {
  /* Nav */
  .nav-links, .loc-nav-links { display: none !important; }
  .mobile-menu-btn { display: flex !important; }

  /* Hero */
  #hero { padding: 100px 5vw 60px; min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-headline { font-size: clamp(30px, 5vw, 48px); }
  .hero-sub { margin: 0 auto 28px; }
  .hero-btns { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* Form card */
  .hero-right { align-items: center; }
  .form-card { width: 100%; max-width: 520px; }

  /* Sections */
  .section-inner { padding: 0 5vw; }
  .services-bento { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .value-prop-grid { grid-template-columns: 1fr; gap: 24px; max-width: 100%; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Showcase scroll */
  #showcase-scroll { display: none !important; }

  /* Footer */
  .seo-footer-top {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 32px;
  }
  .seo-footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  .seo-footer-brand .nav-logo {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 12px !important;
  }
  .seo-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    text-align: center !important;
    width: 100% !important;
  }
  .location-directory-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ── PHONE BREAKPOINT (≤ 640px) ─────────────────────────────
   ============================================================ */
@media (max-width: 640px) {
  /* ── Body & Container ── */
  body { font-size: 15px; }

  /* ── Navigation ── */
  nav {
    height: 64px;
    padding: 0 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
  }
  .nav-logo svg { height: 36px !important; }

  /* ── Hero Section ── */
  #hero {
    padding: 90px 20px 50px;
    min-height: auto;
    align-items: flex-start;
  }
  .hero-inner { gap: 32px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-headline {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 16px;
    line-height: 1.2;
  }
  .hero-sub {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 24px;
    line-height: 1.7;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-primary, .btn-secondary {
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }
  .hero-right { width: 100%; }
  .form-card {
    padding: 20px 16px;
    border-radius: 16px;
    max-width: 100%;
  }
  .form-card h3 { font-size: 17px; margin-bottom: 6px; }
  .form-card p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }

  /* ── Showcase Scroll ── */
  #showcase-scroll { display: none; }

  /* ── Section common ── */
  section {
    padding: 60px 20px !important;
  }
  .section-inner { padding: 0; }
  .section-label { font-size: 11px; }
  .section-title {
    font-size: clamp(22px, 6vw, 30px) !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }
  .section-sub {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* ── Our Story ── */
  .problem-grid { gap: 32px; }
  .problem-points { gap: 0; }
  .problem-point { padding: 18px 0; gap: 14px; }
  .problem-point-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; }
  .problem-point-title { font-size: 14px; }
  .problem-point-desc { font-size: 13px; line-height: 1.6; }

  /* ── Services Bento ── */
  .services-bento {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-top: 32px;
  }
  .bento-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .bento-num { font-size: 11px; }
  .bento-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .bento-title { font-size: 15px; margin-bottom: 6px; }
  .bento-desc { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }

  /* ── Impact / Metrics ── */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    margin-top: 32px;
  }
  .metric-card {
    padding: 28px 16px;
    border-radius: 16px;
    text-align: center;
  }
  .metric-num { font-size: clamp(22px, 6vw, 32px) !important; }
  .metric-label { font-size: 12px; line-height: 1.4; }
  /* 5th card spans full width */
  .metric-card:last-child { grid-column: 1 / -1; }

  /* ── Why Us ── */
  .why-us-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-top: 32px;
  }
  .why-us-card { padding: 20px 18px; border-radius: 14px; }
  .why-us-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .why-us-title { font-size: 14px; margin-bottom: 6px; }
  .why-us-desc { font-size: 13px; line-height: 1.6; }

  /* ── Testimonials ── */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-top: 32px;
  }
  .testimonial-card {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .testimonial-text { font-size: 13px; line-height: 1.7; }
  .testimonial-name { font-size: 13px; }
  .testimonial-role { font-size: 12px; }
  .testimonial-avatar { width: 36px; height: 36px; font-size: 11px; }

  /* ── Value Prop ── */
  .value-prop-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-top: 32px;
  }
  .vp-them { font-size: 13px; }
  .vp-us { font-size: 16px; }

  /* ── CTA Section ── */
  .cta-inner { text-align: center; padding: 0 4px; }
  .cta-inner .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  /* ── Location Directory ── */
  #location-directory { padding: 60px 20px 40px !important; }
  .location-directory-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .service-group-card {
    border-radius: 14px;
    padding: 0;
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .service-group-title {
    font-size: 13px;
    padding: 14px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(99,102,241,0.04);
  }
  .city-links { padding: 8px 0; }
  .city-link {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 0;
  }
  .city-link:hover { padding-left: 20px; }

  /* ── Footer ── */
  .seo-footer { padding: 48px 20px 0; }
  .seo-footer-top {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 32px;
  }
  .seo-footer-brand { max-width: 100%; }
  .seo-footer-tagline { font-size: 13px; line-height: 1.7; }
  .seo-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
  }
  .seo-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 0;
  }
  .seo-footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }
  .seo-footer-legal-link { font-size: 12px; }
  .seo-footer-copy { font-size: 12px; }
}

/* ============================================================
   ── EXTRA SMALL PHONES (≤ 390px) ───────────────────────────
   ============================================================ */
@media (max-width: 390px) {
  .hero-headline { font-size: 24px; }
  .metrics-grid { grid-template-columns: 1fr !important; }
  .metric-card:last-child { grid-column: auto; }
  .form-card { padding: 16px 14px; }
  .seo-footer-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   ── WhatsApp float button — mobile adjustments ─────────────
   ============================================================ */
@media (max-width: 640px) {
  #whatsapp-float-btn,
  #whatsapp-float-btn + div[role="tooltip"] {
    display: none !important; /* Hide floating WA button and bubble popup on mobile, since we have the bottom nav bar */
  }
}

/* ============================================================
   ── Phone Bottom Navigation Bar (≤ 640px) ───────────────────
   ============================================================ */
.phone-bottom-nav {
  display: none !important;
}

@media (max-width: 640px) {
  .phone-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 62px !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  body {
    padding-bottom: 62px !important;
  }

  .phone-bottom-nav-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    border-radius: 10px !important;
    font-family: var(--font-sans), sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.1s !important;
    box-sizing: border-box !important;
  }

  .phone-bottom-nav-btn:active {
    transform: scale(0.98) !important;
  }

  .phone-bottom-nav-btn.btn-whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
  }

  .phone-bottom-nav-btn.btn-whatsapp:hover {
    background-color: #20ba5a !important;
  }

  .phone-bottom-nav-btn.btn-quote {
    background-color: #d48c00 !important;
    color: #ffffff !important;
    border: none !important;
  }

  .phone-bottom-nav-btn.btn-quote:hover {
    background-color: #b87300 !important;
  }
}
