/* ═══════════════════════════════════════════════════════════════
   MOREBIT DIGITAL SOLUTIONS — DESIGN SYSTEM
   Version 1.0  |  Build Digital. Drive Growth.
═══════════════════════════════════════════════════════════════ */

/* ── 1. Custom Properties (Design Tokens) ─────────────────── */
:root {
  /* Brand colours */
  --mb-navy:       #0B1220;
  --mb-navy-mid:   #131d30;
  --mb-navy-light: #1a2540;
  --mb-orange:     #F97316;
  --mb-orange-dark:#e06210;
  --mb-orange-glow:rgba(249,115,22,0.15);
  --mb-offwhite:   #F8FAFC;
  --mb-white:      #ffffff;

  /* Neutrals */
  --mb-grey-50:    #f8fafc;
  --mb-grey-100:   #f1f5f9;
  --mb-grey-200:   #e2e8f0;
  --mb-grey-300:   #cbd5e1;
  --mb-grey-400:   #94a3b8;
  --mb-grey-500:   #64748b;
  --mb-grey-600:   #475569;
  --mb-grey-700:   #334155;
  --mb-grey-800:   #1e293b;
  --mb-grey-900:   #0f172a;

  /* Typography */
  --font-head:  'Sora', sans-serif;
  --font-body:  'Inter', sans-serif;

  /* Type scale */
  --fs-xs:    0.75rem;    /* 12px */
  --fs-sm:    0.875rem;   /* 14px */
  --fs-base:  1rem;       /* 16px */
  --fs-lg:    1.125rem;   /* 18px */
  --fs-xl:    1.25rem;    /* 20px */
  --fs-2xl:   1.5rem;     /* 24px */
  --fs-3xl:   1.875rem;   /* 30px */
  --fs-4xl:   2.25rem;    /* 36px */
  --fs-5xl:   3rem;       /* 48px */
  --fs-6xl:   3.75rem;    /* 60px */
  --fs-7xl:   4.5rem;     /* 72px */

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
  --space-4xl:  8rem;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.14);
  --shadow-orange: 0 8px 32px rgba(249,115,22,0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --header-h: 72px;
  --section-py: 96px;
}

/* ── 2. Base Reset & Global ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* prevent horizontal scroll on all pages */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--mb-grey-800);
  background: var(--mb-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mb-navy);
}

/* ── 3. Typography ─────────────────────────────────────────── */
.mb-display {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.5vw, var(--fs-7xl));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.mb-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, var(--fs-6xl));
  font-weight: 700;
  line-height: 1.1;
}

.mb-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, var(--fs-5xl));
  font-weight: 700;
  line-height: 1.15;
}

.mb-h3 {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, var(--fs-3xl));
  font-weight: 700;
}

.mb-lead {
  font-size: clamp(1.05rem, 1.5vw, var(--fs-xl));
  line-height: 1.75;
  color: var(--mb-grey-600);
  font-weight: 400;
}

.mb-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mb-orange);
}

.mb-section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--mb-orange);
  border-radius: var(--radius-full);
}

.text-orange { color: var(--mb-orange) !important; }
.text-navy   { color: var(--mb-navy) !important; }
.text-muted-custom { color: var(--mb-grey-500) !important; }

/* ── 4. Buttons ────────────────────────────────────────────── */
.btn { font-family: var(--font-body); }

.mb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mb-orange);
  color: var(--mb-white) !important;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--mb-orange);
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.mb-btn-primary:hover,
.mb-btn-primary:focus-visible {
  background: var(--mb-orange-dark);
  border-color: var(--mb-orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
  color: var(--mb-white) !important;
}

.mb-btn-primary:active { transform: translateY(0); }

.mb-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--mb-white) !important;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.35);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.mb-btn-outline:hover,
.mb-btn-outline:focus-visible {
  border-color: var(--mb-white);
  background: rgba(255,255,255,0.08);
  color: var(--mb-white) !important;
}

.mb-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--mb-navy) !important;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--mb-grey-300);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.mb-btn-outline-dark:hover,
.mb-btn-outline-dark:focus-visible {
  border-color: var(--mb-orange);
  color: var(--mb-orange) !important;
  background: var(--mb-orange-glow);
}

.mb-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--mb-orange);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  transition: gap var(--transition-fast);
  text-decoration: none;
}

.mb-btn-ghost:hover { gap: 0.65rem; color: var(--mb-orange-dark); }

/* ── 5. Header & Navigation ────────────────────────────────── */
.mb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--mb-navy); /* solid default — JS overrides on hero pages */
  transition: background var(--transition-slow), box-shadow var(--transition-slow), backdrop-filter var(--transition-slow);
}

.mb-header .navbar { width: 100%; padding: 0; }

.mb-header.is-transparent { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.mb-header.is-scrolled {
  background: rgba(11,18,32,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.mb-header.is-solid { background: var(--mb-navy); }

/* Logo */
.mb-logo { line-height: 0; }
.mb-logo img { height: 30px; width: auto; display: block; }

/* Nav list — more breathing room between items */
.mb-nav-list {
  gap: 0 !important;
}

/* Nav links */
.mb-nav-list .nav-link,
.mb-nav-list .nav-label {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.mb-nav-list .nav-link:hover,
.mb-nav-list .nav-link.active,
.mb-nav-list .nav-label:hover,
.mb-nav-list .nav-label.active {
  color: var(--mb-white) !important;
  background: rgba(255,255,255,0.07);
}

.mb-nav-list .nav-link.active::after,
.mb-nav-list .nav-label.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--mb-orange);
  border-radius: var(--radius-full);
}

/* ── Pure CSS hover dropdown ─────────────────────────────────── */
.mb-has-dropdown {
  position: relative;
}

/* The Services link with inline chevron */
.mb-has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mb-nav-chevron {
  transition: transform var(--transition-base);
  flex-shrink: 0;
  opacity: 0.7;
}

/* The dropdown panel */
.mb-nav-dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;           /* flush — no gap */
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #0d1729;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.25);
  padding: 0.75rem 0.5rem 0.5rem; /* top padding bridges the gap visually */
  min-width: 240px;
  list-style: none;
  margin: 0;
  z-index: 999;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

/* Invisible hover bridge — fills the space between trigger and panel */
.mb-nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;          /* extends upward to cover any micro-gap */
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Reveal on hover */
.mb-has-dropdown:hover > .mb-nav-dropdown,
.mb-has-dropdown:focus-within > .mb-nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mb-has-dropdown:hover > .nav-link .mb-nav-chevron,
.mb-has-dropdown:focus-within > .nav-link .mb-nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown items */
.mb-nav-dropdown li a {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.mb-nav-dropdown li a:hover {
  background: rgba(249,115,22,0.12);
  color: var(--mb-orange);
}

.mb-nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.375rem 0.5rem;
}

.mb-nav-dropdown-all {
  font-weight: 600 !important;
  color: var(--mb-orange) !important;
}

.mb-nav-dropdown-all:hover {
  background: rgba(249,115,22,0.15) !important;
  color: var(--mb-orange) !important;
}

/* "All Services" overview row at top of dropdown */
.mb-nav-dropdown-overview {
  display: flex !important;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem !important;
}

.mb-nav-dropdown-overview-icon {
  width: 32px;
  height: 32px;
  background: rgba(249,115,22,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mb-orange);
  flex-shrink: 0;
}

.mb-nav-dropdown-overview strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--mb-white);
  line-height: 1.2;
}

