/* =========================================================
   MarqTag Private Limited — Custom Styles
   Design tokens derived from the company flyer:
   deep navy + purple base, orange/pink/blue accents,
   and a signature "stress-analysis" thermal gradient
   (blue -> teal -> yellow -> orange -> pink) echoing
   the IDEA StatiCa stress map shown in the flyer.
   ========================================================= */

:root {
  /* Core palette — simplified two-colour scheme: navy + teal */
  --mq-navy: #10143A;
  --mq-navy-light: #1B2158;
  --mq-purple: #1D4ED8;       /* primary accent (was purple) */
  --mq-purple-light: #2563EB; /* primary accent, lighter */
  --mq-orange: #0EA5A0;       /* secondary accent (was orange) */
  --mq-pink: #0EA5A0;         /* secondary accent (was pink) */
  --mq-blue: #1D4ED8;         /* (was blue) */
  --mq-teal: #0EA5A0;         /* (was teal) */
  --mq-cream: #F7F6FB;
  --mq-ink: #1C1B2E;
  --mq-muted: #6B6C7E;

  /* Gradients — simple two-stop versions, no rainbow */
  --mq-gradient-brand: linear-gradient(120deg, var(--mq-purple) 0%, var(--mq-purple-light) 100%);
  --mq-gradient-stress: linear-gradient(90deg, var(--mq-purple) 0%, var(--mq-teal) 100%);

  /* Type */
  --mq-font-display: 'Sora', sans-serif;
  --mq-font-body: 'Inter', sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mq-font-body);
  color: var(--mq-ink);
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, .mq-font-display {
  font-family: var(--mq-font-display);
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mq-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--mq-orange);
  outline-offset: 2px;
}

/* =========================================================
   Reusable Signature Element: the "stress rule"
   ========================================================= */
.mq-stress-rule {
  height: 5px;
  width: 96px;
  border-radius: 4px;
  background: var(--mq-gradient-stress);
}
.mq-stress-rule-sm { width: 64px; height: 4px; }

.mq-text-gradient {
  background: var(--mq-gradient-stress);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Blueprint grid overlay used on dark sections */
.mq-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   Navbar
   ========================================================= */
.mq-navbar {
  background: rgba(16, 20, 58, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
.mq-navbar.mq-scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.mq-brand {
  font-family: var(--mq-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mq-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mq-gradient-brand);
  color: #fff;
  font-size: 1rem;
}
.mq-brand-accent { color: var(--mq-orange); }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--mq-gradient-stress);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

/* =========================================================
   Buttons
   ========================================================= */
.mq-btn-primary {
  background: var(--mq-gradient-brand);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 25px rgba(91, 42, 140, 0.35);
}
.mq-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(214, 51, 127, 0.4);
  color: #fff;
}

.mq-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
}
.mq-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

/* Outline button on light backgrounds (contact CTA section reuses dark bg, so ok) */

.mq-btn-cta {
  background: var(--mq-gradient-stress);
  color: var(--mq-navy);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  transition: transform 0.2s ease;
}
.mq-btn-cta:hover {
  transform: translateY(-2px);
  color: var(--mq-navy);
}

/* =========================================================
   Hero
   ========================================================= */
.mq-hero {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(122,63,184,0.35), transparent 55%),
              linear-gradient(160deg, var(--mq-navy) 0%, #191F52 60%, var(--mq-navy) 100%);
  padding: 7.5rem 0 6rem;
  overflow: hidden;
}

.mq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:#92fffb;
  background: rgba(244, 119, 30, 0.12);
  border: 1px solid rgba(244, 119, 30, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
}
.mq-eyebrow-dark {
  color: var(--mq-purple);
  background: rgba(91, 42, 140, 0.08);
  border-color: rgba(91, 42, 140, 0.25);
}

.mq-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
}

.mq-hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.7;
}

.mq-hero-badges {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
}
.mq-hero-badges div { display: flex; align-items: center; gap: 0.45rem; }
.mq-hero-badges i { color: var(--mq-orange); font-size: 1.1rem; }

