/* ===== Server & DevOps page (/server-devops/) =====
   Loads after home.css and reuses its .hero*, .hero-card* and .features*
   classes. Only what the page needs on top of those lives here. */

/* Anchored sections sit below the sticky nav (74px; 60px on phones). */
.sd-svc { scroll-margin-top: 96px; }
/* Legacy anchor for old links (#dedicated-sysadmin): sits at the card's top edge, takes no space. */
.sd-svc { position: relative; }
.sd-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; scroll-margin-top: 96px; }
@media (max-width: 600px) { .sd-anchor { scroll-margin-top: 80px; } }
@media (max-width: 600px) { .sd-svc { scroll-margin-top: 80px; } }

/* ----- Buttons: pill shape like .btn, three looks ----- */
.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  border: 1.5px solid transparent;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s;
}
.sd-btn:hover { transform: translateY(-1px); }
.sd-btn--primary { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.sd-btn--primary:hover { box-shadow: 0 10px 24px rgba(245, 126, 32, .35); }
.sd-btn--alert { background: transparent; border-color: var(--accent); color: var(--accent); }
.sd-btn--alert:hover { background: var(--accent); color: #fff; }
.sd-btn--outline { background: transparent; border-color: var(--brand-orange); color: var(--brand-orange); }
.sd-btn--outline:hover { background: var(--brand-orange); color: #fff; }

/* ----- 1. Hero ----- */
.sd-hero { min-height: 0; display: block; } /* .hero is a flex row on the home page; here it stacks the hero text above the cards */
.sd-hero .hero__inner { padding: 88px 0 0; }
.sd-eyebrow {
  margin: 0 0 16px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.sd-hero .hero__title { max-width: 960px; margin: 0 auto 20px; line-height: 1.15; text-wrap: balance; }
.sd-hero__desc {
  max-width: 640px;
  margin: 0 auto 32px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, .86);
}
.sd-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ----- 2. Three ways: same dark gradient as the hero so the glass cards read ----- */
.sd-dark {
  position: relative;
  color: var(--text);
  background:
    radial-gradient(ellipse 420px 320px at 12% 70%, rgba(245, 126, 32, .30), transparent 70%),
    radial-gradient(ellipse 440px 340px at 92% 40%, rgba(47, 158, 220, .26), transparent 70%),
    linear-gradient(120deg, #2c1240 0%, #171a2e 45%, #0c2f37 100%);
}
.sd-ways-block { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 88px; }
.sd-title {
  margin: 0 0 20px;
  text-align: center;
  font-family: "Cairo", "Cairo Fallback", var(--font-body);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}
.sd-underline { width: 150px; height: 4px; margin: 0 auto 56px; background: var(--brand-orange); }
.sd-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sd-way { min-height: 0; justify-content: flex-start; padding: 44px 26px 28px; }
.sd-way .hero-card__desc { flex-grow: 1; }
.sd-way__btn { margin-top: 10px; }
/* The light card (Most Popular) is the same frosted glass as the cPanel card. */
.sd-way:not(.hero-card--soon) .hero-card__desc { color: rgb(40, 39, 39); }

/* ----- 3. What we do: four groups of cards, 3 across, then 2, then 1 ----- */
.sd-services { padding: 80px 0 96px; }
.sd-services__underline { margin-bottom: 56px; }
/* Flex (not grid) so a last row that is not full is centred: every card keeps
   the width of a full row (3 across, 2 on tablet, 1 on mobile). */
.sd-services__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.sd-services__grid > .sd-svc { flex: 0 1 calc((100% - 44px) / 3); min-width: 0; }
.sd-svc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 24px;
  background: #fff;
  border: 1px solid #e3e3e8;
  border-radius: 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sd-svc:hover { border-color: var(--brand-orange); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 20, 40, .08); }
.sd-svc__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 126, 32, .14);
  color: var(--brand-orange);
}
.sd-svc__title {
  margin: 4px 0 0;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 26px;
  color: rgb(40, 39, 39);
}
.sd-svc__desc {
  margin: 0;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 14px;
  line-height: 22px;
  color: rgb(88, 88, 96);
}
.sd-svc__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.sd-svc__list li {
  position: relative;
  padding-left: 18px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: rgb(40, 39, 39);
}
.sd-svc__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
}
.sd-svc__btn { margin-top: 10px; }
/* Emergency: the same red accent as the menu card. */
.sd-svc--alert, .sd-svc--alert:hover { border-color: var(--accent); }
/* "For existing clients" pill: the shared .hero-card__badge pill in the alert red,
   on the card's top edge. */
