/* Main page and navigation. Product data and catalogue controls use their existing styles. */
body { background: #fff; }
body::before { content: none; }
.contact-strip { background: #102f23; }
.contact-strip-inner { min-height: 30px; }
.bar {
  top: 0; width: 100%; max-width: none; min-height: 80px;
  margin: 0; padding: 4px max(24px,calc((100vw - 1320px)/2));
  gap: 18px; flex-wrap: nowrap; border: 0; border-bottom: 1px solid #d6dfd6;
  border-radius: 0; background: #fff; box-shadow: 0 2px 8px #11291f08;
}
.bar::after { content: none; }
.bar .logo { width: 162px; height: 62px; margin: 0; transform: none; }
.bar .logo img {
  inset: auto; top: -18px; left: -20px; width: 203px; height: auto;
  max-width: none; object-fit: initial;
}
.bar .main-nav {
  flex: 1; order: 0; margin: 0; overflow: visible; justify-content: flex-end;
  gap: clamp(12px,1.25vw,20px); font-size: 14px;
}
.bar .main-nav a { padding-block: 16px; }
.bar .main-nav a::after { bottom: 9px; }
.bar .header-actions { flex: none; gap: 10px; margin: 0; }
.bar #open-basket, .bar #open-tender {
  min-height: 44px; height: 44px; padding: 0 12px;
  border: 1px solid #bfd0c2; font-size: 13px; white-space: nowrap;
}
.bar #open-basket { gap: 8px; }
.bar #open-tender { max-width: none; background: #f5f8f3; }
.bar #open-basket #basket-count { width: 23px; height: 23px; min-width: 23px; flex-basis: 23px; font-size: 12px; }
.site-menu-toggle {
  display: grid; place-items: center; min-width: 44px; min-height: 44px;
  color: var(--green); background: #f5f8f3; border: 1px solid #bfd0c2; border-radius: 4px;
}
.site-menu-toggle[hidden], #site-navigation[hidden] { display: none !important; }
.home-page { background: white; }
.home-page .hero {
  display: block; width: 100%; min-height: 0; margin: 0; padding: 0;
  color: #f5f7f3; background: #102f23 url("hero/hero-detail-v2.png") no-repeat right center / cover;
}
.home-page .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; width: auto; height: auto;
  max-width: none; max-height: none; border-radius: 0;
  background: linear-gradient(90deg, rgb(7 25 18 / 70%), rgb(7 25 18 / 48%) 39%, transparent 73%);
}
.hero-mobile-visual { display: none; }
.hero-frame {
  display: flex; align-items: center;
  min-height: clamp(460px,40vw,600px); padding-block: clamp(35px,4vw,60px);
}
.home-page .hero-copy { width: min(53%,650px); max-width: none; }
.home-page .hero h1 {
  max-width: 19ch; font-size: clamp(38px,4.2vw,62px); line-height: 1.07;
  letter-spacing: -.035em; text-wrap: balance; hyphens: none;
}
.home-page .hero .eyebrow { margin-bottom: 17px; font-size: 11px; letter-spacing: .07em; }
.home-page .hero-lead { max-width: 44ch; margin-block: 18px 24px; font-size: 18px; line-height: 1.5; font-weight: 400; color: #e0e9e2; }
.home-page .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-page .hero-actions .button { min-height: 46px; }
.home-page .hero-note { max-width: 49ch; font-size: 12px; line-height: 1.5; margin-top: 16px; }

/* Each direction has its own image area and aligned text rows. */
.home-directions { padding-top: clamp(26px,3vw,42px); padding-bottom: clamp(26px,3vw,42px); scroll-margin-top: 90px; }
.home-directory-heading { margin-bottom: 22px; }
.home-directions #main-title { font-size: clamp(26px,2.6vw,36px); }
.home-directions .direction-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; grid-auto-rows: auto; }
.home-directions .direction {
  --tint: #fff; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto 1fr auto;
  padding: 0; min-height: 0; border: 1px solid #d2ddd3; border-radius: 4px 14px 4px 4px;
  background: white; transition: border-color .18s ease;
}
.home-directions .direction:nth-child(2n) { --tint: #fff; }
.home-directions .direction:hover { border-color: #508466; box-shadow: none; }
.home-directions .direction[data-key] .direction-photo {
  position: static; z-index: auto; inset: auto; display: block; width: 100%; height: 158px;
  padding: 13px 18px; object-fit: contain; object-position: center; background: #fff;
  mix-blend-mode: multiply; mask-image: none; filter: none; opacity: 1;
  border-bottom: 1px solid #e0e6dc;
}
.home-directions .direction h2 {
  width: auto; max-width: none; min-height: 0; margin: 17px 19px 10px;
  font-size: clamp(19px,1.65vw,23px); line-height: 1.22; font-weight: 650; letter-spacing: -.025em;
}
.home-directions .direction-links {
  display: grid; width: auto; gap: 4px; margin: 0 19px 12px;
  font-size: 14px; line-height: 1.45; color: #4a6052;
}
.home-directions .direction-links a { padding-block: 2px; }
.home-directions .direction-open {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 45px; margin: 0 19px; padding: 8px 0; border-top: 1px solid #dae4d9;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.home-directions .direction-open::after { content: "→"; font-size: 22px; font-weight: 400; line-height: 1; }
.home-directions .direction-open:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-directions a:focus-visible { outline: 3px solid #bc8b36; outline-offset: 2px; }
.home-page .home-request { padding-top: 0; }
.home-page .home-request-panel { padding: clamp(20px,2.2vw,30px); background: #f4f7f0; border-radius: 4px 14px 4px 4px; }
.home-page .home-request-copy h2 { font-size: clamp(24px,2.4vw,32px); }
@supports (grid-template-rows: subgrid) {
  .home-directions .direction { grid-template-rows: subgrid; grid-row: span 4; }
  .home-directions .direction-grid { row-gap: 0; }
  .home-directions .direction:nth-child(n+4) { margin-top: 18px; }
}
@media (max-width:1200px) {
  .bar { flex-wrap: wrap; justify-content: space-between; padding: 5px clamp(18px,3vw,28px); gap: 0 14px; }
  .bar .main-nav {
    order: 3; flex: 0 0 100%; display: grid; gap: 0; justify-content: stretch;
    overflow: auto; max-height: calc(100dvh - 130px); margin: 0; font-size: 16px;
  }
  .bar.has-menu .main-nav {
    position: absolute; top: calc(100% - 1px); left: 0; right: 0; padding: 12px 24px 18px;
    background: white; border-bottom: 1px solid #bfd0c2; box-shadow: 0 10px 16px #11291f14;
  }
  .bar .main-nav a { display: block; padding: 12px 0; min-height: 44px; border-bottom: 1px solid #e4eae1; }
  .bar .main-nav a::after { content: none; }
  .bar .main-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
  .bar .main-nav #open-tender { justify-self: stretch; margin-top: 12px; }
  .home-directions .direction-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:850px) {
  .home-page .hero-copy { width: min(61%,540px); }
  .home-page .hero h1 { font-size: clamp(32px,4.5vw,40px); }
  .home-page .hero-lead { font-size: 16px; }
  .home-directions .direction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-directions .direction:nth-child(n+3) { margin-top: 16px; }
}
@media (max-width:650px) {
  .bar { min-height: 68px; padding: 3px 16px; gap: 0 8px; }
  .bar .logo { width: 132px; height: 53px; }
  .bar .logo img { width: 166px; height: auto; left: -16px; top: -14px; }
  .bar #open-basket { min-width: 0; height: 44px; padding-inline: 10px; font-size: 13px; }
  .bar .header-actions { gap: 7px; }
  .bar.has-menu .main-nav { padding-inline: 18px; }
  .contact-strip-inner { min-height: 31px; }
  .contact-strip-inner > span:last-child { justify-content: space-between; gap: 9px; width: 100%; }
  .contact-strip-inner a { font-size: 11px; }
  .home-page .hero { background: #f5f8f2; color: #182f24; }
  .home-page .hero::after { content: none; }
  .hero-mobile-visual { display: block; height: clamp(205px,61vw,330px); overflow: hidden; background: #102f23; }
  .hero-mobile-visual img { display: block; width: 155%; max-width: none; height: 100%; object-fit: cover; object-position: right center; transform: translateX(-35%); }
  .hero-frame { display: block; min-height: 0; padding-block: 23px 25px; }
  .home-page .hero-copy { width: 100%; }
  .home-page .hero h1 { max-width: 22ch; font-size: clamp(29px,7.9vw,39px); color: #18392a; }
  .home-page .hero .eyebrow { display: none; }
  .home-page .hero-lead { margin: 12px 0 18px; color: #4a6052; font-size: 16px; line-height: 1.5; }
  .home-page .hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .home-page .hero-actions .secondary { border-color: #b6cbb9; background: white; color: var(--green); }
  .home-page .hero-actions .secondary:hover { background: #e7efe4; }
  .home-page .hero-note { color: #596c5e; font-size: 11px; margin-top: 12px; }
  .home-directions .direction-grid { grid-template-columns: minmax(0,1fr); row-gap: 12px; }
  .home-directions .direction {
    grid-row: auto; grid-template-rows: auto 1fr auto; grid-template-columns: 108px minmax(0,1fr);
    grid-template-areas: "photo title" "photo links" "photo more"; margin-top: 0;
  }
  .home-directions .direction:nth-child(n+3) { margin-top: 0; }
  .home-directions .direction[data-key] .direction-photo { grid-area: photo; height: 100%; min-height: 170px; padding: 9px; border: 0; border-right: 1px solid #e0e6dc; }
  .home-directions .direction h2 { grid-area: title; margin: 14px 13px 7px; font-size: 19px; }
  .home-directions .direction-links { grid-area: links; margin: 0 13px 8px; gap: 2px; font-size: 13px; line-height: 1.4; }
  .home-directions .direction-open { grid-area: more; margin-inline: 13px; min-height: 41px; font-size: 13px; }
  .home-directory-heading { flex-direction: row; align-items: end; gap: 15px; }
  .home-directions #main-title { font-size: 26px; }
  .home-catalog-link { font-size: 13px; }
}
@media (max-width:359px) {
  .bar .logo { width: 108px; height: 46px; }
  .bar .logo img { width: 139px; top: -12px; left: -14px; }
  .bar { padding-inline: 12px; }
  .bar .header-actions { gap: 5px; }
  .bar #open-basket { padding-inline: 7px; font-size: 12px; }
  .home-directions .direction { grid-template-columns: 85px minmax(0,1fr); }
  .home-directions .direction h2 { font-size: 18px; }
}
@media (min-width:651px) {
  .home-directions .direction[data-key=security] {
    grid-column: 1 / -1; grid-row: auto; grid-template-columns: 210px minmax(0,1fr);
    grid-template-rows: auto 1fr auto; grid-template-areas: "photo title" "photo links" "photo more";
  }
  .home-directions .direction[data-key=security] .direction-photo {
    grid-area: photo; height: 100%; min-height: 190px; padding: 20px;
    border-bottom: 0; border-right: 1px solid #e0e6dc;
  }
  .home-directions .direction[data-key=security] h2 { grid-area: title; }
  .home-directions .direction[data-key=security] .direction-links { grid-area: links; }
  .home-directions .direction[data-key=security] .direction-open { grid-area: more; }
}
@media (prefers-reduced-motion:reduce) {
  .home-directions .direction { transition: none; }
}