.mb-nav-dropdown-overview em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.1rem;
}

.mb-nav-dropdown-overview:hover .mb-nav-dropdown-overview-icon {
  background: rgba(249,115,22,0.22);
}

/* CTA button spacing */
.mb-nav-cta { margin-left: 1.25rem; flex-shrink: 0; }

/* Hamburger toggle button — style only, Bootstrap controls visibility */
.mb-nav-toggle {
  background: rgba(255,255,255,0.08) !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.5rem 0.6rem !important;
  cursor: pointer;
  /* NO display:flex here — Bootstrap navbar-expand-lg sets display:none on desktop */
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  outline: none !important;
  transition: background var(--transition-fast) !important;
  -webkit-tap-highlight-color: transparent;
}

.mb-nav-toggle:hover,
.mb-nav-toggle:focus {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.35) !important;
  box-shadow: none !important;
}

/* Hide Bootstrap's default toggler icon — we use our own */
.mb-nav-toggle .navbar-toggler-icon { display: none !important; }

.mb-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
  pointer-events: none;
}

.mb-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--mb-white);
  transition: all var(--transition-base);
}

/* Mobile Offcanvas */
.mb-offcanvas {
  background: var(--mb-navy) !important;
  border-left: 1px solid rgba(255,255,255,0.08) !important;
  width: min(300px, 85vw) !important; /* never wider than screen */
}

.mb-offcanvas .offcanvas-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}

/* When offcanvas is open, prevent body scroll but no width shift */
body.offcanvas-backdrop-showing { overflow: hidden; }
.offcanvas-backdrop { z-index: 1040 !important; }

.mb-close-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  color: var(--mb-white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mb-close-btn:hover { background: rgba(255,255,255,0.15); }

.mb-mobile-nav {
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
}

.mb-mobile-nav > li > a {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  margin: 0 0.75rem;
  text-decoration: none;
}

.mb-mobile-nav > li > a:hover,
.mb-mobile-nav > li > a.active {
  color: var(--mb-white);
  background: rgba(255,255,255,0.08);
}

.mb-mobile-nav > li > a.active {
  color: var(--mb-orange);
}

/* Mobile Services accordion */
.mb-mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 1.5rem);
  margin: 0 0.75rem;
  padding: 0.75rem 0.75rem;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mb-mobile-services-toggle:hover,
.mb-mobile-services-toggle[aria-expanded="true"] {
  color: var(--mb-white);
  background: rgba(255,255,255,0.08);
}

.mb-mobile-services-toggle svg {
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.mb-mobile-services-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mb-mobile-services-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.25rem 1rem;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid rgba(249,115,22,0.4);
  margin: 0.25rem 1.5rem 0.25rem 2.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mb-mobile-services-list li a {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mb-mobile-services-list li a:hover {
  color: var(--mb-orange);
  background: rgba(249,115,22,0.08);
}

.mb-mobile-group { padding: 0.15rem 0; }

.mb-mobile-cta {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── 6. Page offset for fixed header ───────────────────────── */
.mb-page-body {
  padding-top: var(--header-h);
}

/* ── 7. Sections ───────────────────────────────────────────── */
.mb-section {
  padding: var(--section-py) 0;
}

.mb-section-sm { padding: 64px 0; }
.mb-section-lg { padding: 120px 0; }

.mb-section-dark {
  background: var(--mb-navy);
  color: var(--mb-white);
}

.mb-section-dark h1,
.mb-section-dark h2,
.mb-section-dark h3,
.mb-section-dark h4 {
  color: var(--mb-white);
}

.mb-section-dark .mb-lead {
  color: rgba(255,255,255,0.65);
}

.mb-section-offwhite {
  background: var(--mb-offwhite);
}

.mb-section-mid {
  background: var(--mb-navy-light);
  color: var(--mb-white);
}

.mb-section-mid h1,
.mb-section-mid h2,
.mb-section-mid h3 {
  color: var(--mb-white);
}

/* Section header */
.mb-section-header {
  margin-bottom: 3.5rem;
}

.mb-section-header .mb-section-label {
  margin-bottom: 1rem;
}

/* ── 8. Hero ───────────────────────────────────────────────── */
.mb-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--mb-navy);
  overflow: hidden;
  padding: calc(var(--header-h) + 1rem) 0 5rem;
}

.mb-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mb-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.mb-hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.mb-hero-glow-2 {
  position: absolute;
  bottom: 5%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.mb-hero-content {
  position: relative;
  z-index: 1;
}

.mb-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.25);
  color: var(--mb-orange);
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.mb-hero-label span {
  width: 6px;
  height: 6px;
  background: var(--mb-orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.mb-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--mb-white);
  margin-bottom: 1.5rem;
}

.mb-hero-title .highlight {
  color: var(--mb-orange);
  position: relative;
}

.mb-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.mb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.mb-hero-link {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.mb-hero-link:hover { color: var(--mb-white); }

.mb-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.mb-hero-stat-num {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--mb-white);
  line-height: 1;
}

.mb-hero-stat-num span { color: var(--mb-orange); }

.mb-hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero visual */
.mb-hero-visual {
  position: relative;
  z-index: 1;
}

.mb-hero-device-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  background: var(--mb-navy-light);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mb-hero-device-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mb-navy-light) 0%, var(--mb-navy-mid) 100%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
}

/* Floating badge on hero */
.mb-hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--mb-white);
  border-radius: var(--radius-xl);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.mb-hero-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--mb-orange-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mb-orange);
  flex-shrink: 0;
}

.mb-hero-badge-text strong {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--mb-navy);
  display: block;
  line-height: 1.2;
}

.mb-hero-badge-text span {
  font-size: var(--fs-xs);
  color: var(--mb-grey-500);
}

/* ── 9. Service Cards ──────────────────────────────────────── */
.mb-service-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-grey-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.mb-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mb-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.mb-service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.mb-service-card:hover::before {
  transform: scaleX(1);
}

.mb-service-card-dark {
  background: var(--mb-navy-light);
  border-color: rgba(255,255,255,0.08);
}

.mb-service-card-dark:hover {
  border-color: rgba(249,115,22,0.3);
  background: var(--mb-navy-mid);
}

.mb-service-card-dark h3,
.mb-service-card-dark p {
  color: var(--mb-white);
}

.mb-service-card-dark p { color: rgba(255,255,255,0.6); }

.mb-service-icon {
  width: 52px;
  height: 52px;
  background: var(--mb-orange-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mb-orange);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.mb-service-icon svg { width: 24px; height: 24px; }

.mb-service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.75rem;
}

.mb-service-card p {
  font-size: var(--fs-sm);
  color: var(--mb-grey-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.mb-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}

.mb-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mb-grey-600);
  background: var(--mb-grey-100);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* ── 10. Portfolio Cards ───────────────────────────────────── */
.mb-project-card {
  background: var(--mb-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--mb-grey-200);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mb-project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.mb-project-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy-light) 100%);
  position: relative;
}

.mb-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.mb-project-card:hover .mb-project-thumb img {
  transform: scale(1.04);
}

.mb-project-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
}

