/* Calculator mega menu (desktop). Opens on hover/keyboard focus of the "Calculator" nav link, 4 calculators per row.
   The mobile hamburger menu (<=1200px) keeps its normal single list. */
@media(min-width:1201px){body .nav-inner{position:relative}}
body .nav-menu li.has-mega{position:static}
body .nav-menu li.has-mega>a::after{content:"";display:inline-block;width:6px;height:6px;margin:0 0 3px 7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s}
body .nav-menu li.has-mega:hover>a::after,body .nav-menu li.has-mega:focus-within>a::after{transform:rotate(225deg) translate(-1px,-1px)}
body .nav-menu li.has-mega:hover>a{background:#fff2b8}
@media(max-width:1200px){body .nav-menu li.has-mega:hover>a{background:none}}

body .nav-menu .mg{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%,10px);width:min(1080px,calc(100vw - 40px));background:#fff;border:2px solid #101223;border-radius:28px;box-shadow:8px 8px 0 #ffc400;padding:20px 22px 18px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease .4s,transform .18s ease .4s,visibility 0s linear .58s;z-index:80;text-align:left;cursor:default}
/* invisible bridge so the menu does not close while the pointer travels from the link down to the panel */
body .nav-menu .mg::before{content:"";position:absolute;left:0;right:0;top:-44px;height:44px}
body .nav-menu li.has-mega:hover>.mg,body .nav-menu li.has-mega:focus-within>.mg{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);transition-delay:0s,0s,0s}

