/* ============================================================
   DENVER WEBSITE DESIGNS (site 2428): CASE STUDY PAGES
   /custom/2428/case-studies.css                 written 2026-12-03

   One stylesheet for every case study page (the child pages of
   /System-Case-Studies). Each page links it from the top of its
   own content. The pages sit in the dark homepage wrapper
   (div.hv3), so the colours, fonts, eyebrow, buttons and links
   come from the HOME V3 block in the site CSS. Every class here
   starts with hv3-cs-.

   Sections, top to bottom:
     hv3-cs-hero     title, lead and the four-figure strip
     hv3-cs-story    the business beside an "at a glance" list
     hv3-cs-rows     what they needed -> what they have now
     hv3-cs-results  one large figure and a short list of others
     hv3-cs-end      closing line and the demo button
   ============================================================ */

.hv3-cs { background: var(--hv3-navy); }
.hv3-cs .hv3-cs-k { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hv3-dim); }

/* ---- Hero ---- */
.hv3-cs-hero { position: relative; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); text-align: center; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,.22), transparent 70%), var(--hv3-navy); }
.hv3-cs-hero h1 { margin: 0 auto 1.1rem; max-width: 18ch; font-size: clamp(2.2rem, 5vw, 3.9rem); text-wrap: balance; }
.hv3-cs-hero h1 .hv3-grad-hero { padding-bottom: .08em; }
.hv3 p.hv3-cs-lead { max-width: 720px; margin: 0 auto; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255,255,255,.84); }

