/*
==================================================================
QUALITY POLICY PAGE
Page-scoped styles for quality-policy.html. Statement text on the
left, a shield-framed visual on the right.

The only component with no existing equivalent is the shield frame -
everything else reuses the shared kit (tt-hp-* in hrms-page.css).
==================================================================
*/

.tt-qp-section {
  position: relative;
  overflow: hidden;
  padding: calc(var(--tt-header-height, 96px) + var(--tt-fold-gap)) 0 var(--tt-section-space);
}

.tt-qp-row { align-items: center; }

/* ==================================================================
   STATEMENT
   ================================================================== */
.tt-qp-title {
  font-family: var(--tt-font-poppins, var(--tt-font-primary));
  font-weight: 800;
  font-size: var(--tt-fs-h1);
  line-height: 1.1;
  color: var(--tt-dark);
  margin-bottom: 1.5rem;
}

.tt-qp-body p {
  font-size: var(--tt-fs-body-lg);
  line-height: 1.85;
  color: var(--tt-muted);
  margin-bottom: 1.5rem;
  max-width: 38rem;
}
.tt-qp-body p:last-of-type { margin-bottom: 0; }

/* Attribution. Kept as a rule + name rather than a quote card - this is a
   signed policy statement, not a testimonial. */
.tt-qp-sign {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tt-border);
  max-width: 38rem;
}
.tt-qp-sign-mark {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tt-gradient-primary);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(var(--tt-primary-rgb), 0.7);
}
.tt-qp-sign-text {
  font-family: var(--tt-font-poppins, var(--tt-font-primary));
  font-size: 1rem;
  font-weight: 700;
  color: var(--tt-dark);
  margin: 0;
}
.tt-qp-sign-sub {
  display: block;
  font-family: var(--tt-font-primary);
  font-size: var(--tt-fs-body-sm);
  font-weight: 500;
  color: var(--tt-muted);
  margin-top: 0.1rem;
}

/* ==================================================================
   SHIELD VISUAL
   A photograph clipped to a shield silhouette, matching the metaphor
   of the policy itself. clip-path uses a polygon (not path()) for
   universal support.
   ================================================================== */
.tt-qp-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tt-qp-visual-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: none;
  filter: blur(30px);
  pointer-events: none;
}

.tt-qp-shield {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.12;
  /* The shield outline is drawn twice: once on this wrapper as a tinted
     "edge", and once on the inner image slightly inset, so the photo reads
     as sitting inside a frame rather than being cut out of nothing. */
  clip-path: polygon(50% 0%, 100% 14%, 100% 52%, 84% 80%, 50% 100%, 16% 80%, 0% 52%, 0% 14%);
  background: var(--tt-gradient-primary);
  display: grid;
  place-items: center;
}
.tt-qp-shield img {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 14%, 100% 52%, 84% 80%, 50% 100%, 16% 80%, 0% 52%, 0% 14%);
}

/* Floating check badge on the shield's lower edge. */
.tt-qp-badge {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 12%;
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--tt-primary);
  font-size: 1.6rem;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.4);
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 991.98px) {
  .tt-qp-visual { margin-top: 2.5rem; }
  .tt-qp-shield { max-width: 340px; }
  .tt-qp-body p { max-width: none; }
  .tt-qp-sign { max-width: none; }
}

@media (max-width: 575.98px) {
  .tt-qp-shield { max-width: 260px; }
  .tt-qp-badge { width: 3.25rem; height: 3.25rem; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-qp-visual-glow { filter: blur(24px); }
}
