/* =========================================================
   Home banner: full-width photo with a deep-green overlay
   Photo: the <img class="hb-photo"> in index.html
   ========================================================= */
.hb { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: min(680px, calc(100vh - var(--header-h))); padding: 72px 0; color: #fff; background: var(--primary); }
.hb-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; -webkit-user-drag: none; user-select: none; }
.hb::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 48, 37, .86) 0%, rgba(3, 86, 67, .72) 40%, rgba(3, 86, 67, .22) 66%, rgba(3, 86, 67, 0) 85%); }
.hb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(2, 48, 37, .25), transparent); }
.hb-inner { position: relative; }
.hb-copy { max-width: 620px; }
.hb-eyebrow { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent); }
.hb-title { margin: 16px 0 0; text-shadow: 0 2px 18px rgba(2, 40, 31, .35); font-family: var(--font-head); font-weight: 700; font-size: clamp(36px, 4.1vw, 58px); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.hb-title span { display: inline; }
.hb-title em { position: relative; z-index: 0; display: inline-block; font-style: normal; color: var(--color-accent-soft); white-space: nowrap; }
.hb-title em::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .04em; height: .28em; border-radius: 6px; background: rgba(255, 192, 0, .38); transform-origin: left; transition: transform .9s cubic-bezier(.22, 1, .36, 1) .9s; }
.hb-text { max-width: 560px; margin: 20px 0 0; text-shadow: 0 1px 10px rgba(2, 40, 31, .4); font-size: 17.5px; line-height: 1.7; color: rgba(255, 255, 255, .86); }
.hb-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hb-actions .btn { height: 52px; padding: 0 28px; }
.hb-actions .btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.hb-btn-main { background: var(--color-accent); color: var(--primary); box-shadow: none; } /* no yellow glow */
.hb-btn-main:hover { background: #ffcb2e; transform: translateY(-2px); }
.hb-btn-main:hover svg { transform: translateX(3px); }
.hb-btn-line { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .04); }
.hb-btn-line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }
.hb a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.hb-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 60px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); }
.hb-facts b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--color-accent-soft); }
.hb-facts span { font-size: 13.5px; color: rgba(255, 255, 255, .75); }

/* arrival: the photo settles, then the words come up one after another */
.js .hb-photo { animation: hbSettle 2.2s cubic-bezier(.22, 1, .36, 1) both; }
.js .hb-copy > * { animation: hbUp .8s cubic-bezier(.22, 1, .36, 1) both; }
.js .hb-copy > :nth-child(1) { animation-delay: .15s; }
.js .hb-copy > :nth-child(2) { animation-delay: .28s; }
.js .hb-copy > :nth-child(3) { animation-delay: .44s; }
.js .hb-copy > :nth-child(4) { animation-delay: .56s; }
.js .hb-copy > :nth-child(5) { animation-delay: .7s; }
.js .hb-title em::after { animation: hbMark .9s cubic-bezier(.22, 1, .36, 1) 1s both; }
@keyframes hbSettle { from { transform: scale(1.08); } }
@keyframes hbUp { from { opacity: 0; transform: translateY(22px); } }
@keyframes hbMark { from { transform: scaleX(0); } }

/* the home page is shown at 80% on desktop; keep the banner text at the same visual size as before */
@media (min-width: 1000px) {
  /* the banner fills the first screen, so the next section starts only when the visitor scrolls */
  .page-home main .hb { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: 58px 0; }
  .page-home main .hb-copy { max-width: 520px; }
  .page-home main .hb-eyebrow { font-size: 11px; }
  .page-home main .hb-title { margin-top: 13px; font-size: clamp(32px, 3.3vw, 46px); }
  .page-home main .hb-text { max-width: 470px; margin-top: 16px; font-size: 14.5px; }
  .page-home main .hb-actions { gap: 12px; margin-top: 24px; }
  .page-home main .hb-actions .btn { height: 42px; padding: 0 22px; font-size: 13px; }
  .page-home main .hb-actions .btn svg { width: 15px; height: 15px; }
  .page-home main .hb-btn-line { border: 1.5px solid rgba(255, 255, 255, .6); }
  .page-home main .hb-btn-line:hover { border-color: #fff; }
  .page-home main .hb-facts { gap: 12px 32px; width: max-content; max-width: min(820px, calc(100vw - 120px)); margin-top: 64px; padding-top: 18px; }
  .page-home main .hb-facts b { font-size: 17px; }
  .page-home main .hb-facts span { font-size: 11.5px; }
}

/* tablet: photo on top area, text over a stronger overlay */
@media (max-width: 999px) {
  .hb { min-height: 0; padding: 64px 0 56px; }
  .hb-photo { object-position: 72% 40%; }
  .hb::before { background: linear-gradient(90deg, rgba(2, 48, 37, .88) 0%, rgba(3, 86, 67, .74) 55%, rgba(3, 86, 67, .34) 100%); }
}

/* phone: the photo shows at the top, the text sits on solid green below it */
@media (max-width: 640px) {
  .hb { display: block; padding: 0 0 44px; }
  .hb-photo { position: relative; z-index: 0; display: block; height: 240px; object-position: 62% 35%; }
  .hb::before { inset: 0 0 auto; height: 240px; z-index: 1; background: linear-gradient(180deg, rgba(3, 86, 67, 0) 40%, rgba(3, 86, 67, 1) 100%); }
  .hb::after { display: none; }
  .hb-inner { z-index: 2; margin-top: -40px; }
  .hb-title { font-size: 33px; }
  .hb-text { font-size: 16px; }
  .hb-actions .btn { width: 100%; justify-content: center; height: 50px; }
  .hb-facts { gap: 14px 22px; margin-top: 44px; }
  .hb-facts li { flex: 1 1 40%; }
  .hb-facts b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hb-photo, .js .hb-copy > *, .js .hb-title em::after { animation: none; }
}
