/* ═══════ 翰騏物流有限公司 — Styles ═══════ */
/* Mobile-first, professional, no AI fluff */

:root {
  --blue: #003D7A;
  --blue-dark: #002855;
  --green: #5A9E3E;
  --green-light: #e8f5e0;
  --white: #fff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 1px 3px rgba(0,0,0,0.12);
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: -apple-system, 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body { background: var(--white); overflow-x: hidden; }

/* ── Typography ── */
h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { color: var(--gray-700); margin-bottom: 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 60px;
}
.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }

.nav { display: none; align-items: center; gap: 1.5rem; }
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--blue); text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

.phone-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  display: none;
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
}
.lang-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .phone-link { display: inline; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }

  .logo img { height: 40px; }
  .header { height: 68px; }
  .mobile-nav { top: 68px; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gray-100);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hero-content { max-width: 520px; }
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.0625rem; margin-bottom: 1.5rem; }
.hero-content .btn { margin-right: 0.75rem; margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  .hero { min-height: 500px; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content p { font-size: 1.125rem; }
  .hero .container { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1024px) {
  .hero { min-height: 560px; }
  .hero-content h1 { font-size: 2.5rem; }
}

/* ── Sections ── */
.section { padding: 3rem 0; }
.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 0.5rem; }
.section-desc { color: var(--gray-500); margin-bottom: 2rem; max-width: 600px; }

.bg-gray { background: var(--gray-50); }

@media (min-width: 768px) {
  .section { padding: 4rem 0; }
}

/* ── Intro Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: center;
}
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--blue); }
.stat-label { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.25rem; }

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .stat-num { font-size: 2.25rem; }
}

/* ── Service Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: var(--shadow); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}
.card-body { padding: 1.25rem; }
.card-body h3 { margin-bottom: 0.375rem; font-size: 1rem; }
.card-body p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .card-img { height: 180px; }
}

/* ── Feature List ── */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-left: 3px solid var(--green);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--green);
  font-weight: 700;
}
.feature-body h3 { margin-bottom: 0.25rem; }
.feature-body p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

@media (min-width: 768px) {
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}

/* ── Two-col content ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.two-col-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .two-col-img { height: 320px; }
}

/* ── Partner logos ── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  min-height: 70px;
}
.partner-item img { max-height: 40px; width: auto; filter: grayscale(1); opacity: 0.7; }

@media (min-width: 768px) {
  .partner-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .partner-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--blue);
  padding: 3rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.cta-banner .btn { margin: 0 0.375rem 0.5rem; }

@media (min-width: 768px) {
  .cta-banner { padding: 4rem 0; }
}

/* ── Contact Box ── */
.contact-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.contact-item h3 { font-size: 0.875rem; margin-bottom: 0.125rem; }
.contact-item p { font-size: 0.875rem; margin: 0; color: var(--gray-500); }

@media (min-width: 768px) {
  .contact-box { grid-template-columns: repeat(3, 1fr); }
}

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer a { color: var(--gray-300); }
.footer a:hover { color: var(--white); text-decoration: none; }
.footer li { list-style: none; margin-bottom: 0.375rem; }
.footer-tagline { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Language ── */
body.lang-en [data-zh] { display: none; }
body.lang-zh [data-en] { display: none; }

/* ── Page header (sub-pages) ── */
.page-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 2.5rem 0;
  text-align: center;
}
.page-header h1 { color: var(--blue); }
.page-header p { color: var(--gray-500); margin-top: 0.5rem; }