/* =========================================================
   Metallic Nodal Joint - Hero
   ========================================================= */

.mq-hero-art {
  position: relative;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.35));
  perspective: 1000px;
  animation: mqFloat 6s ease-in-out infinite;
}

.mq-node-card {
  position: relative;
  width: 100%;
  min-height: 360px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(48, 54, 110, 0.35),
      transparent 55%
    ),
    #0E1240;

  border: 1px solid #2A2E63;
}

.mq-node-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      circle,
      rgba(185, 192, 240, 0.18) 1px,
      transparent 1px
    );

  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

.mq-node-label {
  position: relative;
  z-index: 2;

  color: #B9C0F0;
  font-size: 11px;
  font-family: var(--mq-font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mq-node-stage {
  position: relative;

  min-height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform-style: preserve-3d;
}

.mq-node-image {
  position: relative;
  z-index: 2;

  width: 78%;
  max-width: 300px;
  height: auto;

  object-fit: contain;

  transform-style: preserve-3d;

  filter:
    drop-shadow(0 18px 20px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(0, 194, 184, 0.12));

  animation: mqNodeMotion 5s ease-in-out infinite;
}

.mq-node-glow {
  position: absolute;

  width: 230px;
  height: 230px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(0, 194, 184, 0.18),
    transparent 68%
  );

  filter: blur(8px);

  animation: mqNodeGlow 5s ease-in-out infinite;
}

.mq-node-dimension {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: -5px;

  color: #7A81C4;
  font-size: 10px;
  letter-spacing: 1px;
}

.mq-node-dimension span {
  display: block;

  width: 80px;
  height: 1px;

  background: #7A81C4;
}

.mq-node-dimension strong {
  font-weight: 500;
}

.mq-node-caption {
  position: relative;
  z-index: 2;

  margin-top: 10px;

  color: #7A81C4;
  font-size: 10px;
}

/* Main floating animation */
@keyframes mqFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Metallic joint movement */
@keyframes mqNodeMotion {
  0%, 100% {
    transform:
      translateY(4px)
      rotateZ(-1deg)
      rotateY(-4deg);
  }

  50% {
    transform:
      translateY(-8px)
      rotateZ(1deg)
      rotateY(4deg);
  }
}

/* Glow movement */
@keyframes mqNodeGlow {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* =========================================================
   Section Base
   ========================================================= */
.mq-section {
  padding: 6rem 0;
  position: relative;
}
.mq-section-alt { background: var(--mq-cream); }
.mq-section-dark {
  background: var(--mq-navy);
  color: #fff;
  overflow: hidden;
}

.mq-section-head { max-width: 680px; }

.mq-section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--mq-ink);
}
.mq-section-title-light { color: #fff; }

.mq-body-text {
  color: var(--mq-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =========================================================
   About Section
   ========================================================= */
.mq-counters {
  text-align: center;
}
.mq-counters .col-4 {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers the number against the label below */
}
.mq-counter {
  /* auto width (shrink-to-fit): this is the piece that moves */
  text-align: center;
  font-family: var(--mq-font-display);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--mq-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mq-counter-label {
  /* full width of the column, exactly as originally — this element's
     own box never changes size or position; the number above simply
     centers itself relative to this fixed box */
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mq-muted);
  font-weight: 500;
}

.mq-about-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(16, 20, 58, 0.08);
  border: 1px solid rgba(91,42,140,0.08);
  position: relative;
}
.mq-about-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  background: var(--mq-orange);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-radius: 0 24px 0 0;
  opacity: 0.9;
}

.mq-about-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mq-about-badge i {
  font-size: 1.6rem;
  color: #fff;
  background: var(--mq-gradient-brand);
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
}
.mq-about-badge-title { font-weight: 700; font-size: 1.15rem; font-family: var(--mq-font-display); }
.mq-about-badge-sub { color: var(--mq-muted); font-size: 0.9rem; }

.mq-check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.mq-check-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.5rem 0;
  color: var(--mq-ink);
  font-weight: 500;
  border-bottom: 1px dashed rgba(107,108,126,0.2);
}
.mq-check-list li:last-child { border-bottom: none; }
.mq-check-list i { color: var(--mq-teal); margin-top: 0.15rem; }

