/* =========================================================
   QEHS Vault case study (dark navy, blue + green accents)
   Builds on css/case-study.css. Palette values come from the
   project's design-system reference (see the colour card).
   ========================================================= */

@font-face {
  /* Inter, subset to the specimen text only (~9 KB) */
  font-family: "Inter";
  src: url("../assets/fonts/inter-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.cs--qv {
  --qv-bg: #050b14;        /* matches the dark edges of the project images */
  --qv-surface: #0b1522;
  --qv-border: rgba(120, 160, 220, 0.14);
  --qv-blue: #2563eb;
  --qv-blue-soft: #60a5fa;
  --qv-green: #70c842;
  --qv-text: #f3f6fa;
  --qv-muted: #a9b4c3;
  --cs-paper: var(--qv-bg);
  --cs-ink: var(--qv-text);
  --cs-gold: var(--qv-blue-soft);
  --cs-body: var(--font-sans);
}

.cs--qv main {
  background:
    radial-gradient(50rem 34rem at 78% 6%, rgba(37, 99, 235, 0.16), transparent 70%),
    var(--qv-bg);
  color: var(--qv-text);
  font-family: var(--font-sans);
}

.qv-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.qv-section {
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

.qv-blue { color: var(--qv-blue-soft); }

/* section headings with a green ring */
.qv-h {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--qv-text);
}

.qv-h__icon {
  display: inline-grid;
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  color: var(--qv-green);
}

.qv-panel {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--qv-border);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01) 60%), var(--qv-surface);
}

/* circular icons */
.qv-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
}

.qv-icon svg { width: 46%; height: 46%; }
.qv-icon--sm { width: 38px; height: 38px; }
.qv-icon--blue  { background: var(--qv-blue); box-shadow: 0 0 22px -6px rgba(37, 99, 235, 0.8); }
.qv-icon--green { background: #4f9a2a; box-shadow: 0 0 22px -6px rgba(112, 200, 66, 0.7); }

/* ---------- Hero ---------- */
.qv-hero {
  position: relative;
  overflow: clip; /* the enlarged hero image may extend past the content edge; never scroll sideways */
  padding-block: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}

.qv-hero__text {
  position: relative;
  z-index: 1; /* text stays above the image's faded edge */
}

.qv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.qv-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--qv-muted);
}

.qv-crumbs li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: #5b6b80;
}

.qv-crumbs a {
  color: var(--qv-muted);
  text-decoration: none;
}

.qv-crumbs a:hover { color: var(--qv-text); }

.qv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.qv-tags li {
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}

.qv-hero__logo {
  display: block;
  width: clamp(220px, 26vw, 320px);
  height: auto;
  margin-top: 1.4rem;
}

.qv-hero__title {
  margin: 1.1rem 0 0;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--qv-text);
}

.qv-hero__lead {
  max-width: 34rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
  color: var(--qv-muted);
}

.qv-btn-light {
  background: #ffffff;
  color: #0b1522;
}

.qv-btn-light:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
}

.qv-tools__label {
  margin: 1.75rem 0 0.7rem;
  font-weight: 700;
}

