/* =========================================================
   Whalego 公司網站樣式
   色彩：深海藍為主色、貨櫃琥珀為強調色
   ========================================================= */

:root {
  --navy-950: #071a33;
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --navy-700: #1b4479;
  --blue-500: #2f80c0;
  --sky-300: #8cc8ee;
  --sky-100: #e8f3fb;
  --sky-50: #f4f9fd;
  --teal-600: #0e7c86;
  --teal-500: #14a3a0;
  --amber-400: #ffb547;
  --amber-300: #ffc266;
  --coral-400: #f2705e;
  --danger: #b42318;

  --text: #1a2738;
  --text-muted: #51627a;
  --border: #d9e4ee;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow: 0 12px 32px rgba(11, 37, 69, 0.12);

  --header-h: 72px;
  --container: 1160px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", "Heiti TC", sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-600);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-800);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  color: var(--navy-900);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 860px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.6em;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.note.center {
  text-align: center;
  margin-top: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.6em 1.3em;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-lg {
  min-height: 52px;
  padding: 0.75em 1.6em;
  font-size: 1.05rem;
}

.btn-primary {
  color: var(--navy-900);
  background: var(--amber-400);
  box-shadow: 0 6px 16px rgba(245, 158, 27, 0.3);
}

.btn-primary:hover {
  color: var(--navy-900);
  background: var(--amber-300);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-secondary {
  color: var(--white);
  background: var(--navy-900);
}

.btn-secondary:hover {
  color: var(--white);
  background: var(--navy-700);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.link-button {
  padding: 0;
  font: inherit;
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 18px rgba(11, 37, 69, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy-900);
}

/* 品牌標誌：鯨魚圖形 + WHALEGO 字標（由公司 Logo 裁切） */
.brand-symbol {
  width: auto;
  height: 42px;
}

.brand-wordmark {
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  gap: 2px;
}

.site-nav ul a {
  display: block;
  padding: 8px 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="true"] {
  color: var(--teal-600);
  background: var(--sky-50);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch:hover {
  color: var(--teal-600);
}

.lang-switch svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(140, 200, 238, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #14507f 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(104px, 12vw, 160px);
}

.hero .eyebrow {
  color: var(--sky-300);
}

.hero h1 {
  margin-bottom: 0.5em;
  font-size: clamp(1.7rem, 2.6vw + 1rem, 3.1rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.hero h1 .line {
  display: block;
}

/* 中文標題以詞組為單位換行，避免在詞語中間斷開 */
.phrase {
  display: inline-block;
}

.hero-kicker {
  display: block;
  margin-bottom: 0.45em;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber-400);
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #c9d8ea;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.95rem;
  color: #dbe7f3;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28));
}

.hero-art .ship {
  animation: bob 6s ease-in-out infinite;
}

.hero-art .plane {
  animation: drift 9s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, -5px);
  }
}

.hero-art .tail {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway 5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.hero-card {
  position: absolute;
  top: 28px;
  left: -28px;
  min-width: 232px;
  padding: 14px 16px 16px;
  color: var(--text);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(7, 26, 51, 0.35);
}

.hero-card p {
  margin: 0;
}

.hero-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-600);
}

.hero-card-route {
  margin: 2px 0 12px !important;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--text-muted);
}

.hero-card-route strong {
  color: var(--navy-900);
}

.hero-card-route .arrow {
  color: var(--amber-400);
  font-weight: 800;
}

.hero-card-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
}

.hero-card-steps li {
  padding-top: 10px;
  border-top: 4px solid var(--border);
  border-radius: 2px;
}

.hero-card-steps .is-done {
  border-top-color: var(--teal-500);
  color: var(--navy-900);
}

.hero-card-steps .is-current {
  border-top-color: var(--amber-400);
  font-weight: 700;
  color: var(--navy-900);
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  fill: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-alt {
  background: var(--sky-50);
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
}

.section-head p:last-child {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Service cards ---------- */
/* 服務項目為 5 張卡片，用 flex 讓最後一列置中 */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.card-grid > .card {
  flex: 0 1 calc((100% - 48px) / 3);
}

.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c4d6e6;
  box-shadow: var(--shadow);
}

.card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 1.2rem;
}