.mq-about-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.mq-about-strip span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mq-purple);
  background: rgba(91,42,140,0.08);
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* =========================================================
   Service Cards
   ========================================================= */
.mq-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem 1.9rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16,20,58,0.06);
  box-shadow: 0 10px 30px rgba(16,20,58,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mq-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(91,42,140,0.18);
  border-color: rgba(91,42,140,0.25);
}
.mq-card-corner {
  position: absolute;
  top: 0; right: 0;
  width: 46px; height: 46px;
  background: var(--mq-gradient-stress);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.85;
  transition: width 0.3s ease, height 0.3s ease;
}
.mq-card:hover .mq-card-corner { width: 62px; height: 62px; }

.mq-card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: rgba(91,42,140,0.08);
  color: var(--mq-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.mq-card:hover .mq-card-icon {
  background: var(--mq-gradient-brand);
  color: #fff;
}
.mq-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.65rem; }
.mq-card-text { color: var(--mq-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }

.mq-card-cta-inline {
  background: linear-gradient(160deg, var(--mq-navy), var(--mq-navy-light));
  color: #fff;
}
.mq-card-cta-inline .mq-card-icon { background: rgba(255,255,255,0.12); color: #fff; }
.mq-card-cta-inline .mq-card-text { color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.mq-card-cta-inline:hover .mq-card-icon { background: var(--mq-gradient-brand); }
.mq-card-link {
  color: var(--mq-orange);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.mq-card-link:hover { gap: 0.7rem; color: var(--mq-orange); }

/* =========================================================
   Why Choose Us (feature cards on dark bg)
   ========================================================= */
.mq-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.mq-feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.07);
}
.mq-feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--mq-gradient-stress);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--mq-navy);
}
.mq-feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.mq-feature-card p { color: rgba(255,255,255,0.68); font-size: 0.9rem; margin-bottom: 0; }

/* =========================================================
   Industries
   ========================================================= */
/* =========================================================
   Industries
   ========================================================= */
.mq-industry-pill {
  background: #fff;
  border: 1px solid rgba(16,20,58,0.08);
  border-radius: 16px;
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  color: var(--mq-ink);
  font-weight: 600;
  font-size: 0.85rem;
}

.mq-industry-pill .mq-industry-icon-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.06);
  border-radius: 14px;
  margin-bottom: 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mq-industry-pill img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.mq-industry-pill:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(91,42,140,0.15);
}
.mq-industry-pill:hover .mq-industry-icon-wrap {
  background: rgba(29, 78, 216, 0.12);
  transform: scale(1.05);
}

@media (min-width: 992px) {
  .mq-industry-icon-wrap {
    width: 96px;
    height: 96px;
  }
  .mq-industry-pill img {
    width: 72px;
    height: 72px;
  }
}
/* =========================================================
   Process
   ========================================================= */
.mq-process { position: relative; }

/* Old single-line connector removed in favor of a per-step connector
   (see .mq-process-step::before below) which anchors directly to each
   circle's own box, so it always sits at the true vertical center no
   matter how Bootstrap's row/col gutters shift the row. */
.mq-process-line {
  display: none;
}

.mq-process-step { position: relative; z-index: 1; text-align: center; padding: 0 0.5rem; }

@media (min-width: 992px) {
  /* Connector segment: drawn from the left edge of each step's column
     up to its own circle, at the circle's vertical center (24px = half
     of the 48px .mq-process-num). Anchoring it to .mq-process-step
     itself (rather than a shared line positioned relative to the whole
     .mq-process block) guarantees it always passes through the circle's
     middle, regardless of gutter/margin math elsewhere on the page. */
  .mq-process-step::before {
    content: '';
    position: absolute;
    top: 24px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--mq-gradient-stress);
    opacity: 0.5;
    z-index: 0;
  }

  /* No incoming connector before the first step */
  .row > div:first-child .mq-process-step::before {
    display: none;
  }
}

