/* ==========================================================================
   TGC homepage mobile adjustments
   --------------------------------------------------------------------------
   The concatenation, in their original load order, of tgc-mobile-hotfix-v3 and
   v4. Both were linked only by the homepage.
   ========================================================================== */

/* ─── merged from tgc-mobile-hotfix-v3.css ─── */
/* TGC Mobile Hotfix v3 — final mobile layout cleanup */
@media (max-width: 760px){
  html, body{overflow-x:hidden !important;}
  body{padding-bottom:0 !important;}

  /* Remove floating RFQ permanently on mobile if any cached markup remains */
  .floating-rfq{display:none !important;visibility:hidden !important;pointer-events:none !important;}

  /* Header breathing room */
  .nav{position:relative !important;z-index:20 !important;background:#fff !important;}
  .nav-inner{min-height:68px !important;padding-inline:22px !important;}
  .logo-mark-img{max-width:86px !important;height:auto !important;}
  .logo-name{font-size:14px !important;font-weight:800 !important;}

  /* Hero: keep all text truly white in iOS Safari */
  .tgc-final-hero{min-height:auto !important;}
  .tgc-hero-bg{filter:brightness(.42) contrast(1.08) saturate(.85) !important;}
  .tgc-hero-overlay{background:linear-gradient(180deg,rgba(2,8,15,.90),rgba(3,13,23,.92)) !important;}
  .tgc-hero-content h1,
  .tgc-hero-content h2,
  .tgc-hero-content p,
  .tgc-hero-note,
  .tgc-kicker{
    color:#fff !important;
    -webkit-text-fill-color:currentColor !important;
    text-shadow:0 2px 14px rgba(0,0,0,.45) !important;
  }
  .tgc-hero-content p{color:#eaf4f8 !important;-webkit-text-fill-color:#eaf4f8 !important;}
  .tgc-hero-card{margin-top:24px !important;}

  /* Section headers: prevent label clipping under the mobile browser chrome */
  .tgc-section-head{text-align:right !important;overflow:visible !important;}
  .tgc-section-head span{display:flex !important;align-items:center !important;gap:12px !important;margin-bottom:14px !important;overflow:visible !important;}
  .tgc-section-head h2{margin:0 0 16px !important;}

  /* Why cards: a bit more compact and no content hidden behind Safari toolbar */
  .tgc-value-grid{gap:18px !important;}
  .tgc-value-card{padding:28px 24px 30px !important;min-height:0 !important;border-radius:24px !important;}
  .tgc-value-card b{font-size:14px !important;top:20px !important;}
  .tgc-value-card h3{font-size:22px !important;line-height:1.5 !important;margin-top:36px !important;}
  .tgc-value-card p{font-size:14px !important;line-height:2 !important;}

  /* Product cards: previous side-by-side mobile layout made the text column too narrow.
     Use premium vertical catalog cards on mobile. */
  .tgc-product-group{margin-top:38px !important;}
  .tgc-product-group + .tgc-product-group{margin-top:50px !important;}
  .tgc-group-title{margin-bottom:18px !important;justify-content:flex-start !important;}
  .tgc-group-title h3{font-size:27px !important;line-height:1.35 !important;}
  .tgc-product-grid{display:grid !important;grid-template-columns:1fr !important;gap:20px !important;}
  .tgc-product-card{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    border-radius:24px !important;
    overflow:hidden !important;
    min-height:0 !important;
    background:#fff !important;
  }
  .tgc-product-card img{
    order:0 !important;
    width:100% !important;
    height:230px !important;
    min-height:230px !important;
    max-height:230px !important;
    object-fit:cover !important;
    object-position:center center !important;
    border-radius:0 !important;
  }
  .tgc-product-card>div{
    order:1 !important;
    width:100% !important;
    min-width:0 !important;
    padding:22px 20px 24px !important;
    text-align:center !important;
    align-items:center !important;
  }
  .tgc-product-card h4{
    font-size:22px !important;
    line-height:1.45 !important;
    margin:0 0 10px !important;
    text-align:center !important;
    width:100% !important;
  }
  .tgc-product-card p,
  .tgc-product-card small{
    font-size:14px !important;
    line-height:1.8 !important;
    text-align:center !important;
    direction:ltr !important;
    unicode-bidi:isolate !important;
    width:100% !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:normal !important;
  }
  .tgc-product-card small{font-size:13.3px !important;color:#758596 !important;}
  .tgc-mini-actions{
    justify-content:center !important;
    align-items:center !important;
    gap:10px !important;
    padding-top:17px !important;
    width:100% !important;
  }
  .tgc-mini-actions a{
    font-size:13px !important;
    padding:10px 16px !important;
    min-width:118px !important;
    text-align:center !important;
    white-space:nowrap !important;
  }

  /* Standards + final CTA */
  .tgc-badges{direction:ltr !important;gap:10px !important;justify-content:center !important;}
  .tgc-badges span{direction:ltr !important;unicode-bidi:isolate !important;min-width:116px !important;font-size:11.7px !important;}
  .tgc-final-cta h2{color:#fff !important;-webkit-text-fill-color:#fff !important;text-shadow:0 2px 18px rgba(0,0,0,.38) !important;}
  .tgc-final-cta p{color:#e9f7fb !important;-webkit-text-fill-color:#e9f7fb !important;}
  .tgc-final-cta small{color:#cce2eb !important;-webkit-text-fill-color:#cce2eb !important;}
  .footer{padding-bottom:36px !important;}
}

@media (max-width: 420px){
  .tgc-product-card img{height:218px !important;min-height:218px !important;max-height:218px !important;}
  .tgc-product-card h4{font-size:21px !important;}
  .tgc-product-card p{font-size:13.4px !important;}
  .tgc-mini-actions a{min-width:108px !important;padding:9px 13px !important;}
}

/* ─── merged from tgc-mobile-hotfix-v4.css ─── */
/* TGC Mobile Hotfix v4 — compact hero stats + cleaner why cards */
@media (max-width: 760px){
  html, body{overflow-x:hidden !important;}
  .floating-rfq{display:none !important;visibility:hidden !important;pointer-events:none !important;}

  /* Make mobile hero shorter so the stat block is not trapped behind Safari toolbar */
  .tgc-final-hero{min-height:auto !important;}
  .tgc-hero-wrap{padding:46px 0 38px !important;gap:18px !important;}
  .tgc-kicker{margin-bottom:16px !important;padding:8px 13px !important;}
  .tgc-hero-content h1{
    margin-bottom:10px !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  .tgc-hero-content h2{
    margin-bottom:14px !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
  }
  .tgc-hero-content p{
    color:#eaf4f8 !important;
    -webkit-text-fill-color:#eaf4f8 !important;
  }
  .tgc-hero-actions{margin-top:18px !important;gap:11px !important;}
  .tgc-btn{min-height:44px !important;font-size:14px !important;}
  .tgc-hero-note{margin-top:14px !important;}

  /* Compact mobile stats */
  .tgc-hero-card{
    margin-top:14px !important;
    padding:10px 13px !important;
    border-radius:20px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:0 !important;
    background:rgba(6,23,38,.74) !important;
  }
  .tgc-hero-card div{
    padding:9px 2px !important;
    min-height:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
  }
  .tgc-hero-card strong{font-size:23px !important;line-height:1 !important;}
  .tgc-hero-card span{font-size:12.2px !important;line-height:1.55 !important;}

  /* Section spacing: less empty air */
  .tgc-section-head span{margin-bottom:12px !important;}
  .tgc-section-head h2{margin-bottom:12px !important;}

  /* Why cards: remove excessive top blank space */
  .tgc-value-grid{gap:15px !important;}
  .tgc-value-card{
    padding:22px 20px 23px !important;
    min-height:0 !important;
    border-radius:22px !important;
    display:block !important;
  }
  .tgc-card-code{
    position:static !important;
    display:block !important;
    margin:0 0 12px !important;
    font-size:12px !important;
    line-height:1 !important;
    letter-spacing:.08em !important;
    color:#0e7c9f !important;
  }
  .tgc-value-card h3{
    margin:0 0 10px !important;
    font-size:21px !important;
    line-height:1.45 !important;
    text-align:right !important;
  }
  .tgc-value-card p{
    font-size:13.8px !important;
    line-height:1.95 !important;
    text-align:right !important;
  }

  /* Product cards: slightly shorter images so the page feels cleaner */
  .tgc-product-card img{
    height:205px !important;
    min-height:205px !important;
    max-height:205px !important;
  }
  .tgc-product-card>div{padding:20px 18px 22px !important;}
  .tgc-product-card h4{font-size:21px !important;margin-bottom:8px !important;}
  .tgc-product-card p{font-size:13.6px !important;line-height:1.7 !important;}
  .tgc-product-card small{font-size:13px !important;line-height:1.7 !important;}
  .tgc-mini-actions{padding-top:14px !important;}

  /* Make labels that use English stay visually stable inside RTL text */
  .tgc-product-card p,
  .tgc-product-card small,
  .tgc-badges span{unicode-bidi:isolate !important;}
}

@media (max-width: 420px){
  .tgc-product-card img{height:198px !important;min-height:198px !important;max-height:198px !important;}
  .tgc-value-card{padding:20px 18px 22px !important;}
  .tgc-value-card h3{font-size:20px !important;}
}