.card h3 small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-600);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card-icon,
.feature-icon {
  display: inline-grid;
  place-items: center;
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--navy-800);
  background: var(--sky-100);
  border-radius: 14px;
}

.card-icon svg,
.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--amber-400);
  background: var(--navy-900);
  border-radius: 50%;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.12rem;
}

.feature p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text-muted);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 26px 24px;
  background: linear-gradient(180deg, var(--sky-50), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Tools: container table + calculator ---------- */
/* 讓格線子項可縮小，避免手機版版面被撐寬 */
.hero-inner > *,
.contact-grid > * {
  min-width: 0;
}

.panel {
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

/* ---------- Form fields (shared) ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #c3d2e0;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8796a8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.25);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--danger);
}

.req {
  margin-left: 2px;
  color: var(--danger);
}

/* ---------- Routes ---------- */
.origin-ports {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -12px 0 36px;
}

.origin-ports li {
  padding: 6px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--sky-100);
  border-radius: 999px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.route-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal-500);
  border-radius: var(--radius);
}

.route-card:nth-child(4n + 2) {
  border-top-color: var(--amber-400);
}

.route-card:nth-child(4n + 3) {
  border-top-color: var(--blue-500);
}

.route-card:nth-child(4n + 4) {
  border-top-color: var(--coral-400);
}

.route-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.route-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 60px 20px 24px;
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--sky-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--teal-600);
}

.faq-item summary:focus-visible {
  outline-offset: -4px;
  border-radius: var(--radius);
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--sky-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.contact-info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
}

.contact-info > p {
  color: var(--text-muted);
}

.contact-list {
  display: grid;
  margin-top: 24px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-600);
}

.contact-list a {
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--teal-600);
  text-decoration: underline;
}

.contact-list .map-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.88rem;
  color: var(--teal-600);
  text-decoration: underline;
}

/* Email 欄：每位聯絡人一組（職稱姓名在上、信箱在下） */
.contact-people {
  display: grid;
  gap: 12px;
}

.contact-people p {
  margin: 0;
}

.contact-people a {
  overflow-wrap: anywhere;
}