.mq-process-num {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  line-height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--mq-gradient-brand);
  color: #fff;
  font-weight: 800;
  font-family: var(--mq-font-display);
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(91,42,140,0.3);
}
.mq-process-step h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.5rem; }
.mq-process-step p { font-size: 0.85rem; color: var(--mq-muted); }

/* =========================================================
   Our Mission
   ========================================================= */
.mq-mission {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(160deg, var(--mq-navy) 0%, #191F52 60%, var(--mq-navy) 100%);
  overflow: hidden;
}
.mq-mission-icon {
  font-size: 2rem;
  color: var(--mq-orange);
  display: block;
  margin-bottom: 1rem;
}
.mq-mission-statement {
  font-family: var(--mq-font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.5;
  color: #fff;
  margin-bottom: 0;
}
.mq-mission .mq-stress-rule { width: 64px; height: 4px; }

/* =========================================================
   Gallery / Project Cards — Icon-based visuals
   ========================================================= */
.mq-gallery-visual {
  height: 280px;
  position: relative;
  overflow: hidden;
  background: #e9eaef; /* shows while the photo loads / if it's missing */
}

/* Project photo */
.mq-project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* Darken the bottom of the photo so the tag badge stays readable on any image */
.mq-gallery-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,20,58,0) 55%, rgba(16,20,58,0.55) 100%);
  pointer-events: none;
}

.mq-project-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #16213e;
  background: #fff;
  border: 1px solid rgba(16,20,58,0.14);
  border-radius: 50px;
  padding: 0.25rem 0.65rem;
}

.mq-gallery-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(16,20,58,0.06);
  box-shadow: 0 10px 30px rgba(16,20,58,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.mq-gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(91,42,140,0.15);
}
.mq-gallery-card:hover .mq-project-photo {
  transform: scale(1.08);
}
.mq-gallery-card h3 { font-size: 1.02rem; font-weight: 700; padding: 0 1.4rem; margin-top: 1.2rem; }
.mq-gallery-card p { font-size: 0.88rem; color: var(--mq-muted); padding: 0 1.4rem 1.4rem; margin-bottom: 0; }

/* =========================================================
   Testimonials
   ========================================================= */
.mq-testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(16,20,58,0.06);
  box-shadow: 0 10px 30px rgba(16,20,58,0.05);
}
.mq-testimonial-card i.bi-quote {
  font-size: 1.8rem;
  color: var(--mq-orange);
}
.mq-testimonial-card p {
  font-style: italic;
  color: var(--mq-ink);
  margin: 1rem 0 1.5rem;
  line-height: 1.65;
}
.mq-testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.mq-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--mq-gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.mq-testimonial-author strong { display: block; font-size: 0.92rem; }
.mq-testimonial-author span { font-size: 0.8rem; color: var(--mq-muted); }
.mq-testimonial-note { font-size: 0.82rem; color: var(--mq-muted); font-style: italic; }

/* =========================================================
   FAQ / Accordion
   ========================================================= */
.mq-accordion .accordion-item {
  border: 1px solid rgba(16,20,58,0.08);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 1rem;
}
.mq-accordion .accordion-button {
  font-weight: 600;
  color: var(--mq-ink);
  background: #fff;
}
.mq-accordion .accordion-button:not(.collapsed) {
  color: var(--mq-purple);
  background: rgba(91,42,140,0.06);
  box-shadow: none;
}
.mq-accordion .accordion-button:focus { box-shadow: none; outline: 2px solid var(--mq-orange); }
.mq-accordion .accordion-button::after {
  filter: hue-rotate(0deg);
}

/* =========================================================
   Contact CTA
   ========================================================= */
