/* 富邦運輸有限公司 — 品牌樣式 */
:root {
  --navy: #0F2744;
  --navy-dark: #0a1c30;
  --orange: #F58220;
  --orange-hover: #e07010;
  --white: #FFFFFF;
  --gray-light: #F5F7FA;
  --gray-mid: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 4px 24px rgba(15, 39, 68, 0.12);
  --radius: 0.5rem;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange-hover);
}

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

/* ── Navbar ── */
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white) !important;
  line-height: 1.3;
}

.navbar-fullbond {
  background: var(--navy) !important;
  padding: 0.75rem 0;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar-fullbond.scrolled {
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.navbar-fullbond .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-fullbond .nav-link:hover,
.navbar-fullbond .nav-link.active {
  color: var(--orange) !important;
}

.navbar-fullbond .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--orange);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ── Buttons ── */
.btn-primary-fullbond {
  background: var(--orange);
  border: 2px solid var(--orange);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-primary-fullbond:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-fullbond {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-outline-fullbond:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  border: 2px solid var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
}

.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy-dark);
  background-image: url("../imges/banner001.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg.is-fallback {
  background-image: url("../imges/banner001.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.92) 0%, rgba(15, 39, 68, 0.75) 50%, rgba(15, 39, 68, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
}

.hero-accent {
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin-bottom: 1.5rem;
}

/* ── Sections ── */
.section-padding {
  padding: 4.5rem 0;
}

.section-gray {
  background: var(--gray-light);
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ── Advantage Cards ── */
.advantage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--gray-mid);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.advantage-icon {
  width: 52px;
  height: 52px;
  background: rgba(245, 130, 32, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: 1.4rem;
}

/* ── Service Cards ── */
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(15, 39, 68, 0.08);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

/* ── Fleet Gallery ── */
.fleet-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--gray-mid);
}

.fleet-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.fleet-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 39, 68, 0.35);
  color: var(--white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.fleet-item:hover .fleet-zoom-hint,
.fleet-item:focus-visible .fleet-zoom-hint {
  opacity: 1;
}

.fleet-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.fleet-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(15, 39, 68, 0.9));
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Fleet Lightbox ── */
.fleet-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 28, 48, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fleet-lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.fleet-lightbox-overlay img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.fleet-lightbox-close,
.fleet-lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fleet-lightbox-close:hover,
.fleet-lightbox-nav:hover {
  background: var(--orange);
}

.fleet-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.fleet-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.fleet-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

body.lightbox-open {
  overflow: hidden;
}

/* ── FAQ ── */
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(245, 130, 32, 0.08);
  color: var(--navy);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 130, 32, 0.25);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(245, 130, 32, 0.08);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Page Header ── */
.page-header {
  background: var(--navy);
  padding: 5rem 0 3rem;
  position: relative;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
  margin-bottom: 0;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
}

.page-header .breadcrumb-item.active {
  color: var(--orange);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Contact ── */
.contact-info-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  border-left: 4px solid var(--orange);
}

.contact-info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: var(--radius);
  border: 1px solid var(--gray-mid);
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.2rem rgba(245, 130, 32, 0.2);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.map-container.h-100 {
  min-height: 100%;
}

.contact-location-row .map-container iframe {
  min-height: 280px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

@media (min-width: 992px) {
  .contact-location-row .map-container iframe {
    min-height: 320px;
  }
}

/* ── Blog ── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  background: rgba(245, 130, 32, 0.12);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}

.blog-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-filter-btn {
  border: 2px solid rgba(245, 130, 32, 0.35);
  background: var(--white);
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-filter-btn:hover {
  background: rgba(245, 130, 32, 0.12);
}

.blog-filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.blog-post-item.is-hidden {
  display: none !important;
}

.blog-filter-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.blog-filter-empty.is-visible {
  display: block;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-article img.featured {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.blog-article h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-sidebar .list-group-item {
  border: none;
  padding: 0.5rem 0;
  background: transparent;
}

.blog-sidebar .list-group-item a {
  color: var(--text);
}

.blog-sidebar .list-group-item a:hover {
  color: var(--orange);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
}

.site-footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.875rem;
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ── Mission / About blocks ── */
.mission-block {
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ── Service detail ── */
.service-detail-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-mid);
}

.service-detail-block:last-child {
  border-bottom: none;
}

.service-detail-block .service-icon-lg {
  width: 64px;
  height: 64px;
  background: rgba(15, 39, 68, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--navy);
  flex-shrink: 0;
}

.area-tags .badge {
  background: rgba(15, 39, 68, 0.08);
  color: var(--navy);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: 0.85rem;
}

/* ── Utilities ── */
.text-orange {
  color: var(--orange) !important;
}

.bg-navy {
  background: var(--navy) !important;
}

.lazy-placeholder {
  background: var(--gray-mid);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 70vh;
  }

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

  .navbar-fullbond .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
