/* ==========================================================================
   ESCO LOGISTICS LLC - COMPONENTS STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVBAR & NAVIGATION
   -------------------------------------------------------------------------- */
.header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.header-wrapper.scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.footer .brand-logo-img {
  height: 80px;
  max-width: 260px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title span {
  color: var(--accent);
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.4rem 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

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

.nav-link .dropdown-arrow {
  display: inline-block;
  font-size: 0.55rem;
  transition: transform 0.25s ease;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--surface-tint);
  color: var(--accent);
  padding-left: 1.35rem;
}

.dropdown-bullet {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  transition: var(--transition);
}

.dropdown-link:hover .dropdown-bullet {
  opacity: 1;
  transform: scale(1.4);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   2. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 61, 99, 0.2);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   3. MOBILE MENU & TOGGLE
   -------------------------------------------------------------------------- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 5.5rem 2rem 2.5rem;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1040;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-submenu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.75rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  font-weight: 500;
}

.mobile-submenu a:hover {
  color: var(--accent);
}

@media (max-width: 1180px) {
  .nav-menu, .header-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   4. TRACKING BAR WIDGET
   -------------------------------------------------------------------------- */
.track-bar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(26, 61, 99, 0.12);
  padding: 2.25rem 2.5rem;
  max-width: 860px;
  margin: -50px auto 4rem;
  position: relative;
  z-index: 20;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.track-bar-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.track-bar-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.5rem auto 1.75rem;
}

.track-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.track-input {
  flex: 1;
  height: 54px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.track-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.track-btn {
  height: 54px;
  padding: 0 2.25rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.track-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.track-result-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: none;
}

@media (max-width: 768px) {
  .track-bar-card {
    padding: 1.5rem;
    margin: -35px 1rem 3rem;
  }
  .track-form {
    flex-direction: column;
  }
  .track-input, .track-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   5. PARTNERS / TRUSTED BY (INFINITE MARQUEE SCROLLER)
   -------------------------------------------------------------------------- */
.partners-section {
  padding: 3.5rem 0;
  text-align: center;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.partners-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.partners-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.partners-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 4rem;
  animation: partnersScroll 22s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-width: 180px;
  max-width: 220px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.partner-logo-item:hover {
  transform: scale(1.08);
}

.partner-logo-item img {
  max-height: 65px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@keyframes partnersScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   6. STATS / COUNTERS (WITH CLEAN SVG ICONS)
   -------------------------------------------------------------------------- */
.stats-bar {
  background: var(--surface-tint);
  border-top: 1px solid rgba(2, 132, 199, 0.15);
  border-bottom: 1px solid rgba(2, 132, 199, 0.15);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(26, 61, 99, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   7. REVIEWS & TESTIMONIALS (CLEAN STARS)
   -------------------------------------------------------------------------- */
.review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.star-icon {
  width: 18px;
  height: 18px;
  fill: var(--star-color);
}

.review-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 5rem 0 2rem;
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand .brand-title {
  color: #ffffff;
}

.footer-brand .brand-tagline {
  color: #94a3b8;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.footer-col a {
  font-size: 0.92rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   9. FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.sms-consent-box {
  background: var(--surface-tint);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sms-consent-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.sms-consent-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.sms-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