.mb-project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.mb-project-status.completed  { background: rgba(16,185,129,0.9); color: #fff; }
.mb-project-status.ongoing    { background: rgba(249,115,22,0.9); color: #fff; }
.mb-project-status.recent     { background: rgba(99,102,241,0.9); color: #fff; }

.mb-project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mb-project-cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mb-orange);
  margin-bottom: 0.5rem;
}

.mb-project-body h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.mb-project-body p {
  font-size: var(--fs-sm);
  color: var(--mb-grey-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* ── 11. Process Steps ─────────────────────────────────────── */
.mb-process-step {
  position: relative;
  padding-left: 4rem;
}

.mb-process-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--mb-orange);
  color: var(--mb-white);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mb-process-step h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
  color: var(--mb-white);
}

.mb-process-step p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ── 12. CTA Sections ──────────────────────────────────────── */
.mb-cta-section {
  background: linear-gradient(135deg, var(--mb-navy) 0%, #111e35 100%);
  position: relative;
  overflow: hidden;
}

.mb-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ── 13. FAQ ───────────────────────────────────────────────── */
.mb-faq-item {
  border-bottom: 1px solid var(--mb-grey-200);
}

.mb-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--mb-navy);
  cursor: pointer;
  gap: 1rem;
  transition: color var(--transition-fast);
}

.mb-faq-question:hover { color: var(--mb-orange); }

.mb-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mb-grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--mb-grey-600);
}

.mb-faq-item.open .mb-faq-icon {
  background: var(--mb-orange);
  color: var(--mb-white);
  transform: rotate(45deg);
}

.mb-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mb-faq-answer.open {
  max-height: 500px;
}

.mb-faq-answer p {
  font-size: var(--fs-sm);
  color: var(--mb-grey-600);
  line-height: 1.75;
  padding-bottom: 1.25rem;
}

/* ── 14. Forms ─────────────────────────────────────────────── */
.mb-form-group {
  margin-bottom: 1.25rem;
}

.mb-form-label {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--mb-navy);
  margin-bottom: 0.5rem;
}

.mb-form-control {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--mb-grey-800);
  background: var(--mb-white);
  border: 1.5px solid var(--mb-grey-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.mb-form-control:focus {
  border-color: var(--mb-orange);
  box-shadow: 0 0 0 3px var(--mb-orange-glow);
}

.mb-form-control::placeholder { color: var(--mb-grey-400); }

.mb-form-control.error { border-color: #dc2626; }

.mb-form-error {
  font-size: var(--fs-xs);
  color: #dc2626;
  margin-top: 0.25rem;
}

.mb-form-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
}

textarea.mb-form-control {
  resize: vertical;
  min-height: 120px;
}

/* ── 15. Breadcrumbs ───────────────────────────────────────── */
.mb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  padding: 1rem 0;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
}

.mb-breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.mb-breadcrumb a:hover { color: var(--mb-orange); }

.mb-breadcrumb-sep {
  color: rgba(255,255,255,0.25);
}

.mb-breadcrumb-current {
  color: rgba(255,255,255,0.8);
}

/* ── 16. Page Hero (inner pages) ───────────────────────────── */
.mb-page-hero {
  background: var(--mb-navy);
  padding: calc(var(--header-h) + 0.2rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.mb-page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(249,115,22,0.08), transparent);
  pointer-events: none;
}

.mb-page-hero-content {
  position: relative;
  z-index: 1;
}

.mb-page-hero h1 {
  color: var(--mb-white);
  margin-bottom: 1rem;
}

.mb-page-hero .mb-lead {
  color: rgba(255,255,255,0.65);
}

/* ── 17. Footer ────────────────────────────────────────────── */
.mb-footer {
  background: var(--mb-navy);
  color: var(--mb-white);
}

.mb-footer-top {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer 4-column grid */
.mb-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

/* Logo — show original colours (no filter) */
.mb-footer-logo-link { display: inline-block; line-height: 0; }

.mb-footer-logo {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
  /* No filter — display logo in its original colours */
}

.mb-footer-brand {}

.mb-footer-desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

/* Mini contact links inside brand column */
.mb-footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mb-footer-contact-mini a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mb-footer-contact-mini a:hover { color: var(--mb-orange); }

/* Social icons */
.mb-social-links {
  display: flex;
  gap: 0.625rem;
}

.mb-social-links a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.mb-social-links a:hover {
  background: var(--mb-orange);
  color: var(--mb-white);
}

/* Column heading */
.mb-footer-heading {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--mb-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* Link lists */
.mb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mb-footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.mb-footer-links a:hover { color: var(--mb-orange); }

.mb-footer-link-all {
  color: var(--mb-orange) !important;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* CTA column */
.mb-footer-cta-text {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.mb-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mb-orange);
  color: var(--mb-white) !important;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-fast);
  margin-bottom: 0.875rem;
}

.mb-footer-cta-btn:hover {
  background: var(--mb-orange-dark);
  transform: translateY(-1px);
  color: var(--mb-white) !important;
}

.mb-footer-enquiry-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mb-footer-enquiry-link:hover { color: var(--mb-orange); }

/* Bottom bar */
.mb-footer-bottom { padding: 1.25rem 0; }

.mb-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mb-footer-copy {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.mb-footer-copy strong { color: rgba(255,255,255,0.65); }

.mb-footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mb-footer-legal a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mb-footer-legal a:hover { color: rgba(255,255,255,0.7); }

.mb-footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── 18. Blog Cards ────────────────────────────────────────── */
.mb-blog-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-grey-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mb-blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.mb-blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy-light) 100%);
}

.mb-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.mb-blog-card:hover .mb-blog-thumb img { transform: scale(1.05); }

.mb-blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mb-blog-cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mb-orange);
  margin-bottom: 0.5rem;
}

.mb-blog-body h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.mb-blog-card:hover .mb-blog-body h3 { color: var(--mb-orange); }

.mb-blog-body p {
  font-size: var(--fs-sm);
  color: var(--mb-grey-600);
  flex: 1;
  margin-bottom: 1rem;
}

.mb-blog-meta {
  font-size: var(--fs-xs);
  color: var(--mb-grey-400);
  margin-top: auto;
}

