/* GRS theme — header. Extracted 1:1 from reference/final-design.html (do not change values). */
.hero-shell{padding:10px 10px 0}
.hero{position:relative;border-radius:22px 22px 0 0;overflow:hidden;color:#fff;isolation:isolate}
.hero::before{content:"";position:absolute;inset:-30px;z-index:-2;background:url(../img/hero-bg.webp) center/cover;filter:blur(6px)}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.66) 55%,rgba(0,0,0,.55) 100%)}

.nav{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0}
.menu{display:flex;gap:26px;font-size:15px;font-weight:500;white-space:nowrap}
.menu a:hover{color:var(--green)}
.menu .dd::after{content:"";display:inline-block;margin-left:7px;border:4.5px solid transparent;border-top:5px solid currentColor;transform:translateY(3px)}
.nav-r{display:flex;align-items:center;gap:14px}
.phone{display:flex;align-items:center;gap:10px;border:2px solid #fff;border-radius:999px;padding:5px 16px 5px 5px;font-weight:600;font-size:15px;white-space:nowrap;background:rgba(0,0,0,.25)}
.phone b{width:30px;height:30px;border-radius:50%;background:var(--btn);display:grid;place-items:center}
.phone b svg{width:15px;height:15px}
.nav .btn-green{background:var(--green-d);padding:14px 22px;font-size:15px}
.burger{display:none;width:44px;height:44px;border:0;background:none;flex-direction:column;gap:6px;align-items:center;justify-content:center}
.burger span{width:24px;height:2px;background:#fff}
.hero .btn{font-size:15px;padding:16px 20px}

/* responsive (from the reference RESPONSIVE block, original order) */
@media (max-width:1560px){
  .phone{display:none}
}
@media (max-width:1180px){
  .menu{gap:18px;font-size:14px}
}
@media (max-width:1000px){
  .menu,.nav .btn-green{display:none}
  .burger{display:flex}
}
@media (max-width:720px){
  .hero-shell{padding:6px 6px 0}
  .nav{padding:18px 0}
}

/* ===== Theme additions (not in the reference; only new elements/states) ===== */
.menu{list-style:none}
.menu>li{position:relative}
.logo img{display:block;max-height:44px;width:auto}
/* hero background / overlay overrides from Theme Options */
.hero[style*="--grs-hero-bg"]::before{background-image:var(--grs-hero-bg)}
.hero[style*="--grs-ov"]::after{background:linear-gradient(90deg,rgba(0,0,0,calc(.82*var(--grs-ov))) 0%,rgba(0,0,0,calc(.66*var(--grs-ov))) 55%,rgba(0,0,0,calc(.55*var(--grs-ov))) 100%)}
/* header-only card (inner pages): let dropdowns overflow, clip the blurred background instead */
.grs-header-shell{position:relative;z-index:20}
.grs-header-shell .hero{overflow:visible;overflow-x:clip}
.grs-header-shell .hero::before{clip-path:inset(30px round 22px 22px 0 0)}
.grs-header-shell .hero::after{border-radius:22px 22px 0 0}
/* dropdowns */
.menu .sub-menu{list-style:none;position:absolute;left:-16px;top:100%;margin-top:14px;min-width:280px;padding:10px;background:#fff;color:#111;border-radius:14px;box-shadow:0 24px 50px -20px rgba(0,0,0,.55);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s,visibility .2s;z-index:50;white-space:normal;font-size:14px}
.menu .sub-menu::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px}
.menu li:hover>.sub-menu,.menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.menu li.is-closed>.sub-menu{opacity:0;visibility:hidden}
.menu .sub-menu a{display:block;padding:9px 12px;border-radius:9px}
.menu .sub-menu a:hover,.menu .sub-menu a:focus-visible{background:#E7F5EC;color:var(--green-d)}
.menu .sub-menu .sub-menu{left:100%;top:-10px;margin:0 0 0 10px}
/* sticky header (optional) */
.nav.is-stuck{position:fixed;top:0;left:0;right:0;z-index:900;padding:12px max(24px,calc((100vw - 1192px)/2));background:rgba(10,15,12,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 10px 30px -15px rgba(0,0,0,.6);animation:grs-drop .25s ease-out}
.admin-bar .nav.is-stuck{top:32px}
@keyframes grs-drop{from{transform:translateY(-100%)}to{transform:none}}
/* mobile off-canvas menu */
.grs-mm{position:fixed;inset:0;z-index:9999;visibility:hidden;pointer-events:none}
.grs-mm.is-open{visibility:visible;pointer-events:auto}
.grs-mm__overlay{position:absolute;inset:0;background:rgba(0,0,0,.55);opacity:0;transition:opacity .25s}
.grs-mm.is-open .grs-mm__overlay{opacity:1}
.grs-mm__panel{position:absolute;top:0;right:0;bottom:0;width:min(380px,88vw);display:flex;flex-direction:column;gap:22px;padding:22px 22px 28px;overflow-y:auto;color:#fff;background:radial-gradient(500px 300px at 85% 0%,rgba(34,197,94,.14),transparent 60%),linear-gradient(135deg,var(--dark),var(--dark-2));transform:translateX(100%);transition:transform .3s ease}
.grs-mm.is-open .grs-mm__panel{transform:none}
.grs-mm__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.grs-mm__top .logo{min-width:0;white-space:normal;line-height:1.2;font-size:17px}
.grs-mm__close{flex:none;width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:none;color:#fff;font-size:26px;line-height:1;cursor:pointer;display:grid;place-items:center}
.grs-mm__menu,.grs-mm__menu ul{list-style:none}
.grs-mm__menu>li{border-bottom:1px solid rgba(255,255,255,.1)}
.grs-mm__menu a{display:block;padding:13px 4px;font-size:17px;font-weight:500}
.grs-mm__menu ul{padding:0 0 10px 14px}
.grs-mm__menu ul a{padding:8px 4px;font-size:15px;font-weight:400;color:rgba(255,255,255,.75)}
.grs-mm__menu a:hover,.grs-mm__menu a:focus-visible{color:var(--green)}
.grs-mm__foot{margin-top:auto;display:grid;gap:12px}
.grs-mm__foot .phone{display:flex;justify-content:flex-start;width:max-content}
.grs-mm__foot .btn{justify-content:center;background:var(--btn)}
html.grs-mm-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.grs-mm__panel,.grs-mm__overlay,.menu .sub-menu{transition:none}.nav.is-stuck{animation:none}}
@media (max-width:1000px){.menu-nav{display:none}}
@media (max-width:782px){.admin-bar .nav.is-stuck{top:46px}}
/* current page in the header menu (inner pages; never on the homepage) — same rule as reference inner pages */
.menu a.is-active{color:var(--green)}
/* 2026-11-23 (user request): with the shorter approved menu the phone pill fits down to 1101px, so show it on
   normal laptops (1280–1536) instead of only ≥1561px as in the reference. Below 1101px the burger menu has it. */
@media (min-width:1101px) and (max-width:1560px){.nav-r .phone{display:flex}}
/* ≤380px phones (e.g. 360px Android): the logo text pushed the burger past the screen edge (also in the reference) */
@media (max-width:380px){.nav .logo{font-size:15px;gap:8px}}
