/* ShipPlus Hub page (Figma "ShipPlus Hub" 587:8405 desktop, "Frame 1000003232" 699:7095 mobile) */

/* ---------- Hero ---------- */
.hub-hero {
  min-height: 776px;
  display: flex;
  align-items: center;
  padding: 96px 0;
  background: url("../assets/hub-hero-bg.webp") center / cover no-repeat #fff;
}
.hub-hero-content { max-width: 620px; }
.hub-hero h1 {
  font-size: 56px;
  line-height: 68px;
  font-weight: 700;
  color: var(--navy);
}
.hub-hero h1 .teal { color: var(--teal); }
.hub-hero-sub {
  margin-top: 16px;
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
  max-width: 576px;
}
.hub-hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.hub-badges {
  display: flex;
  gap: 16px;
  margin-top: 56px;
}
.hub-badges .spd-badge { width: 162px; }
.hub-badge-big {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Why Hub ---------- */
.hub-why {
  padding: 80px 0;
  background: linear-gradient(0deg, #091a41, #22598b);
}
.hub-why .section-head { margin-bottom: 64px; }
.hub-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hub-why-card {
  background: #fff;
  border: 1px solid rgba(230, 236, 245, 0.5);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.hub-why-card > img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 16px; }
.hub-why-card h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
}
.hub-why-card p {
  margin-top: 4px;
  font-size: 18px;
  line-height: 28px;
  color: #040b1b;
}

/* ---------- Services: full-frame photo background (same technique as
   ShipPlus D's .spd-whyshop-bg — box ratio locked to the artwork's own
   ratio so background-size:cover never crops it, image always fits the
   full viewport width edge-to-edge) ---------- */
.hub-services { padding: 0; }
.hub-services-bg {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1672 / 941;
  background: url("../assets/hub-services-bg.webp") center / cover no-repeat #fff;
  container-type: inline-size;
}
.hub-services-overlay { position: absolute; inset: 0; }
.hub-services-overlay .section-head { padding-top: 64px; margin-bottom: 0; }
.hub-services-bg .spd-benefit-grid {
  position: absolute;
  top: 27%;
  right: 8.64%;
  width: 39.73%;
  gap: 20px 16px;
}
.hub-services-bg .spd-benefit-card {
  background: rgba(246, 248, 254, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: clamp(10px, 1.25cqw, 24px);
  gap: clamp(1px, 0.1cqw, 2px);
}
.hub-services-bg .spd-benefit-card h3 {
  font-size: clamp(13px, 1.05cqw, 20px);
  line-height: clamp(18px, 1.67cqw, 32px);
}
.hub-services-bg .spd-benefit-card p {
  font-size: clamp(12px, 1.05cqw, 20px);
  line-height: clamp(16px, 1.67cqw, 32px);
}
.hub-services-bg .spd-benefit-card > img {
  width: clamp(40px, 5cqw, 96px);
  height: clamp(40px, 5cqw, 96px);
  margin-top: clamp(2px, 0.4cqw, 8px);
}
.hub-services-sub {
  font-size: 18px !important;
  line-height: 28px !important;
  color: #040b1b !important;
}
.hub-services .spd-benefit-card h3 { font-weight: 600; }

/* ---------- Steps: 4 columns on this page ---------- */
.hub-steps-grid { grid-template-columns: repeat(4, 1fr); gap: 48px; }
.hub-steps-grid::before { left: calc(100% / 8); right: calc(100% / 8); }
.hub-steps-grid h3 { font-weight: 600; font-size: 24px; }

/* ---------- Comparison table ---------- */
.hub-compare {
  padding: 80px 0;
  background: url("../assets/hub-compare-bg.webp") center / cover no-repeat #f6f8fe;
}
.hub-compare .section-head { margin-bottom: 32px; }
.hub-table {
  max-width: 981px;
  margin: 0 auto;
  background: #ebf9f8;
  border: 1px solid #091a41;
  border-radius: 16px;
  overflow: hidden;
}
.hub-table-head {
  display: grid;
  grid-template-columns: 25% 35% 40%;
  background: var(--navy);
}
.hub-th {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
}
.hub-th img { width: 18px; height: 18px; }
.hub-th.mint { color: #34d399; }
.hub-tr {
  display: grid;
  grid-template-columns: 25% 35% 40%;
  border-top: 1px solid rgba(230, 236, 245, 0.65);
}
.hub-tr > div { padding: 20px; display: flex; align-items: flex-start; gap: 8px; }
.hub-tr img { width: 18px; height: 18px; margin-top: 5px; flex-shrink: 0; }
.hub-td-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--navy);
  align-items: center !important;
}
.hub-td-label img { width: 24px; height: 24px; margin-top: 0; }
.hub-td-old { font-size: 18px; line-height: 28px; color: #ea5455; }
.hub-td-new { font-size: 18px; line-height: 28px; font-weight: 700; color: #091a41; }

/* Mobile comparison stack (display set in the mobile media query;
   base display:none comes from .m-only in style.css) */
.hub-compare-stack {
  flex-direction: column;
  gap: 16px;
}
.hub-ccard {
  background: #ebf9f8;
  border: 1px solid #091a41;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hub-ccard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--navy);
}
.hub-ccard-title .chip {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hub-ccard-title .chip img { width: 16px; height: 16px; }
.hub-ccard-old,
.hub-ccard-new { border-radius: 8px; padding: 12px; }
.hub-ccard-old { background: #fff; border: 1px solid #ebedf1; }
.hub-ccard-new { background: #091a41; }
.hub-ccard .tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hub-ccard .tag img { width: 14px; height: 14px; }
.hub-ccard-old .tag { color: #6b7280; }
.hub-ccard-new .tag { color: #34d399; }
.hub-ccard-old p { font-size: 14px; line-height: 20px; font-weight: 500; color: #4b5563; }
.hub-ccard-new p { font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; }

/* ---------- Branches ---------- */
.hub-branches {
  padding: 80px 0;
  background: #f6f8fe;
  border-top: 1px solid rgba(230, 236, 245, 0.4);
}
.hub-branches .section-head { margin-bottom: 64px; }
.hub-branches-sub {
  font-size: 20px !important;
  line-height: 32px !important;
  color: #040b1b !important;
}
.hub-map { display: none; }
.hub-branch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.hub-branch-card {
  background: #fff;
  border: 1px solid rgba(230, 236, 245, 0.6);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.hub-branch-img {
  height: 136px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6ecf5;
}
.hub-branch-img img { width: 100%; height: 100%; object-fit: cover; }
.hub-branch-card h3 {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink);
}
.hub-branch-card p {
  margin-top: 4px;
  font-size: 18px;
  line-height: 28px;
  color: rgba(26, 26, 26, 0.8);
  flex: 1;
}
.hub-branch-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 236, 245, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 18px;
}
.hub-branch-foot span { font-weight: 700; color: var(--navy); }
.hub-branch-foot a { color: #19b5a5; }

/* ---------- Register extras ---------- */
.hub-trust-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: #fff;
}
.hub-trust-row .dot { opacity: 0.8; }
.spd-register .btn-white-outline .btn-arrow-teal { width: 20px; height: 20px; }

/* ---------- Mobile (Figma 699:7095, 390px) ---------- */
@media (max-width: 767px) {
  .hub-hero {
    min-height: 0;
    padding: 40px 0;
    background-image: url("../assets/hub-hero-bg-m.webp");
    background-position: top center;
    align-items: flex-start;
  }
  .hub-hero-content { max-width: none; width: 100%; }
  .hub-hero h1 { font-size: 32px; line-height: 40px; color: #091a41; }
  .hub-hero-sub { font-size: 16px; line-height: 26px; color: #091a41; }
  .hub-hero-buttons { flex-direction: column; margin-top: 24px; }
  .hub-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    margin-top: 32px;
    width: 100%;
  }
  .hub-badges .spd-badge {
    width: 100%;
    flex: none;
    padding: 20px 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(11, 31, 77, 0.08);
  }
  .hub-badge-big {
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    color: var(--navy);
  }
  .hub-badges .spd-badge-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #091a41;
  }

  .hub-why { padding: 48px 0; }
  .hub-why .section-head { margin-bottom: 32px; }
  .hub-why .section-head h2 { font-size: 24px; line-height: 32px; }
  .hub-why .section-head p { font-size: 14px; line-height: 22px; }
  .hub-why-grid { grid-template-columns: 1fr; gap: 16px; }
  .hub-why-card h3 { font-weight: 700; line-height: 32px; }
  .hub-why-card p { font-size: 18px; line-height: 24px; }

  .hub-services { padding: 0; }
  .hub-services-bg {
    aspect-ratio: unset;
    background: url("../assets/hub-services-bg.webp") center / cover no-repeat;
    padding: 48px 0 56px;
  }
  .hub-services-overlay { position: static; padding: 0 20px; }
  .hub-services-overlay .section-head { padding-top: 0; margin-bottom: 24px; text-align: center; }
  .hub-services .section-head h2 { font-size: 24px; line-height: 32px; color: #091a41; }
  .hub-services-sub { font-size: 14px !important; line-height: 21px !important; color: #091a41 !important; }
  .hub-services-bg .spd-benefit-grid {
    position: static;
    width: 100%;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hub-services-bg .spd-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(11, 31, 77, 0.08);
  }
  .hub-services-bg .spd-benefit-card > img {
    width: 36px;
    height: 36px;
    order: unset;
    margin-top: auto;
    padding-top: 6px;
  }
  .hub-services-bg .spd-benefit-card h3 {
    font-size: 15px;
    line-height: 22px;
    align-self: center;
    text-align: center;
    font-weight: 700;
    color: #091a41;
    margin: 0;
  }
  .hub-services-bg .spd-benefit-card p {
    font-size: 12px;
    line-height: 17px;
    font-weight: 500;
    color: #475569;
    align-self: center;
    text-align: center;
    margin: 0;
  }

  .hub-steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .hub-steps-grid h3 { font-size: 18px; }

  .hub-compare {
    padding: 48px 0;
    background-image: url("../assets/hub-compare-bg-m.webp");
  }
  .hub-compare .section-head { margin-bottom: 24px; }
  .hub-compare .section-head h2 { font-size: 24px; line-height: 32px; }
  .hub-compare-stack.m-only { display: flex; }

  .hub-branches { padding: 48px 0; background: #f9fafb; }
  .hub-branches .section-head { margin-bottom: 24px; }
  .hub-branches .section-head h2 { font-size: 24px; line-height: 32px; }
  .hub-branches-sub { font-size: 14px !important; line-height: 21px !important; }
  .hub-map {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
  }
  .hub-branch-grid { grid-template-columns: 1fr; gap: 16px; }
  .hub-branch-card { border: none; border-radius: 12px; padding: 16px; }
  .hub-branch-img { display: none; }
  .hub-branch-card h3 { margin-top: 0; font-size: 15px; line-height: 23px; color: #091a41; }
  .hub-branch-card p { font-size: 13px; line-height: 20px; color: #091a41; }
  .hub-branch-foot { border-top: none; padding-top: 8px; margin-top: 4px; }
  .hub-branch-foot span, .hub-branch-foot a { color: var(--teal); }
  .d-only-card { display: none; }

  .hub-trust-row { gap: 12px; }
}
