/* Header, mobile slide-in menu, mobile bottom bar, footer extras.
   Colours come from Ekansh > Settings (CSS variables printed in the page). Selectors start with
   .site-header / html so they win over the page stylesheets. */

/* ---------- Header ---------- */
html .site-header{background:var(--hd-bg,rgba(255,255,255,.92))}
html .site-header .logo{color:var(--hd-text,#1d1d1f);display:inline-flex;align-items:center;gap:.35em;flex:0 0 auto;white-space:nowrap}
html .site-header .logo-img{max-height:var(--hd-logo-h,44px);width:auto;display:block}
html .site-header .logo.has-m .logo-m{display:none}
html .site-header .menu{color:var(--hd-link,#5d6370)}
html .site-header .menu a:hover,html .site-header .menu .current-menu-item>a,html .site-header .menu a[aria-current="page"]{color:var(--hd-hover,#f76707)}
html .site-header .nav-r{display:flex;align-items:center;gap:12px;flex-shrink:0}
html .site-header .nav-r .tel{font-weight:700;font-size:.92rem;color:var(--hd-text,#1d1d1f);text-decoration:none;white-space:nowrap}
html .site-header .hd-btn{background:var(--hd-btn,#d9480f);color:var(--hd-btn-text,#fff);white-space:nowrap}
html .site-header .hd-btn:hover{filter:brightness(.92)}

/* Hamburger button: hidden on desktop, shown below 992px (also forced by the style block in the page head) */
html .site-header .ekc-burger,.ekc-burger-float{display:none;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;padding:0;margin:0 -6px 0 0;border:0;border-radius:12px;background:transparent;color:var(--hd-burger,#d9480f);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.ekc-burger-float{position:fixed;top:calc(12px + var(--wp-admin--admin-bar--height,0px));right:12px;z-index:9990;background:#fff;box-shadow:0 6px 20px rgba(29,29,31,.2);margin:0}
.ekc-burger-box{position:relative;display:block;width:26px;height:20px}
.ekc-burger-box i{position:absolute;left:0;right:0;height:3px;border-radius:2px;background:currentColor;transition:transform .3s ease,opacity .2s ease,top .3s ease}
.ekc-burger-box i:nth-child(1){top:0}
.ekc-burger-box i:nth-child(2){top:8.5px}
.ekc-burger-box i:nth-child(3){top:17px}
.ekc-burger[aria-expanded="true"] .ekc-burger-box i:nth-child(1){top:8.5px;transform:rotate(45deg)}
.ekc-burger[aria-expanded="true"] .ekc-burger-box i:nth-child(2){opacity:0}
.ekc-burger[aria-expanded="true"] .ekc-burger-box i:nth-child(3){top:8.5px;transform:rotate(-45deg)}
.ekc-burger:focus-visible,.ekc-mm button:focus-visible,.ekc-mm a:focus-visible,.ekc-modal button:focus-visible,.mbar .mb:focus-visible{outline:3px solid var(--orange,#f76707);outline-offset:2px}
@media (max-width:991px){
  html .site-header .menu{display:none}
  html .site-header .ekc-burger,.ekc-burger-float{display:inline-flex}
  html .site-header .logo-img{max-height:var(--hd-logo-h-m,36px)}
  html .site-header .logo.has-m .logo-d{display:none}
  html .site-header .logo.has-m .logo-m{display:block}
}
@media (max-width:620px){html .site-header .nav-r .tel{display:none}}
@media (max-width:520px){html .site-header .hd-btn{display:none}
  /* project page: the "All projects" link keeps only its arrow so the logo and menu button fit */
  html .site-header .back{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:1.3rem}
  html .site-header .back-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media (max-width:420px){html .site-header .logo{font-size:.95rem;letter-spacing:.05em}}
@media (max-width:350px){html .site-header .logo{font-size:.82rem;letter-spacing:.03em}}

/* ---------- Page lock while the menu or a popup is open ---------- */
html.ekc-lock{overflow:hidden}
html.ekc-lock body{position:fixed;left:0;right:0;width:100%;overflow:hidden}

/* ---------- Slide-in menu ---------- */
.ekc-mm-ov{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100000;background:rgba(15,17,21,.58);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s;-webkit-tap-highlight-color:transparent}
.ekc-mm{position:fixed;top:0;bottom:0;left:0;width:var(--mm-w,75%);max-width:100%;z-index:100001;display:flex;flex-direction:column;background:#fff;color:var(--ink,#1d1d1f);transform:translate3d(-104%,0,0);visibility:hidden;transition:transform .36s cubic-bezier(.22,.8,.3,1),visibility 0s linear .36s;box-shadow:14px 0 44px rgba(0,0,0,.2);overscroll-behavior:contain;border-top:4px solid var(--orange-btn,#d9480f)}
.ekc-mm-xf{position:fixed;z-index:100002;top:12px;right:12px;width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:var(--orange-btn,#d9480f);display:grid;place-items:center;padding:0;cursor:pointer;opacity:0;visibility:hidden;transform:scale(.7);transition:opacity .3s ease,transform .3s ease,visibility 0s linear .3s;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.ekc-mm-xf svg{width:24px;height:24px}
html.ekc-mm-open .ekc-mm-ov{opacity:1;visibility:visible;transition:opacity .3s ease,visibility 0s}
html.ekc-mm-open .ekc-mm{transform:translate3d(0,0,0);visibility:visible;transition:transform .36s cubic-bezier(.22,.8,.3,1),visibility 0s}
html.ekc-mm-open .ekc-mm-xf{opacity:1;visibility:visible;transform:scale(1);transition:opacity .3s ease .1s,transform .3s ease .1s,visibility 0s}
.ekc-mm-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 14px 20px;border-bottom:1px solid var(--line,#e6e3dc);flex:0 0 auto}
.ekc-mm-top .logo{color:var(--ink,#1d1d1f);display:inline-flex;align-items:center;gap:.35em;white-space:nowrap;min-width:0}
.ekc-mm-top .logo-img{max-height:var(--hd-logo-h-m,36px);width:auto;display:block;max-width:100%}
.ekc-mm-x{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:50%;background:var(--orange-soft,#fff1e8);color:var(--orange-btn,#d9480f);display:grid;place-items:center;padding:0;cursor:pointer}
.ekc-mm-x svg{width:22px;height:22px}
.ekc-mm-nav{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:6px 0}
.ekc-mm-list,.ekc-mm-subs{list-style:none;margin:0;padding:0}
.ekc-mm-item{border-bottom:1px solid var(--line,#e6e3dc)}
.ekc-mm-row{display:flex;align-items:stretch}
.ekc-mm-row a{flex:1 1 auto;display:block;padding:17px 20px;font-size:1.125rem;font-weight:600;line-height:1.3;color:var(--ink,#1d1d1f);text-decoration:none;border-left:4px solid transparent;-webkit-tap-highlight-color:transparent}
.ekc-mm-row a:hover{color:var(--orange-btn,#d9480f)}
.ekc-mm-item.is-current>.ekc-mm-row a,.ekc-mm-subs .is-current>.ekc-mm-row a{color:var(--orange-btn,#d9480f);background:var(--orange-soft,#fff1e8);border-left-color:var(--orange-btn,#d9480f)}
.ekc-mm-item.is-ancestor>.ekc-mm-row a{color:var(--orange-btn,#d9480f)}
.ekc-mm-tg{flex:0 0 56px;border:0;background:transparent;color:var(--orange-btn,#d9480f);display:grid;place-items:center;padding:0;cursor:pointer;border-left:1px solid var(--line,#e6e3dc)}
.ekc-mm-tg svg{width:22px;height:22px;transition:transform .3s ease}
.is-open>.ekc-mm-row .ekc-mm-tg svg{transform:rotate(180deg)}
.ekc-mm-sub{display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s ease;background:var(--panel,#f7f6f3)}
.ekc-mm-sub>ul{overflow:hidden;min-height:0}
.is-open>.ekc-mm-sub{grid-template-rows:1fr}
.ekc-mm-subs .ekc-mm-item{border-bottom:1px solid var(--line,#e6e3dc)}
.ekc-mm-subs .ekc-mm-item:last-child{border-bottom:0}
.ekc-mm-subs .ekc-mm-row a{padding:13px 20px 13px 36px;font-size:1rem;font-weight:500;color:var(--muted,#5d6370)}
.ekc-mm-foot{flex:0 0 auto;padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line,#e6e3dc);background:#fff}
.ekc-mm-foot .ekc-mm-contact{display:flex;width:100%;min-height:52px;font-size:1rem;border-radius:999px;background:var(--orange-btn,#d9480f);color:#fff;text-decoration:none;justify-content:center;align-items:center}
.ekc-mm-foot .ekc-mm-contact:hover{filter:brightness(.92)}
@keyframes ekcMmIn{from{opacity:0;transform:translate3d(-14px,0,0)}to{opacity:1;transform:none}}
html.ekc-mm-open .ekc-mm-item{animation:ekcMmIn .45s ease both;animation-delay:calc(var(--i,0) * 55ms + 150ms)}
html.ekc-mm-open .ekc-mm-subs .ekc-mm-item{animation:none}
html.ekc-mm-open .ekc-mm-foot{animation:ekcMmIn .45s ease both;animation-delay:.45s}
@media (prefers-reduced-motion:reduce){
  .ekc-mm,.ekc-mm-ov,.ekc-mm-xf,.ekc-mm-sub,.ekc-burger-box i,.ekc-mm-tg svg{transition:none!important}
  .ekc-mm-item,.ekc-mm-foot{animation:none!important}
}
@media (max-height:520px){.ekc-mm-row a{padding:12px 20px}}

/* ---------- Round social icons (mobile menu and footer) ---------- */
.ekc-social{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;list-style:none;margin:16px 0 0;padding:0}
.ekc-social a{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--orange-soft,#fff1e8);color:var(--orange-btn,#d9480f);transition:background .2s ease,color .2s ease,transform .2s ease;text-decoration:none}
.ekc-social a:hover,.ekc-social a:focus-visible{background:var(--orange-btn,#d9480f);color:#fff;transform:translateY(-2px)}
.ekc-social-menu{gap:8px}
.ekc-social-menu a{width:40px;height:40px}
.ekc-social-footer{justify-content:flex-start;margin:14px 0 0}
.ekc-social-footer a{width:40px;height:40px}

/* ---------- Footer extras ---------- */
.foot.foot-4{grid-template-columns:1.2fr 1fr 1fr 1fr}
.foot-contact{margin:.3rem 0 14px}
.foot-contact a{color:var(--muted,#5d6370)}
.foot .foot-form{grid-column:1/-1;max-width:520px}
.site-footer .logo-img{max-height:56px;width:auto;display:block}
@media (max-width:820px){.foot.foot-4{grid-template-columns:1fr}}

/* ---------- Mobile bottom bar ---------- */
.mbar{display:none}
@media (max-width:820px){
  html .mbar{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:60;background:var(--mbar-bg,#fff);border-top:1px solid var(--line,#e6e3dc);box-shadow:0 -6px 20px rgba(29,29,31,.08);padding-bottom:env(safe-area-inset-bottom,0px)}
  html .mbar .mb{display:flex;align-items:center;justify-content:center;gap:7px;min-height:52px;padding:10px 6px;text-align:center;font-weight:700;font-size:.85rem;line-height:1.2;color:var(--mbar-text,#1d1d1f);background:transparent;border:0;border-radius:0;font-family:inherit;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
  .mbar .mb-ico svg{width:19px;height:19px;display:block}
  body.ekc-has-mbar{padding-bottom:calc(58px + env(safe-area-inset-bottom,0px))}
}
@media (min-width:821px){html .mbar{display:none}}

/* ---------- Enquiry popup (opened by a bottom-bar button) ---------- */
.ekc-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100003;display:flex;align-items:flex-end;justify-content:center;padding:0;background:rgba(15,17,21,.58);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s}
.ekc-modal.is-open{opacity:1;visibility:visible;transition:opacity .25s ease,visibility 0s}
.ekc-modal-box{position:relative;width:100%;max-width:480px;max-height:92vh;max-height:92dvh;overflow:auto;background:#fff;border-radius:20px 20px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom,0px));transform:translateY(40px);transition:transform .3s ease}
.ekc-modal.is-open .ekc-modal-box{transform:none}
.ekc-modal-box h2{margin:0 44px 14px 0;font-size:1.4rem}
.ekc-modal-x{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:var(--orange-soft,#fff1e8);color:var(--orange-btn,#d9480f);display:grid;place-items:center;cursor:pointer;padding:0}
.ekc-modal-x svg{width:22px;height:22px}
@media (min-width:600px){.ekc-modal{align-items:center;padding:20px}.ekc-modal-box{border-radius:20px}}
@media (prefers-reduced-motion:reduce){.ekc-modal,.ekc-modal-box{transition:none}}
