/* Good Logistics custom theme overrides */
:root {
  --good-text-muted: #6c757d;
}

.good-index {
  padding-top: 72px;
  /* space for fixed navbar */
}

.good-hero .badge {
  font-weight: 600;
}

/* Badge palette overrides */
.badge-brand {
  background-color: #0a2c48;
  color: #ffffff;
}

.badge-soft-brand {
  background-color: rgba(10, 44, 72, 0.1);
  color: #0a2c48;
}

/* Avatar icon style for testimonials */
.avatar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 44, 72, 0.08);
  color: #0a2c48;
  font-size: 28px;
  flex: 0 0 56px;
}

/* Primary tone overrides to 0a2c48 for icons and utilities */
.bi {
  color: #0a2c48;
}

.text-primary {
  color: #0a2c48 !important;
}

.bg-primary {
  background-color: #0a2c48 !important;
}

.bg-primary-subtle {
  background-color: rgba(10, 44, 72, 0.08) !important;
}

.border-primary {
  border-color: #0a2c48 !important;
}

.link-primary {
  color: #0a2c48 !important;
}

.link-primary:hover,
.link-primary:focus {
  color: #082338 !important;
}

.good-hero h1 {
  line-height: 1.2;
}

.good-hero .good-hero-media img {
  object-fit: cover;
}

.good-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(39, 99, 110, .25), rgba(39, 99, 110, 0));
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-card {
  position: relative;
  border-radius: 16px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from 180deg at 50% 50%, rgba(39, 99, 110, .25), rgba(39, 99, 110, 0) 40%, rgba(39, 99, 110, .25)) border-box;
  border: 1px solid transparent;
}

.feature-card .card-title {
  position: relative;
}

.feature-card .card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 3px;
  background: #27636e;
  border-radius: 3px;
  transition: width .4s ease;
}

.feature-card:hover .card-title::after {
  width: 32%;
}

.feature-icon {
  animation: feature-pulse 2.2s ease-in-out infinite;
}

@keyframes feature-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

.progress-thin {
  height: 6px;
  background: rgba(39, 99, 110, .12);
  border-radius: 4px;
}

.progress-animated {
  background: linear-gradient(90deg, #27636e, #0a2c48);
  transition: width 1.2s ease;
}

/* Hide bottom progress bars in highlights; keep only title hover underline */
#highlights .progress-thin {
  display: none !important;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(39, 99, 110, .08);
  color: #27636e;
  margin-bottom: 12px;
}

.service-card h5 {
  margin-bottom: 6px;
}

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

/* Tweak footer spacing on mobile */
@media (max-width: 575.98px) {
  .footer .footer-links {
    margin-top: 12px;
  }
}

/* Metrics */
.metric-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 22px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.metric-value {
  font-size: 40px;
  font-weight: 800;
  color: #0a2c48;
  line-height: 1;
}

/* Buttons palette */
.btn-primary {
  background-color: #27636e;
  border-color: #27636e;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1f5059;
  border-color: #1f5059;
}

.btn-outline-primary {
  color: #27636e;
  border-color: #27636e;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #ffffff;
  background-color: #27636e;
  border-color: #27636e;
}

/* Light background override to match palette */
.bg-light {
  background-color: #eaeaea !important;
}

.metric-label {
  margin-top: 6px;
  color: var(--good-text-muted);
  font-weight: 500;
}

/* Map responsive sizing:
 * - Desktop (lg+): keep current oversized appearance
 * - Mobile/Tablet: make it fully responsive within ratio */
.map-iframe {
  width: 100%;
  height: 100%;
}

@media (min-width: 992px) {
  #contact .form .ratio {
    overflow: visible;
  }

  .map-iframe {
    width: 150% !important;
    height: 60% !important;
  }
}