/* ============================================================
   HHFulfill — site template (NextSmartShip-inspired design language)
   Brand: navy #162a43 + royal blue #2563eb (blue-white variant)
   ============================================================ */
:root {
  --navy: #162a43;
  --navy-deep: #0d1b2e;
  --orange: #2563eb;
  --orange-dark: #1d4ed8;
  --orange-soft: #e9f1fe;
  --ink: #1f2430;
  --muted: #5f6b7a;
  --line: #e5e7eb;
  --bg-soft: #f5f6f8;
  --white: #ffffff;
  --green: #1faa6b;
  --radius: 20px;
  --pill: 999px;
  --shadow: 0 12px 32px rgba(22, 42, 67, .09);
  --shadow-sm: 0 4px 14px rgba(22, 42, 67, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--orange-dark); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 82px; gap: 24px;
}
.logo img { height: 62px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: var(--pill); transition: .18s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-links a.active { color: var(--orange-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 32px; border-radius: var(--pill);
  transition: transform .15s, box-shadow .15s, background .15s;
  font-size: 1rem; border: 0; cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(22, 42, 67, .3); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline-w { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.85); }
.btn-outline-w:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 10px 24px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("warehouse.webp") center/cover no-repeat;
  opacity: .32;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,27,46,.94) 20%, rgba(13,27,46,.55) 60%, rgba(13,27,46,.25) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 104px 0 112px; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: 2.5px;
  color: #c9dcfc; border: 1px solid rgba(37,99,235,.6); border-radius: var(--pill);
  padding: 7px 18px; margin-bottom: 26px; text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 22px; font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -1.5px; max-width: 16ch;
}
.hero h1 .hl { color: var(--orange); }
.hero .lead { font-size: 1.18rem; color: #d7dee8; max-width: 56ch; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(37,99,235,.16);
}
.page-hero::after {
  content: ""; position: absolute; right: 60px; bottom: -180px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(37,99,235,.1);
}
.page-hero .container { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -1px; font-weight: 800; }
.page-hero h1 .hl { color: var(--orange); }
.page-hero p { margin: 0; color: #c9d4e2; font-size: 1.1rem; max-width: 62ch; }
.page-hero a { color: #fff; }

/* ---------- Stat band ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 44px 0; gap: 20px; text-align: center;
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -1px;
  color: var(--orange); line-height: 1.1;
}
.stat-label { color: var(--muted); font-weight: 600; font-size: .95rem; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-title {
  margin: 0 0 14px; text-align: center;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.8px; color: var(--navy);
}
.section-title .hl { color: var(--orange); }
.section-sub { text-align: center; color: var(--muted); max-width: 64ch; margin: 0 auto 52px; font-size: 1.08rem; }
.section-head-left .section-title, .section-head-left .section-sub { text-align: left; }
.section-head-left .section-sub { margin: 0 0 40px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 1.22rem; color: var(--navy); letter-spacing: -.3px; }
.card .kicker { color: var(--orange-dark); font-weight: 700; font-size: .95rem; margin: 0 0 10px; }
.card .body { color: var(--muted); font-size: .97rem; margin: 0 0 14px; flex: 1; }
.card .benefit { margin: 0; font-size: .93rem; color: var(--ink); background: var(--orange-soft); border-radius: 12px; padding: 12px 16px; }
.card .benefit strong { color: var(--orange-dark); }

/* ---------- Steps (stages / how it works) ---------- */
.steps { display: grid; gap: 18px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm); position: relative;
}
.step .num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
.step-arrow { display: none; }

/* ---------- Integration cards ---------- */
.integrations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.integration-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 36px;
  box-shadow: var(--shadow-sm); border-top: 5px solid var(--navy);
}
.integration-card.live { border-top-color: var(--green); }
.integration-card h3 { margin: 14px 0 10px; color: var(--navy); font-size: 1.35rem; }
.integration-card p { color: var(--muted); margin: 0; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 6px 16px; border-radius: var(--pill);
}
.badge-soon { background: #eef1f5; color: var(--muted); }
.badge-now { background: #e2f6ec; color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: -100px; bottom: -140px; width: 360px; height: 360px;
  border-radius: 50%; background: rgba(37,99,235,.14);
}
.cta-band .container { position: relative; z-index: 1; padding-top: 76px; padding-bottom: 76px; text-align: center; }
.cta-band h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.8px; font-weight: 800; }
.cta-band h2 .hl { color: var(--orange); }
.cta-band p { color: #c9d4e2; max-width: 62ch; margin: 0 auto 32px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact strip ---------- */
.contact-strip { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.contact-grid h2 { text-align: left; margin-bottom: 12px; }
.contact-line { margin-top: 16px; color: var(--muted); }
.contact-line span { font-weight: 700; color: var(--ink); }
.contact-line a { color: var(--orange-dark); font-weight: 600; text-decoration: none; }
.warehouse-list { list-style: none; margin: 6px 0 0; padding: 0; }
.warehouse-list li {
  padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; color: var(--navy);
}
.warehouse-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--orange);
}
.warehouse-list li:last-child { border-bottom: 0; }

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 72px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; text-align: center; box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.25rem; }
.contact-card p { color: var(--muted); margin: 0 0 14px; }
.contact-card .big { font-size: 1.3rem; font-weight: 800; color: var(--orange-dark); text-decoration: none; word-break: break-all; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 4px; font-size: 1.06rem; font-weight: 700; color: var(--navy); font-family: var(--font);
}
.faq-q .idx { color: var(--orange); font-weight: 800; margin-right: 12px; font-size: .95rem; }
.faq-q .chev {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; color: var(--orange-dark);
  font-size: 1.1rem; transition: transform .2s, background .2s;
}
.faq-item.open .chev { transform: rotate(180deg); background: var(--orange-soft); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a > div { padding: 0 4px 26px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------- Policy pages ---------- */
.policy { max-width: 860px; }
.policy h2 { color: var(--navy); font-size: 1.6rem; margin: 44px 0 14px; letter-spacing: -.4px; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { color: var(--navy); font-size: 1.2rem; margin: 30px 0 10px; }
.policy p, .policy li { color: var(--muted); }
.policy ol, .policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.ship-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 18px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ship-table th { background: var(--navy); color: #fff; text-align: left; padding: 15px 22px; font-size: .95rem; }
.ship-table td { padding: 14px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.ship-table tr:last-child td { border-bottom: 0; }
.ship-table tr td:first-child { font-weight: 700; color: var(--orange-dark); white-space: nowrap; }

/* ---------- Audience pills (affiliate) ---------- */
.audience { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.audience li {
  background: var(--white); border-radius: var(--pill); padding: 14px 26px;
  font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); font-size: 1rem;
}
.audience li span { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 64px 0 48px;
}
.footer-grid .logo img { height: 44px; }
.footer-blurb { color: var(--muted); font-size: .93rem; margin: 16px 0 0; }
.site-footer h4 { margin: 0 0 18px; color: var(--navy); font-size: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.footer-links a:hover { color: var(--orange-dark); }
.footer-contact p { margin: 0 0 10px; color: var(--muted); font-size: .94rem; }
.footer-contact a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--orange-dark); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 800; font-size: .85rem; transition: background .18s;
}
.socials a:hover { background: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 22px 0; text-align: center;
  color: var(--muted); font-size: .88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; margin-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .header-inner { height: 90px; }
  .logo img { height: 72px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 90px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
    box-shadow: 0 18px 30px rgba(22,42,67,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .nav-cta .btn { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps-3, .steps-4 { grid-template-columns: 1fr; }
  .integrations { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 10px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 72px 24px 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