.sd-svc--alert { position: relative; }
.sd-svc__tag { border-color: var(--accent); color: var(--accent); white-space: nowrap; }
.sd-svc__note { margin: 4px 0 0; font-family: "Manrope", "Manrope Fallback", var(--font-body); font-size: 13px; line-height: 20px; color: rgb(88, 88, 96); text-align: center; }
.sd-svc__note a { color: var(--brand-orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sd-svc--alert .sd-svc__icon { background: rgba(229, 72, 77, .14); color: var(--accent); }
.sd-svc--alert .sd-svc__title { color: var(--accent); }
.sd-svc--alert .sd-svc__list li::before { background: var(--accent); }

@media (max-width: 1099px) {
  .sd-services__grid > .sd-svc { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 900px) {
  .sd-ways { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .sd-group, .sd-svc { scroll-margin-top: 80px; }
  .sd-group + .sd-group { margin-top: 48px; }
  .sd-group__title { font-size: 24px; line-height: 28px; }
  .sd-jump { margin-bottom: 40px; gap: 10px; }
  .sd-hero .hero__inner { padding: 56px 16px 0; }
  .sd-hero__desc { font-size: 16px; line-height: 26px; }
  .sd-hero__actions { flex-direction: column; align-items: stretch; }
  .sd-ways-block { padding-top: 56px; padding-bottom: 64px; }
  .sd-underline, .sd-services__underline { margin-bottom: 40px; }
  .sd-services { padding: 56px 0 64px; }
  .sd-services__grid > .sd-svc { flex-basis: 100%; }
  .sd-ways-block, .sd-services .container { padding-left: 16px; padding-right: 16px; }
}

/* ===== Step 3b: compare, technologies, who, how, why, FAQ, final CTA ===== */
.sd-sec { scroll-margin-top: 96px; }
@media (max-width: 600px) { .sd-sec { scroll-margin-top: 80px; } }

/* Jump-to row and the group headings above each set of cards. */
.sd-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -28px auto 56px; max-width: 900px; }
.sd-jump__link {
  padding: 9px 20px;
  background: #fff;
  border: 1.5px solid var(--brand-orange);
  border-radius: 999px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--brand-orange);
  transition: background .15s, color .15s, transform .12s;
}
.sd-jump__link:hover,
.sd-jump__link:focus-visible { background: var(--brand-orange); color: #fff; transform: translateY(-2px); }
.sd-group { scroll-margin-top: 96px; }
.sd-group + .sd-group { margin-top: 64px; }
.sd-group__title {
  margin: 0 0 8px;
  padding-left: 14px;
  border-left: 4px solid var(--brand-orange);
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  color: rgb(40, 39, 39);
}
.sd-group__intro {
  margin: 0 0 24px;
  padding-left: 18px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: rgb(88, 88, 96);
}

/* ----- 4. Compare table ----- */
.sd-compare { background: #fff; padding: 80px 0 96px; }
.sd-compare__wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3e3e8;
  border-radius: 14px;
  overflow-x: auto; /* the table scrolls inside its own box, never the page */
}
.sd-compare__table { width: 100%; border-collapse: collapse; }
.sd-compare__table th,
.sd-compare__table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid #e3e3e8; }
.sd-compare__table tbody tr:last-child th,
.sd-compare__table tbody tr:last-child td { border-bottom: 0; }
.sd-compare__table thead th {
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgb(40, 39, 39);
  background: #f7f7f9;
}
.sd-compare__table tbody th {
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: rgb(40, 39, 39);
}
.sd-compare__table td {
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 15px;
  color: rgb(122, 122, 122);
}
.sd-compare__table .sd-compare__us,
.sd-compare__table td:last-child { background: rgba(245, 126, 32, .07); }
.sd-compare__table thead .sd-compare__us { color: var(--brand-orange); background: rgba(245, 126, 32, .12); }
.sd-cmp__cell { display: inline-flex; align-items: center; gap: 8px; }
.sd-cmp__x { flex-shrink: 0; color: rgb(170, 170, 178); }
.sd-cmp__ok { flex-shrink: 0; color: var(--brand-orange); }
.sd-cmp__cell--us { color: rgb(40, 39, 39); font-weight: 600; }

/* ----- 5. Technologies: pill chips (same pill look as .hero-card__badge) ----- */
.sd-tech { padding: 72px 0 80px; }
.sd-chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* Grouped chips: nine labelled groups in a grid (3 across, 2 on tablet, 1 on phones). */
.sd-tech-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.sd-tech-group { text-align: center; }
.sd-tech-group__title {
  margin: 0 0 14px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 20px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.sd-tech-group .sd-chip { padding: 6px 14px; font-size: 14px; line-height: 20px; }
/* The label is a button so it can collapse on phones; elsewhere it looks like plain text. */
.sd-tech-group__toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: inherit;
  cursor: default;
}
.sd-tech-group__chev { display: none; }
.sd-chip {
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--brand-orange);
  border-radius: 999px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--brand-orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
  transition: background .15s, color .15s, transform .12s;
}
.sd-chip:hover { background: var(--brand-orange); color: #fff; transform: translateY(-2px); }

/* ----- 6. Who we help: reuses the .sd-svc card ----- */
.sd-who__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sd-who__card:hover { transform: translateY(-3px); }

/* ----- 7. How it works ----- */
.sd-how { background: #fff; padding: 80px 0 96px; }
.sd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sd-step { position: relative; text-align: center; }
.sd-step__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-orange);
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
/* Connector between one circle and the next. */
.sd-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 30px);
  width: calc(100% - 40px);
  border-top: 2px dashed rgba(245, 126, 32, .45);
}
.sd-step__title {
  margin: 0 0 8px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
  color: rgb(40, 39, 39);
}
.sd-step__desc {
  margin: 0;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 14px;
  line-height: 22px;
  color: rgb(88, 88, 96);
}

/* ----- 8. Why Server Salad: .features' look, four columns ----- */
.sd-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; row-gap: 48px; }
.sd-why .feature__title { font-size: 24px; line-height: 1.05; }

