/* Net Universe Hardware page — built from Figma "Hardware" (59:4118), desktop only.
   Builds on styles.css (tokens, buttons, dots, contact, footer) and home.css (hero, checks, photo, heads). */

.hw {
  --hw-ink: #0d162b;
  --hw-text: #172544;
  --hw-line: #dde2ea;
  --hw-brand: #94a3b8;
}

/* Body gray is 4.2:1 on the pale background; this shade reaches AA (4.9:1) and looks the same. */
.hw .pale {
  --gray: #636c7f;
}

/* ---------- Shared section pieces ---------- */

.hw-section {
  padding: 120px 0;
}

.hw-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hw-badge {
  margin-bottom: 0;
  letter-spacing: 4.8px;
}

.hw-h2 {
  font-size: clamp(32px, 3.33vw, 48px);
  line-height: 1.15;
  color: var(--hw-ink);
}

.dark .hw-h2 {
  color: #fff;
}

.hw-lead {
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--hw-text);
}

.hw-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- Hero ---------- */

.hw-hero-title {
  font-size: clamp(38px, 3.6vw, 52px);
}

.hw-hero-lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hw-hero-grid .hm-actions {
  margin-top: 16px;
}

.hw-hero-art {
  justify-self: end;
  width: 100%;
  max-width: 540px;
}

.hw-hero-art img {
  width: 100%;
  height: auto;
}

/* ---------- Product splits (laptops, peripherals, networking) ---------- */

.hw-intro {
  display: grid;
  grid-template-columns: minmax(0, 577fr) minmax(0, 606fr);
  align-items: start;
  gap: 64px;
}

.hw-intro.is-media-first {
  grid-template-columns: minmax(0, 606fr) minmax(0, 577fr);
}

.hw-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hw-details {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hw-provide {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hw-provide-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hw-ink);
}

/* Same check artwork as home (check-light.png is the 42x32 icon box from the design). */
.hm-checks.hw-checks {
  gap: 14px;
  padding-top: 8px;
}

.hm-checks.hw-checks li {
  gap: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hw-text);
}

.hm-checks.hw-checks li::before {
  width: 42px;
  height: 32px;
  border-radius: 0;
  background-size: 42px 32px;
}

.hw-photo-laptops {
  aspect-ratio: 606 / 798;
}

.hw-photo-peripherals {
  aspect-ratio: 606 / 784;
}

.hw-photo-networking {
  aspect-ratio: 606 / 840;
}

/* ---------- Featured brands ---------- */

.hw-brands {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 72px;
}

.hw-brands-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--hw-ink);
}

/* Sliding brand row (same marquee as the home page clients). A name without a logo file (StarTech) stays as gray text. */
.hw-brands-marquee {
  padding-top: 28px;
  border-top: 1px solid var(--hw-line);
  --marquee-gap: 56px;
  --marquee-duration: 40s;
}

.hw-brands-row {
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--hw-brand);
}

.hw-brand-name {
  line-height: 1;
}

/* Too few brands to slide (networking): same rule and spacing, but the logos stay put. */
.hw-brands-static {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hw-line);
}

/* ---------- Global procurement & logistics ---------- */

.hw-procurement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 54px;
}

.hw-proc-intro {
  display: grid;
  grid-template-columns: minmax(0, 577fr) minmax(0, 673fr);
  align-items: start;
  width: 100%;
}

.hw-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  padding: 32px 0;
  border-radius: 16px;
  background: #fff;
}

.hw-cards li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 28px;
}

.hw-cards li + li {
  border-left: 1px solid var(--text-light);
}

.hw-cards img {
  width: auto;
  height: 72px;
  margin-bottom: 28px;
}

.hw-cards .hw-icon-contain {
  width: 91px;
  object-fit: contain;
}

.hw-cards h3 {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hw-ink);
}

.hw-cards p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- Final CTA ---------- */

.hw-final {
  overflow: hidden;
  padding-bottom: 40px;
}

.hw-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 586fr) minmax(0, 600fr);
  align-items: center;
  gap: 64px;
}

/* The map export starts at the page edge and is wider than its column, as in the design. */
.hw-map {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
}