body .nav-menu .mg-h{display:flex;align-items:center;justify-content:space-between;margin:0 2px 14px}
body .nav-menu .mg a.mg-all{padding:7px 14px !important;border-radius:99px !important;background:#101223 !important;color:#ffc400 !important;font:700 12.5px Inter,sans-serif !important;white-space:nowrap;transition:.2s}
body .nav-menu .mg a.mg-all:hover{background:#ffc400 !important;color:#101223 !important}
body .nav-menu .mg-g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body .nav-menu .mg a.mg-i{display:flex;align-items:center;gap:11px;padding:10px 13px !important;border:1.5px solid #101223;border-radius:18px !important;background:#fbf8f1 !important;color:#101223 !important;font:600 13.5px/1.25 Inter,sans-serif !important;white-space:normal !important;transition:.2s}
body .nav-menu .mg a.mg-i:hover{background:#fff !important;transform:translate(-2px,-2px);box-shadow:3px 3px 0 #ffc400;color:#101223 !important}
body .nav-menu .mg-ic{width:34px;height:34px;flex-shrink:0;border-radius:50%;background:#ffc400;border:1.5px solid #101223;display:flex;align-items:center;justify-content:center;color:#101223}
body .nav-menu .mg-ic svg{width:17px;height:17px}
body .nav-menu .mg-n{min-width:0}

/* the hamburger menu below 1200px: plain list, no mega panel */
/* Services mega menu: title row, three labelled groups, quote strip */
body .nav-menu .mg-t{font:700 12px Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#101223}
body .nav-menu .mg-gl{font:700 11px Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#7a7d98;margin:16px 2px 8px}
body .nav-menu .mg-h+.mg-gl{margin-top:2px}
body .nav-menu .mg-sc{max-height:calc(100vh - 150px);overflow-y:auto;overscroll-behavior:contain}
body .nav-menu .mg-ft{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:12px 16px;border-radius:18px;background:#101223;color:#fff;font:500 13.5px/1.4 Inter,sans-serif}
body .nav-menu .mg a.mg-cta{padding:9px 18px !important;border-radius:99px !important;background:#ffc400 !important;color:#101223 !important;font:700 13px Inter,sans-serif !important;white-space:nowrap;transition:.2s}
body .nav-menu .mg a.mg-cta:hover{background:#fff !important}

/* Shop mega menu: category chips + product tiles with a thumbnail */
body .nav-menu .mg-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
body .nav-menu .mg a.mg-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 14px !important;border:1.5px solid #101223;border-radius:99px !important;background:#fff !important;color:#101223 !important;font:700 12.5px Inter,sans-serif !important;white-space:nowrap;transition:.2s}
body .nav-menu .mg a.mg-chip:hover{background:#ffc400 !important}
body .nav-menu .mg-chip i{font-style:normal;font-weight:700;font-size:11px;background:#101223;color:#ffc400;border-radius:99px;padding:1px 7px}
body .nav-menu .mg-th{width:46px;height:46px;flex-shrink:0;border-radius:14px;border:1.5px solid #101223;background:#ece7da;overflow:hidden;display:block}
body .nav-menu .mg-th img{display:block;width:100%;height:100%;object-fit:cover}
body .nav-menu .mg-pt{display:flex;flex-direction:column;gap:3px;min-width:0}
body .nav-menu .mg-pi .mg-n{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600}
body .nav-menu .mg-pr{font:700 12px Inter,sans-serif;color:#5b5e78}
body .nav-menu .mg-pr s{font-weight:500;color:#9a9db3;margin-left:3px}
body .nav-menu .mg a.mg-pi{padding:8px 12px !important}
body .nav-menu .mg-gl .mg-gn{font-style:normal;margin-left:6px;background:#101223;color:#ffc400;border-radius:99px;padding:1px 7px;font-size:10.5px;letter-spacing:0}
body .nav-menu .mg-empty{margin:6px 2px 4px;color:#5b5e78;font:500 14px Inter,sans-serif}

/* Products menu is long (25 tiles): slightly tighter tiles on desktop so it fits one screen */
@media(min-width:1201px){
body .nav-menu .mg-prod .mg-g{gap:8px}
body .nav-menu .mg-prod .mg-gl{margin:11px 2px 6px}
body .nav-menu .mg-prod .mg-h+.mg-gl{margin-top:0}
body .nav-menu .mg-prod .mg-h{margin-bottom:10px}
body .nav-menu .mg-prod .mg-th{width:36px;height:36px;border-radius:11px}
body .nav-menu .mg-prod a.mg-pi{padding:6px 11px !important;gap:10px}
}

/* Educational / Business switch (same idea as the switch on the calculator page) */
body .nav-menu .mg-sw{display:inline-flex;align-items:center;gap:10px}
body .nav-menu .mg-sl{border:0;background:none;padding:6px 4px;cursor:pointer;font:600 13.5px Inter,sans-serif;color:#9a9db3;transition:color .2s}
body .nav-menu .mg-sl.on{color:#101223;font-weight:800}
body .nav-menu .mg-tg{position:relative;width:46px;height:26px;border-radius:99px;border:1.5px solid #101223;background:#ffc400;cursor:pointer;padding:0;transition:background .2s}
body .nav-menu .mg-tg i{position:absolute;top:2px;left:2px;width:19px;height:19px;border-radius:50%;background:#101223;transition:transform .2s}
body .nav-menu .mg[data-mode="b"] .mg-tg{background:#101223}
body .nav-menu .mg[data-mode="b"] .mg-tg i{transform:translateX(20px);background:#ffc400}
body .nav-menu .mg-i{order:var(--oe)}
body .nav-menu .mg[data-mode="b"] .mg-i{order:var(--ob)}
body .nav-menu .mg[data-mode="e"] .mg-i[data-g="b"],body .nav-menu .mg[data-mode="b"] .mg-i[data-g="e"]{display:none !important}

/* mobile / tablet hamburger menu: Calculator row gets a chevron that opens an inline dropdown (2 per row) */
body .nav-menu .mg-m{display:none}
@media(max-width:1200px){
body .nav-menu li.has-mega>a::after{display:none}
body .nav-menu.open{max-height:calc(100vh - 96px);overflow-y:auto;-webkit-overflow-scrolling:touch}
body .nav-menu.open li.has-mega{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;width:100%;align-self:start}
body .nav-menu.open li.has-mega>a{flex:1;min-width:0}
body .nav-menu .mg-m{display:flex;align-items:center;justify-content:center;width:38px;height:34px;margin-left:6px;border:1.5px solid #101223;border-radius:99px;background:#ffc400;color:#101223;cursor:pointer;padding:0;transition:.2s}
body .nav-menu .mg-m svg{width:16px;height:16px;transition:transform .2s}
body .nav-menu li.m-open>.mg-m{background:#101223;color:#ffc400}
body .nav-menu li.m-open>.mg-m svg{transform:rotate(180deg)}
body .nav-menu .mg{display:none !important;position:static;transform:none;opacity:1;visibility:visible;pointer-events:auto;width:100%;flex-basis:100%;margin-top:8px;padding:12px;border:1.5px solid #101223;border-radius:20px;box-shadow:3px 3px 0 #ffc400;background:#fbf8f1;transition:none}
body .nav-menu .mg::before{display:none}
body .nav-menu li.has-mega:hover>.mg,body .nav-menu li.has-mega:focus-within>.mg{transform:none;left:auto;top:auto}
body .nav-menu li.m-open>.mg{display:block !important}
body .nav-menu .mg-h{flex-direction:column;align-items:stretch;gap:10px;margin:0 0 10px}
body .nav-menu .mg-sw{justify-content:center}
body .nav-menu .mg a.mg-all{text-align:center}
body .nav-menu .mg-g{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body .nav-menu .mg a.mg-i{padding:8px 9px !important;gap:8px;font-size:12.5px !important;background:#fff !important;border-radius:14px !important}
body .nav-menu .mg-ic{width:28px;height:28px}
body .nav-menu .mg-ic svg{width:14px;height:14px}
}

/* ===== hamburger menu (<=1200px): two tiles per row, icon + label ===== */
@media(max-width:1200px){
body .nav-menu.open{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px !important;align-items:stretch;padding:12px !important;background:#fff !important;border:1.5px solid #101223 !important;border-radius:24px !important;box-shadow:5px 5px 0 #ffc400 !important;max-height:calc(100vh - 96px);overflow-y:auto;-webkit-overflow-scrolling:touch;text-align:left}
body .nav-menu.open>li{width:auto;min-width:0;order:0}
body .nav-menu.open>li>a{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 13px;border:1.5px solid #101223;border-radius:16px;background:#fbf8f1;color:#101223;font:600 13.5px/1.2 Inter,sans-serif;white-space:nowrap;text-align:left;transition:.2s}
body .nav-menu.open>li>a::before{content:"";width:19px;height:19px;flex-shrink:0;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat;--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='4'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a:hover,body .nav-menu.open>li>a:active{background:#fff2b8 !important}
body .nav-menu.open>li>a.active{background:#ffc400 !important}
body .nav-menu.open>li.has-mega{grid-column:1/-1;order:2}
body .nav-menu.open>li:has(>a[href*="order-quotation"]){order:1}
body .nav-menu.open>li>a[href*="order-quotation"]{justify-content:center;background:#101223 !important;color:#ffc400}
body .nav-menu.open>li>a[href="/"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2011l9-8%209%208'/%3E%3Cpath%20d='M5%2010v10h14V10'/%3E%3Cpath%20d='M10%2020v-6h4v6'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="about"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M12%2011v5M12%208h.01'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="services"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%209V3h10v6'/%3E%3Crect%20x='3'%20y='9'%20width='18'%20height='8'%20rx='2'/%3E%3Cpath%20d='M7%2014h10v7H7z'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="samples"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1.5'/%3E%3Crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1.5'/%3E%3Crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1.5'/%3E%3Crect%20x='14'%20y='14'%20width='7'%20height='7'%20rx='1.5'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="portfolio"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='4'%20width='18'%20height='16'%20rx='2.5'/%3E%3Ccircle%20cx='9'%20cy='10'%20r='1.8'/%3E%3Cpath%20d='M21%2016l-5-5-8%208'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="shop"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%208h14l-1%2012H6z'/%3E%3Cpath%20d='M9%208V6a3%203%200%20016%200v2'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="blog"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2020l1-4L16.5%204.5a2.1%202.1%200%20013%203L8%2019z'/%3E%3Cpath%20d='M14%207l3%203'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="contact"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%204h4l2%205-2.5%201.5a11%2011%200%20005%205L15%2013l5%202v4a2%202%200%2001-2%202A16%2016%200%20013%206a2%202%200%20012-2z'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="calculator"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='5'%20y='3'%20width='14'%20height='18'%20rx='2.5'/%3E%3Cpath%20d='M8%207h8M8%2012h.01M12%2012h.01M16%2012h.01M8%2016h.01M12%2016h.01M16%2016h.01'/%3E%3C/svg%3E")}
body .nav-menu.open>li>a[href*="order-quotation"]::before{--ic:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='5'%20y='4'%20width='14'%20height='17'%20rx='2'/%3E%3Cpath%20d='M9%204h6v3H9zM9%2012h6M9%2016h6'/%3E%3C/svg%3E")}
body .nav-menu .mg-m{align-self:flex-start;height:46px;width:48px;margin-left:8px;border-radius:16px}
body .nav-menu .mg-ft{flex-direction:column;align-items:stretch;text-align:center;gap:10px}
body .nav-menu .mg-th{width:28px;height:28px;border-radius:9px}
body .nav-menu .mg a.mg-pi{padding:7px 7px !important;gap:6px}
body .nav-menu .mg-pi .mg-n{font-size:11px;line-height:1.25;-webkit-line-clamp:3;overflow-wrap:anywhere}
body .nav-menu .mg-pr{font-size:11.5px}
body .nav-menu .mg-pr s{display:none}
body .nav-menu .mg-chips{gap:6px}
body .nav-menu .mg-gl{margin-top:12px}
body .nav-menu .mg-sc{max-height:none;overflow:visible}
}
