/* Header: one floating bar. Right: menu (burger that turns into an X). Centre: horizontal logo, mark beside
   the name. Left: the burning-plank call to action. The menu opens a panel that grows out of the button,
   links sliding in one after another, each with its own icon.
   The old in-flow <header> stays as an empty spacer (.hdr-spacer) so the hero below does not move. */
.hdr-spacer{pointer-events:none}
.hd{--hd-bg:#2c4410;--hd-ink:#fff6dc;--hd-soft:#c9d3a0;--hd-lime:#b9d870;--hd-gap:max(12px,calc((100vw - 1320px) / 2));
  position:fixed;z-index:60;top:12px;left:var(--hd-gap);right:var(--hd-gap);font-family:Heebo,system-ui,sans-serif;direction:rtl;
  animation:hd-in .7s .15s cubic-bezier(.22,1,.36,1) both}
@keyframes hd-in{from{opacity:0;translate:0 -24px}to{opacity:1;translate:0 0}}
.hd-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;height:66px;padding:0 12px;border-radius:22px;
  background:color-mix(in srgb,var(--hd-bg) 88%,transparent);-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);
  border:1px solid #d6e69633;box-shadow:0 10px 30px #1a2a0633,inset 0 1px 0 #ffffff14;transition:height .3s cubic-bezier(.22,1,.36,1),background .3s,box-shadow .3s}
