/* ==========================================================================
   Simplex — Reusable content blocks: cards, lists, facts, callouts, pillars, logos,
   map, FAQ and timeline.
   ========================================================================== */

/* ---------- Service blocks ---------- */
.service-block {
  padding-block: 3rem;
  border-top: 1px solid var(--sx-border);
}
.service-block:first-child {
  border-top: 0;
}
.service-block:last-child {
  padding-bottom: 0;
}
.service-block .icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--sx-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 28, 36, 0.08);
  color: var(--sx-red-ink);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-block h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 0;
}
.service-block .lead {
  color: var(--sx-ink);
  margin-bottom: 1.5rem;
}
.service-block .dash-list li {
  color: var(--sx-muted);
}
@media (min-width: 768px) {
  .dash-cols {
    columns: 2;
    column-gap: 2.5rem;
  }
  .dash-cols li {
    break-inside: avoid;
  }
}
.note {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--sx-muted);
  margin: 1rem 0 0;
}
.note .bi {
  color: var(--sx-red);
}

/* ---------- Data centre: compact service cards ---------- */
.svc-card {
  height: 100%;
  background: #fff;
  border-radius: var(--sx-radius);
  padding: 1.5rem;
}
.svc-card h3 {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.svc-card h3 .bi {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--sx-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 28, 36, 0.08);
  color: var(--sx-red-ink);
  font-size: 1.15rem;
}
.svc-card p {
  color: var(--sx-ink);
  margin-bottom: 1rem;
}
.svc-card .dash-list li {
  color: var(--sx-muted);
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

/* ---------- Data centre: specification cards (dark section) ---------- */
.spec {
  height: 100%;
  border: 1px solid var(--sx-dark-line);
  border-radius: var(--sx-radius);
  padding: 1.5rem;
  background: var(--sx-dark-2);
}
.spec h3 {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.spec h3 .bi {
  color: var(--sx-red);
  font-size: 1.2rem;
}
.spec .dash-list li {
  color: var(--sx-dark-text);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.spec .dash-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Data centre: on-site space cards ---------- */
.space-card {
  height: 100%;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  overflow: hidden;
  background: #fff;
}
.space-card .ph {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.space-card .body {
  padding: 1.5rem;
}
.space-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.space-card .dash-list li {
  color: var(--sx-muted);
}
.space-card address {
  font-style: normal;
  color: var(--sx-muted);
}

/* ---------- Contact: office details + click-to-load map ---------- */
.facts-white {
  background: #fff;
}
.facts address {
  font-style: normal;
}
.map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--sx-radius);
  overflow: hidden;
  background-color: #d9d9d6;
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0 12px, transparent 12px 24px);
}
@media (min-width: 992px) {
  .map-embed {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
  }
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--sx-ink);
}
.map-consent .bi {
  font-size: 2rem;
  color: var(--sx-red);
  margin-bottom: 0.5rem;
}
.map-consent .small {
  color: var(--sx-muted);
  max-width: 22rem;
}
.visit h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.page-header .stat-row {
  margin-top: 2.5rem;
}

/* ---------- Key facts list ---------- */
.facts {
  margin: 0;
  border-top: 3px solid var(--sx-red);
  background: var(--sx-surface);
  border-radius: 0 0 var(--sx-radius) var(--sx-radius);
  padding: 0.5rem 0rem;
}
.facts > div {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--sx-border);
}
.facts > div:last-child {
  border-bottom: 0;
}
.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sx-muted);
  margin-bottom: 0.2rem;
}
.facts dd {
  margin: 0;
  font-weight: 600;
}

/* ---------- Milestones (About): vertical timeline with red markers ---------- */
.milestones-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sx-muted);
  margin-bottom: 1.25rem;
}
.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
}
.milestones li {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
  border-left: 2px solid var(--sx-border);
}
.milestones li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.milestones li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sx-red);
  box-shadow: 0 0 0 4px var(--sx-white);
}
.milestones time {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sx-red-ink);
  margin-bottom: 0.2rem;
}
.milestones strong {
  display: block;
  font-weight: 700;
}
.milestones span {
  display: block;
  color: var(--sx-muted);
  font-size: 0.95rem;
}

/* ---------- FAQ accordion (Contact) ---------- */
.faq {
  --bs-accordion-active-bg: var(--sx-surface);
  --bs-accordion-active-color: var(--sx-ink);
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
  --bs-accordion-border-color: var(--sx-border);
}
.faq .accordion-button {
  font-weight: 600;
}
.faq .accordion-body {
  color: var(--sx-muted);
}
.faq .accordion-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Callout ---------- */
.callout {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--sx-red);
  background: var(--sx-surface);
  border-radius: 0 var(--sx-radius-sm) var(--sx-radius-sm) 0;
}
.callout p {
  margin: 0;
  color: var(--sx-muted);
}
.callout strong {
  color: var(--sx-ink);
}

