/**
 * International logistics theme — inspired by FedEx / DHL / UPS layout patterns
 * Clean white surfaces, navy corporate base, orange action accent, prominent tracking
 */

:root {
  --navy-950: #0a1628;
  --navy-900: #0b1f3a;
  --navy-800: #12325a;
  --navy-700: #1a4a7a;
  --brand-blue: #0077c8;
  --brand-orange: #e85d04;
  --brand-orange-hover: #cf4f00;
  --teal-500: #0077c8;
  --teal-400: #3d9fd8;
  --slate-50: #f4f6f8;
  --slate-100: #e8ecf0;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 68px;
  --utility-h: 34px;
  --chrome-h: calc(4px + var(--utility-h) + var(--header-h));
}

body {
  font-family: var(--font-sans);
  color: #2d3748;
  background: #fff;
}

/* Accent strip — FedEx/DHL style top brand bar */
.brand-accent-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 55%, var(--brand-orange) 55%, var(--brand-orange) 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
}

/* Utility bar — UPS/DHL secondary nav */
.utility-bar {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--utility-h);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.utility-tag {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.utility-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.utility-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.utility-divider {
  opacity: 0.35;
}

/* Header — white corporate bar */
.site-chrome .site-header {
  top: calc(4px + var(--utility-h));
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--slate-100);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-chrome .site-header.scrolled {
  box-shadow: 0 2px 12px rgba(11, 31, 58, 0.08);
}

.site-chrome .header-inner {
  height: var(--header-h);
}

.site-chrome .nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4a5568;
}

.site-chrome .nav-links a:hover,
.site-chrome .nav-links a.active {
  color: var(--navy-900);
}

.site-chrome .nav-links a.active::after {
  background: var(--brand-orange);
  height: 3px;
  bottom: -6px;
}

.site-chrome .logo-brand-cn {
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: var(--navy-900);
}

/* Tracking page form */
.track-form--panel {
  display: flex;
  gap: 0.75rem;
  max-width: 100%;
  box-shadow: 0 2px 12px rgba(11, 31, 58, 0.08);
  border: 2px solid var(--navy-900);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
}

.track-form--panel input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: var(--slate-50);
  color: var(--navy-900);
  font-size: 1rem;
}

.track-form--panel input:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--brand-blue);
}

/* Main content offset */
main {
  padding-top: var(--chrome-h);
}

/* Buttons — international CTA */
.btn-accent {
  background: var(--brand-orange) !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: none !important;
}

.btn-accent:hover {
  background: var(--brand-orange-hover) !important;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.35) !important;
}

.btn-primary {
  background: var(--navy-900) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-outline {
  border-radius: 4px !important;
  border-width: 2px !important;
  font-weight: 600 !important;
}

/* Hero — light corporate + navy band (DHL/FedEx hybrid) */
.hero {
  min-height: auto !important;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%) !important;
  padding-top: 0 !important;
  display: block !important;
  position: relative;
  overflow: hidden;
}

/* Large light transport-plane backdrop */
.hero::before {
  content: "";
  position: absolute;
  right: -8vw;
  top: 2.2rem;
  width: min(1120px, 88vw);
  aspect-ratio: 16 / 9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M1430 474l-264-39-410-274c-17-11-39-12-56-2l-17 10c-12 7-17 23-13 36l90 250-236-34-99-144c-8-12-24-17-38-12l-7 2c-19 7-30 27-25 47l34 136-124-18c-23-3-44 12-47 34l-2 11c-3 23 12 44 35 47l124 18-69 122c-10 17-6 38 10 50l5 4c12 9 28 10 41 2l160-97 236 35-157 215c-8 11-8 27-1 39l10 17c10 18 31 27 51 24l489-85 246 102c18 7 38 2 50-13l52-64c11-13 13-31 4-46l-137-224 177-31c20-4 35-20 37-41l4-56c1-20-12-39-32-46z' fill='%23d9e7f4'/%3E%3Cpath d='M1272 470l133-23c10-2 17-10 18-20l2-27c1-10-6-19-16-21l-198-29-438-292a26 26 0 0 0-27-1l-9 5a21 21 0 0 0-10 24l103 286-330-48-121-176a22 22 0 0 0-22-9l83 217-174-25-65 115 238 35 330 48-191 261 16 27 530-92 282 116 25-31-156-256z' fill='%23ebf3fb'/%3E%3Cellipse cx='1220' cy='730' rx='255' ry='48' fill='%23d7e6f4' fill-opacity='.42'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hero-bg,
.hero-grid {
  display: none !important;
}

.hero-top-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-top-band::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 55%;
  height: 180%;
  background: linear-gradient(105deg, transparent 40%, rgba(232, 93, 4, 0.12) 100%);
  pointer-events: none;
}