/* ── 19. Badges / Tags ─────────────────────────────────────── */
.mb-badge-orange {
  display: inline-flex;
  align-items: center;
  background: var(--mb-orange-glow);
  color: var(--mb-orange);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── 20. Dividers & Decorative ─────────────────────────────── */
.mb-divider {
  width: 64px;
  height: 3px;
  background: var(--mb-orange);
  border-radius: var(--radius-full);
  margin: 1rem 0 1.5rem;
}

.mb-dot-grid {
  position: absolute;
  background-image: radial-gradient(var(--mb-grey-300) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

/* ── 21. Utility classes ───────────────────────────────────── */
.mb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mb-placeholder-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(245,158,11,0.1);
  border: 1px dashed rgba(245,158,11,0.4);
  color: #92400e;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
}

/* ── 22. Focus styles (accessibility) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--mb-orange);
  outline-offset: 2px;
}

/* ── 23. Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .mb-hero-badge { animation: none; }
  .mb-hero-label span { animation: none; }
}

/* ── 24. Responsive adjustments ────────────────────────────── */

/* ── Tablet: ≤991px ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  :root { --section-py: 72px; }

  .mb-hero {
    padding: calc(var(--header-h) + 2rem) 0 4rem;
    min-height: auto;
  }
  .mb-hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .mb-hero-visual { margin-top: 3rem; }
  .mb-hero-badge { bottom: -1rem; left: -0.5rem; }

  /* Sections */
  .mb-section-header { margin-bottom: 2.5rem; }

  /* Footer 2-col on tablet */
  .mb-footer-top { padding: 3.5rem 0 2.5rem; }
  .mb-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mb-footer-brand { grid-column: 1 / -1; }
  .mb-footer-desc { max-width: 100%; }
  .mb-footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ── Mobile: ≤767px ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
  :root {
    --section-py: 56px;
    --header-h: 64px;
  }

  /* Prevent ALL horizontal overflow */
  .container, .container-xl, .container-fluid,
  .row, section, main, footer, header {
    max-width: 100%;
    overflow-x: clip;
  }

  /* Hero */
  .mb-hero { padding: calc(var(--header-h) + 1.5rem) 0 3rem; }
  .mb-hero-title { font-size: clamp(1.875rem, 7vw, 2.75rem); }
  .mb-hero-subtitle { font-size: 1rem; }
  .mb-hero-actions { flex-direction: column; align-items: stretch; }
  .mb-hero-stats { gap: 1.5rem; }
  .mb-hero-visual { display: none;}
  .mb-hero-badge { display: none; } /* hide floating badge on mobile */

  /* Buttons full-width in hero/CTA */
  .mb-hero-actions .mb-btn-primary,
  .mb-hero-actions .mb-btn-outline { width: 100%; justify-content: center; }

  /* Process steps */
  .mb-process-step { padding-left: 3.25rem; }
  .mb-process-num { width: 38px; height: 38px; font-size: var(--fs-xs); }

  /* Solutions/service cards */
  .mb-service-card { padding: 1.25rem; }

  /* Footer */
  .mb-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .mb-footer-brand { grid-column: 1 / -1; }
  .mb-footer-cta-btn { width: 100%; justify-content: center; }
}

/* ── Small mobile: ≤575px ────────────────────────────────────── */
@media (max-width: 575.98px) {
  :root { --section-py: 48px; }

  /* Hero */
  .mb-hero-title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .mb-hero-stats { gap: 1rem; }
  .mb-hero-stat-num { font-size: var(--fs-2xl); }

  /* Cards */
  .mb-service-card, .mb-solutions-card { padding: 1.125rem; }
  .mb-project-body { padding: 1rem; }

  /* Footer: single column */
  .mb-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .mb-footer-brand { grid-column: auto; }
  .mb-footer-cta-btn { width: 100%; justify-content: center; }
  .mb-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .mb-footer-legal { flex-wrap: wrap; gap: 0.75rem 1.25rem; }

  /* Typography */
  .mb-h2, h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .mb-h3, h3 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .mb-lead   { font-size: 1rem; }

  /* Section headers */
  .mb-section-header { margin-bottom: 2rem; }

  /* Buttons: full width in CTA sections */
  .mb-cta-section .mb-btn-primary,
  .mb-cta-section .mb-btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Page hero */
  .mb-page-hero { padding: calc(var(--header-h) + 2rem) 0 2.5rem; }
  .mb-page-hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  /* Scroll to top button — smaller on mobile */
  .mb-scroll-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }

  /* FAQ */
  .mb-faq-question { font-size: var(--fs-sm); }
}

/* ── 25. GSAP initial states (prevent FOUC) ────────────────── */
.gsap-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.gsap-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.gsap-reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.gsap-scale-in {
  opacity: 0;
  transform: scale(0.92);
}

/* When JS is unavailable — show all content */
.no-js .gsap-reveal,
.no-js .gsap-reveal-left,
.no-js .gsap-reveal-right,
.no-js .gsap-scale-in {
  opacity: 1;
  transform: none;
}

/* ── 26. Solutions grid (homepage) ─────────────────────────── */
.mb-solutions-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-grey-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.mb-solutions-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mb-orange), var(--mb-orange-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.mb-solutions-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.mb-solutions-card:hover::after { transform: scaleX(1); }

.mb-solutions-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--mb-grey-100);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color var(--transition-base);
}

.mb-solutions-card:hover .mb-solutions-num {
  color: rgba(249,115,22,0.12);
}

.mb-solutions-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.75rem;
}

.mb-solutions-card p {
  font-size: var(--fs-sm);
  color: var(--mb-grey-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ── 27. Why Choose MoreBit ────────────────────────────────── */
.mb-why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.mb-why-icon {
  width: 44px;
  height: 44px;
  background: var(--mb-orange-glow);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mb-orange);
  flex-shrink: 0;
}

.mb-why-item h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--mb-white);
}

.mb-why-item p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin: 0;
}

/* ── 28. Maintenance section ───────────────────────────────── */
.mb-maintenance-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.mb-maintenance-feature:hover {
  background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.2);
}

.mb-maintenance-feature h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--mb-white);
  margin-bottom: 0.2rem;
}

.mb-maintenance-feature p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── 29. Filter tabs (portfolio) ───────────────────────────── */
.mb-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.mb-filter-btn {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--mb-grey-200);
  background: var(--mb-white);
  color: var(--mb-grey-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mb-filter-btn:hover,
.mb-filter-btn.active {
  background: var(--mb-orange);
  border-color: var(--mb-orange);
  color: var(--mb-white);
}

/* ── 30. Scroll-to-top button ──────────────────────────────── */
.mb-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--mb-orange);
  color: var(--mb-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 800;
}

.mb-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.mb-scroll-top:hover { background: var(--mb-orange-dark); }

/* ── 31. Testimonial (placeholder until real data provided) ─ */
.mb-testimonial {
  background: var(--mb-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--mb-grey-200);
  box-shadow: var(--shadow-sm);
}

.mb-testimonial-quote {
  font-size: var(--fs-xl);
  color: var(--mb-orange);
  margin-bottom: 1rem;
}