/* ---------- Feature tiles (icon + title + text) ---------- */
.feature {
  height: 100%;
  background: #fff;
  border-radius: var(--sx-radius);
  padding: 1.75rem;
}
.feature .icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--sx-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 28, 36, 0.08);
  color: var(--sx-red-ink);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--sx-muted);
  margin: 0;
}
.feature-surface {
  background: var(--sx-surface);
}

/* ---------- Apply cards (careers) ---------- */
.apply-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--sx-radius);
  padding: 2.25rem;
}
.apply-card .icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--sx-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 28, 36, 0.08);
  color: var(--sx-red-ink);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.apply-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.apply-card p {
  color: var(--sx-muted);
  margin-bottom: 1.75rem;
}
.apply-card .btn {
  margin-top: auto;
}

/* ---------- Pillars: three columns split by vertical rules ---------- */
.pillars {
  --bs-gutter-x: 0;
  border-top: 1px solid var(--sx-border);
}
.pillars > div {
  padding-top: 2.25rem;
  padding-bottom: 0.5rem;
}
.pillars h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.pillars .dash-list li {
  color: var(--sx-muted);
}
.pillars p {
  margin-bottom: 0;
}
.section-dark .pillars {
  border-color: var(--sx-dark-line);
}
.section-dark .pillars .dash-list li {
  color: var(--sx-dark-text);
}
@media (min-width: 992px) {
  .pillars > div {
    padding-right: 1.75rem;
  }
  .pillars > div + div {
    border-left: 1px solid var(--sx-border);
    padding-left: 1.75rem;
  }
  .section-dark .pillars > div + div {
    border-color: var(--sx-dark-line);
  }
}

/* ---------- Document cards ---------- */
.doc-card {
  position: relative;
  height: 100%;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sx-shadow);
  border-color: transparent;
}
.doc-card .icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: var(--sx-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 28, 36, 0.08);
  color: var(--sx-red-ink);
  font-size: 1.35rem;
}
.doc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.doc-card p {
  font-size: 0.9rem;
  color: var(--sx-muted);
  margin-bottom: 0.75rem;
}
.doc-card .link-arrow {
  font-size: 0.9rem;
}

/* ---------- Partner logos (logo only, linked) ---------- */
/* logos are slightly muted and show in full colour on hover or keyboard focus */
.partner-logo {
  display: block;
  padding: 0.5rem;
  text-decoration: none;
  border-radius: var(--sx-radius-sm);
}
.partner-logo .partner-img {
  filter: grayscale(0.1);
  opacity: 0.9;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.partner-logo:hover .partner-img,
.partner-logo:focus-visible .partner-img {
  filter: none;
  opacity: 1;
}
@media (hover: none) {
  .partner-logo .partner-img {
    filter: none;
    opacity: 1;
  }
}
.partner-logo .ph {
  aspect-ratio: 5 / 2;
  border-radius: var(--sx-radius-sm);
  font-size: 0.6rem;
}
.partner-logo .partner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: contain;
}

/* ---------- Certification & membership logos (Certifications page) ---------- */
.cert-logos {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--sx-border);
}
.cert-logos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}
.cert-logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.cert-logos img {
  width: auto;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.9rem;
}
.cert-logos strong {
  font-size: 0.88rem;
  line-height: 1.3;
}
.cert-logos span {
  font-size: 0.8rem;
  color: var(--sx-muted);
}
@media (min-width: 768px) {
  .cert-logos ul {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .cert-logos ul {
    grid-template-columns: repeat(6, 1fr);
  }
  .cert-logos img {
    height: 88px;
  }
}

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sx-shadow);
  border-color: transparent;
}
.service-card .icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--sx-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 28, 36, 0.08);
  color: var(--sx-red-ink);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--sx-muted);
  margin-bottom: 1.5rem;
}
.service-card .link-arrow {
  margin-top: auto;
}
.service-card .stretched-link::after {
  border-radius: var(--sx-radius);
}

/* ---------- Split feature (image + text) ---------- */
.split-media .ph {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.stat-row {
  border-top: 1px solid var(--sx-dark-line);
  margin-top: 2.5rem;
  padding-top: 2rem;
}
.stat strong {
  display: block;
  font-size: clamp(1.25rem, 3.4vw, 2.1rem);
  color: #fff;
  line-height: 1.1;
}
.stat span {
  font-size: 0.85rem;
  color: var(--sx-dark-muted);
}
