:root {
  --bao-red: #c00000;
  --bao-red-dark: #a00000;
  --bao-amber: #ffcc00;
  --bao-dark: #262626;
  --bao-light: #dadada;
  --bao-cream: #fff8e8;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  background: #faf7f2;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.display {
  font-family: "Syne", "Noto Sans TC", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* —— Top bar —— */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.1rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lang {
  display: flex;
  gap: 0.25rem;
  background: rgba(38, 38, 38, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang button.is-active {
  background: var(--bao-amber);
  color: var(--bao-dark);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bao-amber);
  color: var(--bao-dark);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.top-cta:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--bao-red);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/hero-bg.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-bg- ken 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(38, 38, 38, 0.72) 0%,
      rgba(192, 0, 0, 0.45) 42%,
      rgba(192, 0, 0, 0.18) 68%,
      transparent 100%
    ),
    linear-gradient(180deg, rgba(38, 38, 38, 0.28) 0%, transparent 28%, rgba(38, 38, 38, 0.35) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid--on-photo {
  grid-template-columns: minmax(0, 34rem) 1fr;
}

.hero-copy {
  animation: rise 0.8s var(--ease) both;
}

.hero-logo {
  width: min(340px, 82vw);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  max-width: 11ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  margin: 0 0 1.6rem;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: none;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bao-amber);
  color: var(--bao-dark);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.95rem 1.45rem;
  border-radius: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(38, 38, 38, 0.18);
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(38, 38, 38, 0.32);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(460px, 100%);
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
  animation: taxi-float 3.4s ease-in-out infinite;
}

.hero-amber-slash {
  position: absolute;
  left: -8%;
  right: 12%;
  bottom: 8%;
  height: 10px;
  background: var(--bao-amber);
  transform: skewX(-18deg);
  opacity: 0.9;
  z-index: -1;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: inline-block;
  color: var(--bao-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Services — one composition band, not card grid clutter */
.services {
  background:
    linear-gradient(180deg, #fff 0%, var(--bao-cream) 100%);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--bao-dark);
}

.service-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(38, 38, 38, 0.14);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service-item.is-in {
  opacity: 1;
  transform: none;
}

.service-item:nth-child(2) { transition-delay: 0.08s; }
.service-item:nth-child(3) { transition-delay: 0.16s; }

.service-index {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--bao-red);
}

.service-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-family: "Syne", "Noto Sans TC", sans-serif;
  font-weight: 750;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.service-tag {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--bao-dark);
  background: var(--bao-amber);
  padding: 0.28rem 0.6rem;
}

/* Steps */
.steps {
  background: var(--bao-dark);
  color: #fff;
}

.steps .eyebrow {
  color: var(--bao-amber);
}

.steps .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-row::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--bao-amber), rgba(255, 204, 0, 0.2));
  pointer-events: none;
}

.step {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.step.is-in {
  opacity: 1;
  transform: none;
}

.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }

.step-num {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--bao-amber);
  color: var(--bao-dark);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-family: "Syne", "Noto Sans TC", sans-serif;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

/* Promise / why */
.promise {
  background: #fff;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.promise-visual {
  position: relative;
  min-height: 280px;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--bao-red) 0%, #7a0000 100%);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.promise-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--bao-amber);
}

.promise-visual img {
  width: min(280px, 70%);
  animation: taxi-float 3.8s ease-in-out infinite;
}

.promise-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.promise-points li {
  padding-left: 1.15rem;
  border-left: 3px solid var(--bao-amber);
}

.promise-points strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.promise-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 204, 0, 0.25), transparent 50%),
    var(--bao-red);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.final-cta p {
  margin: 0 auto 1.6rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.9);
}

.final-cta .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--bao-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 0.55rem;
  background: transparent;
  mix-blend-mode: normal;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-links a:hover {
  color: var(--bao-amber);
}

.footer-note {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes taxi-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes road-dash {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 32px 0;
  }
}

@keyframes hero-bg-ken {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .hero-grid--on-photo {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
    gap: 0.5rem;
  }

  .hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(38, 38, 38, 0.55) 0%,
        rgba(192, 0, 0, 0.4) 45%,
        rgba(38, 38, 38, 0.55) 100%
      );
  }

  .hero-copy {
    padding-bottom: 0.5rem;
    text-align: center;
  }

  .hero-logo {
    margin-inline: auto;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-sub {
    margin-inline: auto;
    white-space: normal;
    max-width: 22rem;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .service-item {
    grid-template-columns: 4rem 1fr;
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .step-row::before {
    display: none;
  }

  .promise-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .top-cta span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
