/* ==========================================================
   HOME — HEADER + MOBILE FINAL POLISH 32.01
   Scoped to .home-master only
   ========================================================== */


/* DESKTOP NAV — all items, including Contacts */
.home-master .d28-menu{
  gap:24px;
}

.home-master .d28-menu a{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;

  color:#172018 !important;

  white-space:nowrap;
}

.home-master .d28-menu a[href="contacts.html"]{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;

  color:#172018 !important;
}


/* Give navigation enough room before CTA */
.home-master .d28-nav{
  gap:24px;
}

.home-master .d28-menu{
  margin-left:auto;
}

.home-master .d28-cta{
  margin-left:6px;
}


/* TABLET — slightly tighter so Contacts never gets squeezed */
@media (max-width:1180px) and (min-width:861px){

  .home-master .d28-menu{
    gap:14px;
    font-size:9px;
    letter-spacing:.11em;
  }

  .home-master .d28-brand{
    font-size:22px;
  }

  .home-master .d28-cta{
    padding-left:17px;
    padding-right:17px;
  }
}


/* MOBILE */
@media (max-width:860px){

  /* dark, visible hamburger aligned exactly to the right */
  .home-master .d28-toggle{
    display:block !important;

    margin-left:auto !important;
    margin-right:0 !important;

    padding:4px 0 4px 18px !important;

    border:0 !important;
    background:transparent !important;

    color:#172018 !important;
    opacity:1 !important;
    visibility:visible !important;

    font-size:23px !important;
    line-height:1 !important;

    position:relative;
    z-index:100;

    cursor:pointer;
  }

  .home-master .d28-header{
    position:sticky;
    top:0;
    z-index:100;
  }

  .home-master .d28-menu{
    left:0;
    right:0;

    width:100%;

    background:#f5f1e8 !important;

    padding:26px var(--pad) 30px;

    gap:0 !important;
  }

  .home-master .d28-menu.open{
    display:flex !important;
  }

  .home-master .d28-menu a{
    width:100%;

    padding:13px 0;

    border-bottom:1px solid rgba(23,32,24,.13);

    color:#172018 !important;

    font-size:11px;
    letter-spacing:.13em;
  }

  .home-master .d28-menu a[href="contacts.html"]{
    display:block !important;
    color:#172018 !important;
  }

  /* slightly calmer mobile hero typography */
  .home-master .hm-right h1{
    font-size:clamp(52px,16vw,66px) !important;
    line-height:.90 !important;

    max-width:7.2ch;
  }

  .home-master .hm-right{
    overflow:hidden;
  }
}


@media (max-width:520px){

  .home-master .d28-toggle{
    font-size:22px !important;
  }

  .home-master .hm-right h1{
    font-size:54px !important;
  }
}
