/* =========================================================
   ONKARPIT Techno — HEADER & FOOTER
   ========================================================= */

/* ---- Top bar ---- */
.topbar{background:var(--soil);color:#E6DCD1;font-size:.9rem}
.topbar-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px}
.topbar-note{margin:0;color:var(--wheat);font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-links{display:flex;align-items:center;gap:6px 22px;list-style:none;margin:0}
.topbar-links a{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#F3EBE2;white-space:nowrap}
.topbar-links a:hover{color:#fff;text-decoration:underline}
.topbar-links .ic{width:16px;height:16px;color:var(--orange)}

/* ---- Header ---- */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);backdrop-filter:saturate(1.4) blur(8px);-webkit-backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid transparent;transition:box-shadow .25s,border-color .25s}
.site-header.is-stuck{border-color:var(--line);box-shadow:0 10px 30px -22px rgba(35,25,19,.5)}
.header-in{display:flex;align-items:center;gap:20px;height:var(--header-h)}
.brand{flex:0 0 auto;display:block}
.brand img{height:58px;width:auto}
.main-nav{margin-left:auto}
.nav-list{display:flex;align-items:center;gap:2px;list-style:none}
.nav-list>li{position:relative;display:flex;align-items:center}
.nav-list>li>a{display:block;padding:10px 12px;font-family:var(--f-display);font-weight:600;font-size:1.13rem;text-decoration:none;color:var(--ink);position:relative}
.nav-list>li>a::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:3px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .25s var(--ease)}
.nav-list>li>a:hover::after,.nav-list>li.is-active>a::after{transform:scaleX(1)}
.nav-list>li.is-active>a{color:var(--orange-d)}
.drop-toggle{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin-left:-8px;padding:0;border:0;background:none;color:var(--muted)}
.drop-toggle .ic{width:16px;height:16px;transition:transform .2s}
.has-drop.open .drop-toggle .ic{transform:rotate(180deg)}
.drop{position:absolute;top:calc(100% + 10px);left:50%;width:560px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:0 30px 60px -30px rgba(35,25,19,.45);opacity:0;visibility:hidden;transform:translate(-50%,8px);transition:opacity .2s,transform .2s var(--ease),visibility .2s}
.drop::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.has-drop:hover .drop,.has-drop:focus-within .drop,.has-drop.open .drop{opacity:1;visibility:visible;transform:translate(-50%,0)}
.drop ul{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.drop li a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:var(--r-sm);text-decoration:none}
.drop li a:hover{background:var(--mist)}
.drop img{width:56px;height:40px;object-fit:contain;flex:0 0 56px}
.drop strong{display:block;font-family:var(--f-display);font-weight:700;font-size:1.08rem;line-height:1.1}
.drop small{color:var(--muted);font-size:.85rem}
.drop-all{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding:12px 14px;border-radius:var(--r-sm);background:var(--soil);color:#fff;text-decoration:none;font-family:var(--f-display);font-weight:600;font-size:1.05rem}
.drop-all .ic{width:18px;height:18px;color:var(--orange)}
.nav-head,.nav-foot{display:none}
/* small text dropdown (Join Us) */
.drop.drop-sm{width:330px;padding:10px}
.drop-sm ul{grid-template-columns:1fr;gap:2px}
.drop-sm li a{padding:11px 12px}
.drop-ic{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:10px;background:var(--orange-l);color:var(--orange-d);transition:background .2s,color .2s}
.drop-ic .ic{width:20px;height:20px}
.drop-sm li a:hover .drop-ic{background:var(--orange);color:#fff}
/* header brochure button (last button in the header) */
.header-brochure{gap:8px;white-space:nowrap}
.header-brochure .ic{width:19px;height:19px}
.topbar-dealer a{padding:3px 12px;border-radius:30px;background:rgba(242,106,27,.16);color:#fff!important;font-weight:600}
.topbar-dealer a:hover{background:var(--orange);text-decoration:none!important}
.topbar-dealer .ic{color:var(--wheat)!important}
.topbar-dealer a:hover .ic{color:#fff!important}
.header-actions{display:flex;align-items:center;gap:10px}
.nav-toggle{display:none;width:46px;height:46px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff;color:var(--ink)}
.nav-overlay{position:fixed;inset:0;background:rgba(35,25,19,.55);z-index:140}
/* drawer open: lift the header (and the drawer inside it) above the dark overlay */
body.nav-open .site-header{z-index:160}
.nav-overlay[hidden]{display:none}

/* ---- Footer ---- */
/* dark footer with a soft warm brand glow — looks as deep as the dark buttons on the orange strip */
.site-footer{background:radial-gradient(ellipse 60% 70% at 10% 0%,rgba(242,106,27,.13),transparent 60%),radial-gradient(ellipse 50% 60% at 100% 100%,rgba(232,176,75,.07),transparent 62%),#150E0A;color:#D9CEC2;font-size:.98rem}
.footer-cta{background:var(--orange);color:#fff;position:relative;overflow:hidden}
.footer-cta::before{content:"";position:absolute;right:-40px;top:0;bottom:0;width:320px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.14) 0 10px,transparent 10px 22px);transform:skewX(-18deg)}
.footer-cta-in{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;padding-block:clamp(34px,5vw,52px)}
.footer-cta h2{color:#fff;font-size:clamp(1.9rem,3.4vw,2.7rem);margin:0 0 6px}
.footer-cta p{margin:0;color:#FFE9DB;max-width:52ch}
.footer-cta-actions{display:flex;flex-wrap:wrap;gap:12px}
.footer-cta .btn:not(.btn-line-light){--bg:var(--soil)}
.footer-cta .btn:not(.btn-line-light):hover{--bg:#000}
.footer-grid{display:grid;grid-template-columns:1.35fr .9fr .9fr 1.35fr;gap:40px;padding-block:clamp(52px,7vw,80px)}
.f-col h3{font-size:1.35rem;color:#fff;margin-bottom:16px}
.f-logo img{width:200px;height:auto;margin-bottom:18px}
.f-about p{max-width:38ch;color:#C8BCAF}
.f-social{display:flex;gap:10px;list-style:none;margin-top:18px}
.f-social a{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);border-radius:50%;color:#fff;transition:background .2s,border-color .2s}
.f-social a:hover{background:var(--orange);border-color:var(--orange)}
.f-social .ic{width:19px;height:19px}
.f-links{list-style:none;display:grid;gap:9px}
.f-links a{text-decoration:none;color:#D9CEC2}
.f-links a:hover{color:#fff;text-decoration:underline}
.f-unit{margin-bottom:14px}
.f-unit strong{display:block;color:var(--wheat);font-family:var(--f-display);font-weight:700;font-size:1.1rem;letter-spacing:.01em}
.f-unit p{margin:2px 0 0;color:#C8BCAF;font-size:.95rem;line-height:1.55}
.f-reach{list-style:none;display:grid;gap:8px;margin-top:6px}
.f-reach a{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:#fff;word-break:break-word}
.f-reach .ic{width:17px;height:17px;color:var(--orange);flex:0 0 17px}
/* bottom strip — colour is set from Admin › Settings › Brand (inline background-color); all text white */
.footer-bottom{background-color:#0C0806;border-top:1px solid rgba(255,255,255,.07);font-size:.9rem;color:#fff}
.footer-bottom-in{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;padding-block:20px}
.footer-bottom p{margin:0;color:#fff}
.footer-bottom ul{display:flex;gap:18px;list-style:none;flex-wrap:wrap}
.footer-bottom a{color:#fff;text-decoration:none;transition:color .2s}
.footer-bottom a:hover{color:var(--orange);text-decoration:underline}
.footer-bottom .credit a{color:#fff;font-weight:600}
.footer-bottom .credit a:hover{color:var(--orange)}

/* ---- Floating buttons ---- */
.float-wa{position:fixed;right:18px;bottom:18px;z-index:90;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#1FAF55;color:#fff;box-shadow:0 12px 26px -10px rgba(0,0,0,.45);transition:transform .2s}
.float-wa:hover{transform:scale(1.08)}
.float-wa .ic{width:30px;height:30px;position:relative;z-index:1;animation:waWiggle 4.5s ease-in-out infinite;transform-origin:50% 60%}
.float-wa::before,.float-wa::after{content:"";position:absolute;inset:0;border-radius:50%;background:rgba(31,175,85,.45);z-index:0;animation:waPulse 2.6s cubic-bezier(.2,.6,.3,1) infinite}
.float-wa::after{animation-delay:1.3s}
.float-wa:hover .ic{animation:none}
@keyframes waPulse{0%{transform:scale(1);opacity:.75}100%{transform:scale(1.9);opacity:0}}
@keyframes waWiggle{0%,78%,100%{transform:rotate(0) scale(1)}82%{transform:rotate(-16deg) scale(1.1)}86%{transform:rotate(14deg) scale(1.1)}90%{transform:rotate(-10deg) scale(1.05)}94%{transform:rotate(6deg)}}
@media (prefers-reduced-motion:reduce){.float-wa::before,.float-wa::after,.float-wa .ic{animation:none}}
.to-top{position:fixed;right:24px;bottom:86px;z-index:90;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--soil);color:#fff;box-shadow:0 10px 22px -10px rgba(0,0,0,.5)}
.to-top[hidden]{display:none}
.to-top .ic{width:20px;height:20px}

/* ---- Responsive ---- */
@media (max-width:1180px){
  .nav-list>li>a{padding:10px 9px;font-size:1.06rem}
  .nav-list>li>a::after{left:9px;right:9px}
}
/* laptops: keep one clean row — the brochure button shows its icon only */
@media (max-width:1260px) and (min-width:1061px){
  .header-in{gap:14px}
  .brand img{height:52px}
  .header-brochure{width:42px;padding:8px 0}
  .header-brochure span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media (max-width:1060px){
  :root{--header-h:74px}
  .site-header{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}
  .brand img{height:50px}
  .nav-toggle{display:inline-flex}
  .header-actions{margin-left:auto}
  .main-nav{position:fixed;top:0;right:0;bottom:0;z-index:150;width:min(360px,88vw);margin:0;background:#fff;display:flex;flex-direction:column;transform:translateX(100%);visibility:hidden;transition:transform .3s var(--ease),visibility .3s;overflow-y:auto;overscroll-behavior:contain}
  .main-nav.open{transform:none;visibility:visible}
  .nav-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
  .nav-head img{height:46px;width:auto}
  .nav-close{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff}
  .nav-list{flex-direction:column;align-items:stretch;padding:10px 8px;gap:0}
  .nav-list>li{flex-wrap:wrap;border-bottom:1px solid #F0EBE5}
  .nav-list>li>a{flex:1;padding:14px 12px;font-size:1.25rem}
  .nav-list>li>a::after{display:none}
  .drop-toggle{width:46px;height:46px;margin:0;border-left:1px solid #F0EBE5}
  .drop{position:static;width:100%;padding:0 6px 10px;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none;display:none}
  .has-drop:hover .drop,.has-drop:focus-within .drop{transform:none}
  .has-drop.open .drop{display:block;transform:none}
  .drop ul{grid-template-columns:1fr}
  .nav-foot{display:grid;gap:10px;padding:18px;margin-top:auto}
  .drop.drop-sm{width:100%;padding:0 6px 10px}
  .header-brochure{width:46px;min-height:46px;padding:0}
  .header-brochure span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .nav-mail{text-align:center;color:var(--muted);font-size:.95rem}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .topbar{display:none}
  .footer-cta::before{display:none}
  .footer-cta-actions{width:100%;display:grid;grid-template-columns:1fr;gap:10px}
  .footer-cta-actions .btn{width:100%}
  .header-cta{display:none}
  .brand img{height:46px}
  .footer-grid{grid-template-columns:1fr;gap:32px}
  .footer-bottom-in{flex-direction:column;align-items:flex-start}
}
@media (max-width:400px){.hide-xs{display:none}}