/* Services hub — supplements the sd-* system on pages/services.html.
   Palette and rhythm come from the --sd-* tokens; only the linked card
   grid and quote cards are defined here. */

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; row-gap: 34px; }

.hub-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--sd-white, #fff);
  border: 1px solid var(--sd-line, #d7e0e5);
  border-radius: 18px; padding: 26px 24px 22px;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--sd-blue, #168cf0);
  box-shadow: 0 18px 40px -22px rgba(21, 27, 32, .28);
}
.hub-card-top { display: flex; align-items: center; justify-content: space-between; }
.hub-card-num { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; color: var(--sd-blue, #168cf0); }
.hub-card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: #eaf3fd; color: #0f6dc2;
  display: grid; place-items: center;
}
.hub-card-icon svg { width: 24px; height: 24px; display: block; }
.hub-card h3 { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--sd-ink, #151b20); }
.hub-card p { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--sd-text, #59636b); }
.hub-card-more { margin-top: auto; padding-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--sd-blue, #168cf0); }

.hub-card--more .hub-card-icon { background: var(--sd-soft, #f2f6f8); color: var(--sd-ink, #151b20); }

.hub-next { padding: 88px 0; background: var(--sd-soft, #f2f6f8); border-top: 1px solid var(--sd-line, #d7e0e5); }
.hub-next-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 64px; align-items: end; }
.hub-next h2 { margin: 10px 0 18px; color: var(--sd-ink, #151b20); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; }
.hub-next p:last-child { max-width: 720px; margin: 0; font-size: 17px; line-height: 1.7; color: var(--sd-text, #59636b); }
.hub-next-actions { display: flex; flex-direction: column; gap: 12px; }
.hub-next-actions .sd-button { width: 100%; }

.hub-card--more .hub-card-icon { background: var(--sd-soft, #f2f6f8); color: var(--sd-ink, #151b20); }

.hub-card--cta { background: var(--sd-ink, #151b20); border-color: var(--sd-ink, #151b20); }
.hub-card--cta .hub-card-num { color: #79c6ff; }
.hub-card--cta h3 { color: #fff; }
.hub-card--cta p { color: rgba(255, 255, 255, .78); }
.hub-card--cta .sd-button { align-self: flex-start; margin-top: 2px; }

.hub-quotes { padding: 88px 0; background: var(--sd-soft, #f2f6f8); }
.hub-quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hub-quote {
  margin: 0; background: var(--sd-white, #fff);
  border: 1px solid #e3eaf0;
  border-radius: 16px; padding: 26px 26px 22px;
  box-shadow: 0 1px 2px rgba(21, 27, 32, .04);
}

.hub-marquee { display: flex; align-items: center; gap: 26px; padding: 20px 0; background: var(--sd-white, #fff); border-bottom: 1px solid var(--sd-line, #d7e0e5); }
.hub-marquee-label { flex: 0 0 auto; margin: 0; padding-left: max(24px, calc((100% - 1180px) / 2)); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-text, #59636b); }
.hub-marquee-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hub-marquee-track { display: flex; width: max-content; animation: hub-marquee 34s linear infinite; }
.hub-marquee-group { display: flex; gap: 44px; padding-right: 44px; }
.hub-marquee-group span { position: relative; flex: 0 0 auto; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sd-ink, #151b20); white-space: nowrap; }
.hub-marquee-group span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--sd-blue, #168cf0); vertical-align: 1px; }
.hub-marquee-viewport:hover .hub-marquee-track { animation-play-state: paused; }
@keyframes hub-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .hub-marquee { gap: 0; padding: 16px 0; }
  .hub-marquee-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hub-marquee-group { gap: 30px; padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-marquee-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .hub-marquee-viewport::-webkit-scrollbar { display: none; }
  .hub-marquee-track { animation: none; }
}

@media (hover: hover) {
  .hub-card { position: relative; }
  .hub-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(22, 140, 240, .09), transparent 65%);
    transition: opacity 250ms ease;
  }
  .hub-card:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hub-card::after { display: none; } }

@media (max-width: 980px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-next-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hub-grid, .hub-quote-grid { grid-template-columns: 1fr; }
  .hub-next { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { .hub-card { transition: none; } .hub-card:hover { transform: none; } }

/* ===== Hub hero v3 (2026-09-01): direct adaptation of the dropshipchinapro.com/services
   hero — solid navy band, rating line above a 43px H1, one oversized amber CTA, trust
   bullets, then a white big-number stats band. Scoped under .hub-hero / .hub-clone-*;
   !important mirrors the inner-pages-reference.css override idiom. */
.sd-hero.hub-hero { min-height: 634px !important; background: #0f172b !important; }
.sd-hero.hub-hero .sd-hero-overlay { background: linear-gradient(90deg, rgba(15,23,43,.97) 0%, rgba(15,23,43,.88) 38%, rgba(15,23,43,.5) 72%, rgba(15,23,43,.28) 100%), linear-gradient(180deg, rgba(15,23,43,.28), rgba(15,23,43,.4)) !important; }
.hub-hero .sd-hero-content { min-height: 0 !important; padding: 132px 0 88px !important; }
.hub-hero .sd-breadcrumb { margin-bottom: 52px; }
.hub-clone { max-width: 590px; }
.hub-clone-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; color: #fff; font-size: 18px; font-weight: 700; }
.hub-hero-stars { color: #f2a91e; font-size: 18px; letter-spacing: 3px; line-height: 1; }
.sd-hero.hub-hero h1 { max-width: 590px !important; margin: 0 !important; font-size: 43px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
.hub-clone-sub { max-width: 560px !important; margin: 18px 0 0 !important; color: rgba(255,255,255,.8) !important; font-size: 16px !important; line-height: 1.65 !important; }
.hub-clone-cta { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; margin-top: 34px; min-width: 380px; min-height: 70px; padding: 0 56px; background: #ffb808; color: #000; font-size: 20px; font-weight: 700; letter-spacing: .02em; text-decoration: none; border-radius: 8px; box-shadow: 0 12px 26px rgba(0,0,0,.22); transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.hub-clone-cta:hover, .hub-clone-cta:focus-visible { background: #ffc531; color: #000; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0,0,0,.28); }
.hub-clone-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 30px 0 0; padding: 0; list-style: none; }
.hub-clone-trust li { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 16px; font-weight: 500; }
.hub-clone-trust svg { width: 16px; height: 16px; flex: 0 0 auto; color: #ffb808; }

.hub-clone-stats { background: #fff; border-bottom: 1px solid #e5e7eb; }
.hub-clone-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 56px 0; }
.hub-clone-stats strong { display: block; font-family: inherit; font-size: 48px; font-weight: 700; line-height: 1.05; color: #2c2c2c; }
.hub-clone-stats span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: #6b7280; }
#hub-services, #hub-quotes { scroll-margin-top: 96px; }

/* Optimize pass (2026-09-01): 1) section H2s step below the 43px hero H1 */
.sd-page main h2 { font-size: clamp(30px, 2.9vw, 40px) !important; line-height: 1.14 !important; letter-spacing: -.012em !important; }
/* 3) one navy across the page (clone hero tone), 4) one 88px vertical step */
.sd-page .sd-cta.hub-cta { background: #0f172b !important; padding: 88px 0 !important; }
.sd-page .sd-heading { padding-top: 88px !important; }
.sd-page .hub-platforms { padding: 88px 0 !important; }
/* 5) the quote action always wears the same amber button */
.hub-clone-cta { text-transform: uppercase; }
.hub-next .hub-clone-cta, .sd-cta .hub-clone-cta { margin-top: 12px; min-width: 300px; min-height: 58px; font-size: 17px; }
@media (max-width: 900px) {
  .hub-next .hub-clone-cta, .sd-cta .hub-clone-cta { width: 100%; min-width: 0; }
}
/* 9) trust bullets become a tight 2x2 grid on phones */
@media (max-width: 700px) {
  .hub-clone-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .hub-clone-trust li { font-size: 14px; }
}

/* Card redesign (2026-09-01): reference-style photo cards — image top, 20px radius,
   one-line copy, Learn More. Six cards on a plain 3x2 hub-grid. */
.hub-cards { row-gap: 26px; margin-bottom: 88px; }
.hub-card--photo { flex-direction: column; gap: 0; padding: 0; border-radius: 20px; border-color: #e3eaf0; overflow: hidden; }
.hub-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #edf2f6; }
.hub-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hub-card--photo:hover .hub-card-media img { transform: scale(1.045); }
.hub-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 18px 20px 20px; }
.hub-card--photo h3 { margin: 0; }
.hub-card--photo p { margin: 0; font-size: 14.5px; }
.hub-card--photo .hub-card-more { margin-top: auto; padding-top: 6px; font-size: 15.5px; color: var(--sd-ink, #151b20); }
.hub-card--photo:hover .hub-card-more,
.hub-card--photo:focus-visible .hub-card-more { color: var(--sd-blue, #168cf0); }
@media (prefers-reduced-motion: reduce) { .hub-card-media img { transition: none; } .hub-card--photo:hover .hub-card-media img { transform: none; } }

/* Soft-band tightening (2026-09-01): hub-next flows into hub-quotes as ONE band —
   the old stack of 88+88+88px paddings opened a 264px hole between the two blocks. */
.sd-page .hub-next { padding: 88px 0 0 !important; }
.sd-page .hub-next-grid { align-items: center; }
.sd-page .hub-quotes { padding: 0 0 88px !important; }
.sd-page .hub-quotes .sd-heading { padding-top: 64px !important; }
@media (max-width: 900px) {
  .sd-page .hub-next { padding: 64px 0 0 !important; }
  .sd-page .hub-quotes { padding: 0 0 64px !important; }
  .sd-page .hub-quotes .sd-heading { padding-top: 48px !important; }
}

@media (max-width: 980px) {
  .hub-clone-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 44px 0; }
}
@media (max-width: 900px) {
  .sd-hero.hub-hero { min-height: 0 !important; }
  .hub-hero .sd-hero-content { min-height: 0 !important; padding: 116px 0 72px !important; }
  .hub-hero .sd-breadcrumb { margin-bottom: 36px; }
  .sd-hero.hub-hero h1 { font-size: clamp(30px, 8vw, 40px) !important; }
  .hub-clone-rating { font-size: 15px; }
  .hub-hero-stars { font-size: 15px; }
  .hub-clone-sub { font-size: 15px !important; }
  .hub-clone-cta { width: 100%; min-width: 0; }
  .hub-clone-trust { gap: 10px 18px; }
  .hub-clone-trust li { font-size: 14px; }
  .hub-clone-stats strong { font-size: 36px; }
  .hub-clone-stats span { font-size: 14px; }
}
