/*!
 * Global Hosting: colocation.php page styles (loaded after pages/dedicated-web.css, which holds the shared
 * datacentre components: hero spacing, trust strip, infrastructure band). Selectors: gh-colo-*.
 */

/* ==========================================================================
   Hero illustration (42U rack)
   ========================================================================== */
.gh-colo-art { position: relative; width: 100%; max-width: 540px; margin-left: auto; aspect-ratio: 560 / 520; }
.gh-colo-art__bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; font-family: var(--gh-font); }
.gh-colo-float { z-index: 2; }
.gh-colo-float--rack { top: 4%; left: 6%; gap: 8px; padding: 9px 14px; border-radius: 999px; font-weight: 700; color: var(--gh-ink); }
.gh-colo-float--rack .gh-icon { color: var(--gh-red); }
.gh-colo-float--yours { top: 21%; right: -2%; }
.gh-colo-float--yours .gh-float__icon { background: var(--gh-red); color: #fff; box-shadow: var(--gh-shadow-red); }
.gh-colo-float--power {
  top: 52%; left: -9%;
  background: #151C40; color: var(--gh-on-dark-muted);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gh-colo-float--power strong { color: #fff; }
.gh-colo-float--power .gh-float__icon { background: rgba(74, 222, 155, .14); color: var(--gh-success-on-dark); }
.gh-colo-float--net { bottom: 14%; right: -1%; }
.gh-colo-float--net .gh-float__icon { background: var(--gh-red-50); color: var(--gh-red); }
@media (prefers-reduced-motion: no-preference) {
  .gh-colo-float--yours { animation-delay: -3s; }
  .gh-colo-float--power { animation-delay: -5s; }
  .gh-colo-float--net { animation-delay: -1.5s; }
  .gh-colo-float--rack { animation-duration: 6s; }
}

/* ==========================================================================
   "How the price is built" strip (also the in-page navigation)
   ========================================================================== */
.gh-colo-formula { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0 0 48px; padding: 0; list-style: none; counter-reset: none; }
.gh-colo-formula__step { position: relative; display: flex; min-width: 0; }
.gh-colo-formula__step + .gh-colo-formula__step::before {
  content: "+"; content: "+" / ""; position: absolute; left: -11px; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gh-line-strong); color: var(--gh-ink); font-size: 1rem; font-weight: 800; line-height: 1;
  box-shadow: var(--gh-shadow-xs);
}
.gh-colo-formula__step--cta::before { content: "→" !important; content: "→" / "" !important; background: var(--gh-ink) !important; border-color: var(--gh-ink) !important; color: #fff !important; font-size: .875rem !important; }
.gh-colo-formula__link {
  display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; padding: 18px 18px;
  background: #fff; border: 1px solid var(--gh-line); border-radius: 18px; box-shadow: var(--gh-shadow-sm);
  color: var(--gh-text); text-decoration: none; transition: transform .2s var(--gh-ease), box-shadow .2s var(--gh-ease), border-color .2s;
}
.gh-colo-formula__link:hover { color: var(--gh-text); transform: translateY(-2px); box-shadow: var(--gh-shadow); border-color: var(--gh-line-strong); }
.gh-colo-formula__link:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; }
.gh-colo-formula__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--gh-red-50); color: var(--gh-red); }
.gh-colo-formula__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gh-colo-formula__num { color: var(--gh-muted); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gh-colo-formula__body strong { margin-top: 3px; color: var(--gh-ink); font-size: .9875rem; font-weight: 800; letter-spacing: -.01em; }
.gh-colo-formula__body small { margin-top: 3px; color: var(--gh-muted); font-size: .8125rem; font-weight: 600; }
.gh-colo-formula__step--cta .gh-colo-formula__link { background: var(--gh-navy-900); border-color: var(--gh-navy-900); box-shadow: 0 18px 40px -22px rgba(10, 15, 42, .8); }
.gh-colo-formula__step--cta .gh-colo-formula__icon { background: var(--gh-red); color: #fff; }
.gh-colo-formula__step--cta .gh-colo-formula__num { color: var(--gh-red-soft); }
.gh-colo-formula__step--cta strong { color: #fff; }
.gh-colo-formula__step--cta small { color: var(--gh-on-dark-muted); }
.gh-colo-formula__arrow { margin-left: auto; color: #fff; transition: transform .2s var(--gh-ease); }
.gh-colo-formula__step--cta .gh-colo-formula__link:hover { color: #fff; border-color: var(--gh-navy-900); }
.gh-colo-formula__step--cta .gh-colo-formula__link:hover .gh-colo-formula__arrow { transform: translateX(3px); }
@media (max-width: 1100px) {
  .gh-colo-formula { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-colo-formula__step:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .gh-colo-formula { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .gh-colo-formula__step + .gh-colo-formula__step::before { display: flex !important; left: 50%; top: -8px; width: 22px; height: 22px; font-size: .875rem; }
  .gh-colo-formula__link { padding: 14px 16px; }
}

/* ==========================================================================
   Price blocks + tables
   ========================================================================== */
.gh-colo-block { scroll-margin-top: calc(var(--gh-header-h) + 24px); }
.gh-colo-block + .gh-colo-pair { margin-top: 48px; }
.gh-colo-block__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 18px; }
.gh-colo-block__title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gh-ink); font-size: var(--gh-fs-xl); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.gh-colo-block__title .gh-icon { color: var(--gh-red); }
.gh-colo-block__text { margin: 6px 0 0; color: var(--gh-muted); font-size: .9375rem; line-height: 1.55; }
.gh-colo-block__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gh-colo-block__note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--gh-muted); font-size: var(--gh-fs-xs); line-height: 1.5; }
.gh-colo-block__note .gh-icon { flex: none; margin-top: 1px; color: var(--gh-ink); }

.gh-colo-table-wrap { border-radius: 20px; }
.gh-colo-table { font-size: .9375rem; }
.gh-colo-table th, .gh-colo-table td { padding: 14px 22px; }
.gh-colo-table thead th { padding-top: 14px; padding-bottom: 14px; }
.gh-colo-table tbody th[scope="row"] { color: var(--gh-ink); font-weight: 800; white-space: nowrap; }
.gh-colo-table td { color: var(--gh-text); font-weight: 600; }
.gh-colo-table__icon { margin: -3px 8px 0 0; color: var(--gh-subtle); }
.gh-colo-table__price { font-size: 1.0625rem; font-weight: 800 !important; letter-spacing: -.01em; }
.gh-colo-table__per { margin-left: 2px; color: var(--gh-muted); font-size: .8125rem; font-weight: 600; }
.gh-colo-table__action { width: 1%; white-space: nowrap; text-align: right !important; }
.gh-colo-nowrap { white-space: nowrap; }

/* U size cell: mini rack meter + size + note */
.gh-colo-u { display: inline-flex; align-items: center; gap: 12px; }
.gh-colo-u__meter { position: relative; display: inline-block; flex: none; width: 12px; height: 30px; border-radius: 4px; background: var(--gh-bg-soft); border: 1px solid var(--gh-line-strong); overflow: hidden; }
.gh-colo-u__meter span { position: absolute; left: 0; right: 0; bottom: 0; height: var(--gh-fill, 10%); background: linear-gradient(180deg, #F2575B, var(--gh-red)); }
.gh-colo-u__size { min-width: 42px; color: var(--gh-ink); font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.gh-colo-u__note { padding: 3px 9px; border-radius: 999px; background: var(--gh-red-50); color: var(--gh-red-700); font-size: .75rem; font-weight: 700; }

.gh-colo-quote {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--gh-line-strong); background: #fff; color: var(--gh-ink); font-size: var(--gh-fs-sm); font-weight: 700; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.gh-colo-quote .gh-icon { transition: transform .2s var(--gh-ease); }
.gh-colo-quote:hover { background: var(--gh-ink); border-color: var(--gh-ink); color: #fff; }
.gh-colo-quote:hover .gh-icon { transform: translateX(2px); }
.gh-colo-quote:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; }

.gh-colo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--gh-success-bg); color: var(--gh-success); font-size: .8125rem; font-weight: 700; }

/* bandwidth table + side column */
.gh-colo-pair { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gh-colo-table--bw th, .gh-colo-table--bw td { padding-top: 11px; padding-bottom: 11px; }
.gh-colo-side { display: grid; gap: 20px; padding-top: 0; }
.gh-colo-addons {
  scroll-margin-top: calc(var(--gh-header-h) + 24px);
  padding: 26px 24px 18px; background: #fff; border: 1px solid var(--gh-line); border-radius: 20px; box-shadow: var(--gh-shadow-sm);
}
.gh-colo-addons .gh-colo-block__title { font-size: var(--gh-fs-lg); }
.gh-colo-addons__list { margin: 14px 0 0; padding: 0; list-style: none; }
.gh-colo-addons__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--gh-line-strong); }
.gh-colo-addons__name strong { display: block; color: var(--gh-ink); font-size: .9375rem; font-weight: 800; }
.gh-colo-addons__name small { display: block; margin-top: 2px; color: var(--gh-muted); font-size: .8125rem; font-weight: 600; }
.gh-colo-addons__price { color: var(--gh-ink); font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gh-colo-addons__price span { margin-left: 2px; color: var(--gh-muted); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }

.gh-colo-help { display: flex; flex-direction: column; padding: 28px 24px 22px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 15, 42, .6); }
.gh-colo-help__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: rgba(187, 52, 55, .2); color: var(--gh-red-soft); }
.gh-colo-help__title { margin: 0 0 8px; color: #fff; font-size: var(--gh-fs-lg); font-weight: 800; letter-spacing: -.015em; }
.gh-colo-help__text { margin: 0 0 20px; color: var(--gh-on-dark-muted); font-size: .9375rem; line-height: 1.6; }
.gh-colo-help__tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--gh-on-dark-muted); font-size: var(--gh-fs-sm); font-weight: 600; text-decoration: none; }
.gh-colo-help__tel strong { color: #fff; font-weight: 800; }
.gh-colo-help__tel .gh-icon { color: var(--gh-red-soft); }
.gh-colo-help__tel:hover strong { color: var(--gh-red-soft); }
.gh-colo-help__tel:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; border-radius: 6px; }

@media (min-width: 1001px) {
  .gh-colo-side { position: sticky; top: calc(var(--gh-header-h) + 24px); }
}
@media (max-width: 1000px) {
  .gh-colo-pair { grid-template-columns: minmax(0, 1fr); }
  .gh-colo-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .gh-colo-table th, .gh-colo-table td { padding-left: 16px; padding-right: 16px; }
  .gh-colo-table--rack .gh-colo-table__icon { display: none; }
}

/* Phones: rack rows become cards; bandwidth keeps a compact 2-column table */
@media (max-width: 880px) {
  .gh-colo-table-wrap--cards, .gh-colo-table--rack { border: 0; }
  .gh-colo-block#rack .gh-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .gh-colo-table--rack, .gh-colo-table--rack tbody, .gh-colo-table--rack tr, .gh-colo-table--rack th, .gh-colo-table--rack td { display: block; }
  .gh-colo-table--rack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .gh-colo-table--rack tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gh-colo-table--rack tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "size price" "outlets power" "cta cta"; column-gap: 12px;
    padding: 18px 18px 16px; background: #fff; border: 1px solid var(--gh-line); border-radius: 18px; box-shadow: var(--gh-shadow-sm);
  }
  .gh-colo-table--rack tbody tr:hover > * { background: transparent; }
  .gh-colo-table--rack th, .gh-colo-table--rack td { padding: 0; border: 0 !important; }
  .gh-colo-table--rack tbody th[scope="row"] { grid-area: size; align-self: center; min-width: 0; }
  /* size + optional "Pola racka" note: the note drops under the size so it never runs into the price */
  .gh-colo-table--rack .gh-colo-u { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 12px; row-gap: 6px; }
  .gh-colo-table--rack .gh-colo-u__note { grid-column: 1 / -1; justify-self: start; }
  .gh-colo-table--rack td[data-label] { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--gh-bg-alt); color: var(--gh-ink); font-size: var(--gh-fs-sm); font-weight: 700; line-height: 1.35; text-align: left; }
  .gh-colo-table--rack td[data-label]::before { content: attr(data-label); color: var(--gh-muted); font-size: .75rem; font-weight: 600; }
  .gh-colo-table--rack td[data-label] .gh-colo-table__icon { display: none; }
  .gh-colo-table--rack td:nth-of-type(1) { grid-area: outlets; }
  .gh-colo-table--rack td:nth-of-type(2) { grid-area: power; min-width: 104px; }
  .gh-colo-table--rack td.gh-colo-table__price { grid-area: price; align-self: center; display: block; padding: 0; margin: 0; background: none; font-size: 1.25rem; }
  .gh-colo-table--rack td.gh-colo-table__price::before { content: none; }
  .gh-colo-table--rack td.gh-colo-table__action { grid-area: cta; width: auto; padding-top: 12px; }
  .gh-colo-table--rack .gh-colo-quote { display: flex; justify-content: center; width: 100%; padding: 11px 14px; }
  .gh-colo-side { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gh-colo-table--bw .gh-colo-table__traffic, .gh-colo-hide-sm { display: none; }
  .gh-colo-table--bw thead th { white-space: normal; }
  .gh-colo-table--bw th, .gh-colo-table--bw td { padding-left: 16px; padding-right: 16px; }
  .gh-colo-block__title { font-size: 1.25rem; }
  .gh-colo-block__head { margin-bottom: 14px; }
  .gh-colo-addons, .gh-colo-help { padding-left: 20px; padding-right: 20px; }
}

/* Cross-sell cards: keep them centred and not too wide */
.gh-colo-more__grid { max-width: 960px; margin: 0 auto; }

@media (max-width: 720px) {
  .gh-colo-table--rack tbody { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .gh-colo-nowrap { white-space: normal; }
}

/* Audience cards: compact rows on phones */
@media (max-width: 640px) {
  .gh-colo-audience .gh-features--boxed .gh-feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 20px 18px; }
  .gh-colo-audience .gh-feature__icon { grid-row: 1; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .gh-colo-audience .gh-feature__title { grid-row: 1; grid-column: 2; margin: 0; font-size: var(--gh-fs-md); }
  .gh-colo-audience .gh-feature__text { grid-column: 1 / -1; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-colo-formula__link, .gh-colo-quote, .gh-colo-quote .gh-icon, .gh-colo-formula__arrow { transition: none; }
  .gh-colo-formula__link:hover { transform: none; }
}
