/* ==========================================================================
   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 center: 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 center: 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 center: 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 ----------
   Full width under the "Who we are" intro.
   - Phones: one line down the left, all entries to its right.
   - 768px+: the line runs down the middle and entries alternate sides. Each entry
     starts halfway alongside the previous one, which roughly halves the height.
   Sides come from a class on each <li> and can be mixed freely (e.g. 1 left, 2 right, 1 left…):
     <li class="milestone-left">   left of the line, right-aligned
     <li class="milestone-right">  right of the line
   The interleave only applies between entries on opposite sides; two in a row
   on the same side simply stack. */
.milestones-wrap {
  margin-top: clamp(3.5rem, 7vw, 5rem);
}
.milestones-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sx-muted);
  text-align: center;
  margin-bottom: 2rem;
}
.milestones {
  --ms-gap: 1.25rem; /* space between the line and the text */
  --ms-line: 6px; /* where the line runs: the left edge on phones, the middle from 768px */
  --ms-dot: calc(0.2rem + 6px); /* vertical centre of each marker */
  position: relative;
  max-width: 60rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
/* the line itself, from the first marker down */
.milestones::before {
  content: "";
  position: absolute;
  top: var(--ms-dot);
  bottom: 0;
  left: calc(var(--ms-line) - 1px);
  width: 2px;
  background: var(--sx-border);
}
.milestones li {
  position: relative;
  padding: 0 0 1.5rem calc(var(--ms-line) + var(--ms-gap));
}
.milestones li:last-child {
  padding-bottom: 0;
}
/* marker */
.milestones li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--ms-line) - 6px);
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sx-red);
  box-shadow: 0 0 0 4px var(--sx-white);
}
/* hide the line below the last marker */
.milestones li:last-child::after {
  content: "";
  position: absolute;
  left: calc(var(--ms-line) - 2px);
  top: var(--ms-dot);
  bottom: 0;
  width: 4px;
  background: 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;
}
@media (min-width: 768px) {
  .milestones {
    --ms-line: 50%;
  }
  .milestones li {
    width: 50%;
    margin-left: 50%;
    padding: 0 0 1.5rem var(--ms-gap);
  }
  .milestones li::before {
    left: -6px;
  }
  .milestones li:last-child::after {
    left: -2px;
  }
  .milestones li.milestone-left {
    margin-left: 0;
    padding: 0 var(--ms-gap) 1.5rem 0;
    text-align: right;
  }
  .milestones li.milestone-left::before {
    left: auto;
    right: -6px;
  }
  .milestones li.milestone-left:last-child::after {
    left: auto;
    right: -2px;
  }
  .milestones li.milestone-left:last-child,
  .milestones li.milestone-right:last-child {
    padding-bottom: 0;
  }
  /* interleave: start alongside the previous entry when it is on the other side */
  .milestones .milestone-left + .milestone-right,
  .milestones .milestone-right + .milestone-left {
    margin-top: -1.25rem; /* less negative = more space; at -1.25rem the next date sits just below the previous summary */
  }
}

/* ---------- 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.4);
  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%;
}
/* When the photo stacks under the text on tablets, a 4:3 photo at full width gets very tall;
   use a wider crop there. Phones (narrow) and desktop (side by side) keep 4:3. */
@media (min-width: 576px) and (max-width: 991.98px) {
  .split-media .media-img,
  .split-media .ph {
    aspect-ratio: 16 / 9;
  }
}
.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);
}

/* ---------- Data center template (site/templates/data-center/): figures banner,
   compact services, compact specifications, certifications banner ---------- */

/* ---------- Inside the facility (dark section): three photo cards ---------- */
.tour-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tour-head h2 {
  margin: 0;
}
.section-dark .tour-head .link-arrow {
  color: #fff;
}
.tour-card {
  margin: 0;
  height: 100%;
  border-radius: var(--sx-radius);
  overflow: hidden;
  background: var(--sx-dark-2);
}
.tour-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tour-card figcaption {
  padding: 1.25rem 1.5rem 1.5rem;
}
.tour-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.tour-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sx-dark-muted);
}

/* ---------- Services, compact: grouped one-liners ---------- */
.svc-group h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sx-muted);
  margin: 0;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--sx-red);
}
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--sx-border);
}
.svc-list .icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--sx-radius-sm);
  background: var(--sx-white);
  color: var(--sx-red-ink);
  font-size: 1.15rem;
}
.svc-list strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.svc-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sx-muted);
}
.svc-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(200, 22, 29, 0.08);
  color: var(--sx-red-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.svc-more {
  margin: 2.5rem 0 0;
  text-align: center;
}

/* ---------- Specifications, compact: one row per system ---------- */
.spec-rows {
  margin: 0;
  border-top: 1px solid var(--sx-border);
}
.spec-rows > div {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--sx-border);
}
.spec-rows dt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}
.spec-rows dt .bi {
  color: var(--sx-red);
  font-size: 1.1rem;
}
.spec-rows dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.3rem;
  color: var(--sx-muted);
}
.spec-rows dd span:not(:last-child)::after {
  content: "·";
  margin-inline: 0.65rem;
  color: var(--sx-red);
  font-weight: 700;
}
@media (min-width: 768px) {
  .spec-rows > div {
    grid-template-columns: 13rem 1fr;
    align-items: baseline;
  }
}

/* ---------- Certifications banner: reuses .cert-logos from the Certifications page ---------- */
.section-compact {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.section-compact .cert-logos {
  padding-block: 0;
  border-bottom: 0;
}
.cert-banner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}
.cert-banner-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0;
}
