/* =========================================
   EG WAREHOUSE — COMPONENTS CSS
   TransHub Style × Logistics Premium Theme
   ========================================= */

/* ── CURSOR ── */
.cursor-outer {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transition: transform 0.1s ease, opacity var(--transition-base);
  transform: translate(-50%, -50%);
}
.cursor-inner {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}
.cursor-outer.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(113, 173, 55, 0.12);
}

/* ── SUB-TITLE LABEL (TransHub Style) ── */
.sub-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.sub-title svg path { fill: var(--color-primary); }

/* Truck SVG for sub-title */
.sub-title-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

/* ── PAGE INNER HERO (non-home pages) ── */
.page-hero {
  position: relative;
  background: var(--color-dark);
  padding: 6.875rem 0 1.875rem;
  overflow: hidden;
  color: white;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg, url('../assets/images/hero-warehouse.jpg')) center/cover no-repeat;
  opacity: 0.4;
  z-index: 0;
  transition: transform 0.6s ease;
}

.page-hero:hover::before {
  transform: scale(1.03);
}

/* Dark gradient overlay for text readability */
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.7) 0%, rgba(10, 22, 40, 0.3) 100%);
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
}

[data-theme="dark"] .page-hero::after { background: var(--color-dark); }

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

/* TransHub Promo Hero (page inner) */
.page-hero-promo {
  position: relative;
  background: var(--color-dark);
  padding: 5.875rem 0 1.375rem;
  overflow: hidden;
  color: white;
}
.page-hero-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-warehouse.jpg') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}
.page-hero-promo .container { position: relative; z-index: 1; }
.page-hero-promo .promo-wrap {
  padding-left: 28px;
  border-left: 4px solid var(--color-primary);
}
.page-hero-promo h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(113, 173, 55, 0.18);
  border: 1px solid rgba(113, 173, 55, 0.4);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── PARTICLE SYSTEM ── */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(113, 173, 55, 0.5);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(var(--drift)); opacity: 0; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 1rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── FAQ / ACCORDION ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
  color: var(--color-primary);
}
.faq-item.open .faq-icon {
  background: var(--color-primary);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── CONTACT FORM ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-heading);
}
.form-control {
  width: 100%;
  padding: 0.875rem 1.1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text);
  background: white;
  transition: all 0.2s ease;
  outline: none;
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(113, 173, 55, 0.1);
}
.form-control::placeholder { color: var(--color-grey-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ── SERVICE CARD (TransHub style with image thumbnail) ── */
.service-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--color-primary);
}
.service-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
}
.service-card-head img.serv-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.service-card-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
  line-height: 1.3;
}
.service-card-head h3 a { color: inherit; }
.service-card-head h3 a:hover { color: var(--color-primary); }

.service-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: 0;
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.service-card:hover .service-thumb img { transform: scale(1.06); }

.service-card p {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}
.service-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}
.service-card-footer a.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-heading);
  text-transform: capitalize;
  transition: all var(--transition-base);
}
.service-card-footer a.custom-btn .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-shade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all var(--transition-base);
}
.service-card-footer a.custom-btn:hover { color: var(--color-primary); }
.service-card-footer a.custom-btn:hover .icon-box {
  background: var(--color-primary);
  color: white;
}

/* ── FEATURE BOX ── */
.service-detail-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature-box {
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}
.feature-box:hover {
  background: white;
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.feature-box-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-box h4 { font-size: 1rem; font-weight: 700; color: var(--color-heading); margin-bottom: 0.5rem; }
.feature-box p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.65; }

/* ── PROCESS STEPS (TransHub numbered circle + connector) ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0.25;
  z-index: 0;
}
@media (max-width: 767px) { .process-steps::before { display: none; } }

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}
.process-step:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--color-primary);
}
.process-step-count {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-shade);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.process-step-thumb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-shade);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2.2rem;
  position: relative;
  overflow: hidden;
}
.process-step-thumb img { width: 60%; height: 60%; object-fit: contain; }
.process-step h4 { font-size: 1rem; font-weight: 700; color: var(--color-heading); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.6; }

/* Numbered variant */
.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-primary);
}

/* ── HORIZONTAL PROGRESS BARS (TransHub Why-Choose) ── */
.progress-bars { margin: 2.5rem 0 2rem; }
.progress-bar-item { margin-bottom: 2.5rem; }
.progress-bar-item .meta {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}
.progress-track {
  height: 7px;
  background: var(--color-shade);
  border-radius: 10px;
  overflow: visible;
  position: relative;
  display: block;
}
.progress-fill {
  height: 7px;
  background: var(--color-primary);
  border-radius: 10px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}
.progress-fill span {
  position: absolute;
  right: 0;
  top: -32px;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}
.progress-fill span::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-primary);
}

/* ── CIRCULAR PROGRESS (TransHub Choose) ── */
.circular-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.circular-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-circle {
  width: 80px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
}
.progress-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
.progress-circle svg circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}
.progress-circle .inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-heading);
}
.circular-stat h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  max-width: 120px;
}

/* ── STAT SECTION (TransHub dark bg + icon) ── */
.stat-item-th {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.stat-item-th img.stat-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}
.stat-item-th .stat-info h3 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item-th .stat-info p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ── TESTIMONIALS ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.12;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--color-heading); }
.testimonial-role { font-size: 0.78rem; color: var(--color-text-muted); }

/* ── CTA BANNER (TransHub dark style) ── */
.cta-banner {
  background: var(--gradient-dark);
  border-radius: 24px;
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,85,35,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-size: 1rem;
  position: relative;
}
.cta-banner .cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

/* ── PARTNERS / BRAND STRIP ── */
.brand-strip {
  overflow: hidden;
  position: relative;
}
.brand-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: scroll-brands 30s linear infinite;
  width: max-content;
}
.brand-track img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.brand-track img:hover { opacity: 1; }
@keyframes scroll-brands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── PARALLAX OVERLAY ── */
.parallax-overly {
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0.9;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* ── CHECK LIST ── */
ul.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
ul.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}
ul.check-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── QUICK CALL BOX ── */
.quick-call {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.quick-call .call-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.quick-call .call-info p { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }
.quick-call .call-info a { font-weight: 700; font-size: 1rem; color: var(--color-primary); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left { opacity: 1; transform: none; }
  .particle { display: none; }
  .brand-track { animation: none; }
}