.mb-testimonial p {
  font-size: var(--fs-base);
  color: var(--mb-grey-700);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.mb-testimonial-author strong {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  color: var(--mb-navy);
  display: block;
}

.mb-testimonial-author span {
  font-size: var(--fs-xs);
  color: var(--mb-grey-500);
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE FIXES — override pass
   Resolves: burger, layout centering, overflow, footer, typography
═══════════════════════════════════════════════════════════════ */

/* ── Global: prevent horizontal scroll ─────────────────────── */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

* { box-sizing: border-box; }

/* ── Paragraphs — justified text ───────────────────────────── */
p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* On mobile: center-aligned paragraphs inside section headers look better */
@media (max-width: 767.98px) {
  .mb-section-header p,
  .mb-section-header .mb-lead,
  .mb-page-hero p,
  .mb-page-hero .mb-lead {
    text-align: center;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* Except navigation, buttons, labels, headings */
.nav-link, .btn, .mb-btn-primary, .mb-btn-outline,
.mb-btn-outline-dark, .mb-btn-ghost, .mb-section-label,
.mb-footer-heading, h1, h2, h3, h4, h5, h6,
.mb-hero-title, .mb-hero-subtitle, .mb-breadcrumb,
.mb-project-cat, .mb-blog-cat, .mb-tag, .mb-badge-orange,
.mb-placeholder-notice, .mb-filter-btn {
  text-align: inherit;
  hyphens: none;
}

/* ── Burger button — Bootstrap controls show/hide via navbar-expand-lg ── */
/* Base: hidden on desktop (Bootstrap sets this, we reinforce it) */
.navbar-toggler.mb-nav-toggle {
  display: none !important; /* desktop: hidden */
  padding: 0.45rem 0.55rem !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggler.mb-nav-toggle:hover {
  background: rgba(255,255,255,0.18) !important;
}

/* Mobile/tablet: show burger */
@media (max-width: 991.98px) {
  .navbar-toggler.mb-nav-toggle {
    display: inline-flex !important;
  }
}

/* Hamburger lines */
.mb-hamburger {
  display: flex !important;
  flex-direction: column;
  gap: 5px;
  width: 20px;
  pointer-events: none;
}
.mb-hamburger span {
  display: block !important;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}
/* Hide Bootstrap's default icon */
.mb-nav-toggle .navbar-toggler-icon { display: none !important; }

/* ── Navbar logo — smaller on mobile ───────────────────────── */
@media (max-width: 575.98px) {
  .mb-logo img {
    height: 28px !important;
    width: auto !important;
  }
}

/* ── Page hero inner pages — center everything on mobile ────── */
@media (max-width: 767.98px) {
  .mb-page-hero {
    padding: calc(var(--header-h) + -2.5rem) 0 2rem;
    text-align: center;
  }
  .mb-page-hero .mb-section-label { justify-content: center; }
  .mb-page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.25rem); }
  .mb-page-hero .mb-lead { margin-left: auto; margin-right: auto; }
  .mb-breadcrumb { justify-content: center; }

  /* Sections: center headings on mobile */
  .mb-section-header { text-align: center; }
  .mb-section-header .mb-section-label { justify-content: center; }
  .mb-section-header .mb-divider { margin-left: auto; margin-right: auto; }

  /* Featured projects section header */
  .mb-section-offwhite .mb-section-header,
  .mb-section-dark .mb-section-header {
    text-align: center;
  }
  .mb-section-offwhite .mb-section-header .mb-section-label,
  .mb-section-dark .mb-section-header .mb-section-label {
    justify-content: center;
  }

  /* Hero stat numbers: center */
  .mb-hero-stats { justify-content: center; }

  /* Container overflow guard */
  .container-xl, .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Rows: prevent negative margin overflow */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .row > * {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* ── Footer mobile fixes ────────────────────────────────────── */
@media (max-width: 767.98px) {
  .mb-footer-top {
    padding: 2.5rem 0 2rem;
  }
  .mb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .mb-footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .mb-footer-brand .mb-footer-logo-link {
    display: inline-block;
    margin: 0 auto 1rem;
  }
  .mb-footer-brand .mb-footer-logo {
    margin: 0 auto 1.25rem;
  }
  .mb-footer-brand .mb-footer-desc {
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .mb-footer-brand .mb-footer-contact-mini {
    align-items: center;
  }
  .mb-footer-brand .mb-social-links {
    justify-content: center;
  }
  .mb-footer-cta-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .mb-footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .mb-footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .mb-footer-copy { text-align: center; }
}

@media (max-width: 575.98px) {
  /* Brand full width, Services + Company side by side, Get in Touch full width */
  .mb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .mb-footer-brand {
    grid-column: 1 / -1;
  }
  /* Get in Touch (last .mb-footer-col) spans full width */
  .mb-footer-col:last-of-type {
    grid-column: 1 / -1;
  }
}

/* ── Remove morebit.in from footer bottom bar ───────────────── */
.mb-footer-legal li:last-child { display: none !important; }

/* ── Fix wide SVG elements causing overflow ─────────────────── */
svg {
  max-width: 100%;
}

/* Hero SVG mockup — contain on small screens */
.mb-hero-device-wrap {
  overflow: hidden;
  max-width: 100%;
}

/* ── Section label: never overflow ─────────────────────────── */
.mb-section-label {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* ── Why choose / maintenance items on mobile ───────────────── */
@media (max-width: 575.98px) {
  .mb-why-item, .mb-maintenance-feature {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ── Process steps on mobile: center ───────────────────────── */
@media (max-width: 575.98px) {
  .mb-process-step {
    padding-left: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mb-process-num {
    position: static;
    margin: 0 auto 0.75rem;
  }
}

/* ── FAQ: prevent text overflow ─────────────────────────────── */
.mb-faq-question {
  word-break: break-word;
  text-align: left;
}
.mb-faq-answer p { text-align: left; }

/* ── Mobile: project section header — left-align on very small ─ */
@media (max-width: 400px) {
  .mb-section-header { text-align: left; }
  .mb-section-header .mb-section-label { justify-content: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════
   BLOB BUTTON ANIMATION
   Colour: MoreBit Orange #F97316  |  Border: #F97316
═══════════════════════════════════════════════════════════════ */

/* ── Button base adjustments for blob ──────────────────────── */
.mb-btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--mb-orange);
  color: var(--mb-orange) !important;
  background-color: transparent !important;
  transition: color 0.5s;
  z-index: 1;
}

/* Before the hover the text stays white; on hover still white (blobs fill bg) */
.mb-btn-primary:hover {
  color: var(--mb-white) !important;
}

/* Orange border ring via ::before pseudo (sits above blobs, below text) */
.mb-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--mb-orange);
  border-radius: var(--radius-full);
  z-index: 1;
  pointer-events: none;
}

/* ::after — subtle offset shadow on idle, snaps flush on hover */
.mb-btn-primary::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  z-index: -2;
  transition: all 0.3s 0.2s;
}

.mb-btn-primary:hover::after {
  left: 0;
  top: 0;
  transition: all 0.3s;
}

/* ── Inner blob container ───────────────────────────────────── */
.mb-btn-primary .blob-btn__inner {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: transparent;
  z-index: -1;
}

/* ── Blobs wrapper — goo filter applied here ────────────────── */
.mb-btn-primary .blob-btn__blobs {
  position: relative;
  display: block;
  height: 100%;
  filter: url('#goo');
}

/* ── Individual blobs ───────────────────────────────────────── */
.mb-btn-primary .blob-btn__blob {
  position: absolute;
  top: 2px;
  width: 25%;          /* 100% / 4 blobs */
  height: 100%;
  background: var(--mb-orange);
  border-radius: 100%;
  transform: translate3d(0, 150%, 0) scale(1.7);
  transition: transform 0.45s;
}

/* goo filter support — slightly smaller scale */
@supports (filter: url('#goo')) {
  .mb-btn-primary .blob-btn__blob {
    transform: translate3d(0, 150%, 0) scale(1.4);
  }
}

/* Staggered positions — 4 blobs spread across button width */
.mb-btn-primary .blob-btn__blob:nth-child(1) { left: 0%;   transition-delay: 0s; }
.mb-btn-primary .blob-btn__blob:nth-child(2) { left: 25%;  transition-delay: 0.08s; }
.mb-btn-primary .blob-btn__blob:nth-child(3) { left: 50%;  transition-delay: 0.16s; }
.mb-btn-primary .blob-btn__blob:nth-child(4) { left: 75%;  transition-delay: 0.24s; }

/* ── On hover — blobs rise up and fill the button ────────────── */
.mb-btn-primary:hover .blob-btn__blob {
  transform: translateZ(0) scale(1.7);
}

@supports (filter: url('#goo')) {
  .mb-btn-primary:hover .blob-btn__blob {
    transform: translateZ(0) scale(1.4);
  }
}

/* ── Ensure button text & SVG icon stay above blobs ─────────── */
.mb-btn-primary > *:not(.blob-btn__inner) {
  position: relative;
  z-index: 2;
}

/* ── Reduced motion — disable blob animation ────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mb-btn-primary .blob-btn__blob {
    transition: none;
    transform: none;
    display: none;
  }
  .mb-btn-primary {
    background-color: var(--mb-orange) !important;
  }
}


/* ── "Discuss Your Project →" hero link — animated underline wave ── */
.mb-hero-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--transition-base);
  padding-bottom: 2px;
}

/* Animated underline */
.mb-hero-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--mb-orange), rgba(249,115,22,0.3), var(--mb-orange));
  background-size: 200% 100%;
  animation: mb-link-wave 2s linear infinite;
  border-radius: 2px;
  transform-origin: left;
}

@keyframes mb-link-wave {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.mb-hero-link:hover {
  color: var(--mb-white);
}

@media (prefers-reduced-motion: reduce) {
  .mb-hero-link::after { animation: none; background: var(--mb-orange); }
}


/* ── Mobile logo size — header & footer ────────────────────── */
@media (max-width: 991.98px) {
  /* Navbar logo */
  .mb-logo img {
    height: 22px !important;
    width: auto !important;
  }

  /* Footer logo */
  .mb-footer-logo {
    height: 26px !important;
    width: auto !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE DRAWER — pure CSS/JS, no Bootstrap offcanvas
═══════════════════════════════════════════════════════════════ */

/* Burger button — hidden on desktop */
.mb-burger-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition-fast);
}
.mb-burger-btn:hover { background: rgba(255,255,255,0.18); }

@media (max-width: 991.98px) {
  .mb-burger-btn { display: flex; }
}

/* Overlay */
.mb-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mb-drawer-overlay.is-open {
  display: block;
  opacity: 1;
}

/* Drawer panel */
.mb-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--mb-navy);
  z-index: 1051;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.mb-drawer.is-open {
  transform: translateX(0);
}

/* Drawer header */
.mb-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mb-drawer-close {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.45rem;
  color: var(--mb-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.mb-drawer-close:hover { background: rgba(255,255,255,0.16); }

/* Drawer body — scrollable */
.mb-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

/* Nav links */
.mb-drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mb-drawer-link {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  margin: 0 0.5rem;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.mb-drawer-link:hover,
.mb-drawer-link.active {
  color: var(--mb-white);
  background: rgba(255,255,255,0.07);
}
.mb-drawer-link.active { color: var(--mb-orange); }

/* Services accordion */
.mb-drawer-services { padding: 0.1rem 0; }

.mb-drawer-services-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 1rem);
  margin: 0 0.5rem;
  padding: 0.8rem 0.75rem;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.mb-drawer-services-btn:hover { color: var(--mb-white); background: rgba(255,255,255,0.07); }
.mb-drawer-services-btn svg { transition: transform var(--transition-base); flex-shrink: 0; }
.mb-drawer-services-btn.is-open svg { transform: rotate(180deg); }
.mb-drawer-services-btn.is-open { color: var(--mb-orange); }

/* Services sub-list */
.mb-drawer-services-list {
  list-style: none;
  margin: 0.25rem 0.5rem 0.25rem 1.75rem;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 2px solid rgba(249,115,22,0.35);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mb-drawer-services-list.is-open { max-height: 400px; }

.mb-drawer-services-list li a {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.mb-drawer-services-list li a:hover { color: var(--mb-orange); background: rgba(249,115,22,0.07); }

/* Drawer footer — CTA */
.mb-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Lock body scroll when drawer open */
body.mb-drawer-open { overflow: hidden; }


/* ── Drawer header: title label (no logo) ───────────────────── */
.mb-drawer-title {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Desktop Services dropdown z-index & pointer-events fix ─── */
/* Ensure the dropdown sits above everything and receives pointer events */
.mb-has-dropdown {
  position: relative;
  z-index: 910; /* above header's z-index 900 */
}

.mb-nav-dropdown {
  z-index: 950 !important;
}

/* The nav list itself must not clip the dropdown */
.mb-nav-list {
  overflow: visible !important;
}

.navbar-collapse,
#mbNavDesktop {
  overflow: visible !important;
}

.mb-header .navbar {
  overflow: visible !important;
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM — PREMIUM SUCCESS STATE
═══════════════════════════════════════════════════════════════ */
.mb-enquiry-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 420px;
  background: var(--mb-white);
  border: 1px solid var(--mb-grey-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  animation: mb-success-fadein 0.5s ease forwards;
}

@keyframes mb-success-fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animated SVG check */
.mb-enquiry-check {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.mb-enquiry-check svg {
  width: 80px;
  height: 80px;
  display: block;
}

.mb-check-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: mb-draw-circle 0.6s ease forwards 0.2s;
}

.mb-check-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: mb-draw-tick 0.4s ease forwards 0.8s;
}

@keyframes mb-draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes mb-draw-tick {
  to { stroke-dashoffset: 0; }
}

.mb-enquiry-success-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--mb-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.mb-enquiry-success-sub {
  font-size: var(--fs-lg);
  color: var(--mb-orange);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
  text-align: center;
}

.mb-enquiry-success-info {
  max-width: 420px;
  margin: 0 auto 2rem;
}

.mb-enquiry-success-info p {
  font-size: var(--fs-sm);
  color: var(--mb-grey-600);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  text-align: center;
}

.mb-enquiry-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .mb-check-circle,
  .mb-check-tick { animation: none; stroke-dashoffset: 0; }
  .mb-enquiry-success { animation: none; }
}


/* ── Legal pages (Privacy Policy / Terms) ──────────────────── */
.mb-legal-body {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--mb-grey-700);
}

.mb-legal-body p {
  margin-bottom: 1rem;
  text-align: left;
}

.mb-legal-body h2 {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--mb-navy);
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mb-grey-200);
}

.mb-legal-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

.mb-legal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mb-legal-body ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--mb-grey-700);
  text-align: left;
}