.hd.scrolled .hd-bar{height:58px;background:color-mix(in srgb,var(--hd-bg) 97%,transparent);box-shadow:0 8px 24px #1a2a064d}

/* menu button (right) */
.hd-menu{justify-self:start;display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 12px 0 14px;border:1px solid #d6e69640;border-radius:14px;
  background:#ffffff12;color:var(--hd-ink);font:700 15px Heebo,sans-serif;cursor:pointer;transition:background .2s,scale .1s}
.hd-menu:hover{background:#ffffff22}
.hd-menu:active{scale:.95}
.hd-burger{position:relative;width:22px;height:16px;flex:none}
.hd-burger i{position:absolute;right:0;height:2.4px;border-radius:2px;background:currentColor;transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .2s,width .3s,top .35s cubic-bezier(.22,1,.36,1)}
.hd-burger i:nth-child(1){top:0;width:100%}
.hd-burger i:nth-child(2){top:6.8px;width:68%}
.hd-burger i:nth-child(3){top:13.6px;width:100%}
.hd-menu:hover .hd-burger i:nth-child(2){width:100%}
.hd.open .hd-burger i:nth-child(1){top:6.8px;transform:rotate(45deg)}
.hd.open .hd-burger i:nth-child(2){opacity:0;width:0}
.hd.open .hd-burger i:nth-child(3){top:6.8px;transform:rotate(-45deg)}

/* logo (centre): mark beside the name */
.hd-brand{display:flex;align-items:center;gap:10px;color:var(--hd-ink);text-decoration:none;line-height:1}
.hd-mark{width:46px;height:32px;flex:none;color:var(--hd-lime);transition:rotate .5s cubic-bezier(.34,1.6,.5,1)}
.hd-brand:hover .hd-mark{rotate:-8deg}
.hd-name{display:grid;gap:4px}
.hd-name strong{font-size:25px;font-weight:900;letter-spacing:-.6px;white-space:nowrap}
.hd-name small{font-size:11px;font-weight:600;color:var(--hd-soft);white-space:nowrap}

/* call (left): a small square of wood with a phone icon; it rings now and then */
.hd-call{justify-self:end;position:relative;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:13px;cursor:pointer;color:#3a1f08;
  background:url('assets/site/sign.webp') 50% 50%/330% 190% no-repeat,#a8743f;
  box-shadow:inset 0 1px 0 #ffe7b866,inset 0 -3px 0 #4a2a1066,inset 0 0 0 1px #5a33144d,0 4px 10px #1a0e0459;
  transition:translate .2s cubic-bezier(.22,1,.36,1),box-shadow .2s,scale .1s}
.hd-call svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #f6dcaa99);
  transform-origin:50% 50%;animation:hd-ring 5s 2.5s ease-in-out infinite}
.hd-call:hover{translate:0 -2px;box-shadow:inset 0 1px 0 #ffe7b866,inset 0 -3px 0 #4a2a1066,inset 0 0 0 1px #5a33144d,0 8px 16px #1a0e0466}
.hd-call:hover svg{animation:hd-ring .9s ease-in-out}
.hd-call:active{scale:.93}
@keyframes hd-ring{0%,14%,100%{rotate:0deg}2%,6%,10%{rotate:-14deg}4%,8%,12%{rotate:14deg}}

/* the menu panel: grows out of the menu button, links slide in one by one */
.hd .hd-nav{position:absolute;top:calc(100% + 10px);right:0;left:auto;display:grid;gap:4px;width:min(340px,100%);margin:0;padding:10px;
  border-radius:20px;background:var(--hd-bg);border:1px solid #d6e69633;box-shadow:0 18px 40px #1a2a0659;inset-inline-end:auto;
  font-size:17px;font-weight:600;flex-wrap:nowrap;justify-content:stretch;
  clip-path:circle(0 at calc(100% - 40px) -30px);visibility:hidden;transition:clip-path .45s cubic-bezier(.65,0,.35,1),visibility 0s .45s}
.hd.open .hd-nav{clip-path:circle(150% at calc(100% - 40px) -30px);visibility:visible;transition:clip-path .55s cubic-bezier(.22,1,.36,1)}
.hd .hd-nav a{position:relative;display:flex;align-items:center;gap:14px;min-height:54px;padding:0 10px;border-radius:14px;color:#eef2d6;text-decoration:none;white-space:nowrap;
  opacity:0;translate:28px 0;transition:opacity .25s,translate .4s cubic-bezier(.22,1,.36,1),background .2s}
.hd .hd-nav a::after{content:none}
.hd.open .hd-nav a{opacity:1;translate:0 0;transition-delay:calc(.1s + var(--n) * 55ms),calc(.1s + var(--n) * 55ms),0s}
.hd .hd-nav a:hover,.hd .hd-nav a:focus-visible{background:#ffffff14;color:#fff}
.hd-ic{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:linear-gradient(160deg,#4f6f1c,#3a5512);border:1px solid #b9d87040;color:var(--hd-lime);
  box-shadow:inset 0 1px 0 #ffffff1a;transition:background .2s,color .2s,rotate .4s cubic-bezier(.34,1.6,.5,1)}
.hd-ic svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hd .hd-nav a:hover .hd-ic{background:linear-gradient(160deg,#c9e277,#9dbd45);color:#22380a;rotate:-8deg}
.hd-lbl{flex:1}
.hd-chev{width:18px;height:18px;fill:none;stroke:var(--hd-soft);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.55;transition:translate .2s,opacity .2s}
.hd .hd-nav a:hover .hd-chev{opacity:1;translate:-4px 0}
.hd :focus-visible{outline:2px solid var(--hd-lime);outline-offset:3px}

/* phones: compact bar, no menu label, smaller logo and plank */
@media(max-width:600px){
  .hd{top:10px}
  .hd-bar{height:60px;gap:6px;padding:0 8px;border-radius:18px}
  .hd.scrolled .hd-bar{height:54px}
  .hd-menu{width:42px;height:42px;padding:0;justify-content:center;border-radius:13px}
  .hd-menu-lbl{display:none}
  .hd-burger{width:20px}
  .hd-mark{width:32px;height:23px}
  .hd-brand{gap:6px}
  .hd-name strong{font-size:19px;letter-spacing:-.4px}
  .hd-name small{display:none}
  .hd-call{width:42px;height:42px;border-radius:12px}
  .hd-call svg{width:21px;height:21px}
  .hd .hd-nav{width:100%}
}
@media(max-width:350px){.hd-name strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){.hd,.hd *{animation:none!important;transition:none!important}}

/* anchors land below the floating bar */
html{scroll-padding-top:96px}