.hv3-cs-facts { list-style: none; max-width: 1040px; margin: clamp(2.2rem, 4vw, 3.2rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hv3-line); border-bottom: 1px solid var(--hv3-line); }
.hv3-cs-facts li { margin: 0; padding: 1.4rem .75rem; border-left: 1px solid var(--hv3-line); }
.hv3-cs-facts li:first-child { border-left: 0; }
.hv3-cs-facts b { display: block; font-family: 'DM Sans', 'Raleway', sans-serif; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.hv3-cs-facts span { display: block; margin-top: .4rem; font-size: .9rem; line-height: 1.35; color: var(--hv3-muted); }

/* ---- Client logo: a white tile with rounded corners. Top of each case study, and above each name in the directory.
        The tile has a fixed size and the logo is scaled to fit inside it, so every tile matches whatever
        shape the logo is. The image rules are marked important because the site CSS also sizes images.
        Files: /custom/2428/images/case-studies/ ---- */
.hv3-cs-logo { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 300px; max-width: 100%; height: 104px; margin: 0 auto 1.6rem; padding: 20px 30px; background: #fff; border-radius: 16px; }
.hv3-cs .hv3-cs-logo img { display: block; flex: 0 1 auto; min-width: 0; min-height: 0; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain; }
.hv3-cs-dir .hv3-cs-logo { width: 220px; height: 80px; margin: 0 0 1rem; padding: 14px 20px; border-radius: 12px; }

/* ---- Back link: top left of each case study, above the logo. Goes to the directory (/System-Case-Studies).
        Lifted into the hero's top padding so the logo and title stay where they were. 44px tall for thumbs. ---- */
.hv3 a.hv3-cs-back { display: flex; align-items: center; gap: .55rem; width: fit-content; min-height: 44px; margin: -2.5rem 0 1.5rem; font-size: .92rem; font-weight: 600; line-height: 1.2; color: var(--hv3-muted) !important; text-decoration: none; transition: color 80ms ease-out; }
.hv3 a.hv3-cs-back i { font-size: .85em; transition: transform 150ms ease-out; }
.hv3 a.hv3-cs-back:hover, .hv3 a.hv3-cs-back:focus-visible { color: #fff !important; }
.hv3 a.hv3-cs-back:hover i { transform: translateX(-3px); }
.hv3 a.hv3-cs-back:focus-visible { outline: 2px solid var(--hv3-sky); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .hv3 a.hv3-cs-back, .hv3 a.hv3-cs-back i { transition: none; } .hv3 a.hv3-cs-back:hover i { transform: none; } }

/* ---- Shared section spacing ---- */
.hv3-cs-sec { padding: clamp(3.5rem, 7vw, 5rem) 0; background: var(--hv3-navy); }
.hv3-cs-sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-wrap: balance; }
.hv3-cs-sec .hv3-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }

/* ---- The business, beside the at-a-glance list ---- */
.hv3-cs-story { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hv3-cs-story h2 { margin-bottom: 1.1rem; }
.hv3-cs-story p:last-child { margin-bottom: 0; }
.hv3-cs-glance { margin: 0; padding: 1.75rem; background: var(--hv3-glass); border: 1px solid var(--hv3-line); border-radius: var(--hv3-radius); }
.hv3-cs-glance div { padding: .85rem 0; border-top: 1px solid var(--hv3-line); }
.hv3-cs-glance div:first-child { padding-top: 0; border-top: 0; }
.hv3-cs-glance div:last-child { padding-bottom: 0; }
.hv3-cs-glance dt { margin: 0 0 .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hv3-dim); }
.hv3-cs-glance dd { margin: 0; font-size: 1rem; line-height: 1.45; color: #fff; overflow-wrap: anywhere; }
.hv3-cs-glance a { color: var(--hv3-sky) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---- What they needed -> what they have now ---- */
.hv3-cs-rows { max-width: 1040px; margin: 0 auto; border-top: 1px solid var(--hv3-line); }
.hv3-cs-row { display: grid; grid-template-columns: minmax(0, 5fr) 28px minmax(0, 8fr); gap: 0 1.5rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--hv3-line); }
.hv3-cs-row.is-head { padding: .9rem 0; }
.hv3-cs-row > div > .hv3-cs-k { display: none; }
.hv3-cs-need { font-family: 'DM Sans', 'Raleway', sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: #fff; }
.hv3-cs-now { font-size: 1rem; line-height: 1.6; color: var(--hv3-muted); }
.hv3-cs-arrow { margin-top: .3rem; font-size: .9rem; color: var(--hv3-sky); }

/* ---- Results ---- */
.hv3-cs-results { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.hv3-cs-big { padding: clamp(1.75rem, 3vw, 2.5rem); background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(124,58,237,.2)); border: 1px solid var(--hv3-line); border-radius: var(--hv3-radius-lg); }
.hv3-cs-big-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em .45em; margin: .6rem 0 .8rem; font-family: 'DM Sans', 'Raleway', sans-serif; font-size: clamp(2.8rem, 6.4vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.hv3-cs-big-n s { font-size: .5em; font-weight: 700; color: var(--hv3-dim); text-decoration-thickness: 2px; }
.hv3-cs-big-n i { font-size: .32em; color: var(--hv3-sky); transform: translateY(-.5em); }
.hv3-cs-big-n small { font-size: .34em; font-weight: 700; letter-spacing: 0; color: var(--hv3-muted); }
.hv3 .hv3-cs-big p { margin: 0; font-size: 1rem; color: rgba(255,255,255,.8); }
.hv3-cs-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; align-content: center; }
.hv3-cs-more li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0 1.25rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--hv3-line); }
.hv3-cs-more li:first-child { border-top: 0; }
.hv3-cs-more b { font-family: 'DM Sans', 'Raleway', sans-serif; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.hv3-cs-more span { font-size: .98rem; line-height: 1.5; color: var(--hv3-muted); }

/* ---- Closing line and the demo button ---- */
.hv3-cs-end { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.hv3-cs-end > div { flex: 1 1 420px; min-width: 0; }
.hv3-cs-end h2 { margin-bottom: .6rem; }
.hv3 .hv3-cs-end p { margin: 0; }
.hv3-cs-end-go { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }

/* ---- The directory on the parent page (/System-Case-Studies): one row for each case study ---- */
.hv3-cs-dir { list-style: none; max-width: 1100px; margin: 0 auto; padding: 0; border-top: 1px solid var(--hv3-line); }
.hv3-cs-dir > li { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 6fr) minmax(0, 2.4fr); gap: 0 2rem; align-items: start; margin: 0; padding: 1.9rem 0; border-bottom: 1px solid var(--hv3-line); }
.hv3-cs-dir h3 { margin: 0 0 .45rem; font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.hv3-cs-dir h3 a { color: #fff !important; text-decoration: none; }
.hv3-cs-dir h3 a:hover, .hv3-cs-dir h3 a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.hv3-cs-dir-meta { display: block; font-size: .9rem; line-height: 1.45; color: var(--hv3-dim); }
.hv3 .hv3-cs-dir p { margin: 0 0 .7rem; font-size: 1rem; line-height: 1.6; color: var(--hv3-muted); }
.hv3 .hv3-cs-dir p.hv3-cs-dir-built { margin: 0; font-size: .92rem; color: var(--hv3-dim); }
.hv3-cs-dir-built b { font-weight: 700; color: rgba(255,255,255,.8); }
.hv3-cs-dir-fig b { display: block; font-family: 'DM Sans', 'Raleway', sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.hv3-cs-dir-fig span { display: block; margin: .3rem 0 .5rem; font-size: .9rem; line-height: 1.35; color: var(--hv3-muted); }
.hv3-cs-dir-fig .hv3-link { font-size: .95rem; }

/* ---- "By what you need" on the parent page: a need, then the case studies that answer it ---- */
.hv3-cs-needs { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.hv3-cs-needs div { padding: 1.1rem 0; border-top: 1px solid var(--hv3-line); }
.hv3-cs-needs dt { margin: 0 0 .3rem; font-family: 'DM Sans', 'Raleway', sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff; }
.hv3-cs-needs dd { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--hv3-muted); }
.hv3-cs-needs a { color: var(--hv3-sky) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Tablets and phones ---- */
@media (max-width: 991px) {
  .hv3-cs-story { grid-template-columns: 1fr; }
  .hv3-cs-results { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hv3-cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv3-cs-facts li:nth-child(odd) { border-left: 0; }
  .hv3-cs-facts li:nth-child(n+3) { border-top: 1px solid var(--hv3-line); }
  .hv3-cs-row.is-head { display: none; }
  .hv3-cs-row { grid-template-columns: 1fr; gap: .9rem 0; }
  .hv3-cs-row > div > .hv3-cs-k { display: block; margin-bottom: .3rem; }
  .hv3-cs-row .hv3-cs-arrow { display: none; }
  .hv3-cs-more li { grid-template-columns: 1fr; gap: .2rem 0; }
  .hv3-cs-dir > li { grid-template-columns: 1fr; gap: .9rem 0; }
  .hv3-cs-needs { grid-template-columns: 1fr; }
  .hv3-cs-end-go { width: 100%; }
  .hv3-cs-end-go .hv3-btn { width: 100%; }
}