.mb-legal-body ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--mb-orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.mb-legal-body a {
  color: var(--mb-orange);
  text-decoration: underline;
  text-decoration-color: rgba(249,115,22,0.3);
  transition: text-decoration-color var(--transition-fast);
}

.mb-legal-body a:hover {
  text-decoration-color: var(--mb-orange);
}

.mb-legal-contact {
  background: var(--mb-offwhite);
  border-left: 3px solid var(--mb-orange);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
  font-size: var(--fs-sm);
  color: var(--mb-grey-700);
  line-height: 1.8;
  margin: 1rem 0 1.5rem;
}

.mb-legal-footer-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mb-grey-200);
}


/* ── Article content (Quill output) ────────────────────────── */
.mb-article-content {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--mb-grey-700);
}
.mb-article-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--mb-navy);
  margin: 2.25rem 0 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mb-grey-200);
  text-align: left;
}
.mb-article-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--mb-navy);
  margin: 1.75rem 0 0.75rem;
  text-align: left;
}
.mb-article-content h4 {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--mb-navy);
  margin: 1.5rem 0 0.5rem;
}
.mb-article-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}
.mb-article-content ul,
.mb-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.mb-article-content ul { list-style: disc; }
.mb-article-content ol { list-style: decimal; }
.mb-article-content li { margin-bottom: 0.375rem; line-height: 1.7; }
.mb-article-content a { color: var(--mb-orange); text-decoration: underline; text-decoration-color: rgba(249,115,22,0.3); }
.mb-article-content a:hover { text-decoration-color: var(--mb-orange); }
.mb-article-content strong { font-weight: 700; color: var(--mb-navy); }
.mb-article-content em { font-style: italic; }
.mb-article-content blockquote {
  border-left: 3px solid var(--mb-orange);
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--mb-offwhite);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--mb-grey-600);
}
.mb-article-content pre,
.mb-article-content code {
  background: var(--mb-navy);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-size: var(--fs-sm);
}
.mb-article-content pre { padding: 1.25rem; overflow-x: auto; margin-bottom: 1.25rem; }
.mb-article-content code { padding: 0.15rem 0.4rem; }
.mb-article-content img { max-width: 100%; border-radius: var(--radius-lg); margin: 1rem 0; }