/* ----- 10. Final call to action ----- */
.sd-cta { padding: 80px 0 88px; text-align: center; }
.sd-cta .sd-underline { margin-bottom: 28px; }
.sd-cta__text {
  max-width: 560px;
  margin: 0 auto 32px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, .86);
}
.sd-cta__terms { margin: 18px 0 0; font-family: "Manrope", "Manrope Fallback", var(--font-body); font-size: 13px; line-height: 20px; color: rgba(255, 255, 255, .62); }
.sd-cta__terms a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 2px; }
.sd-cta__terms a:hover { color: var(--brand-orange); }

@media (max-width: 1099px) {
  .sd-tech-groups { grid-template-columns: repeat(2, 1fr); }
  .sd-tech-group:last-child { grid-column: 1 / -1; } /* 9 groups in 2 columns: centre the odd one out */
  .sd-who__grid { grid-template-columns: repeat(2, 1fr); }
  .sd-why__grid { grid-template-columns: repeat(2, 1fr); }
}
/* Steps go vertical: circles down the left, one line running through them. */
@media (max-width: 900px) {
  .sd-steps { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin: 0 auto; }
  .sd-step { text-align: left; padding-left: 64px; }
  .sd-step__num { position: absolute; left: 0; top: 0; margin: 0; }
  .sd-step:not(:last-child)::after {
    top: 50px;
    left: 21px;
    width: 0;
    height: calc(100% - 50px + 28px);
    border-top: 0;
    border-left: 2px dashed rgba(245, 126, 32, .45);
  }
}
@media (max-width: 600px) {
  .sd-compare, .sd-how { padding: 56px 0 64px; }
  .sd-tech { padding: 56px 0 60px; }
  /* Phones: each group is a collapsible row (same look family as the FAQ rows). */
  .sd-tech-groups { grid-template-columns: 1fr; gap: 10px; }
  .sd-tech-group { text-align: left; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .04); transition: border-color .18s, background .18s; }
  .sd-tech-group:not(.is-collapsed) { border-color: rgba(245, 126, 32, .55); background: rgba(255, 255, 255, .07); }
  .sd-tech-group__title { margin: 0; }
  .sd-tech-group__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; border-radius: 12px; color: #fff; }
  .sd-tech-group__toggle:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
  .sd-tech-group__chev { display: block; flex-shrink: 0; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 2px solid var(--brand-orange); border-bottom: 2px solid var(--brand-orange); transform: rotate(-135deg); transition: transform .2s, margin .2s; margin-top: 4px; }
  .sd-tech-group.is-collapsed .sd-tech-group__chev { transform: rotate(45deg); margin-top: -4px; }
  .sd-tech-group.is-collapsed .sd-chips { display: none; }
  .sd-tech-group .sd-chips { justify-content: flex-start; padding: 0 18px 18px; }
  .sd-cta { padding: 56px 0 64px; }
  .sd-compare .container, .sd-tech .container, .sd-who .container,
  .sd-how .container, .sd-why .container, .sd-cta .container { padding-left: 16px; padding-right: 16px; }
  .sd-compare__table th, .sd-compare__table td { padding: 12px 10px; }
  .sd-compare__table thead th { font-size: 12px; }
  .sd-compare__table tbody th, .sd-compare__table td { font-size: 13px; line-height: 19px; }
  .sd-cmp__cell { gap: 6px; }
  .sd-who__grid, .sd-why__grid { grid-template-columns: 1fr; }
  .sd-why__grid { row-gap: 40px; text-align: center; }
  .sd-why .feature__desc { margin-left: auto; margin-right: auto; }
  .sd-cta__text { font-size: 16px; line-height: 26px; }
}
