/* Homepage hero spacing refinements */
.hero-content{
  top:49%;
  max-width:700px;
}
.hero h1{
  line-height:1.4;
  letter-spacing:-.01em;
  margin-bottom:42px;
}
.hero-title-line{
  white-space:nowrap;
}
.hero-copy{
  line-height:1.8;
  margin-bottom:44px;
}
.hero-actions{
  gap:22px;
}
.hero .button{
  min-width:205px;
  min-height:56px;
  padding:17px 28px;
  font-size:15px;
  font-weight:600;
}

/* Larger, balanced header wordmark */
.brand{
  gap:11px;
  letter-spacing:.075em;
}
.brand strong,
.brand span{
  font-size:clamp(28px,2vw,34px);
}
.brand strong{
  font-weight:700;
}
.brand span{
  font-weight:300;
}

/* Homepage service panel — one unified icon system */
.navigation-panel .nav-icon{
  display:block;
  width:58px;
  height:58px;
  flex:0 0 58px;
  object-fit:contain;
  margin:0;
}
.navigation-panel .machine-labour-selected{
  width:72px;
  height:58px;
  flex:0 0 58px;
  object-fit:contain;
  object-position:left center;
  mix-blend-mode:multiply;
}
.navigation-panel .nav-card h2{
  margin:18px 0 10px;
  font-size:19px;
  line-height:1.25;
  font-weight:600;
}
.navigation-panel .nav-card p{
  margin:0;
  max-width:245px;
  font-size:14px;
  line-height:1.65;
  color:#555;
}

/* Five homepage service categories */
@media(min-width:851px){
  .home-main{
    grid-template-rows:minmax(0,1fr) clamp(265px,29vh,320px);
  }
  .navigation-panel{
    grid-template-columns:repeat(5,minmax(0,1fr));
    padding-top:34px;
    padding-bottom:28px;
  }
  .navigation-panel .nav-card{
    padding-left:clamp(20px,2vw,34px);
    padding-right:clamp(20px,2vw,34px);
    border-right:1px solid var(--line);
  }
  .navigation-panel .nav-card:first-child{
    padding-left:0;
  }
  .navigation-panel .nav-card:nth-child(4){
    border-right:1px solid var(--line);
    padding-right:clamp(20px,2vw,34px);
  }
  .navigation-panel .nav-card:nth-child(5){
    border-right:0;
    padding-right:0;
  }
}

@media(max-width:850px){
  .brand strong,
  .brand span{
    font-size:24px;
  }

  .hero-content{
    top:47%;
    left:clamp(42px,8vw,68px);
    right:clamp(42px,8vw,68px);
    max-width:620px;
  }
  .hero h1{
    font-size:clamp(44px,7.2vw,56px);
    line-height:1.4;
    letter-spacing:-.01em;
    margin-bottom:46px;
  }
  .hero-copy{
    max-width:520px;
    font-size:16px;
    line-height:1.85;
    margin-bottom:48px;
  }
  .hero-actions{
    gap:22px;
  }
  .hero .button{
    min-width:220px;
    min-height:62px;
    padding:19px 30px;
    font-size:17px;
    font-weight:600;
  }
  .navigation-panel{
    grid-template-columns:repeat(2,1fr);
  }
  .navigation-panel .nav-card{
    padding:24px;
    border-right:1px solid var(--line);
    border-bottom:1px solid var(--line);
  }
  .navigation-panel .nav-card:nth-child(even){
    border-right:0;
  }
  .navigation-panel .nav-card:nth-child(5){
    border-right:0;
  }
  .navigation-panel .nav-icon{
    width:54px;
    height:54px;
    flex-basis:54px;
  }
  .navigation-panel .machine-labour-selected{
    width:67px;
    height:54px;
    flex-basis:54px;
  }
  .navigation-panel .nav-card h2{
    font-size:19px;
  }
  .navigation-panel .nav-card p{
    max-width:none;
    font-size:14px;
    line-height:1.65;
  }
}

@media(max-width:700px){
  .hero-content{
    top:47%;
    left:36px;
    right:36px;
  }
  .hero h1{
    font-size:clamp(40px,11vw,50px);
    line-height:1.42;
    letter-spacing:-.005em;
    margin-bottom:40px;
  }
  .hero-copy{
    font-size:15px;
    line-height:1.8;
    margin-bottom:42px;
  }
  .hero-actions{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    width:100%;
  }
  .hero .button{
    width:100%;
    max-width:320px;
    min-height:64px;
    padding:19px 28px;
    font-size:17px;
    font-weight:600;
  }
}

@media(max-width:520px){
  .brand{gap:7px;}
  .brand strong,
  .brand span{
    font-size:21px;
  }
  .navigation-panel{
    grid-template-columns:1fr;
  }
  .navigation-panel .nav-card,
  .navigation-panel .nav-card:nth-child(even),
  .navigation-panel .nav-card:nth-child(5){
    border-right:0;
    padding:28px 0;
  }
  .navigation-panel .nav-icon{
    width:54px;
    height:54px;
    flex-basis:54px;
  }
  .navigation-panel .machine-labour-selected{
    width:67px;
    height:54px;
    flex-basis:54px;
  }
  .navigation-panel .nav-card h2{
    font-size:20px;
    margin-top:16px;
  }
  .navigation-panel .nav-card p{
    font-size:15px;
    line-height:1.65;
  }
}
