  :root{
    --qm-navy: #0b2340;
    --qm-navy-2: #10305a;
    --qm-navy-3: #163a6b;
    --qm-orange: #f2921a;
    --qm-orange-2: #ffab3d;
    --qm-ink: #0e1c2f;
    --qm-grey-bg: #eef2f6;
    --qm-text-muted: #6b7686;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html{ scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
  body{
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--qm-ink);
    background: #fff;
    overflow-x: hidden;
  }
  h1,h2,h3,.brand-font{ font-family: 'Poppins', 'Inter', sans-serif; }

  a{ text-decoration:none; }

  /* ---------- Navbar ---------- */
  .qm-navbar{
    background: #fff;
    box-shadow: 0 1px 0 rgba(11,35,64,0.06);
    padding-top: calc(env(safe-area-inset-top, 0px) + .6rem);
  }
  .qm-logo-mark{
    width: 50px; height: 50px;
    display:flex; align-items:center; justify-content:center;
    flex: 0 0 auto;
  }
  .qm-logo-mark img{ width:100%; height:100%; object-fit:contain; }
  .qm-brand-name{ font-weight:700; color: var(--qm-navy); font-size: 1.15rem; line-height:1.1; }
  .qm-brand-tag{ font-size: .62rem; letter-spacing:.12em; color: var(--qm-text-muted); }
  .qm-nav .nav-link{
    color: var(--qm-navy); font-weight:500; font-size:.93rem;
    padding: .5rem .85rem !important;
  }
  .qm-nav .nav-link.active{ color: var(--qm-orange); position:relative; }
  .qm-nav .nav-link.active::after{
    content:""; position:absolute; left:.85rem; right:.85rem; bottom:0; height:2px; background: var(--qm-orange);
  }
  .btn-qm-orange{
    background: var(--qm-orange); border-color: var(--qm-orange); color:#fff; font-weight:600;
    padding: .6rem 1.25rem; border-radius: 8px; white-space:nowrap;
  }
  .btn-qm-orange:hover{ background:#d97e0c; border-color:#d97e0c; color:#fff; }
  .btn-qm-navy-outline{
    border:1px solid var(--qm-navy); color: var(--qm-navy); font-weight:600;
    padding: .6rem 1.1rem; border-radius: 8px; white-space:nowrap; background:transparent;
  }
  .btn-qm-navy-outline:hover{ background: var(--qm-navy); color:#fff; }
  .btn-qm-whatsapp{
    background:#25b551; border-color:#25b551; color:#fff; font-weight:600;
    border-radius: 999px; padding:.55rem 1.1rem; white-space:nowrap;
  }
  .btn-qm-whatsapp:hover{ background:#1e9c45; color:#fff; }

  /* ---------- Hero Carousel (multi-layer) ---------- */
  .qm-hero-carousel{ position:relative; }
  .qm-hero-slide{
    position:relative;
    min-height: 600px;
    overflow:hidden;
    color:#fff;
    display:flex;
    align-items:center;
  }
  /* Layer 1: photo */
  .qm-hero-slide .qm-layer-photo{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    transform: scale(1.06);
  }
  /* Layer 1b: video background (used on the intro slide) */
  .qm-hero-slide .qm-layer-video{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform: scale(1.06);
  }
  /* Layer 2: color wash / gradient tint (varies per slide) */
  .qm-hero-slide .qm-layer-tint{
    position:absolute; inset:0;
    background: linear-gradient(100deg, rgba(9,26,49,.93) 0%, rgba(9,26,49,.80) 38%, rgba(9,26,49,.45) 65%, rgba(9,26,49,.30) 100%);
  }
  /* Layer 3: decorative diagonal accent */
  .qm-hero-slide .qm-layer-accent{
    position:absolute; inset:0;
    background:
      repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 58px);
    mix-blend-mode: overlay;
  }
  /* Layer 4: bottom fade for readability + orange glow */
  .qm-hero-slide .qm-layer-glow{
    position:absolute; inset:0;
    background:
      radial-gradient(ellipse at 85% 20%, rgba(242,146,26,.20), transparent 55%),
      linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%);
  }
  .qm-hero-slide .container{ position:relative; z-index:2; }
  .qm-eyebrow{
    display:inline-flex; align-items:center; gap:.5rem;
    color: var(--qm-orange-2); font-weight:600; font-size:.85rem; letter-spacing:.02em;
  }
  .qm-eyebrow::before{ content:""; width:26px; height:2px; background: var(--qm-orange); display:inline-block; }
  .qm-hero-slide h1{
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    font-weight:800; line-height:1.12; margin: .9rem 0 1.1rem;
    font-family: 'Poppins','Inter',sans-serif;
  }
  .qm-hero-slide h1 .accent{ color: var(--qm-orange); }
  .qm-hero-slide p.lead-text{ color: rgba(255,255,255,.88); font-size:1.05rem; max-width:520px; }
  .qm-hero-slide p.desc-text{ color: rgba(255,255,255,.65); max-width:520px; font-size:.95rem; }
  .btn-outline-qm{
    border:1px solid rgba(255,255,255,.55); color:#fff; font-weight:600; border-radius:8px; padding:.6rem 1.25rem;
  }
  .btn-outline-qm:hover{ background: rgba(255,255,255,.1); color:#fff; }

  .qm-hero-tags{
    position:absolute; right: 4%; bottom: 9%; text-align:right; z-index:2;
    border-right: 2px solid var(--qm-orange); padding-right: 1rem;
  }
  .qm-hero-tags div{ color:#fff; font-weight:600; font-size:.92rem; margin-bottom:.35rem; }

  .qm-hero-dots{ position:absolute; left: 2rem; bottom: 1.6rem; z-index:3; display:flex; gap:.4rem; margin:0; padding:0; }
  .qm-hero-dots [data-bs-target]{
    width: 26px; height:4px; border-radius:2px; background: rgba(255,255,255,.35);
    opacity:1; border:none; margin:0; transition: width .25s ease, background .25s ease;
  }
  .qm-hero-dots [data-bs-target].active{ background: var(--qm-orange); width:34px; }

  .qm-hero-arrow{
    z-index:3; width:44px; height:44px; border-radius:50%;
    background: rgba(255,255,255,.12); backdrop-filter: blur(2px);
    top:50%; transform:translateY(-50%); opacity:1;
  }
  .qm-hero-arrow:hover{ background: rgba(255,255,255,.22); }
  .qm-hero-arrow.carousel-control-prev{ left:1.2rem; }
  .qm-hero-arrow.carousel-control-next{ right:1.2rem; }
  .qm-hero-arrow .carousel-control-prev-icon,
  .qm-hero-arrow .carousel-control-next-icon{ width:16px; height:16px; }

  /* ---------- Stats strip ---------- */
  .qm-stats{ background: var(--qm-grey-bg); padding: 2.6rem 0; }
  .qm-stat-icon{
    width:52px; height:52px; border-radius:50%;
    background:#fff; box-shadow: 0 6px 16px rgba(11,35,64,.08);
    display:flex; align-items:center; justify-content:center;
    color: var(--qm-navy); font-size:1.15rem; margin: 0 auto .9rem;
  }
  .qm-stat-title{ font-weight:700; color: var(--qm-navy); font-size:.98rem; }
  .qm-stat-sub{ color: var(--qm-text-muted); font-size:.8rem; margin-bottom:.5rem; }
  .qm-stat-num{ color: var(--qm-orange); font-weight:800; font-size:1.85rem; }
  .qm-stat-label{ color: var(--qm-text-muted); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; }

  /* ---------- Reusable fill-image helper ---------- */
  .qm-photo-fill{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

  /* ---------- About ---------- */
  .qm-about{ padding: 5rem 0; }
  .qm-about-photo{
    position:relative; border-radius: 14px; overflow:hidden; min-height:420px;
  }
  .qm-about-tint{
    position:absolute; inset:0;
    background: linear-gradient(160deg, rgba(10,25,45,.10), rgba(10,25,45,.55));
  }
  .qm-about-badge{
    position:absolute; left:1.5rem; bottom:1.5rem; right:1.5rem;
    background: rgba(11,35,64,.82); backdrop-filter: blur(2px);
    color:#fff; padding:.85rem 1.1rem; border-radius:10px; font-weight:600; font-size:.95rem;
    display:flex; align-items:center; gap:.6rem;
  }
  .qm-about-badge i{ color: var(--qm-orange); }
  .qm-about h2{ color: var(--qm-navy); font-weight:800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height:1.25; }
  .qm-about p{ color: var(--qm-text-muted); font-size:.98rem; line-height:1.7; }

  /* ---------- Why Choose Us ---------- */
  .qm-why{ padding: 4.5rem 0; background: var(--qm-grey-bg); }
  .qm-why h2{ color: var(--qm-navy); font-weight:800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height:1.3; }
  .qm-why-item h4{ font-size:1.02rem; font-weight:700; color: var(--qm-navy); margin-bottom:.5rem; }
  .qm-why-item h4 .accent{ color: var(--qm-orange); }
  .qm-why-item p{ color: var(--qm-text-muted); font-size:.9rem; line-height:1.6; margin:0; }

  /* ---------- Mission & Vision ---------- */
  .qm-mission{ padding: 4.5rem 0; background:#fff; }
  .qm-mission h2{ color: var(--qm-navy); font-weight:800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
  .qm-mission-block{ margin-bottom:1.6rem; }
  .qm-mission-block h5{ color: var(--qm-orange); font-weight:700; font-size:.95rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:.5rem; }
  .qm-mission-block p{ color: var(--qm-text-muted); font-size:.95rem; line-height:1.7; margin:0; }
  .qm-mission-photo{
    position:relative; overflow:hidden;
    min-height:360px; border-radius:14px;
  }
  .qm-mission-tint{
    position:absolute; inset:0;
    background: linear-gradient(160deg, rgba(10,25,45,.08), rgba(10,25,45,.45));
  }

  /* ---------- Core Values ---------- */
  .qm-corevalues{ position:relative; padding: 5rem 0; overflow:hidden; }
  .qm-corevalues-photo{
    position:absolute; inset:0; overflow:hidden;
  }
  .qm-corevalues-photo::after{
    content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(238,242,246,.97) 0%, rgba(238,242,246,.75) 45%, rgba(9,26,49,.55) 100%);
  }
  .qm-corevalues-card{ position:relative; z-index:1; }
  .qm-corevalues-card h2{ color: var(--qm-navy); font-weight:800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
  .qm-corevalues-card p{ color: var(--qm-ink); font-size:.98rem; line-height:1.75; background: rgba(255,255,255,.55); padding:1.2rem; border-radius:10px; }

  .qm-section-eyebrow{
    display:inline-flex; align-items:center; gap:.6rem; color: var(--qm-orange); font-weight:700; font-size:.78rem; letter-spacing:.06em;
  }
  .qm-section-eyebrow::before{ content:""; width:22px; height:2px; background: var(--qm-orange); display:inline-block; }

  /* ---------- Services ---------- */
  .qm-services{ background: var(--qm-grey-bg); padding: 5rem 0; }
  .qm-services h2{ color: var(--qm-navy); font-weight:800; }
  .qm-services > .container > p{ color: var(--qm-text-muted); }

  .qm-card{
    position:relative; border-radius:14px; overflow:hidden; min-height:190px;
    color:#fff; display:flex; flex-direction:column; justify-content:flex-end;
    padding:1.4rem; isolation:isolate;
    transition: transform .25s ease;
  }
  .qm-card:hover{ transform: translateY(-4px); }
  .qm-card-img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2;
  }
  .qm-card::after{
    content:""; position:absolute; inset:0; z-index:-1;
    background: linear-gradient(180deg, rgba(9,26,49,.15) 0%, rgba(9,26,49,.92) 85%);
  }

  .qm-card-icon{
    width:38px; height:38px; border-radius:8px; background: rgba(255,255,255,.15);
    display:flex; align-items:center; justify-content:center; margin-bottom:.7rem; font-size:1rem;
  }
  .qm-card h3{ font-size:1.05rem; font-weight:700; margin-bottom:.25rem; }
  .qm-card p{ font-size:.82rem; color: rgba(255,255,255,.75); margin-bottom:0; max-width: 82%; }
  .qm-card .qm-arrow{
    position:absolute; right:1.2rem; bottom:1.3rem;
    width:32px; height:32px; border-radius:50%; background: rgba(255,255,255,.14);
    display:flex; align-items:center; justify-content:center; color:#fff; font-size:.8rem;
  }

  /* ---------- Our Team ---------- */
  .qm-team{ padding: 5rem 0; background:#fff; }
  .qm-team h2{ color: var(--qm-navy); font-weight:800; font-size: clamp(1.5rem, 2.4vw, 2rem); }
  .qm-team-card{ text-align:center; }
  .qm-team-photo{
    position:relative; overflow:hidden;
    width:100%; aspect-ratio: 3/3.4; border-radius:12px;
    margin-bottom:.9rem; box-shadow: 0 10px 24px rgba(11,35,64,.12);
  }
  .qm-team-lead .qm-team-photo{ box-shadow: 0 12px 28px rgba(242,146,26,.25); }
  .qm-team-card h5{ font-size:.92rem; font-weight:700; color: var(--qm-navy); margin-bottom:.15rem; }
  .qm-team-card span{ font-size:.78rem; color: var(--qm-orange); font-weight:600; }

  /* ---------- Client Testimonials ---------- */
  .qm-testimonials{ padding: 5rem 0; background: var(--qm-grey-bg); }
  .qm-testimonials h2{ color: var(--qm-navy); font-weight:800; font-size: clamp(1.5rem, 2.4vw, 2rem); }
  .qm-testimonial-card{
    background:#fff; border-radius:14px; overflow:hidden; height:100%;
    box-shadow: 0 10px 26px rgba(11,35,64,.08); display:flex; flex-direction:column;
  }
  .qm-testimonial-photo{ position:relative; overflow:hidden; height:170px; }
  .qm-testimonial-body{ padding:1.5rem; flex:1; display:flex; flex-direction:column; }
  .qm-client-logo{ height:34px; object-fit:contain; object-position:left; margin-bottom:1rem; align-self:flex-start; }
  .qm-testimonial-body p{ color: var(--qm-ink); font-style:italic; font-size:.95rem; line-height:1.6; flex:1; }
  .qm-testimonial-role{ color: var(--qm-text-muted); font-size:.82rem; font-weight:600; margin-top:.8rem; }

  /* ---------- Featured projects banner ---------- */
  .qm-projects{
    position:relative; overflow:hidden; color:#fff; padding: 4rem 0;
  }
  .qm-projects-img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
  }
  .qm-projects-tint{
    position:absolute; inset:0; z-index:1;
    background: linear-gradient(100deg, rgba(6,17,32,.95) 0%, rgba(6,17,32,.80) 55%, rgba(6,17,32,.55) 100%);
  }
  .qm-projects .container{ position:relative; z-index:2; }
  .qm-projects h2{ font-weight:800; font-size: clamp(1.5rem, 2.6vw, 2rem); }
  .qm-proj-stat-num{ color: var(--qm-orange); font-weight:800; font-size:1.9rem; }
  .qm-proj-stat-label{ color: rgba(255,255,255,.65); font-size:.78rem; }
  .btn-qm-ghost{
    border:1px solid rgba(255,255,255,.4); color:#fff; border-radius:8px; padding:.55rem 1.2rem; font-weight:600; font-size:.9rem;
  }
  .btn-qm-ghost:hover{ background: rgba(255,255,255,.08); color:#fff; }

  /* ---------- Footer ---------- */
  .qm-footer{ background: var(--qm-navy); color: rgba(255,255,255,.75); padding: 3.2rem 0 1.2rem; }
  .qm-footer h6{ color:#fff; font-weight:700; margin-bottom:1rem; font-size:.92rem; }
  .qm-footer a{ color: rgba(255,255,255,.7); font-size:.88rem; display:block; margin-bottom:.55rem; }
  .qm-footer a:hover{ color: var(--qm-orange); }
  .qm-footer .qm-brand-name{ color:#fff; }
  .qm-footer-contact{ font-size:.88rem; display:flex; gap:.6rem; margin-bottom:.7rem; color: rgba(255,255,255,.75); }
  .qm-footer-contact i{ color: var(--qm-orange); margin-top:.2rem; }
  .qm-footer-social{
    width:34px; height:34px; border-radius:50%; background: rgba(255,255,255,.08);
    display:inline-flex; align-items:center; justify-content:center; color:#fff; margin-right:.5rem;
  }
  .qm-footer-social:hover{ background: var(--qm-orange); color:#fff; }
  .qm-footer-bottom{ border-top:1px solid rgba(255,255,255,.1); margin-top:2rem; padding-top:1.1rem; font-size:.8rem; color: rgba(255,255,255,.5); }

  @media (max-width: 991.98px){
    .qm-hero-tags{ display:none; }
    .qm-hero-slide{ min-height: 640px; }
  }

  /* ---------- Enquiry Form ---------- */
  .qm-enquiry{ padding: 5rem 0; background:#fff; }
  .qm-enquiry-panel{
    background: var(--qm-navy);
    border-radius: 16px;
    color:#fff;
    padding: 2.5rem;
    height:100%;
    position:relative;
    overflow:hidden;
  }
  .qm-enquiry-panel::after{
    content:""; position:absolute; right:-20%; bottom:-30%; width:70%; height:80%;
    background: radial-gradient(ellipse at center, rgba(242,146,26,.22), transparent 70%);
  }
  .qm-enquiry-panel h3{ font-weight:800; font-size:1.4rem; margin-bottom:.75rem; }
  .qm-enquiry-panel p{ color: rgba(255,255,255,.7); font-size:.92rem; }
  .qm-enquiry-item{ display:flex; gap:.8rem; align-items:flex-start; margin-top:1.3rem; position:relative; z-index:1; }
  .qm-enquiry-item i{
    width:38px; height:38px; border-radius:8px; background: rgba(255,255,255,.12);
    display:flex; align-items:center; justify-content:center; flex:0 0 auto; color: var(--qm-orange-2);
  }
  .qm-enquiry-item div{ font-size:.9rem; color: rgba(255,255,255,.85); }
  .qm-enquiry-item small{ display:block; color: rgba(255,255,255,.55); font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; }
  .btn-qm-whatsapp-lg{
    background:#25b551; border-color:#25b551; color:#fff; font-weight:600;
    border-radius: 8px; padding:.7rem 1.3rem; width:100%; margin-top:1.6rem; position:relative; z-index:1;
  }
  .btn-qm-whatsapp-lg:hover{ background:#1e9c45; color:#fff; }
  .btn-qm-brochure-lg{
    display:block; text-align:center; background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.35); color:#fff; font-weight:600;
    border-radius: 8px; padding:.7rem 1.3rem; width:100%; margin-top:.7rem; position:relative; z-index:1;
  }
  .btn-qm-brochure-lg:hover{ background: rgba(255,255,255,.2); color:#fff; }

  .qm-enquiry-form{
    background: var(--qm-grey-bg); border-radius:16px; padding: 2.5rem; height:100%;
  }
  .qm-enquiry-form label{ font-weight:600; font-size:.85rem; color: var(--qm-navy); margin-bottom:.35rem; }
  .qm-enquiry-form .form-control,
  .qm-enquiry-form .form-select{
    border-radius:8px; border:1px solid #d7dee6; padding:.65rem .9rem; font-size:.92rem;
  }
  .qm-enquiry-form .form-control:focus,
  .qm-enquiry-form .form-select:focus{
    border-color: var(--qm-orange); box-shadow: 0 0 0 .2rem rgba(242,146,26,.15);
  }

  /* ---------- Floating WhatsApp button ---------- */
  .qm-whatsapp-float{
    position: fixed;
    left: 1.4rem;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    width: 52px; height:52px; border-radius:50%;
    background:#25b551; color:#fff; border:none;
    display:flex; align-items:center; justify-content:center;
    font-size:1.35rem; box-shadow: 0 8px 20px rgba(11,35,64,.25);
    z-index:1050;
  }
  .qm-whatsapp-float:hover{ background:#1e9c45; color:#fff; }


  .qm-scrolltop{
    position: fixed;
    right: 1.4rem;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--qm-orange); color:#fff; border:none;
    display:flex; align-items:center; justify-content:center;
    font-size: 1.05rem; box-shadow: 0 8px 20px rgba(11,35,64,.25);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1050;
  }
  .qm-scrolltop.show{ opacity:1; visibility:visible; transform: translateY(0); }
  .qm-scrolltop:hover{ background:#d97e0c; color:#fff; }

  .footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}
