/* ═══════════════════════════════════════════════
   Deyva Infotech — shared.css
   Loaded on every page alongside inline <style>
═══════════════════════════════════════════════ */

/* ── GLOBAL RESETS ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── CUSTOM SCROLLBAR (green branding) ── */
::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-track { background: #f7f9fc; }
::-webkit-scrollbar-thumb { background: #2ebd4e; border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: #22a040; }
* { scrollbar-width: thin; scrollbar-color: #2ebd4e #f7f9fc; }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open { opacity: 1; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.mobile-nav-drawer.open { transform: translateX(0); }

/* Head */
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
  flex-shrink: 0;
}
.mobile-nav-head img { height: 30px; width: auto; display: block; }
.mobile-nav-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mobile-nav-close:hover { background: #f7f9fc; }
.mobile-nav-close svg {
  width: 16px; height: 16px;
  stroke: #4a5568; fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Body */
.mobile-nav-body { padding: 8px 0; flex: 1; }

.mob-section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #718096;
  padding: 14px 20px 4px;
  display: block;
}

.mob-link {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  text-decoration: none;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.mob-link:hover { background: #f7f9fc; color: #1a7fd4; }

/* Accordion */
.mob-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
  text-align: left;
}
.mob-accordion-btn:hover { background: #f7f9fc; }
.mob-accordion-btn.open { color: #1a7fd4; }

.mob-arrow {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: #718096; fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.mob-accordion-btn.open .mob-arrow {
  transform: rotate(180deg);
  stroke: #1a7fd4;
}

/* Submenu */
.mob-sub {
  display: none;
  background: #f7f9fc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.mob-sub.open { display: block; }
.mob-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 32px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { background: #e8f3fc; color: #1a7fd4; padding-left: 36px; }
.mob-sub svg {
  width: 15px; height: 15px;
  stroke: #1a7fd4; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* CTA button */
.mob-cta-btn {
  display: block;
  text-align: center;
  background: #2ebd4e;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin: 12px 20px 4px;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.mob-cta-btn:hover { background: #22a040; }

/* Contact strip at bottom */
.mob-contact-strip {
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mob-contact-strip a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4a5568;
  text-decoration: none;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}
.mob-contact-strip a:hover { color: #1a7fd4; }
.mob-contact-strip svg {
  width: 16px; height: 16px;
  stroke: #1a7fd4; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Prevent body scroll when drawer open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: #f7f9fc; }
.nav-hamburger span {
  display: block;
  height: 2px; width: 22px;
  background: #4a5568;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Show hamburger on mobile */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
}

/* ── MOBILE OVERFLOW FIXES ── */
@media (max-width: 900px) {
  * { box-sizing: border-box; }
  img, svg, video, iframe, table {
    max-width: 100%;
  }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  /* Stop any element causing bleed */
  .geo-box, .cta-band {
    overflow: hidden;
  }
  .geo-box, .cta-band { word-break: break-word; }
}

.footer-brand img{height:44px;width:auto;max-width:220px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1);margin-bottom:16px;display:block}

.btn-white svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.btn-white{white-space:nowrap}


/* ── ICON SVG GLOBAL FIX — prevent black fill ── */
.od-icon,.cd-icon,.f-icon,.dd-icon,.svc-icon,.trn-icon,.loc-icon,
.why-card-icon,.pc-icon,.mob-contact-strip,.gbp-card,
.outcome-check,.tv-icon,.perk-card,.job-card,
.mod-num,.ps-num{
  flex-shrink:0;
}
.od-icon svg,.cd-icon svg,.f-icon svg,.dd-icon svg,.svc-icon svg,
.trn-icon svg,.loc-icon svg,.why-card-icon svg,.pc-icon svg,
.tb-icon,.fsoc svg,.mob-sub svg,.mob-contact-strip svg,
.outcome-check svg,.ps-num svg,.process-step svg,
.office-detail svg,.contact-detail-card svg,.gbp-card svg,
svg.tb-icon{
  fill:none !important;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* Size fix for icon containers */
.od-icon{
  width:44px;height:44px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.od-icon svg{width:20px;height:20px;stroke-width:1.8}
.cd-icon{
  width:40px;height:40px;border-radius:10px;
  background:var(--blue-light);border:1.5px solid var(--border);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.cd-icon svg{width:18px;height:18px;stroke:var(--blue);stroke-width:1.8}

/* SVG icon size guard — prevents full-page SVG rendering */
.od-icon svg,.cd-icon svg,.f-icon svg,.svc-icon svg,
.trn-icon svg,.loc-icon svg,.why-card-icon svg,.pc-icon svg,
.office-detail svg,.contact-detail-card svg,.gbp-card svg,
.outcome-check svg,.ps-num svg{
  width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;
  max-width:20px!important;max-height:20px!important;
  fill:none!important;display:block;
}