/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS — public display
═══════════════════════════════════════════════════════════════ */
.mb-testimonial-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-grey-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
}

.mb-testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--mb-orange);
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}

.mb-testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

/* Stars */
.mb-testi-stars {
  display: flex;
  gap: 2px;
}

/* Blockquote */
.mb-testi-content {
  flex: 1;
  margin: 0;
  border: none;
  padding: 0;
}

.mb-testi-content p {
  font-size: var(--fs-sm);
  color: var(--mb-grey-700);
  line-height: 1.8;
  margin: 0;
  font-style: italic;
  text-align: left;
}

/* Author row */
.mb-testi-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mb-grey-100);
  margin-top: auto;
}

.mb-testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--mb-grey-200);
}

.mb-testi-avatar-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mb-orange), var(--mb-orange-dark));
  color: var(--mb-white);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mb-testi-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mb-testi-author-info strong {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--mb-navy);
  line-height: 1.3;
}

.mb-testi-author-info span {
  font-size: var(--fs-xs);
  color: var(--mb-grey-500);
  line-height: 1.4;
}

.mb-testi-author-info em {
  font-size: 0.68rem;
  font-style: normal;
  color: var(--mb-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Source link */
.mb-testi-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--mb-grey-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-top: -0.25rem;
}

.mb-testi-source-link:hover { color: var(--mb-orange); }

/* Mobile */
@media (max-width: 575.98px) {
  .mb-testimonial-card { padding: 1.25rem; }
  .mb-testi-content p  { font-size: var(--fs-xs); }
}


/* Testimonial cards on dark section background */
.mb-section-dark .mb-testimonial-card {
  background: var(--mb-navy-light);
  border-color: rgba(255,255,255,0.08);
}

.mb-section-dark .mb-testimonial-card:hover {
  border-color: rgba(249,115,22,0.25);
}

.mb-section-dark .mb-testimonial-card::before {
  opacity: 0.18;
}

.mb-section-dark .mb-testi-content p {
  color: rgba(255,255,255,0.75);
}

.mb-section-dark .mb-testi-author {
  border-top-color: rgba(255,255,255,0.08);
}

.mb-section-dark .mb-testi-author-info strong {
  color: var(--mb-white);
}

.mb-section-dark .mb-testi-author-info span {
  color: rgba(255,255,255,0.5);
}


/* ── Testimonials Carousel ──────────────────────────────────── */
.mb-testi-carousel-wrap {
  position: relative;
  /* side padding for nav buttons */
  padding: 0 48px;
}

/* Scrollable track */
.mb-testi-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  padding-bottom: 4px;            /* prevent box-shadow clip */
  cursor: grab;
}

.mb-testi-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.mb-testi-track.is-dragging        { cursor: grabbing; scroll-snap-type: none; }

/* Each slide */
.mb-testi-slide {
  flex: 0 0 calc(33.333% - 0.84rem); /* 3 visible on desktop */
  min-width: 280px;
  scroll-snap-align: start;
}

/* Prev / Next nav buttons */
.mb-testi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--mb-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.mb-testi-nav:hover {
  background: var(--mb-orange);
  border-color: var(--mb-orange);
}

.mb-testi-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.mb-testi-prev { left: 0; }
.mb-testi-next { right: 0; }

/* Dot indicators */
.mb-testi-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.75rem;
}

.mb-testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mb-testi-dot.active {
  background: var(--mb-orange);
  transform: scale(1.3);
}

/* Tablet: 2 visible */
@media (max-width: 991.98px) {
  .mb-testi-carousel-wrap { padding: 0 40px; }
  .mb-testi-slide { flex: 0 0 calc(50% - 0.625rem); }
}

/* Mobile: 1 visible, full width */
@media (max-width: 575.98px) {
  .mb-testi-carousel-wrap { padding: 0 32px; }
  .mb-testi-slide { flex: 0 0 calc(100% - 0rem); min-width: 0; }
  .mb-testi-nav   { width: 34px; height: 34px; }
}


/* ── Contact form — compact mobile fields ───────────────────── */
@media (max-width: 767.98px) {

  /* Smaller input padding → fields look compact not bloated */
  .mb-form-control {
    padding: 0.55rem 0.8rem !important;
    font-size: 0.875rem !important;
    border-radius: var(--radius-md) !important;
    min-height: unset !important;
  }

  textarea.mb-form-control {
    min-height: 100px !important;
  }

  /* Tighter gap between form groups */
  .mb-form-group {
    margin-bottom: 0.75rem !important;
  }

  /* Label smaller */
  .mb-form-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
  }

  /* Bootstrap row gutter tighter inside form */
  #mbContactForm .row.g-3 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 0.75rem !important;
  }

  /* Hint text smaller */
  #contact-message-hint {
    font-size: 0.65rem !important;
    margin-top: 0.2rem !important;
  }

  /* Submit button — compact */
  #mbContactForm [type="submit"] {
    padding: 0.7rem 1rem !important;
    font-size: 0.875rem !important;
  }

  /* Privacy note below button */
  #mbContactForm .col-12 > p:last-child {
    font-size: 0.65rem !important;
    margin-top: 0.5rem !important;
  }
}


/* ── Footer: contact details below Get a Quote button ──────── */
.mb-footer-contact-below {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mb-footer-contact-below a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.mb-footer-contact-below a:hover {
  color: var(--mb-orange);
}


/* ── Featured Projects — mobile horizontal carousel ────────── */
/* Desktop: normal Bootstrap grid — no change */

@media (max-width: 767.98px) {
  /* Convert Bootstrap row into a horizontal scroll track */
  .mb-projects-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem !important;
    /* Negative margins to allow cards to bleed to screen edge */
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 4px; /* prevent card shadow clip */
    /* Reset Bootstrap row gutters */
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
  }

  .mb-projects-grid::-webkit-scrollbar { display: none; }

  /* Each card — snap to start, fixed width so 1+ cards peek */
  .mb-project-slide {
    flex: 0 0 82vw !important;
    max-width: 82vw !important;
    scroll-snap-align: start;
    width: auto !important;
    padding: 0 !important; /* remove Bootstrap col padding */
  }

  /* Make card fill its slide */
  .mb-project-slide .mb-project-card {
    height: 100%;
  }

  /* Peek indicator — tiny dot strip below */
  .mb-projects-grid ~ .mb-projects-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 1rem;
  }
}

