/* ============================================================
   QUALITY CONTROL SECTION  —  Riddhi Siddhi Impex
   Standalone, responsive. Scoped entirely to .qc-section so it
   cannot leak into the shared header / footer / global styles.
   ============================================================ */

/* ---------- Tokens ---------- */
.qc-section{
  --qc-navy-900:#12123f;
  --qc-navy-800:#1b1b5c;
  --qc-navy-700:#262c7a;
  --qc-indigo  :#3d40a8;
  --qc-indigo-2:#5a5ed0;
  --qc-red     :#e63946;
  --qc-red-2   :#c41f3c;
  --qc-ink     :#2b2f52;
  --qc-muted   :#5f6485;
  --qc-line    :#e4e6f4;
  --qc-tint    :#f4f5fb;
  --qc-white   :#ffffff;
  --qc-radius  :18px;
  --qc-shadow  :0 18px 44px rgba(27,27,92,.10);

  position:relative;
  padding:50px 0 50px;
  background:
    radial-gradient(900px 460px at 8% 0%, #eef0fb 0%, rgba(238,240,251,0) 62%),
    radial-gradient(760px 420px at 100% 100%, #fdeef0 0%, rgba(253,238,240,0) 60%),
    var(--qc-white);
  overflow:hidden;
  box-sizing:border-box;
}
.qc-section *,
.qc-section *::before,
.qc-section *::after{box-sizing:border-box;}

.qc-container{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:0 20px;
}

/* ---------- Layout ---------- */
.qc-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);
  gap:56px;
  align-items:center;
}

/* ---------- Left : wheel ---------- */
.qc-visual{position:relative;display:flex;justify-content:center;}
.qc-visual::before{
  content:"";
  position:absolute;
  inset:6% 6% 6% 6%;
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%, rgba(61,64,168,.14) 0%, rgba(61,64,168,0) 68%);
}
.qc-wheel{
  position:relative;
  width:100%;
  max-width:560px;
  height:auto;
  display:block;
  overflow:visible;
}
.qc-ring-spin{
  transform-origin:250px 250px;
  animation:qc-spin 46s linear infinite;
}
@keyframes qc-spin{to{transform:rotate(360deg);}}

.qc-seg{
  cursor:default;
  transform-origin:250px 250px;
  transition:transform .35s cubic-bezier(.2,.7,.3,1), filter .35s ease;
}
.qc-seg:hover{transform:scale(1.035);filter:saturate(1.15);}
.qc-seg-label{
  font-size:16px;
  font-weight:800;
  letter-spacing:1px;
  fill:#fff;
  text-anchor:middle;
}
.qc-hub-title{font-size:25px;font-weight:800;letter-spacing:.6px;fill:var(--qc-navy-800);text-anchor:middle;}
.qc-hub-sub{font-size:11px;font-weight:600;letter-spacing:1.2px;fill:var(--qc-muted);text-anchor:middle;}

/* ---------- Right : copy ---------- */
.qc-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:7px 15px;
  border-radius:999px;
  background:rgba(230,57,70,.09);
  border:1px solid rgba(230,57,70,.20);
  color:var(--qc-red-2);
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  margin:0 0 18px;
}
.qc-eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--qc-red);display:block;}

.qc-title{
  margin:0;
  font-size:clamp(34px,4.2vw,54px);
  line-height:1.04;
  font-weight:800;
  letter-spacing:-.5px;
  color:var(--qc-navy-800);
}
.qc-title span{color:var(--qc-red);}

.qc-tagline{
  display:flex;
  align-items:center;
  gap:14px;
  margin:16px 0 22px;
  color:var(--qc-indigo);
  font-size:clamp(15px,1.5vw,19px);
  font-weight:600;
  letter-spacing:.2px;
}
.qc-tagline::before,
.qc-tagline::after{
  content:"";
  height:2px;
  flex:0 0 34px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--qc-red),var(--qc-indigo));
}
.qc-tagline::after{flex:1 1 auto;background:linear-gradient(90deg,var(--qc-indigo),rgba(61,64,168,0));}

.qc-intro{
  margin:0 0 26px;
  max-width:60ch;
  font-size:clamp(15px,1.35vw,17.5px);
  line-height:1.7;
  color:#000;
}

