/*
 * Webdev Zimbabwe — portfolio / information template (v2026)
 * Load AFTER webdev-base.css.
 *
 * page-architecture "Information": evergreen trust-led hero, structured
 * content, factual proof, one soft CTA. Used by /portfolio.
 *
 * Hero, cards, .wd-split, .wd-ctaband and the FAQ all come from webdev-base.css.
 */

/*
 * Portfolio hero artwork. Only this page uses it, so it stays here rather than
 * in base. Renamed from --developer when the art changed: it is no longer the
 * developer-at-monitors photo, which stays in use on the homepage.
 *
 * The JPEG, not the supplied PNG. The original is an INDEXED 256-colour PNG at
 * 626KB, and an indexed palette bands badly across the large flat black field
 * on the left — the same problem the /email-office art had. Re-encoded at q78
 * it is 196KB with full colour: smaller and cleaner.
 *
 * 196KB is heavier than the 126-177KB the other heroes sit at, and that is the
 * subject, not slack encoding: the right half is a wall of small screenshots
 * whose fine detail JPEG cannot compress away without turning the browser
 * chrome to mush. Dropping to q70 saves only ~30KB and visibly softens them.
 *
 * Dark artwork with the copy space on the left, so it takes the DEFAULT scrim
 * and must NOT take --light-art: the heading sits over the plain black field,
 * and the gradient has cleared by the time it reaches the screenshots.
 */
.wd-subhero--portfolio {
  --wd-subhero-art: url("../img/portfoliopage.jpg");
}

/* ---------- approach principles ---------- */

.wd-principles {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wd-principles__top {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

/* The number is content, not ornament, so it lives in the markup. */
.wd-principles__no {
  align-items: center;
  border: 1px solid var(--wd-orange-500);
  border-radius: 50%;
  color: var(--wd-orange-700);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.wd-principles h3 {
  font-size: 1.0625rem;
}

.wd-principles p {
  color: var(--wd-grey-700);
  font-size: 0.9375rem;
  margin: 0.625rem 0 0;
}

@media (max-width: 767.98px) {
  .wd-principles {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- sector filters ----------
 * Real <button>s in a group, not links: they change what is displayed on this
 * page rather than navigating. Progressive enhancement — with scripts off every
 * project stays visible and the filters simply do nothing, which is why the
 * default state shows all work.
 */
.wd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.wd-filters button {
  background: var(--wd-white);
  border: 1px solid var(--wd-grey-200);
  border-radius: 999px;
  color: var(--wd-grey-700);
  font-family: var(--wd-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 40px;
  padding: 0 1.125rem;
  transition:
    background var(--wd-duration) var(--wd-ease),
    border-color var(--wd-duration) var(--wd-ease);
}

@media (hover: hover) and (pointer: fine) {
  .wd-filters button:hover {
    border-color: var(--wd-orange-500);
  }
}

.wd-filters button[aria-pressed="true"] {
  background: var(--wd-charcoal-950);
  border-color: var(--wd-charcoal-950);
  color: var(--wd-white);
}

.wd-filters button:focus-visible {
  box-shadow: var(--wd-focus);
  outline: 0;
}

/* ---------- work gallery ---------- */

.wd-gallery {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wd-work {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  padding: 0;
}

/*
 * Screenshot frame. `aspect-ratio` plus object-fit keeps a row of cards level
 * even though the source images are different shapes, and the top corners are
 * rounded to match the card the image sits flush inside.
 */
.wd-work__shot {
  aspect-ratio: 16 / 10;
  background: var(--wd-grey-100);
  border-bottom: 1px solid var(--wd-grey-100);
  display: block;
  overflow: hidden;
}

/*
 * `height`/`width` are !important for the same reason as every other image rule
 * in this project: custom.css carries a global `li img { height: 42px
 * !important }` above 768px, and these cards may sit inside a list.
 */
.wd-work__shot img {
  display: block;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--wd-duration) var(--wd-ease);
  width: 100% !important;
}

@media (hover: hover) and (pointer: fine) {
  .wd-work:hover .wd-work__shot img {
    transform: scale(1.03);
  }
}

.wd-work__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.375rem;
  padding: clamp(1rem, 2vw, 1.375rem);
}

.wd-work__sector {
  color: var(--wd-orange-700);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.wd-work h3 {
  font-size: 1.125rem;
}

.wd-work p {
  color: var(--wd-grey-700);
  font-size: 0.9375rem;
  margin: 0;
}

.wd-work__foot {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.875rem;
}

/* Round arrow badge, matching the design's card affordance. */
.wd-work__badge {
  align-items: center;
  border: 1px solid var(--wd-orange-500);
  border-radius: 50%;
  color: var(--wd-orange-700);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

/* Hidden by the filter. A class rather than an inline style so the state is
   inspectable and reversible. */
.wd-work.is-filtered {
  display: none;
}

.wd-gallery__empty {
  color: var(--wd-grey-700);
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 767.98px) {
  .wd-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- sector lists ----------
 * Names as text. Logos are deliberately absent until display permission is
 * confirmed for each organisation (content-guardrails §4).
 */
.wd-sectorlists {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wd-sectorlist {
  border-left: 3px solid var(--wd-orange-500);
  padding-left: 1rem;
}

.wd-sectorlist h3 {
  color: var(--wd-orange-700);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wd-sectorlist ul {
  display: grid;
  gap: 0.375rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.wd-sectorlist li {
  align-items: center;
  color: var(--wd-grey-700);
  display: flex;
  font-size: 0.9375rem;
  gap: 0.5rem;
}

.wd-sectorlist li::before {
  background: var(--wd-orange-500);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 5px;
  width: 5px;
}

@media (max-width: 767.98px) {
  .wd-sectorlists {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- factual proof band ----------
 * .wd-stats MOVED to webdev-base.css -- /website-builder needed the same
 * band. Its @media rules moved with it; class names are unchanged.
 */