/* Desktop / tablet — undo everything above */
@media (min-width: 768px) {
  .mb-projects-grid {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    margin-left: calc(-.5 * var(--bs-gutter-x)) !important;
    margin-right: calc(-.5 * var(--bs-gutter-x)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mb-project-slide {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
  }
}


/* ── Featured Projects — mobile carousel (clean, no Bootstrap conflict) ── */
.mb-proj-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Extend to screen edges */
  margin-left:  calc(-1 * var(--bs-gutter-x, 1rem));
  margin-right: calc(-1 * var(--bs-gutter-x, 1rem));
  padding-left:  var(--bs-gutter-x, 1rem);
  padding-right: var(--bs-gutter-x, 1rem);
  padding-bottom: 4px;
}

.mb-proj-carousel::-webkit-scrollbar { display: none; }

.mb-proj-carousel-slide {
  flex: 0 0 80vw;
  max-width: 300px;
  scroll-snap-align: start;
}

.mb-proj-carousel-slide .mb-project-card {
  height: 100%;
}


/* ── 3D Coverflow Carousel — mobile projects ──────────────── */
.mb-3d-carousel {
  position: relative;
  overflow: visible;           /* side cards must NOT be clipped */
  padding: 2rem 0 1rem;
  perspective: 1000px;
  /* clip only vertically so side cards show but don't cause horizontal scroll */
  clip-path: inset(0 -100vw);
}

.mb-3d-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  will-change: transform;
  /* No padding here — JS calculates centering offset */
}

/* Each slide */
.mb-3d-slide {
  flex: 0 0 78vw;
  max-width: 290px;
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.45s ease,
    filter    0.45s ease;
  transform-origin: center center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Active (center) slide */
.mb-3d-slide.is-active {
  transform: scale(1.0) rotateY(0deg) translateZ(0px);
  opacity: 1;
  filter: none;
  z-index: 2;
}

/* Left neighbour */
.mb-3d-slide.is-prev {
  transform: scale(0.85) rotateY(15deg) translateZ(-30px);
  opacity: 0.6;
  filter: brightness(0.72);
  z-index: 1;
}

/* Right neighbour */
.mb-3d-slide.is-next {
  transform: scale(0.85) rotateY(-15deg) translateZ(-30px);
  opacity: 0.6;
  filter: brightness(0.72);
  z-index: 1;
}

/* Far slides */
.mb-3d-slide.is-far {
  transform: scale(0.7) rotateY(22deg) translateZ(-60px);
  opacity: 0.2;
  filter: brightness(0.5);
  z-index: 0;
}

/* Dot indicators */
.mb-3d-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
}

.mb-3d-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(11,18,32,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mb-3d-dot.active {
  background: var(--mb-orange);
  transform: scale(1.35);
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .mb-3d-slide,
  .mb-3d-track { transition: none; }
  .mb-3d-slide.is-prev,
  .mb-3d-slide.is-next,
  .mb-3d-slide.is-far {
    transform: scale(0.9);
    filter: none;
    opacity: 0.6;
  }
}


/* ── Solutions Mobile Carousel ──────────────────────────────── */
.mb-sol-carousel {
  position: relative;
  overflow: visible;
  padding: 1.5rem 0 0.5rem;
  perspective: 1200px;
  clip-path: inset(0 -100vw);
}

.mb-sol-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Each slide */
.mb-sol-slide {
  flex: 0 0 78vw;
  max-width: 290px;
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.45s ease,
    filter    0.45s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* The card itself — dark navy, premium */
.mb-sol-card {
  background: linear-gradient(145deg, #131d30 0%, #0f1828 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Orange glow top-right inside card */
.mb-sol-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Large number */
.mb-sol-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(249,115,22,0.15);
  margin-bottom: 0.625rem;
  transition: color 0.3s;
}

.mb-sol-slide.is-active .mb-sol-num {
  color: rgba(249,115,22,0.3);
}

.mb-sol-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mb-white);
  margin-bottom: 0.625rem;
  line-height: 1.3;
  text-align: left;
}

.mb-sol-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: left;
}

.mb-sol-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mb-orange);
  text-decoration: none;
  transition: gap 0.2s;
}
.mb-sol-link:hover { gap: 0.55rem; }

/* 3D states */
.mb-sol-slide.is-active {
  transform: scale(1.04) rotateY(0deg) translateZ(0);
  opacity: 1;
  filter: none;
  z-index: 2;
}
.mb-sol-slide.is-active .mb-sol-card {
  border-color: rgba(249,115,22,0.25);
  box-shadow: 0 0 32px rgba(249,115,22,0.12), 0 8px 32px rgba(0,0,0,0.4);
}
.mb-sol-slide.is-prev {
  transform: scale(0.86) rotateY(14deg) translateZ(-35px);
  opacity: 0.55;
  filter: brightness(0.65);
  z-index: 1;
}
.mb-sol-slide.is-next {
  transform: scale(0.86) rotateY(-14deg) translateZ(-35px);
  opacity: 0.55;
  filter: brightness(0.65);
  z-index: 1;
}
.mb-sol-slide.is-far {
  transform: scale(0.7) rotateY(22deg) translateZ(-70px);
  opacity: 0.2;
  filter: brightness(0.4);
  z-index: 0;
}

/* Dots */
.mb-sol-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
}
.mb-sol-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(11,18,32,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mb-sol-dot.active {
  background: var(--mb-orange);
  transform: scale(1.35);
}


/* ── Social Media section — mobile (placeholder removed, simple chips) ── */


/* ── Social Media section — mobile (placeholder removed) ── */


/* ── Social platform icons — mobile placeholder ─────────────── */


/* ── Why Us — mobile 3D carousel ────────────────────────────── */
.mb-why-carousel {
  position: relative;
  overflow: visible;
  padding: 1.5rem 0 0.5rem;
  perspective: 1000px;
  clip-path: inset(0 -100vw);
}

.mb-why-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  transform-style: preserve-3d;
  will-change: transform;
}

.mb-why-slide {
  flex: 0 0 78vw;
  max-width: 290px;
  transition:
    transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
    opacity   0.45s ease,
    filter    0.45s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Card design — navy with orange accent */
.mb-why-card {
  background: linear-gradient(145deg, #131d30 0%, #0f1828 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.mb-why-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mb-why-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(249,115,22,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mb-orange);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.mb-why-card-title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--mb-white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-align: left;
}

.mb-why-card-desc {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

/* 3D states */
.mb-why-slide.is-active {
  transform: scale(1.03) rotateY(0deg) translateZ(0);
  opacity: 1;
  filter: none;
  z-index: 2;
}
.mb-why-slide.is-active .mb-why-card {
  border-color: rgba(249,115,22,0.22);
  box-shadow: 0 0 24px rgba(249,115,22,0.10), 0 8px 28px rgba(0,0,0,0.4);
}
.mb-why-slide.is-prev {
  transform: scale(0.86) rotateY(14deg) translateZ(-30px);
  opacity: 0.55;
  filter: brightness(0.65);
  z-index: 1;
}
.mb-why-slide.is-next {
  transform: scale(0.86) rotateY(-14deg) translateZ(-30px);
  opacity: 0.55;
  filter: brightness(0.65);
  z-index: 1;
}
.mb-why-slide.is-far {
  transform: scale(0.7) rotateY(22deg) translateZ(-60px);
  opacity: 0.2;
  filter: brightness(0.4);
  z-index: 0;
}

/* Dots */
.mb-why-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
}
.mb-why-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(11,18,32,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mb-why-dot.active {
  background: var(--mb-orange);
  transform: scale(1.35);
}
