/* Service hub pages (hosting, website security, websites for trades, website design).
   The hero look is in css/global.css; price cards are in css/components/pricing-summary.css. */

.hub-kicker {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hub-hero-note {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 1.4rem 0 0;
}

/* Sections */
.hub-section {
  padding: var(--spacing-section) 0;
  border-bottom: 1px solid var(--color-border);
}

.page-hub .section-heading {
  margin-bottom: 1rem;
}

.page-hub .section-intro {
  margin: 0 0 2.75rem;
}

.hub-why .section-intro,
.hub-proof .section-intro:last-child {
  margin-bottom: 0;
}

.hub-proof .section-intro {
  max-width: 44em;
}

/* Price cards with a button pinned to the bottom */
.hub-prices .pricing-grid {
  align-items: stretch;
}

.hub-price-card {
  display: flex;
  flex-direction: column;
}

.hub-price-card ul {
  flex: 1;
}

.hub-price-note {
  color: var(--color-text-light);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 1.1rem 0 0;
}

.hub-price-btn {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
}

.hub-terms {
  margin-top: 2.25rem;
  flex-direction: column;
  gap: 0.55rem;
}

.hub-next-rung {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 44em;
  margin: 1.75rem 0 0;
}

/* Two price cards (websites for trades) */
.hub-pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
}

/* How it works: a numbered sequence */
.hub-steps {
  list-style: none;
  counter-reset: hub-step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card);
}

.hub-steps-3 {
  grid-template-columns: repeat(3, 1fr);
}

.hub-steps li {
  counter-increment: hub-step;
  padding: 1.9rem 1.6rem;
  border-right: 1px solid var(--color-border);
}

.hub-steps li:last-child {
  border-right: 0;
}

.hub-steps li::before {
  content: counter(hub-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.hub-steps h3,
.hub-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hub-steps p,
.hub-card p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* Cards */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hub-card {
  padding: 1.9rem 1.75rem;
  background: var(--color-card);
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.hub-section-alt .hub-card,
.hub-section:not(.hub-included):not(.hub-proof) .hub-card {
  box-shadow: none;
}

.hub-proof .hub-cards {
  margin-top: 2.5rem;
}

.hub-honest {
  font-weight: 700;
  color: var(--color-primary);
  max-width: 40em;
  margin: 2.5rem 0 0;
  line-height: 1.6;
}

/* Not included */
.hub-plain-list {
  max-width: 44em;
  margin: 0;
  padding-left: 1.25rem;
}

.hub-plain-list li {
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

/* FAQ */
.hub-faq-list {
  max-width: 820px;
  margin: 2rem 0 0;
  border-top: 1px solid var(--color-border);
}

.hub-faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
}

.hub-faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}

.hub-faq-item summary::-webkit-details-marker {
  display: none;
}

.hub-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: -0.2rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-accent);
}

.hub-faq-item[open] summary::after {
  content: '\2212';
}

.hub-faq-item p {
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0.75rem 0 0;
  max-width: 44em;
}

/* Ladder strip sits in its own band */
.hub-ladder .care-ladder {
  padding: 0;
}

/* Lead form section */
.hub-form {
  padding: var(--spacing-section) 0;
}

.hub-form-inner {
  max-width: calc(760px + 3.5rem);
  margin-left: max(0px, calc((100% - var(--content-max-width)) / 2));
}

@media (max-width: 900px) {
  .hub-steps,
  .hub-steps-3 {
    grid-template-columns: 1fr;
  }

  .hub-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hub-steps li:last-child {
    border-bottom: 0;
  }

  .hub-pricing-grid-2,
  .hub-cards {
    grid-template-columns: 1fr;
  }

  .hub-section,
  .hub-form {
    padding: 3.5rem 0;
  }

  .hub-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
