/* ============================================
   AcuGIS Webmin Modules
   Extends home.css tokens, buttons, footer, type
   ============================================ */

.mod-hero .eyebrow {
  color: var(--navy);
}

.mod-collage {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px 16px;
  align-items: center;
}

.mod-collage-stack {
  display: grid;
  gap: 18px;
}

.mod-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
}

.mod-logo--nagios {
  max-width: 280px;
  margin-left: auto;
  padding: 28px 22px;
}

.mod-list {
  padding: 8px 0 88px;
  background:
    linear-gradient(180deg, var(--white) 0, var(--soft) 72px);
}

.mod-module {
  padding: 48px 0 8px;
}

.mod-module-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 28px;
}

.mod-module-logo {
  width: auto;
  max-width: min(420px, 100%);
  max-height: 120px;
  object-fit: contain;
}

.mod-module h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  max-width: 18em;
}

.mod-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 18px;
}

.mod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 148px;
  padding: 28px 22px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--navy-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mod-card:hover,
.mod-card:focus-visible {
  color: var(--navy-deep);
  border-color: #bfd3ea;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mod-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cloud-soft);
  color: var(--blue);
}

.mod-card-icon svg {
  width: 22px;
  height: 22px;
}

.mod-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .mod-collage {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .mod-logo--nagios {
    margin-left: 0;
    max-width: none;
  }

  .mod-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mod-card {
    transition: none;
  }

  .mod-card:hover,
  .mod-card:focus-visible {
    transform: none;
  }
}
