/* =====================================================
   SPINPOINTZ — mobile.css (final, complete)
   Loaded after styles.css and premium.css.
   premium.css already handles the hero grid collapse at
   <=1100px and <=768px. This file fixes everything else.
   ===================================================== */

/* ── GLOBAL: no horizontal overflow ever ── */
html, body { overflow-x: hidden !important; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
img, video, svg, iframe { max-width: 100% !important; height: auto; display: block; }

/* ── Hide hero decorative orbs (they bleed right on mobile) ── */
@media (max-width: 768px) {
  .hero-orb { display: none !important; }
  
  /* ── Fixed-px widths that overflow phone screens ── */
  .hero-portrait-ring,
  .hero-portrait-wrap { display: none !important; }
}

/* =====================================================
   768px — tablets and all phones
   ===================================================== */
@media (max-width: 768px) {

  /* SPACING */
  .section    { padding: 56px 0 !important; }
  .container  { padding: 0 18px !important; }
  main        { overflow-x: hidden !important; }
  section     { overflow-x: hidden !important; }

  /* HERO */
  .hero       { min-height: auto; overflow: hidden; }
  .hero-content {
    grid-template-columns: 1fr !important;
    padding: 90px 18px 48px !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-portrait-wrap,
  .hero-portrait-ring,
  .hero-orb   { display: none !important; }
  .hero h1    { font-size: clamp(1.8rem, 7vw, 2.5rem) !important; line-height: 1.15 !important; }
  .hero .lead { font-size: 0.97rem !important; max-width: 100% !important; margin-bottom: 28px !important; }
  .hero-eyebrow { font-size: 0.67rem !important; padding: 7px 14px !important; max-width: 100%; }
  .hero-stats {
    flex-wrap: wrap !important;
    gap: 18px !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
  }
  .hero-stat  {
    flex: 0 0 calc(50% - 9px) !important;
    border-right: none !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
  }

  /* NAV */
  .nav-wrapper   { padding: 0 18px !important; height: 66px !important; }
  .nav-logo-img  { height: 42px !important; }
  .nav-links, .nav-cta { display: none !important; }
  .nav-toggle    { display: flex !important; }
  .mobile-nav    { padding: 20px 18px 28px !important; }
  .mobile-nav a  { padding: 13px 16px !important; font-size: 0.98rem !important; }
  .mobile-nav .btn { width: 100% !important; justify-content: center !important; margin-top: 10px; }

  /* BUTTONS */
  .btn-group {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .btn-group .btn { width: 100% !important; justify-content: center !important; }
  .btn { padding: 13px 20px !important; font-size: 0.87rem !important; }

  /* TYPOGRAPHY */
  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.45rem, 5.5vw, 2rem) !important; }
  h3 { font-size: 1.2rem !important; }
  h4 { font-size: 1rem !important; }
  p.lead { font-size: 0.97rem !important; line-height: 1.7 !important; }
  p  { font-size: 0.9rem !important; }
  .section-header   { margin-bottom: 40px !important; }
  .section-header h2 { font-size: clamp(1.4rem, 5vw, 1.9rem) !important; }
  .section-header p  { font-size: 0.92rem !important; max-width: 100% !important; }

  /* PAGE HERO (inner pages) */
  .page-hero { padding: 106px 0 52px !important; overflow: hidden; }
  .page-hero h1   { font-size: clamp(1.7rem, 6vw, 2.2rem) !important; }
  .page-hero .lead { font-size: 0.95rem !important; }

  /* ── THE KEY FIX: collapse every inline grid ──
     We add class "rg" to every inline-grid div in index.html
     so we can target it with a class selector (which beats
     inline style specificity when paired with !important).    */
  .rg { grid-template-columns: 1fr !important; gap: 24px !important; }
  .rg-2 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Trust pillars: 4-col → 2-col */
  .trust-pillars-grid { grid-template-columns: 1fr 1fr !important; }
  .trust-pillars-grid > div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.07) !important; }

  /* Who We Are outer 2-col */
  .who-we-are-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Our Story 2-col cards */
  .story-cards-grid { grid-template-columns: 1fr !important; gap: 18px !important; }

  /* Mission & Vision 2-col */
  .mission-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Approach 2-col */
  .approach-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Podcast preview 2-col */
  .podcast-preview-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Services layout */
  .services-layout  { grid-template-columns: 1fr !important; }
  .services-sidebar { position: static !important; margin-top: 32px; }
  .acc-services-grid { grid-template-columns: 1fr !important; }
  .acc-cat-header  { padding: 18px 16px !important; }
  .acc-service-item { padding: 22px 18px !important; }
  .services-hero-visual { display: none !important; }

  /* Cards */
  .card-body { padding: 20px 18px !important; }
  .value-card { padding: 24px 20px !important; }
  .service-card { padding: 24px 20px !important; }
  .blog-card-body { padding: 20px 18px !important; }

  /* Contact */
  .contact-layout       { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-form-wrapper { padding: 28px 20px !important; }
  .form-row             { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr !important; gap: 32px !important; }
  .footer-bottom  { flex-direction: column !important; gap: 8px !important; text-align: center !important; }
  .footer-logo-img { height: 54px !important; }
  .social-links   { flex-direction: column; gap: 8px; }
  .social-link    { height: 40px !important; font-size: 0.74rem !important; }
  #site-footer    { padding: 56px 0 0 !important; }

  /* CTA banner */
  .cta-banner { padding: 56px 0 !important; }
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 1.9rem) !important; }
  .cta-banner p  { max-width: 100% !important; }
  .cta-banner .btn-group { justify-content: center !important; }

  /* Work page */
  .folder-card       { width: 100% !important; overflow: hidden; }
  .folder-card-thumb { height: 200px !important; }
  .milestone-card-thumb { min-height: 190px !important; }
  .milestone-highlight-row { flex-wrap: wrap !important; gap: 14px; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

  /* Podcast page */
  .episode-row   { flex-wrap: wrap !important; gap: 10px; }
  .ep-cover-sm   { width: 54px !important; height: 54px !important; }
  .audio-player  { flex-wrap: wrap !important; gap: 12px; }

  /* Blog */
  .featured-article   { grid-template-columns: 1fr !important; }
  .featured-article-body { padding: 28px 20px !important; }

  /* Obama case study */
  .cs-hero { min-height: 52vh !important; }

  /* Inline paddings */
  .section-pad-48 { padding: 24px !important; }
  .section-pad-56 { padding: 28px !important; }

  /* Process steps */
  .process-step { gap: 14px !important; }
  .step-num     { font-size: 2rem !important; width: 36px !important; }

  /* Mega dropdown — never show on mobile */
  .mega-dropdown { display: none !important; }

  /* Decorative rings */
  .hero-portrait-ring, .shv-ring--outer, .shv-ring--inner { display: none !important; }

  /* Podcast subscribe form */
  #subscribe form { flex-direction: column !important; align-items: stretch !important; }
  #subscribe form input  { min-width: 0 !important; width: 100% !important; }
  #subscribe form button { width: 100% !important; justify-content: center !important; }

  /* Quick-jump service strip */
  .quick-jump-strip > div { flex-wrap: wrap !important; }
  .quick-jump-strip a { min-width: calc(50% - 1px) !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.07) !important; }

  /* Inline large font reductions */
  [style*="font-size:1.4rem"] { font-size: 1.1rem !important; }
  [style*="font-size:1.8rem"] { font-size: 1.25rem !important; }
  [style*="font-size:2.8rem"] { font-size: 2rem !important; }
  [style*="font-size:3rem"]   { font-size: 2.2rem !important; }

  /* Inline gap reductions */
  [style*="gap:88px"] { gap: 28px !important; }
  [style*="gap:80px"] { gap: 28px !important; }
  [style*="gap:60px"] { gap: 22px !important; }
  [style*="gap:48px"] { gap: 20px !important; }

  /* Inline padding reductions */
  [style*="padding:56px"] { padding: 26px !important; }
  [style*="padding:48px"] { padding: 24px !important; }
  [style*="padding:44px"] { padding: 22px !important; }
  [style*="padding:40px"] { padding: 20px !important; }
  [style*="padding:32px"] { padding: 18px !important; }

  /* Inline max-width → full width */
  [style*="max-width:800px"],
  [style*="max-width:700px"],
  [style*="max-width:900px"],
  [style*="max-width:960px"] {
    max-width: 100% !important;
  }

  /* Inline width fixed px → fluid */
  [style*="width:420px"],[style*="width:390px"],
  [style*="width:380px"],[style*="width:460px"],
  [style*="width:320px"],[style*="width:180px"],
  [style*="width:240px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Inline height fixed px on rings/portraits → auto */
  [style*="height:420px"],[style*="height:390px"] {
    height: auto !important;
  }

  /* Animation performance on mobile */
  .fade-up, .fade-in, .slide-in-left, .slide-in-right {
    transition-duration: 0.4s !important;
  }
  .stagger > * { transition-duration: 0.35s !important; }
  .hero-bg { transform: none !important; }
}

