/* ==========================================================================
   Kloena Digital — IT & Networking Solutions
   Reuses the project-index components from multimedia.css (hero, category
   headers, project entries, galleries, lightbox) and adds the page shell,
   service-card grid and single-column project variant this page needs.
   ========================================================================== */

@import url("multimedia.css");

/* 1. Page shell
   ========================================================================== */
.page-itnetwork main.itnetwork {
  display: block;
  /* main is a flex item in the page column: allow it to shrink below the
     min-content width of its children instead of overflowing the viewport. */
  min-width: 0;
  width: min(1400px, 100%);
  margin-inline: auto;
  padding: clamp(6px, 1.4vw, 18px) clamp(20px, 3vw, 44px) 0;
}

.page-itnetwork main.itnetwork > section {
  width: 100%;
  margin-inline: auto;
}

/* 2. Hero artwork
   ========================================================================== */
.page-itnetwork .mm-hero__media img {
  object-position: 56% 52%;
  filter: grayscale(0.6) brightness(0.4) saturate(1.04);
}

/* 3. Service cards
   Used by the categories that list capabilities rather than image-led
   case studies (cloud hosting, on-site hardware work).
   ========================================================================== */
.it-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 292px), 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.it-service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: border-color 0.45s ease, background 0.45s ease, transform 0.5s var(--ease);
}

.it-service:hover,
.it-service:focus-within {
  border-color: rgba(255, 203, 0, 0.34);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 203, 0, 0.08), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transform: translateY(-2px);
}

.it-service__num {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.it-service__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.it-service p {
  margin: 0;
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.it-service .mm-project__tags {
  margin-top: auto;
  padding-top: 6px;
}

/* Inline text link inside a card (cross-references between categories). */
.it-link {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 203, 0, 0.38);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.it-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(255, 203, 0, 0.75);
}

.it-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Cards that carry a longer story — the training-centre VPS case and the
   Petronas security-system engagement — stretch across the whole grid. */
.it-service--wide {
  grid-column: 1 / -1;
}

@media (min-width: 760px) {
  .it-service--wide {
    padding: clamp(24px, 3vw, 38px);
  }

  .it-service--wide p {
    max-width: 82ch;
  }

  .it-service--wide p + p {
    margin-top: 0.95em;
  }
}

/* 4. Project layout variant — copy only, no cover art
   ========================================================================== */
.mm-project__layout--single {
  grid-template-columns: minmax(0, 1fr);
}

/* 5. Capability checklist (used under the DeskSpace smart-office entry)
   ========================================================================== */
.it-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 8px;
  margin: clamp(18px, 2.2vw, 24px) 0 0;
  padding: 0;
  list-style: none;
}

.it-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(244, 246, 248, 0.72);
}

.it-features li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* 6. Responsive
   ========================================================================== */
@media (max-width: 720px) {
  .page-itnetwork .mm-hero__media img {
    object-position: 62% 46%;
  }

  .it-service {
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  /* The nav items no longer fit beside the logo: give the nav its own row
     and drop the pipe separators so no stray glyph wraps on its own. */
  .page-itnetwork .site-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .page-itnetwork .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .page-itnetwork .site-nav__list {
    gap: 4px 14px;
  }

  .page-itnetwork .site-nav__list > li + li::before {
    display: none;
  }

  .page-itnetwork .site-nav__link {
    padding: 4px 0;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .it-service {
    transition: none;
  }

  .it-service:hover,
  .it-service:focus-within {
    transform: none;
  }
}