.qv-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.qv-tools li {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  padding-inline: 0.55rem;
  border: 1px solid var(--qv-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.qv-tools img { width: auto; height: 32px; } /* supplied icons keep their own proportions */


/* the mockup's own dark edges fade into the page */
.qv-hero__media {
  display: block;
  /* a bit bigger: wider than its column, reaching into the right-hand margin */
  width: 122%;
  max-width: none; /* lifts the site-wide picture { max-width: 100% } for this hero only */
  margin-left: -8%;
  /* blend into the page: an oval fade around the laptop, plus soft fades at every edge,
     so the image's own background never shows as a rectangle */
  -webkit-mask-image:
    radial-gradient(ellipse 60% 62% at 54% 48%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    radial-gradient(ellipse 60% 62% at 54% 48%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

.qv-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Overview ---------- */
.qv-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.qv-overview > div {
  padding-right: clamp(0rem, 3vw, 2.5rem);
  border-right: 1px solid var(--qv-border);
}

.qv-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.qv-facts div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
}

.qv-facts dt { font-weight: 700; color: var(--qv-text); }
.qv-facts dd { margin: 0; color: var(--qv-muted); }

.qv-overview__text {
  margin: 0;
  line-height: 1.8;
  color: #d7dee8;
}

/* ---------- Challenge & goal ---------- */
.qv-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.qv-panel--deco { overflow: hidden; }

.qv-deco {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: clamp(70px, 9vw, 110px);
  height: clamp(70px, 9vw, 110px);
  color: rgba(96, 165, 250, 0.22);
  pointer-events: none;
}

.qv-panel--deco > :not(.qv-deco) { position: relative; }

.qv-bullets {
  display: grid;
  gap: 0.7rem;
  max-width: 34rem;
}

.qv-bullets li {
  display: flex;
  gap: 0.6rem;
  line-height: 1.6;
  color: #d7dee8;
}

.qv-chev {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
}

.qv-chev--blue  { color: var(--qv-blue-soft); }
.qv-chev--green { color: var(--qv-green); }

/* ---------- Key features ---------- */
.qv-features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.qv-feature,
.qv-result {
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--qv-border);
  border-radius: 16px;
  background: var(--qv-surface);
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.qv-feature:hover,
.qv-result:hover {
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-3px);
}

.qv-feature h3,
.qv-result h3 {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.qv-feature p,
.qv-result p {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--qv-muted);
}

/* ---------- Design process ---------- */
.qv-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* green line linking the icons */
.qv-steps::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 31px;
  height: 2px;
  background: linear-gradient(90deg, rgba(112, 200, 66, 0.3), var(--qv-green), rgba(112, 200, 66, 0.3));
}

.qv-step {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  justify-items: center;
  text-align: center;
}

.qv-step__num { font-weight: 800; color: var(--qv-blue-soft); }

.qv-step__title {
  grid-row: 2;
  margin-top: 0.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.qv-step__sub {
  grid-row: 3;
  font-size: 0.85rem;
  color: var(--qv-muted);
}

.qv-step__icon {
  position: relative;
  z-index: 1;
  grid-row: 4;
  align-self: end;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-top: 1rem;
  border: 2px solid var(--qv-blue);
  border-radius: 50%;
  background: #0a1a33;
  color: var(--qv-blue-soft);
  box-shadow: 0 0 22px -6px rgba(37, 99, 235, 0.8);
}

.qv-step__icon img { width: auto; height: 28px; max-width: 32px; }

/* ---------- Design system ---------- */
.qv-ds {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.qv-ds__title {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 800;
}

.qv-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 0.75rem;
}

.qv-swatches li {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  text-align: center;
}

.qv-swatch {
  width: 100%;
  height: 46px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--sw);
}

.qv-swatch__hex  { font-size: 0.8rem; font-weight: 700; }
.qv-swatch__name { font-size: 0.78rem; color: var(--qv-muted); }

.qv-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: "Inter", var(--font-sans);
}

.qv-type p { margin: 0; }

.qv-type__aa {
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.qv-type__name { font-size: 1.4rem; font-weight: 600; }

.qv-type__weights {
  display: grid;
  margin-top: 0.3rem !important;
  font-size: 0.9rem;
  color: var(--qv-muted);
}

.qv-type__sample-h,
.qv-type__sample-b {
  margin: 0;
  font-family: "Inter", var(--font-sans);
}

.qv-type__sample-h { margin-top: 1.25rem; font-weight: 700; font-size: 1rem; }
.qv-type__sample-b { margin-top: 0.35rem; font-size: 0.85rem; color: var(--qv-muted); }

.qv-ui {
  display: grid;
  gap: 0.9rem;
  font-family: "Inter", var(--font-sans);
}

.qv-ui__btn {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.qv-ui__btn--primary   { background: var(--qv-green); color: #fff; }
.qv-ui__btn--secondary { border: 1.5px solid var(--qv-blue); color: var(--qv-blue-soft); }

.qv-ui__search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-inline: 0.9rem;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  color: #8a94a3;
}

.qv-ui__search svg { width: 18px; height: 18px; color: #111; }

/* ---------- Final product ---------- */
.qv-final {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(0rem, 2vw, 1.5rem);
}

.qv-final img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(10px, 1.6vw, 20px);
}

.qv-final__note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--qv-muted);
}

/* ---------- Results ---------- */
.qv-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Footer row ---------- */
.cs--qv .cs-next { background: transparent; border-top: 1px solid var(--qv-border); }
.cs--qv .cs-next__link { color: var(--qv-text); font-family: var(--font-sans); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .qv-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qv-results  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qv-ds       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qv-ds > :first-child { grid-column: 1 / -1; }
  .qv-swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .qv-hero__grid,
  .qv-overview,
  .qv-two { grid-template-columns: minmax(0, 1fr); }

  .qv-hero__media {
    width: 112%;
    margin-left: -6%;
  }

  .qv-overview > div { padding-right: 0; border-right: 0; }

  /* process becomes a vertical list */
  .qv-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .qv-steps::before {
    left: 30px;
    right: auto;
    top: 30px;
    bottom: 30px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--qv-green), rgba(112, 200, 66, 0.3));
  }

  .qv-step {
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .qv-step__icon { grid-column: 1; grid-row: 1 / 4; margin-top: 0; align-self: center; }
  .qv-step__num,
  .qv-step__title,
  .qv-step__sub { grid-column: 2; }
  .qv-step__num { grid-row: 1; }
}

@media (max-width: 640px) {
  /* phones: full column width so the ISO cards on the left stay clear of the faded edge */
  .qv-hero__media {
    width: 100%;
    margin-left: 0;
  }

  .qv-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .qv-results,
  .qv-ds { grid-template-columns: minmax(0, 1fr); }
  .qv-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qv-facts div { grid-template-columns: 7rem minmax(0, 1fr); gap: 0.6rem; }
  .qv-hero__text .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .qv-features { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .qv-feature:hover,
  .qv-result:hover,
  .qv-btn-light:hover { transform: none; }
}