.hero-content {
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #1f2937 !important;
}

.hero-desc {
  color: #374151 !important;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
  color: #334155 !important;
}

.hero-main {
  padding: 3rem 0 4rem;
  background: #fff;
}

.hero-top-band .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-top-band h1 {
  color: #fff !important;
  font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-bottom: 1rem;
}

.hero-top-band h1 span {
  color: var(--brand-orange) !important;
  -webkit-text-fill-color: var(--brand-orange) !important;
  background: none !important;
}

.hero-top-band .hero-desc {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 1.125rem !important;
  max-width: 640px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  margin-bottom: 1.25rem;
}

.hero-badge-dot {
  background: var(--brand-orange) !important;
}

.hero-cta .btn-outline {
  color: #334155 !important;
  border-color: rgba(148, 163, 184, 0.75) !important;
  background: rgba(255, 255, 255, 0.65) !important;
}

.hero-cta .btn-outline:hover {
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

/* Quick tools — FedEx-style action grid */
.quick-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(11, 31, 58, 0.12);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--slate-100);
}

.quick-tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border-right: 1px solid var(--slate-100);
  transition: background 0.2s, color 0.2s;
  min-height: 120px;
}

.quick-tool:last-child {
  border-right: none;
}

.quick-tool:hover {
  background: var(--navy-900);
  color: #fff;
}

.quick-tool:hover .quick-tool-icon {
  background: var(--brand-orange);
  color: #fff;
}

.quick-tool:hover .quick-tool-title,
.quick-tool:hover .quick-tool-desc {
  color: #fff;
}

.quick-tool-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--slate-50);
  border-radius: 4px;
  font-size: 1.25rem;
  transition: inherit;
}

.quick-tool-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quick-tool-desc {
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.4;
}

/* Stats — navy band like UPS corporate */
.stats-bar {
  margin-top: 0 !important;
  background: var(--navy-900);
  padding: 0 !important;
}

.stats-bar .stats-grid {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.stats-bar .stat-item {
  border-color: rgba(255, 255, 255, 0.12) !important;
  padding: 2rem 1.5rem;
}

.stats-bar .stat-value {
  color: #fff !important;
  font-size: 2.5rem !important;
}

.stats-bar .stat-value span {
  color: var(--brand-orange) !important;
}

.stats-bar .stat-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Sections */
.section-label {
  color: var(--brand-blue) !important;
}

.section-label::before {
  background: var(--brand-orange) !important;
  height: 3px;
}

.section-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.why-card,
.service-card,
.route-item {
  border-radius: 4px !important;
}

.service-card.featured {
  background: var(--navy-900) !important;
}

.why-card:hover {
  border-color: var(--brand-blue) !important;
}

/* Page hero inner pages */
.page-hero {
  padding-top: calc(var(--chrome-h) + 2rem) !important;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800)) !important;
}

.page-hero h1 {
  font-weight: 800 !important;
}

/* CTA banner */
.cta-banner {
  border-radius: 4px !important;
  background: var(--navy-900) !important;
  border-left: 6px solid var(--brand-orange);
}

/* Footer — corporate dark */
.site-footer {
  background: #1a1a2e !important;
  border-top: 4px solid var(--brand-orange);
}

.site-footer .footer-brand .logo-brand-cn {
  color: #fff;
}

/* Trust strip */
.trust-strip {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  padding: 1.25rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip span::before {
  content: "✓";
  color: var(--brand-orange);
  font-weight: 800;
}

/* Hide duplicate track in hero when global bar exists */
.hero .track-widget {
  display: none;
}

.hero-regions {
  margin-top: 1.5rem;
}

.region-chip {
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.5rem 1rem !important;
  border-radius: 4px !important;
  color: #475569 !important;
}

.region-chip strong {
  color: #1f2937 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .quick-tools {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-tool:nth-child(2) {
    border-right: none;
  }
  .quick-tool {
    border-bottom: 1px solid var(--slate-100);
  }
}

@media (max-width: 768px) {
  :root {
    --utility-h: 0px;
    --chrome-h: calc(4px + var(--header-h));
  }

  .utility-bar {
    display: none;
  }

  .site-chrome .site-header {
    top: 4px;
  }

  .track-form--panel {
    flex-direction: column;
  }

  .quick-tools {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .quick-tool {
    border-right: none !important;
  }

  .hero::before {
    right: -22vw;
    top: 4.5rem;
    width: 130vw;
    opacity: 0.55;
  }
}