.hw-map img {
  width: calc((100% + var(--gutter)) * 1.169);
  max-width: none;
  height: auto;
  margin-left: calc(-1 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
}

.hw-final-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hw-final-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--snow);
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .hw-section {
    padding: 80px 0;
  }

  .hw-hero-grid {
    padding-bottom: 48px;
  }

  .hw-hero-art {
    justify-self: center;
    max-width: 460px;
  }

  .hw-intro,
  .hw-intro.is-media-first,
  .hw-proc-intro,
  .hw-final-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* Splits stack with the image above the text. */
  .hw-intro .hw-photo {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .hw-photo-networking img {
    object-position: 50% 40%;
  }

  .hw-brands {
    margin-top: 56px;
  }

  .hw-final {
    padding-bottom: 80px;
  }

  .hw-map {
    aspect-ratio: auto;
  }

  .hw-map img {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .hw-section {
    padding: 56px 0;
  }

  .hw-head {
    gap: 16px;
  }

  /* Long badges may wrap on phones: tighter tracking, and the dot stays on the first line. */
  .hw .hm-badge,
  .hw-badge {
    align-items: flex-start;
    letter-spacing: 3px;
  }

  .hw .hm-badge::before,
  .hw-badge::before {
    flex: 0 0 auto;
    margin-top: 4px;
  }

  .hw-copy {
    gap: 28px;
  }

  .hw-hero-grid .hm-actions {
    display: flex;
    margin-top: 16px;
  }

  .hw-hero-grid .hm-actions .btn {
    flex: 1 1 100%;
    font-size: 16px;
  }

  .hw-intro .hw-photo {
    aspect-ratio: 4 / 3;
  }

  .hm-checks.hw-checks li {
    align-items: flex-start;
    font-size: 15px;
  }

  .hm-checks.hw-checks li::before {
    margin-top: -7px;
  }

  .hw-brands {
    gap: 20px;
    margin-top: 48px;
  }

  .hw-brands-title {
    font-size: 20px;
  }

  .hw-brands-marquee {
    padding-top: 20px;
    --marquee-gap: 32px;
  }

  .hw-brands-static {
    gap: 12px 32px;
    padding-top: 20px;
  }

  .hw-brands-row {
    font-size: 22px;
  }

  .hw-procurement {
    gap: 40px;
  }

  .hw-cards {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 0;
  }

  .hw-cards li {
    padding: 24px;
  }

  .hw-cards li + li {
    border-left: 0;
    border-top: 1px solid var(--text-light);
  }

  .hw-cards img {
    margin-bottom: 20px;
  }

  .hw-final {
    padding-bottom: 56px;
  }

  .hw-final-text {
    margin-bottom: 8px;
  }
}

/* Brand logos (same #94a3b8 as the text names they replace), sized to the 28px names. */
.hw-brands-row .hw-logo {
  display: block;
  width: auto;
  max-width: none;
  height: 30px;
}

.hw-brands-row .hw-logo.is-dell,
.hw-brands-row .hw-logo.is-hp,
.hw-brands-row .hw-logo.is-lg,
.hw-brands-row .hw-logo.is-cisco {
  height: 44px;
}

/* The Sophos partner badge carries three lines of small text, so it needs more height to stay legible. */
.hw-brands-row .hw-logo.is-sophos {
  height: 52px;
}

.hw-brands-row .hw-logo.is-samsung {
  height: 26px;
}

.hw-brands-row .hw-logo.is-apple {
  height: 36px;
}

.hw-brands-row .hw-logo.is-logitech {
  height: 34px;
}

@media (max-width: 560px) {
  .hw-brands-row .hw-logo {
    height: 24px;
  }

  .hw-brands-row .hw-logo.is-dell,
  .hw-brands-row .hw-logo.is-hp,
  .hw-brands-row .hw-logo.is-lg,
  .hw-brands-row .hw-logo.is-cisco {
    height: 36px;
  }

  .hw-brands-row .hw-logo.is-sophos {
    height: 44px;
  }

  .hw-brands-row .hw-logo.is-samsung {
    height: 20px;
  }

  .hw-brands-row .hw-logo.is-apple {
    height: 30px;
  }

  .hw-brands-row .hw-logo.is-logitech {
    height: 28px;
  }
}