/* =====================================================
   480px — standard phones (iPhone, Galaxy)
   ===================================================== */
@media (max-width: 480px) {

  .section   { padding: 48px 0 !important; }
  .container { padding: 0 16px !important; }
  .page-hero { padding: 92px 0 44px !important; }

  .hero-content  { padding: 86px 16px 40px !important; }
  .hero h1       { font-size: clamp(1.65rem, 8vw, 2rem) !important; }
  .hero .lead    { font-size: 0.92rem !important; margin-bottom: 24px !important; }
  .hero-eyebrow  { font-size: 0.6rem !important; }
  .hero-stats    { display: none !important; }

  h1 { font-size: clamp(1.65rem, 8vw, 2rem) !important; }
  h2 { font-size: clamp(1.35rem, 6vw, 1.7rem) !important; }
  h3 { font-size: 1.1rem !important; }
  h4 { font-size: 0.95rem !important; }
  p.lead { font-size: 0.92rem !important; }
  p      { font-size: 0.88rem !important; }

  .btn { padding: 12px 18px !important; font-size: 0.84rem !important; }
  .nav-wrapper  { padding: 0 14px !important; height: 62px !important; }
  .nav-logo-img { height: 38px !important; }

  .trust-pillars-grid { grid-template-columns: 1fr !important; }

  .folder-card-thumb  { height: 170px !important; }
  .ep-cover-sm { width: 48px !important; height: 48px !important; }
  .ep-play-sm  { width: 32px !important; height: 32px !important; }

  .acc-cat-header   { padding: 15px 14px !important; }
  .acc-cat-title h3 { font-size: 0.88rem !important; }
  .acc-service-item { padding: 18px 14px !important; }

  .footer-logo-img { height: 46px !important; }
  .social-link     { font-size: 0.7rem !important; }
  .cta-banner      { padding: 44px 0 !important; }

  .milestone-highlight-num { font-size: 1.5rem !important; }
  .milestone-highlight     { flex: 0 0 calc(50% - 6px); }
  .milestone-card-bottom   { padding: 14px 16px !important; }
}

/* =====================================================
   360px — very small phones
   ===================================================== */
@media (max-width: 360px) {

  .container  { padding: 0 12px !important; }
  .section    { padding: 40px 0 !important; }
  .page-hero  { padding: 80px 0 36px !important; }
  .hero-content { padding: 80px 12px 36px !important; }

  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.3rem !important; }
  .btn { font-size: 0.81rem !important; padding: 11px 14px !important; }

  .nav-wrapper  { padding: 0 12px !important; height: 60px !important; }
  .nav-logo-img { height: 34px !important; }

  .folder-card-thumb { height: 150px !important; }
  .ep-cover-sm { width: 42px !important; height: 42px !important; }
  .footer-logo-img { height: 40px !important; }
  .acc-cat-title h3 { font-size: 0.82rem !important; }
}

/* =====================================================
   481px–768px — tablet only refinements
   ===================================================== */
@media (min-width: 481px) and (max-width: 768px) {
  .trust-pillars-grid { grid-template-columns: 1fr 1fr !important; }
  .gallery-grid       { grid-template-columns: repeat(3, 1fr) !important; }
  .episode-row        { flex-wrap: nowrap !important; }
  .grid-3             { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="minmax(180px"] { grid-template-columns: repeat(2, 1fr) !important; }
}
