:root {
  --primary: #0e2a47;
  --accent-red: #fd1201;
  --accent-green: #00ab4b;
  --light-bg: #f5f5f5;
  --text-dark: #1d2a35;
  --shadow-soft: 0 10px 30px rgba(14, 42, 71, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans TC", "Poppins", sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: "Poppins", "Noto Sans TC", sans-serif;
  font-weight: 700;
}

.section-padding {
  padding: 5rem 0;
}

.bg-light-custom {
  background: var(--light-bg);
}

.top-navbar {
  background: rgba(14, 42, 71, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.navbar .nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 0.25rem;
  position: relative;
}

.navbar .nav-link.active {
  color: #8fc7ff;
}

.lang-switch {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.28rem 0.8rem !important;
  margin-left: 0.5rem;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.14);
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text {
  font-size: 1rem;
  line-height: 1;
}

.navbar .nav-link::after {
  content: "";
  width: 0;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.btn-main {
  background: var(--accent-red);
  color: #fff;
  border: none;
  transition: all 0.35s ease;
}

.btn-main:hover {
  background: #d40f01;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-main {
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  transition: all 0.35s ease;
}

.btn-outline-main:hover {
  background: var(--accent-green);
  color: #fff;
  transform: translateY(-2px);
}

.hero-slider,
.hero-slide {
  min-height: 88vh;
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 42, 71, 0.84), rgba(14, 42, 71, 0.48));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.page-banner {
  margin-top: 72px;
  padding: 5.5rem 0;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 71, 0.72);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.stat-card,
.feature-card,
.service-card,
.testimonial-card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover,
.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(14, 42, 71, 0.18);
}

.service-visual-card {
  background: #fff;
  border: 1px solid #e9edf2;
  transition: all 0.35s ease;
}

.service-visual-card .service-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(14, 42, 71, 0.1);
  color: var(--primary);
  margin-bottom: 0.8rem;
  transition: all 0.35s ease;
}

.service-visual-card:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0e2a47 0%, #1f4f78 55%, #00ab4b 100%);
}

.service-visual-card:hover h5,
.service-visual-card:hover p {
  color: #fff;
}

.service-visual-card:hover .service-icon-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 171, 75, 0.14);
  color: var(--accent-green);
  font-size: 1.4rem;
}

.fleet-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.fleet-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.fleet-item:hover img {
  transform: scale(1.08);
}

.fleet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 71, 0.58);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.partner-logo-box {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.partner-logo-box img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.partner-logo-large {
  min-height: 220px;
  padding: 1.5rem;
}

.partner-logo-large img {
  width: 100%;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .partner-logo-large {
    min-height: 280px;
  }

  .partner-logo-large img {
    max-height: 240px;
  }
}

.cta-block {
  position: relative;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.cta-block .cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(14, 42, 71, 0.68);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 3.2rem 1.5rem;
}

.footer {
  background: #091e33;
  color: #d6dee5;
}

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

.footer a:hover {
  color: #fff;
}

.timeline {
  position: relative;
  margin-left: 1rem;
  border-left: 3px solid var(--accent-green);
}

.timeline-step {
  position: relative;
  padding: 0.5rem 0 1.75rem 1.75rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-red);
}

.floating-action {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.floating-action a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.floating-action a:hover {
  transform: translateY(-2px);
}

.wa-btn {
  background: #25d366;
}

.call-btn {
  background: var(--accent-red);
}

img.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

img.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: all 0.65s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-slider,
  .hero-slide {
    min-height: 76vh;
  }

  .page-banner {
    margin-top: 64px;
    padding: 4rem 0;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    font-size: 0.95rem;
  }
}
