/* TOWFAST HOMEPAGE CRITICAL CLEANUP V12 - 2026-06-08
   Moved from late inline homepage CSS into a head-loaded file to stop old-layout refresh flash.
   Desktop layout/content preserved; mobile final hero overrides remain mobile-only. */

/* TOWFAST HERO + CASH FINAL FIX V22 */
  .home-hero-bg-wrap{
    position:relative !important;
    isolation:isolate !important;
    overflow:hidden !important;
    background:#050607 !important;
  }

  .home-hero-bg-wrap::before{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    z-index:-2 !important;
    background:
      linear-gradient(
        90deg,
        rgba(2,5,4,0.96) 0%,
        rgba(2,5,4,0.84) 38%,
        rgba(2,5,4,0.46) 68%,
        rgba(2,5,4,0.22) 100%
      ),
      url("/assets/img/tow-truck-brisbane-hero.jpg") center right / cover no-repeat !important;
  }

  .home-hero-bg-wrap::after{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    z-index:-1 !important;
    background:
      radial-gradient(circle at 22% 22%, rgba(188,255,20,0.14), transparent 28%),
      linear-gradient(180deg, rgba(5,6,7,0.04), rgba(5,6,7,0.82) 100%) !important;
    pointer-events:none !important;
  }

  .home-hero-bg-wrap .hero{
    background:transparent !important;
    position:relative !important;
    z-index:1 !important;
    border-bottom:0 !important;
  }

  .home-hero-bg-wrap .hero::before,
  .home-hero-bg-wrap .hero::after{
    display:none !important;
  }

  .cash-under-hero-v18{
    position:relative !important;
    z-index:1 !important;
    padding:0 0 28px !important;
    background:transparent !important;
  }

  .cash-under-hero-v18 .cash-strip-v18{
    display:grid !important;
    grid-template-columns:1.25fr 1.25fr auto !important;
    gap:22px !important;
    align-items:center !important;
    padding:18px 22px !important;
    border-radius:24px !important;
    background:linear-gradient(135deg,rgba(14,20,15,.88),rgba(6,8,9,.84)) !important;
    border:1px solid rgba(188,255,20,.28) !important;
    box-shadow:0 18px 48px rgba(0,0,0,.30) !important;
    backdrop-filter:blur(16px) !important;
    -webkit-backdrop-filter:blur(16px) !important;
  }

  .cash-kicker-v18{
    display:block !important;
    margin:0 0 5px !important;
    color:#bcff14 !important;
    font-size:12px !important;
    line-height:1.2 !important;
    font-weight:950 !important;
    text-transform:uppercase !important;
    letter-spacing:.10em !important;
  }

  .cash-strip-v18 h2{
    margin:0 !important;
    color:#fff !important;
    font-size:clamp(22px,1.8vw,26px) !important;
    line-height:1.05 !important;
    letter-spacing:-.04em !important;
  }

  .cash-strip-v18 p{
    margin:0 !important;
    color:#d6dee3 !important;
    font-size:15.5px !important;
    line-height:1.48 !important;
    max-width:610px !important;
  }

  .cash-actions-v18{
    display:flex !important;
    gap:12px !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
  }

  .cash-actions-v18 .btn{
    min-width:162px !important;
    min-height:46px !important;
    padding:12px 17px !important;
    border-radius:16px !important;
    white-space:nowrap !important;
  }