.contact-role {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-form h3 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.form-note {
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.form-status:not(:empty) {
  margin-top: 18px;
  padding: 16px 18px;
  font-size: 0.95rem;
  color: #14532d;
  background: #e9f7f0;
  border: 1px solid #b7e3cc;
  border-radius: 12px;
}

.form-status p {
  margin: 0;
}

.form-status p + p {
  margin-top: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 56px;
  font-size: 0.93rem;
  color: #b8c9dc;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer .brand {
  margin-bottom: 14px;
  font-size: 1.3rem;
  color: var(--white);
}

.site-footer .footer-logo {
  width: 180px;
  height: auto;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.site-footer p {
  margin: 0 0 6px;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 28px;
}

.site-footer a {
  color: #d6e3f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 0.85rem;
  color: #8ea6bf;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.about-grid > * {
  min-width: 0;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
}

.about-copy p {
  color: var(--text-muted);
}

.about-copy .about-lead {
  font-size: 1.12rem;
  color: var(--navy-900);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
}

/* dt 在前（語意），視覺上數字在上 */
.stats div {
  display: flex;
  flex-direction: column-reverse;
  /* column-reverse 的 flex-end 在上方，讓數字在各欄頂端對齊 */
  justify-content: flex-end;
  gap: 4px;
  padding: 18px 20px;
  background: var(--sky-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stats dt {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stats dd {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.stats dd span {
  margin-left: 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-600);
}

.founders {
  padding: clamp(22px, 3vw, 32px);
  color: #dbe7f3;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.founders h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  color: var(--white);
}

.founders ul {
  display: grid;
  gap: 12px;
}

.founder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  font-weight: 800;
  color: var(--navy-900);
  background: var(--amber-400);
  border-radius: 50%;
}

.founder:nth-child(2) .avatar {
  background: var(--sky-300);
}

.founder-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.founder-role {
  margin: 0;
  font-size: 0.88rem;
  color: #a9c1da;
}

.founders-note {
  margin: 18px 0 0;
  font-size: 0.93rem;
}

/* ---------- Core values & philosophy ---------- */
.values-band {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(56px, 7vw, 88px);
  padding: clamp(28px, 5vw, 56px);
  color: #c9d8ea;
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(20, 163, 160, 0.3), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.values-band > * {
  min-width: 0;
}

.values-band .eyebrow {
  color: var(--sky-300);
}

.values-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
}

.values-quote {
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 4px solid var(--amber-400);
}

.values-quote p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
}

.values-copy > p:last-child {
  margin-bottom: 0;
}

.value-pills {
  display: grid;
  gap: 12px;
}

.value-pills li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.value-pills strong {
  font-size: 1.15rem;
  color: var(--white);
}

.value-pills span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-400);
}

/* ---------- Reveal on scroll (只在 JS 啟用時隱藏) ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1025–1240px：收緊選單間距，讓較長的選單仍能排在同一列 */
@media (min-width: 1025px) and (max-width: 1240px) {
  .header-inner {
    gap: 16px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav ul a {
    padding: 8px 7px;
    font-size: 0.95rem;
  }
}

@media (max-width: 1024px) {
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 4px 0 20px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav ul a {
    padding: 12px;
    font-size: 1.05rem;
  }

  /* JS 啟用時改為可展開的選單 */
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--navy-900);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s, background-color 0.2s;
  }

  .nav-toggle-bar {
    position: relative;
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before {
    top: -7px;
  }

  .nav-toggle-bar::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .js .header-inner {
    flex-wrap: nowrap;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 12px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(11, 37, 69, 0.12);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-card {
    left: 16px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid > .card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .contact-grid,
  .about-grid,
  .values-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
  }

  .lang-switch {
    padding: 0 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .steps,
  .route-grid,
  .form-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .card-grid > .card {
    flex-basis: 100%;
  }

  /* 數字在左、說明在右，避免窄螢幕三欄擠壓 */
  .stats div {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* 手機版把貨況卡片移到插圖下方，避免遮住貨櫃輪 */
  .hero-card {
    position: relative;
    top: auto;
    left: auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100% - 24px);
    margin: -32px auto 0;
    padding: 10px 14px 12px;
  }

  .hero-card-route {
    font-size: 0.8rem;
  }

  .brand {
    gap: 8px;
  }

  .brand-symbol {
    height: 34px;
  }

  .brand-wordmark {
    height: 24px;
  }

  .contact-list li {
    grid-template-columns: 72px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}

/* ---------- E-Tools (實用工具) ---------- */
.tool-card {
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--border);
}

.tool-tab {
  position: relative;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.tool-tab:hover {
  color: var(--navy-900);
  background: var(--sky-50);
}

.tool-tab[aria-selected="true"] {
  color: var(--teal-600);
}

.tool-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -2px;
  height: 3px;
  background: var(--teal-600);
  border-radius: 3px;
}

.tool-panelwrap:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 4px;
  border-radius: 8px;
}

.tool-search {
  margin-bottom: 14px;
}

.tool-search input {
  width: 100%;
  max-width: 360px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #c3d2e0;
  border-radius: 999px;
}

.tool-search input:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.25);
}

.tool-count {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--sky-50);
}

.data-table tbody tr:hover {
  background: var(--sky-50);
}

.data-table th[scope="row"],
.data-table .col-code {
  font-weight: 800;
  color: var(--navy-900);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.data-table .col-term {
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}

.data-table .col-def {
  min-width: 15rem;
  color: var(--text-muted);
}

.cell-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tool-empty td {
  padding: 28px 14px;
  text-align: center;
  color: var(--text-muted);
}

.tool-cbm .calc-form {
  max-width: 560px;
}

.calc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.calc-row.two {
  grid-template-columns: repeat(2, 1fr);
}

.calc-result {
  margin: 18px 0 0;
  padding: 18px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: var(--radius);
}

.calc-result dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.calc-result dt {
  font-size: 0.8rem;
  color: #a9c1da;
}

.calc-result dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  overflow-wrap: anywhere;
}