/* ---------- Policy cards ---------- */
.qc-cards{display:grid;gap:16px;}
.qc-card{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:20px;
  padding:20px 26px 20px 20px;
  background:var(--qc-white);
  border:1px solid var(--qc-line);
  border-radius:var(--qc-radius);
  box-shadow:var(--qc-shadow);
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.qc-card::after{
  content:"";
  position:absolute;
  top:14px;right:0;bottom:14px;
  width:6px;
  border-radius:6px 0 0 6px;
  background:var(--qc-accent);
  transition:top .3s ease, bottom .3s ease;
}
.qc-card:hover{
  transform:translateY(-4px);
  border-color:transparent;
  box-shadow:0 24px 54px rgba(27,27,92,.16);
}
.qc-card:hover::after{top:0;bottom:0;}

.qc-icon{
  flex:none;
  width:74px;height:74px;
  border-radius:50%;
  display:grid;place-items:center;
  background:var(--qc-accent);
  color:#fff;
  box-shadow:0 10px 22px color-mix(in srgb, var(--qc-accent) 38%, transparent);
}
.qc-icon svg{width:34px;height:34px;}
.qc-card p{
  margin:0;
  font-size:15.5px;
  line-height:1.65;
  color:var(--qc-ink);
}
.qc-card b{color:var(--qc-navy-800);font-weight:700;}

.qc-c1{--qc-accent:#262c7a;}
.qc-c2{--qc-accent:#e63946;}
.qc-c3{--qc-accent:#3d40a8;}

/* ---------- Bottom : "We aim to" ---------- */
.qc-aim{
  position:relative;
  margin-top:62px;
  padding:clamp(34px,4vw,54px) clamp(26px,4vw,60px);
  border-radius:26px;
  color:#fff;
  background:
    radial-gradient(560px 300px at 88% 12%, rgba(230,57,70,.34) 0%, rgba(230,57,70,0) 60%),
    radial-gradient(520px 320px at 4% 100%, rgba(90,94,208,.42) 0%, rgba(90,94,208,0) 62%),
    linear-gradient(115deg, var(--qc-navy-900) 0%, var(--qc-navy-800) 48%, #2a1f63 100%);
  box-shadow:0 30px 70px rgba(18,18,63,.30);
  overflow:hidden;
}
.qc-aim::before{
  content:"";
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(70% 100% at 30% 0%, #000 0%, transparent 78%);
  -webkit-mask-image:radial-gradient(70% 100% at 30% 0%, #000 0%, transparent 78%);
  pointer-events:none;
}
.qc-aim-inner{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:clamp(22px,3vw,42px);
  align-items:start;
}
.qc-aim-badge{
  width:88px;height:88px;
  border-radius:24px;
  display:grid;place-items:center;
  background:linear-gradient(150deg,var(--qc-red) 0%, var(--qc-red-2) 100%);
  box-shadow:0 16px 34px rgba(230,57,70,.36);
}
.qc-aim-badge svg{width:42px;height:42px;color:#fff;}

.qc-aim h3{
  margin:0 0 6px;
  font-size:clamp(24px,2.8vw,34px);
  font-weight:800;
  letter-spacing:-.2px;
  color:#fff;
}
.qc-aim h3 em{font-style:normal;color:#ff8a94;}
.qc-aim-rule{
  width:74px;height:4px;border-radius:4px;
  background:linear-gradient(90deg,var(--qc-red),#8f92ff);
  margin:0 0 20px;
}
.qc-aim p{
  margin:0;
  max-width:78ch;
  font-size:clamp(15.5px,1.5vw,18.5px);
  line-height:1.78;
  color:rgba(255,255,255,.84);
}
.qc-aim p mark{
  background:none;
  color:#fff;
  font-weight:700;
  box-shadow:inset 0 -.55em 0 rgba(230,57,70,.32);
  padding:0 2px;
}
.qc-aim-quote{
  position:absolute;
  right:clamp(-6px,1vw,26px);
  bottom:-26px;
  font-size:200px;
  line-height:1;
  font-weight:800;
  color:rgba(255,255,255,.06);
  pointer-events:none;
  user-select:none;
}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .qc-grid{gap:40px;}
  .qc-icon{width:66px;height:66px;}
  .qc-icon svg{width:30px;height:30px;}
}
@media (max-width:960px){
  .qc-grid{grid-template-columns:1fr;gap:44px;}
  .qc-visual{order:2;}
  .qc-content{order:1;}
  .qc-wheel{max-width:460px;}
  .qc-tagline::after{flex:0 0 34px;background:linear-gradient(90deg,var(--qc-indigo),var(--qc-red));}
}
@media (max-width:640px){
  .qc-section{padding:40px 0 40px;}
  .qc-card{
    grid-template-columns:1fr;
    gap:14px;
    padding:22px 20px;
    text-align:left;
  }
  .qc-card::after{
    top:auto;bottom:0;left:0;right:0;
    width:auto;height:5px;border-radius:0;
  }
  .qc-card:hover::after{top:auto;bottom:0;}
  .qc-icon{width:58px;height:58px;}
  .qc-icon svg{width:27px;height:27px;}
  .qc-aim{margin-top:44px;border-radius:20px;}
  .qc-aim-inner{grid-template-columns:1fr;gap:20px;}
  .qc-aim-badge{width:70px;height:70px;border-radius:20px;}
  .qc-aim-badge svg{width:34px;height:34px;}
  .qc-aim-quote{font-size:140px;bottom:-18px;}
  /* the wheel is an SVG, so these scale with it — only a modest bump, or the
     labels grow wider than their colour band and spill onto the background */
  .qc-seg-label{font-size:17px;}
  .qc-hub-title{font-size:27px;}
  .qc-hub-sub{font-size:12px;}
}
@media (prefers-reduced-motion:reduce){
  .qc-ring-spin{animation:none;}
  .qc-seg,.qc-card{transition:none;}
}

/* ---------- Site integration ----------
   Headings site-wide now render in the casing the markup uses, so nothing here
   needs to neutralise a global text-transform any more. */