.mq-contact-cta {
  position: relative;
  background: linear-gradient(160deg, var(--mq-navy) 0%, #241355 60%, var(--mq-navy) 100%);
  padding: 6rem 0;
  color: #fff;
  overflow: hidden;
}
.mq-contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem 2rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.mq-contact-info a {
  color: inherit;
  text-decoration: none;
}
.mq-contact-info a:hover {
  color: var(--mq-orange);
  text-decoration: underline;
}
.mq-contact-info i { color: var(--mq-orange); margin-right: 0.35rem; }

/* =========================================================
   Footer
   ========================================================= */
.mq-footer {
  background: #0B0E2E;
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}
.mq-brand-footer { font-size: 1.2rem; margin-bottom: 0.5rem; }
.mq-footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin: 0; }
.mq-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.mq-footer-links a { color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color 0.2s ease; }
.mq-footer-links a:hover { color: var(--mq-orange); }
.mq-footer-mail {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mq-footer-mail i { color: var(--mq-orange); }
.mq-footer-mail:hover { color: var(--mq-orange); }
.mq-footer-rule { border-color: rgba(255,255,255,0.08); margin: 2.25rem 0 1.5rem; }
.mq-footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* =========================================================
   Back to top
   ========================================================= */
.mq-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--mq-gradient-brand);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 12px 25px rgba(91,42,140,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.mq-to-top.mq-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mq-to-top:hover { transform: translateY(-4px); }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .mq-hero-art { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   Responsive tweaks — Tablet (≤ 991px)
   ========================================================= */
@media (max-width: 991.98px) {

  /* Navbar */
  .mq-navbar .navbar-collapse {
    background: var(--mq-navy);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 0.75rem;
  }
  .mq-navbar .navbar-nav {
    gap: 0.25rem;
  }
  .mq-navbar .nav-link {
    padding: 0.55rem 0.75rem;
  }
  .mq-btn-cta {
    display: inline-block;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .mq-hero {
    padding: 6rem 0 4rem;
    text-align: center;
  }
  .mq-hero .mq-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .mq-hero .d-flex.flex-wrap {
    justify-content: center;
  }
  .mq-hero-badges {
    justify-content: center;
  }
  .mq-hero-art {
    max-width: 340px;
    margin: 0 auto;
  }

  /* About counters */
  .mq-counters .col-4 {
    padding: 0 0.5rem;
  }
  .mq-counter {
    font-size: 1.75rem;
  }

  /* Process connector lines hidden on tablet */
  .mq-process-step::before {
    display: none;
  }

  /* Contact info — stack items vertically */
  .mq-contact-info {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  /* Footer links centred on tablet */
  .mq-footer .col-md-4.text-md-end {
    text-align: center !important;
  }
}

/* =========================================================
   Responsive tweaks — Mobile (≤ 767px)
   ========================================================= */
@media (max-width: 767.98px) {

  /* Section spacing */
  .mq-section {
    padding: 4rem 0;
  }
  .mq-hero {
    padding: 5rem 0 3.5rem;
  }
  .mq-contact-cta {
    padding: 4rem 0;
  }

  /* Hero text */
  .mq-hero-title {
    font-size: clamp(1.8rem, 5vw, 2.35rem);
}
  .mq-hero-sub {
    font-size: 1rem;
  }

  /* Hero buttons — full width on small screens */
  .mq-hero .d-flex.flex-wrap.gap-3.mt-4 {
    flex-direction: column;
    align-items: stretch;
  }
  .mq-hero .d-flex.flex-wrap.gap-3.mt-4 .btn {
    width: 100%;
    text-align: center;
  }

  /* About card */
  .mq-about-card {
    padding: 1.5rem;
  }
  .mq-about-strip {
    gap: 0.4rem;
  }

  /* Gallery cards — 2 columns on mobile */
  /* (Bootstrap col-md-6 col-lg-3 already does this; just ensure images look good) */
  .mq-gallery-visual {
    height: 220px;
  }
  .mq-gallery-card h3 {
    font-size: 0.95rem;
    padding: 0 1rem;
    margin-top: 1rem;
  }
  .mq-gallery-card p {
    font-size: 0.83rem;
    padding: 0 1rem 1rem;
  }

  /* Industry pills — 2 per row already via col-6, shrink padding */
  .mq-industry-pill {
    padding: 1.25rem 0.6rem 1rem;
    font-size: 0.78rem;
  }
  .mq-industry-pill .mq-industry-icon-wrap {
    width: 64px;
    height: 64px;
  }
  .mq-industry-pill img {
    width: 52px;
    height: 52px;
  }

  /* Feature cards — full width stacking */
  .mq-feature-card {
    padding: 1.5rem 1rem;
  }

  /* Process steps */
  .mq-process-step {
    padding: 0;
  }

  /* Mission statement */
  .mq-mission-statement {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }

  /* Contact CTA buttons */
  .mq-contact-cta .d-flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem !important;
  }
  .mq-contact-cta .d-flex.flex-wrap .btn {
    width: 100%;
    text-align: center;
  }

  /* Contact info stacked */
  .mq-contact-info {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
  }

  /* Footer */
  .mq-footer .col-md-4 {
    text-align: center;
  }
  .mq-footer-links {
    justify-content: center;
  }
  .mq-footer-mail {
    justify-content: center;
    display: flex;
  }
}

/* =========================================================
   Responsive tweaks — Small Mobile (≤ 575px)
   ========================================================= */
@media (max-width: 575.98px) {

  /* Navbar brand logo shrink */
  .mq-brand img {
    max-height: 50px !important;
  }

  /* Section heading */
  .mq-section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* Hero */
  .mq-hero-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }
  .mq-hero-badges {
    gap: 1rem !important;
    font-size: 0.85rem;
  }

  /* About counters — smaller text */
  .mq-counter {
    font-size: 1.5rem;
  }
  .mq-counter-label {
    font-size: 0.75rem;
  }

  /* Cards */
  .mq-card {
    padding: 1.75rem 1.25rem;
  }

  /* Gallery — 1 column on very small */
  /* Override Bootstrap: stack project cards on xs */
  #projects .col-md-6 {
    width: 100%;
  }

  /* Process — single column */
  .mq-process .col-md-6 {
    width: 100%;
  }

  /* Industry pills grid: keep 2-col but allow wrap gracefully */
  .mq-industry-pill .mq-industry-icon-wrap {
    width: 56px;
    height: 56px;
  }
  .mq-industry-pill img {
    width: 44px;
    height: 44px;
  }

  /* Back to top button */
  .mq-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Contact info address wrapping */
  .mq-contact-info span {
    display: block;
    padding: 0 1rem;
    text-align: center;
    line-height: 1.5;
  }
}

/* =========================================================
   Responsive tweaks — Extra Large (≥ 1400px)
   ========================================================= */
@media (min-width: 1400px) {
  .mq-hero {
    padding: 9rem 0 7rem;
  }
}

/* =========================================================
   PROJECT ENQUIRY / CONSULTATION PAGE
   ========================================================= */

.mq-project-enquiry {
    padding: 70px 0 90px;
    background: #f7f8fc;
    color: #17213f;
    min-height: 100vh;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.mq-enquiry-header {
    max-width: 950px;
    margin: 0 auto 55px;
    text-align: center;
}

.mq-enquiry-eyebrow {
    display: inline-block;
    padding: 9px 18px;

    border: 1px solid #cdbde2;
    border-radius: 30px;

    color: #275fe8;
    background: #f4f0fa;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.mq-enquiry-header h1 {
    margin: 22px 0 22px;

    color: #17213f;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;

    font-weight: 700;
}

.mq-enquiry-header h1::after {
    content: "";

    display: block;

    width: 75px;
    height: 4px;

    margin: 28px auto 0;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #2860e8,
        #12b8b0
    );
}

.mq-enquiry-header p {
    max-width: 850px;

    margin: 30px auto 0;

    color: #68718a;

    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   MAIN FORM CARD
   ========================================================= */

.mq-enquiry-card {
    max-width: 1220px;

    margin: 0 auto;

    padding: 42px 52px;

    background: #ffffff;

    border: 1px solid #e2e5ee;
    border-radius: 22px;

    box-shadow:
        0 20px 60px rgba(32, 45, 85, 0.08);
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.mq-form-section {
    padding: 0 0 38px;
    margin-bottom: 38px;

    border-bottom: 1px solid #e5e7ef;
}

.mq-form-section:last-of-type {
    margin-bottom: 25px;
}


/* =========================================================
   FORM HEADING
   ========================================================= */

.mq-form-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 28px;
}

.mq-form-heading .mq-form-number {
    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1f5fe5;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.mq-form-heading h2 {
    margin: 0;

    color: #17213f;

    font-size: 21px;
    font-weight: 700;
}

.mq-form-heading h2 small {
    color: #858ba0;

    font-size: 13px;
    font-weight: 500;
}

.mq-form-heading > span {
    margin-left: auto;

    color: #777e91;

    font-size: 12px;
}

.mq-form-heading > span b {
    color: #ef4c4c;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.mq-form-grid-3 {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px 18px;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.mq-form-group {
    width: 100%;
}

.mq-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #17213f;

    font-size: 14px;
    font-weight: 600;
}

.mq-form-group label span {
    color: #e74c4c;
}

.mq-form-group label small {
    color: #858ba0;

    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   INPUTS / SELECTS / TEXTAREA
   ========================================================= */

.mq-form-group input[type="text"],
.mq-form-group input[type="email"],
.mq-form-group input[type="tel"],
.mq-form-group input[type="url"],
.mq-form-group input[type="date"],
.mq-form-group select,
.mq-form-group textarea {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d9deea;
    border-radius: 8px;

    background: #ffffff;

    color: #17213f;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mq-form-group input,
.mq-form-group select {
    min-height: 48px;
}

.mq-form-group textarea {
    resize: vertical;
    min-height: 145px;
    line-height: 1.5;
}

.mq-form-group input::placeholder,
.mq-form-group textarea::placeholder {
    color: #a2a8b8;
}

.mq-form-group input:focus,
.mq-form-group select:focus,
.mq-form-group textarea:focus {
    border-color: #2860e8;

    box-shadow:
        0 0 0 3px rgba(40, 96, 232, 0.09);
}


/* =========================================================
   PHONE FIELD
   ========================================================= */

.mq-phone-field {
    display: grid;

    grid-template-columns: 75px 1fr;

    gap: 8px;
}

.mq-phone-field select {
    min-width: 0;
}

.mq-phone-field input {
    min-width: 0;
}


/* =========================================================
   PROJECT INFORMATION
   ========================================================= */

.mq-project-info-grid {
    display: grid;

    grid-template-columns:
        0.75fr 1.25fr;

    gap: 25px;
}


/* =========================================================
   SERVICES CHECKBOXES
   ========================================================= */

.mq-services-group {
    min-width: 0;
    transform: translateX(120px);
}

.mq-checkbox-grid {
    display: grid;

    /* 3 columns */
    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 35px;
    row-gap: 18px;

    padding-top: 5px;
}

.mq-checkbox-item {
    display: flex !important;

    align-items: flex-start;

    gap: 10px;

    margin: 0 !important;

    color: #4d566e !important;

    font-size: 13px !important;
    font-weight: 500 !important;

    cursor: pointer;
}

.mq-checkbox-item input[type="checkbox"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    min-width: 18px;
    min-height: 18px;

    margin-top: 1px;

    accent-color: #2860e8;

    cursor: pointer;
}

.mq-checkbox-item span {
    color: #4d566e !important;

    line-height: 1.45;
}


/* =========================================================
   TECHNICAL DETAILS
   ========================================================= */

.mq-form-section .mq-form-grid-3 + .mq-form-grid-3 {
    margin-top: 20px;
}

.mq-field-note {
    display: block;

    margin-top: 5px;

    color: #9298a8;

    font-size: 11px;
}


/* =========================================================
   DATE INPUT
   ========================================================= */

.mq-date-input {
    position: relative;
}

.mq-date-input input {
    padding-right: 42px !important;
}

.mq-date-input i {
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    color: #67718a;

    pointer-events: none;
}


/* =========================================================
   ADDITIONAL INFORMATION
   ========================================================= */

.mq-additional-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 25px;
}


/* =========================================================
   UPLOAD BOX
   ========================================================= */

.mq-upload-box {
    position: relative;

    min-height: 145px;

    padding: 25px 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1.5px dashed #bfc6d7;
    border-radius: 10px;

    background: #fafbfe;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.mq-upload-box:hover,
.mq-upload-box.dragging {
    border-color: #2860e8;

    background: #f5f8ff;
}

.mq-upload-box input[type="file"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}

.mq-upload-box i {
    margin-bottom: 8px;

    color: #2860e8;

    font-size: 28px;
}

.mq-upload-box strong {
    color: #26304a;

    font-size: 13px;
    font-weight: 600;
}

.mq-upload-box span {
    margin-top: 4px;

    color: #737c91;

    font-size: 12px;
}

.mq-upload-box span u {
    color: #2860e8;
}

.mq-upload-box small {
    margin-top: 10px;

    color: #969cab;

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   SELECTED FILES
   ========================================================= */

.mq-selected-files {
    margin-top: 10px;
}

.mq-selected-file {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 7px 10px;

    margin-bottom: 5px;

    border-radius: 6px;

    background: #f1f4fb;

    color: #4d566e;

    font-size: 12px;
}

.mq-selected-file i {
    color: #2860e8;
}


/* =========================================================
   CONSENT
   ========================================================= */

.mq-consent {
    padding: 0 0 25px;
}

.mq-consent .mq-checkbox-item {
    align-items: flex-start;

    color: #68718a !important;

    font-size: 12px !important;

    line-height: 1.5;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.mq-submit-area {
    display: flex;

    justify-content: flex-start;
}

.mq-submit-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 48px;

    padding: 0 24px;

    border: 0;
    border-radius: 5px;

    background: linear-gradient(
        90deg,
        #f47b20,
        #ff6a17
    );

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.3px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mq-submit-btn i {
    font-size: 15px;
}

.mq-submit-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(244, 123, 32, 0.22);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .mq-project-enquiry {
        padding: 55px 0 70px;
    }

    .mq-enquiry-card {
        padding: 35px 30px;
    }

    .mq-form-grid-3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .mq-project-info-grid {
        grid-template-columns: 1fr;
    }

    .mq-additional-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .mq-project-enquiry {
        padding: 45px 0 60px;
    }

    .mq-enquiry-header {
        margin-bottom: 35px;

        padding: 0 15px;
    }

    .mq-enquiry-eyebrow {
        font-size: 11px;

        padding: 8px 14px;
    }

    .mq-enquiry-header h1 {
        font-size: 2.1rem;
    }

    .mq-enquiry-header p {
        font-size: 15px;

        line-height: 1.65;
    }

    .mq-enquiry-card {
        margin: 0 12px;

        padding: 28px 20px;

        border-radius: 16px;
    }

    .mq-form-grid-3 {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .mq-form-heading {
        align-items: flex-start;
    }

    .mq-form-heading > span {
        display: none;
    }

    .mq-form-heading h2 {
        font-size: 18px;
    }

    .mq-checkbox-grid {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .mq-phone-field {
        grid-template-columns: 70px 1fr;
    }

    .mq-submit-btn {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .mq-enquiry-card {
        padding: 24px 15px;
    }

    .mq-enquiry-header h1 {
        font-size: 1.85rem;
    }

    .mq-form-heading h2 {
        font-size: 17px;
    }

    .mq-form-group label {
        font-size: 13px;
    }

}