.calc-result dd small {
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a9c1da;
}

.calc-hint {
  margin: 14px 0 0;
  padding-top: 12px;
  font-size: 0.9rem;
  color: #dbe7f3;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .calc-row,
  .calc-row.two,
  .calc-result dl {
    grid-template-columns: 1fr;
  }

  .tool-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tool-tab {
    flex: none;
  }
}

/* ---------- 易用性優化：頂部聯絡列、快速入口、表單提示 ---------- */
.topbar {
  font-size: 0.85rem;
  color: #c9d8ea;
  background: var(--navy-950);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e6eef7;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--white);
  text-decoration: underline;
}

.topbar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar .topbar-track {
  font-weight: 700;
  color: var(--amber-300);
}

.hero-actions {
  margin-bottom: 14px;
}

.hero-track {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: #c9d8ea;
}

.hero-track a {
  font-weight: 700;
  color: var(--amber-300);
}

.hero-track a:hover {
  color: var(--white);
}

/* 服務卡片：讓「詢價此服務」固定在卡片底部 */
.card {
  display: flex;
  flex-direction: column;
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  color: var(--teal-600);
  text-decoration: none;
}

.card-link:hover {
  color: var(--navy-800);
  text-decoration: underline;
}

.field-help {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.check-group {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  border: 0;
}

.check-group legend {
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}

.check-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.check-group input {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--teal-600);
}

.status-lead {
  margin-top: 10px !important;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
  background: var(--white);
  border: 1.5px solid #b7e3cc;
  border-radius: 999px;
  cursor: pointer;
}

.status-chip:hover {
  color: var(--navy-900);
  border-color: var(--teal-600);
}

.status-recipient {
  margin-top: 10px !important;
  font-size: 0.88rem;
}

/* ---------- 貨況查詢工具 ---------- */
.btn-outline {
  color: var(--navy-900);
  background: var(--white);
  border-color: #c3d2e0;
}

.btn-outline:hover {
  color: var(--navy-900);
  border-color: var(--teal-600);
}

.track-form {
  max-width: 560px;
}

.track-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}

.track-row {
  display: flex;
  gap: 10px;
}

.track-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #c3d2e0;
  border-radius: 10px;
}

.track-row input:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.25);
}

.track-result:not(:empty) {
  max-width: 560px;
  margin-top: 16px;
}

.track-card {
  padding: 18px 20px;
  background: var(--sky-50);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius);
}

.track-card p {
  margin: 0 0 8px;
}

.track-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.track-meta {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.track-note {
  font-size: 0.92rem;
  color: var(--text);
}

.track-warn {
  font-size: 0.92rem;
  font-weight: 600;
  color: #9a3412;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.carrier-links-title {
  margin: 24px 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}

.carrier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carrier-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  background: var(--sky-100);
  border-radius: 999px;
}

.carrier-links a:hover {
  color: var(--white);
  background: var(--teal-600);
}

.calc-actions {
  margin-top: 14px;
}

/* ---------- 手機快捷列 ---------- */
.mobile-actions {
  display: none;
}

@media (max-width: 1024px) {
  .topbar {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .mobile-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(11, 37, 69, 0.1);
    transition: transform 0.2s;
  }

  .mobile-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 64px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-900);
    text-decoration: none;
  }

  .mobile-actions a.is-primary {
    color: var(--navy-900);
    background: var(--amber-400);
  }

  .mobile-actions svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* 填寫表單時收起快捷列，避免擋住欄位與鍵盤 */
  body:has(.quote-form :focus, .tool-panel input:focus) .mobile-actions {
    transform: translateY(110%);
  }

  .track-row {
    flex-direction: column;
  }
}
