/* CacheWood Mobile v36
   1) Header is visible immediately on mobile.
   2) Desktop hero fits in the initial viewport, including trust points. */

/* Desktop: keep the full first section visible without scrolling */
@media (min-width:1051px){
  .hero{
    min-height:calc(100vh - 78px) !important;
    height:calc(100vh - 78px) !important;
    padding-top:28px !important;
    padding-bottom:28px !important;
    align-items:center !important;
  }

  .hero-copy{
    max-width:660px !important;
  }

  .hero h1{
    font-size:clamp(58px,5.6vw,88px) !important;
    margin:.10em 0 .26em !important;
  }

  .hero .lead{
    font-size:17px !important;
    line-height:1.48 !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
  }

  .hero .actions{
    margin:22px 0 18px !important;
  }

  .hero .trust-row{
    margin-top:0 !important;
  }
}

/* Shorter desktop/laptop screens */
@media (min-width:1051px) and (max-height:820px){
  .hero{
    padding-top:20px !important;
    padding-bottom:20px !important;
  }

  .hero .eyebrow{
    margin-bottom:8px !important;
  }

  .hero h1{
    font-size:clamp(52px,5.1vw,74px) !important;
  }

  .hero .lead{
    font-size:16px !important;
    line-height:1.42 !important;
  }

  .hero .actions{
    margin:18px 0 14px !important;
  }

  .hero .button{
    min-height:48px !important;
  }

  .hero .trust-row{
    font-size:12.5px !important;
  }
}

/* Mobile/tablet: header is part of the initial layout AND sticks to the top.
   No body top padding is needed, preventing the page from opening below it. */
@media (max-width:1050px){
  body{
    padding-top:0 !important;
  }

  .nav{
    position:sticky !important;
    position:-webkit-sticky !important;
    top:0 !important;
    left:auto !important;
    right:auto !important;
    width:100% !important;
    z-index:2147483647 !important;
    margin:0 !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    min-height:72px !important;
    height:auto !important;
    padding-top:9px !important;
    padding-bottom:9px !important;
    background:#0f0f0f !important;
    border-bottom:1px solid #2d271e !important;
    box-shadow:0 5px 18px rgba(0,0,0,.32) !important;
  }

  .brand,
  .menu-toggle{
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
  }

  .menu-toggle{
    display:block !important;
    flex:0 0 auto !important;
  }

  .hero{
    margin-top:0 !important;
  }
}

@media (max-width:600px){
  .nav{
    min-height:68px !important;
    padding:7px 16px !important;
  }

  .brand img{
    width:44px !important;
    height:44px !important;
  }

  .brand strong{
    font-size:14px !important;
  }

  .brand small{
    display:block !important;
    font-size:10px !important;
    letter-spacing:2.3px !important;
  }

  .hero{
    padding-top:32px !important;
  }
}