/* Desktop above-fold balance - tighter V23 */
@media (min-width:981px){
  .home-hero-bg-wrap{
    min-height:100vh !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
  }

  .home-hero-bg-wrap .hero{
    flex:0 0 auto !important;
    padding:0 !important;
  }

  .home-hero-bg-wrap .hero-inner{
    min-height:auto !important;
    padding:26px 0 4px !important;
    gap:36px !important;
    align-items:center !important;
  }

  .home-hero-bg-wrap .hero h1{
    font-size:clamp(40px,3.85vw,58px) !important;
    line-height:.98 !important;
    letter-spacing:-.055em !important;
    margin-bottom:14px !important;
  }

  .home-hero-bg-wrap .hero .lead{
    font-size:16px !important;
    line-height:1.48 !important;
    max-width:690px !important;
    margin-bottom:18px !important;
  }

  .home-hero-bg-wrap .hero-actions{
    margin-top:0 !important;
    margin-bottom:14px !important;
  }

  .home-hero-bg-wrap .hero-actions .btn{
    min-height:44px !important;
    padding:11px 17px !important;
  }

  .home-hero-bg-wrap .trust-row{
    gap:8px !important;
  }

  .home-hero-bg-wrap .trust-row span{
    padding:8px 12px !important;
    font-size:13.5px !important;
  }

  .home-hero-bg-wrap .hero-card{
    padding:20px !important;
    border-radius:22px !important;
  }

  .home-hero-bg-wrap .hero-card h2{
    font-size:22px !important;
    margin-bottom:12px !important;
  }

  .home-hero-bg-wrap .hero-card p{
    font-size:15.5px !important;
    line-height:1.42 !important;
    margin-bottom:14px !important;
  }

  .home-hero-bg-wrap .quick-list{
    gap:8px !important;
  }

  .home-hero-bg-wrap .quick-list a{
    padding:9px 13px !important;
    min-height:40px !important;
    font-size:13.5px !important;
  }

  .cash-under-hero-v18{
      margin-top:-84px !important;
      padding:0 0 18px !important;
  }

  .cash-under-hero-v18 .cash-strip-v18{
    padding:14px 18px !important;
    border-radius:22px !important;
  }

  .cash-strip-v18 h2{
    font-size:clamp(22px,1.7vw,26px) !important;
  }

  .cash-strip-v18 p{
    font-size:14.8px !important;
    line-height:1.42 !important;
  }

  .cash-actions-v18 .btn{
    min-height:42px !important;
    padding:10px 15px !important;
  }
}
  @media(max-width:980px){
    .cash-under-hero-v18{
      padding:18px 0 34px !important;
    }

    .cash-under-hero-v18 .cash-strip-v18{
      grid-template-columns:1fr !important;
      gap:14px !important;
      padding:20px !important;
    }

    .cash-actions-v18{
      justify-content:stretch !important;
      flex-wrap:wrap !important;
    }

    .cash-actions-v18 .btn{
      flex:1 1 190px !important;
    }
  }

  @media(max-width:768px){
    .home-hero-bg-wrap::before{
      background:
        linear-gradient(
          180deg,
          rgba(2,5,4,0.94) 0%,
          rgba(2,5,4,0.86) 48%,
          rgba(2,5,4,0.78) 100%
        ),
        url("/assets/img/tow-truck-brisbane-hero-mobile.webp") center top / cover no-repeat !important;
    }
  }


  /* HOME HERO QUOTE + MOVED POPULAR HELP V16 */
  .home-hero-bg-wrap .hero-quote-card{
    max-width:520px !important;
    width:100% !important;
  }

  .home-hero-bg-wrap .hero-quote-card .quote-form{
    display:grid !important;
    gap:10px !important;
    margin-top:12px !important;
  }

  .home-hero-bg-wrap .hero-quote-card .quote-fast-help,
  .home-hero-bg-wrap .hero-quote-card .quote-more-details{
    padding:11px 13px !important;
    border-radius:16px !important;
    margin:0 !important;
  }

  .home-hero-bg-wrap .hero-quote-card .quote-fast-help strong,
  .home-hero-bg-wrap .hero-quote-card .quote-fast-help span{
    font-size:13.5px !important;
    line-height:1.32 !important;
  }

  .home-hero-bg-wrap .hero-quote-card label{
    gap:5px !important;
    font-size:12.5px !important;
  }

  .home-hero-bg-wrap .hero-quote-card input,
  .home-hero-bg-wrap .hero-quote-card select,
  .home-hero-bg-wrap .hero-quote-card textarea{
    min-height:42px !important;
    height:auto !important;
    padding:10px 12px !important;
    border-radius:13px !important;
    font-size:14px !important;
  }

  .home-hero-bg-wrap .hero-quote-card textarea{
    min-height:76px !important;
  }

  .home-hero-bg-wrap .hero-quote-card .btn.full{
    min-height:44px !important;
    padding:12px 16px !important;
  }

  .home-why-popular-section{
    padding-top:28px !important;
  }

  .home-why-popular-grid{
    align-items:stretch !important;
  }

  .home-why-popular-grid .body-copy,
  .home-why-popular-grid .popular-help-card{
    height:100% !important;
  }

  .home-why-popular-grid .popular-help-card{
    display:flex !important;
    flex-direction:column !important;
    align-self:stretch !important;
    max-width:none !important;
  }

  .home-why-popular-grid .popular-help-card .quick-list{
    margin-top:14px !important;
    grid-template-columns:1fr !important;
  }

  .home-why-popular-grid .popular-help-card .quick-list a{
    min-height:46px !important;
  }

  @media (min-width:981px){
    .home-hero-bg-wrap .hero-inner{
      grid-template-columns:minmax(0,1fr) minmax(430px,500px) !important;
      align-items:center !important;
    }

    .home-hero-bg-wrap .hero-quote-card .form-grid.two{
      grid-template-columns:1fr 1fr !important;
      gap:9px !important;
    }

    .home-hero-bg-wrap .hero-quote-card h2{
      margin-bottom:8px !important;
    }

    .home-hero-bg-wrap .hero-quote-card p{
      font-size:14.5px !important;
      line-height:1.34 !important;
      margin-bottom:8px !important;
    }

    .home-why-popular-grid{
      grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr) !important;
      gap:22px !important;
    }
  }

  @media (max-width:980px){
    .home-hero-bg-wrap .hero-quote-card{
      margin-top:20px !important;
      max-width:none !important;
    }

    .home-why-popular-section{
      padding-top:0 !important;
    }
  }

  @media (max-width:620px){
    .home-hero-bg-wrap .hero-quote-card .form-grid.two{
      grid-template-columns:1fr !important;
    }
  }


  /* HOME HERO COMPACT QUOTE FIT V17 */
  .home-hero-bg-wrap .hero-urgent-line{
    margin-top:12px !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    max-width:760px !important;
    padding:11px 13px !important;
    border-radius:18px !important;
    background:rgba(10,15,16,.66) !important;
    border:1px solid rgba(188,255,20,.28) !important;
    box-shadow:0 14px 38px rgba(0,0,0,.22) !important;
  }

  .home-hero-bg-wrap .hero-urgent-line strong{
    color:#bcff14 !important;
    font-weight:950 !important;
  }

  .home-hero-bg-wrap .hero-urgent-line span{
    color:#dce5e8 !important;
    font-size:14px !important;
    line-height:1.3 !important;
  }

  .home-hero-bg-wrap .hero-urgent-line a{
    margin-left:auto !important;
    color:#061100 !important;
    background:#bcff14 !important;
    border-radius:999px !important;
    padding:8px 13px !important;
    font-weight:950 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
  }

  .home-hero-bg-wrap .hero-quote-card{
    max-width:590px !important;
    padding:16px !important;
    border-radius:22px !important;
  }

  .home-hero-bg-wrap .hero-quote-card h2{
    margin-bottom:4px !important;
    line-height:1.05 !important;
  }

  .home-hero-bg-wrap .hero-quote-card .hero-quote-intro{
    margin:0 0 10px !important;
    font-size:13.8px !important;
    line-height:1.3 !important;
    color:#d8e0e4 !important;
  }

  .home-hero-bg-wrap .hero-quote-card .tf-hero-compact-quote{
    gap:8px !important;
    margin-top:0 !important;
  }

  .home-hero-bg-wrap .hero-quote-card .tf-hero-compact-quote .form-grid.two{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .home-hero-bg-wrap .hero-quote-card .tf-hero-compact-quote label{
    font-size:12px !important;
    gap:4px !important;
  }

  .home-hero-bg-wrap .hero-quote-card .tf-hero-compact-quote input,
  .home-hero-bg-wrap .hero-quote-card .tf-hero-compact-quote select{
    min-height:39px !important;
    padding:8px 11px !important;
    border-radius:12px !important;
    font-size:13.5px !important;
  }

  .home-hero-bg-wrap .hero-quote-card .tf-hero-compact-quote .btn.full{
    min-height:42px !important;
    margin-top:2px !important;
    border-radius:14px !important;
  }

  @media (min-width:981px){
    .home-hero-bg-wrap .hero-inner{
      grid-template-columns:minmax(0,1fr) minmax(510px,590px) !important;
      gap:28px !important;
      align-items:center !important;
    }

    .home-hero-bg-wrap .hero-card{
      padding:16px !important;
    }

    .cash-under-hero-v18{
      margin-top:-40px !important;
    }
  }

  @media (max-width:980px){
    .home-hero-bg-wrap .hero-urgent-line{
      align-items:flex-start !important;
      margin-top:12px !important;
    }
    .home-hero-bg-wrap .hero-urgent-line a{
      margin-left:0 !important;
    }
  }

  @media (max-width:620px){
    .home-hero-bg-wrap .hero-quote-card .tf-hero-compact-quote .form-grid.two{
      grid-template-columns:1fr !important;
    }
  }


  /* HOMEPAGE SEO INTERNAL LINK PANEL V48 - dark TowFast style */
  .home-seo-searches-section{
    padding:26px 0 54px !important;
  }

  .home-seo-searches-box{
    background:linear-gradient(135deg,rgba(13,24,17,.98),rgba(2,7,5,.98)) !important;
    border:1px solid rgba(188,251,18,.22) !important;
    border-radius:28px !important;
    padding:28px !important;
    box-shadow:0 22px 60px rgba(0,0,0,.28) !important;
    color:#f8fafc !important;
  }

  .home-seo-searches-head{
    display:flex !important;
    align-items:flex-end !important;
    justify-content:space-between !important;
    gap:20px !important;
    margin-bottom:18px !important;
  }

  .home-seo-searches-box .eyebrow{
    color:#bcfb12 !important;
    margin:0 0 8px !important;
  }

  .home-seo-searches-box h2{
    color:#ffffff !important;
    margin:0 !important;
    max-width:720px !important;
  }

  .home-seo-searches-box p{
    color:rgba(255,255,255,.76) !important;
    margin:0 !important;
    max-width:720px !important;
  }

  .home-seo-searches-cta{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:46px !important;
    padding:0 18px !important;
    border-radius:999px !important;
    background:#bcfb12 !important;
    color:#061008 !important;
    font-weight:950 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    box-shadow:0 12px 26px rgba(188,251,18,.22) !important;
  }

  .home-seo-link-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
    margin-top:18px !important;
  }

  .home-seo-link-grid a{
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
    min-height:104px !important;
    padding:16px !important;
    border-radius:18px !important;
    text-decoration:none !important;
    background:rgba(255,255,255,.055) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    color:#ffffff !important;
    box-shadow:none !important;
    transition:transform .18s ease,border-color .18s ease,background .18s ease !important;
  }

  .home-seo-link-grid a strong{
    color:#ffffff !important;
    font-weight:950 !important;
    line-height:1.15 !important;
  }

  .home-seo-link-grid a span{
    color:rgba(255,255,255,.72) !important;
    font-size:14px !important;
    line-height:1.42 !important;
  }

  .home-seo-link-grid a:hover{
    transform:translateY(-2px) !important;
    background:rgba(188,251,18,.08) !important;
    border-color:rgba(188,251,18,.42) !important;
  }

  @media (max-width:900px){
    .home-seo-searches-head{
      align-items:flex-start !important;
      flex-direction:column !important;
    }
    .home-seo-link-grid{
      grid-template-columns:1fr 1fr !important;
    }
  }

  @media (max-width:620px){
    .home-seo-searches-section{
      padding:18px 0 40px !important;
    }
    .home-seo-searches-box{
      padding:20px !important;
      border-radius:22px !important;
    }
    .home-seo-link-grid{
      grid-template-columns:1fr !important;
    }
    .home-seo-link-grid a{
      min-height:auto !important;
    }
    .home-seo-searches-cta{
      width:100% !important;
    }
  }


  /* TOWFAST HOMEPAGE MOBILE FINAL OVERRIDE V11 - 2026-06-08
     Desktop source is the uploaded old layout. These rules are mobile only.
     Duplicated in head CSS to stop refresh flash, and repeated here after page styles
     so older inline mobile rules cannot take over. */
  @media (max-width: 768px) {
    html body .home-hero-bg-wrap .hero-inner {
      padding-top: 10px !important;
      padding-bottom: 18px !important;
      gap: 0 !important;
    }

    html body .home-hero-bg-wrap .hero-inner > div:first-child {
      transform: translateY(-6px) !important;
      padding-top: 0 !important;
    }

    html body .home-hero-bg-wrap .hero-quote-card {
      display: none !important;
    }

    html body .home-hero-bg-wrap .hero-actions {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      justify-content: flex-start !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 16px 0 10px !important;
      padding: 0 !important;
      gap: 10px !important;
      text-align: left !important;
    }

    html body .home-hero-bg-wrap .hero-actions .btn {
      margin: 0 !important;
      box-sizing: border-box !important;
    }

    html body .home-hero-bg-wrap .hero-actions .btn.dark {
      order: 1 !important;
      display: inline-flex !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      min-height: 50px !important;
      height: 50px !important;
      padding: 0 18px !important;
      border-radius: 16px !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 15.2px !important;
      line-height: 1 !important;
      font-weight: 950 !important;
      letter-spacing: -.018em !important;
      white-space: nowrap !important;
      background: #bcff14 !important;
      color: #050607 !important;
      border: 1px solid #bcff14 !important;
      box-shadow: 0 10px 24px rgba(188,255,20,.18) !important;
    }

    html body .home-hero-bg-wrap .hero-actions .primary-call {
      order: 2 !important;
      display: inline-flex !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      min-height: 48px !important;
      height: 48px !important;
      padding: 0 18px !important;
      border-radius: 16px !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 15px !important;
      line-height: 1 !important;
      font-weight: 900 !important;
      white-space: nowrap !important;
      background: #0d1220 !important;
      color: #ffffff !important;
      border: 1px solid rgba(103,134,255,.58) !important;
      box-shadow: 0 12px 24px rgba(0,0,0,.24) !important;
    }

    html body .home-hero-bg-wrap .hero-actions .btn.blue,
    html body .home-hero-bg-wrap .hero-urgent-line {
      display: none !important;
    }

    html body .home-hero-bg-wrap .trust-row {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 8px !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 12px 0 0 !important;
      overflow: visible !important;
      padding: 0 !important;
    }

    html body .home-hero-bg-wrap .trust-row span {
      min-width: 0 !important;
      width: 100% !important;
      min-height: 38px !important;
      padding: 9px 10px !important;
      border-radius: 999px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 11.8px !important;
      line-height: 1.12 !important;
      white-space: normal !important;
      text-align: center !important;
    }

    html body .home-hero-bg-wrap .trust-row span:nth-child(3) {
      grid-column: 1 / -1 !important;
    }

    html body .home-hero-bg-wrap .trust-row span:nth-child(n+4) {
      display: none !important;
    }

    html body .cash-actions-v18 {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 10px !important;
      padding-bottom: 6px !important;
    }

    html body .cash-actions-v18 .btn,
    html body .highlight-box .btn {
      width: 100% !important;
      min-height: 46px !important;
      justify-content: center !important;
      white-space: nowrap !important;
    }

    html body .highlight-box {
      padding-bottom: 22px !important;
    }

    html body .highlight-box .btn + .btn {
      margin-top: 10px !important;
    }
  }

  @media (max-width: 380px) {
    html body .home-hero-bg-wrap .hero-actions .btn.dark {
      font-size: 14.4px !important;
    }

    html body .home-hero-bg-wrap .hero-actions .primary-call {
      font-size: 14.2px !important;
    }
  }
