/* =====================================================
   Horizon Global Logistics – Dark Mode Redesign
   CBS-inspired dark professional logistics theme
   ===================================================== */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #f8fafc;
  --bg: #0a0e17;
  --bg-elevated: #111827;
  --bg-card: #1a2332;
  --bg-alt: #0f1623;
  --border: #1e293b;
  --border-light: #334155;
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-bright);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #0a0e17;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-dark {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-bright);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #0369a1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}
.nav a:hover,
.nav a.active { color: var(--text-bright); }

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-bright);
  cursor: pointer;
}

/* ---------- HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  margin-top: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.slide.active .slide-bg {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 14, 23, 0.92) 0%,
    rgba(10, 14, 23, 0.75) 45%,
    rgba(10, 14, 23, 0.45) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 120px 0 80px;
}

.slide-content .section-label {
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.slide.active .slide-content .section-label {
  opacity: 1;
  transform: translateY(0);
}

.slide-content h1 {
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease 0.35s;
}

.slide.active .slide-content h1 {
  opacity: 1;
  transform: translateY(0);
}

.slide-content .lead {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease 0.5s;
}

.slide.active .slide-content .lead {
  opacity: 1;
  transform: translateY(0);
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease 0.65s;
}

.slide.active .slide-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 10;
}

.slider-controls .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  width: 36px;
  border-radius: 6px;
}

.slider-arrows {
  display: flex;
  gap: 12px;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0e17;
}

.hero-stats-bar {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.8s;
}

.slide.active .hero-stats-bar {
  opacity: 1;
  transform: translateY(0);
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-header .lead { margin: 16px auto 0; }

/* ---------- Cards & Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
  background: #1e2a3d;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(14,165,233,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  border: 1px solid rgba(14,165,233,0.2);
}

.card h3 { margin-bottom: 12px; color: var(--text-bright); }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card a { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.card a:hover { color: var(--accent); }

/* ---------- Feature / About ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-list { margin-top: 28px; }

.feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.feature-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.feature-item h4 { margin-bottom: 4px; color: var(--text-bright); }
.feature-item p { font-size: 0.925rem; color: var(--text-muted); }

.image-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.image-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.image-badge strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
}

.image-badge span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 28px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.process-step:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(14, 165, 233, 0.2);
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.process-step h4 { margin-bottom: 8px; color: var(--text-bright); }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, #0c1929 0%, #111827 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

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

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-light);
}

.testimonial-card .quote {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.author-info strong { display: block; font-size: 0.95rem; color: var(--text-bright); }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0c1929 0%, #1a2332 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  border-radius: var(--radius);
  margin: 0 24px;
  border: 1px solid var(--border);
}

.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer {
  background: #060910;
  color: var(--text-muted);
  padding: 70px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo { color: var(--text-bright); margin-bottom: 16px; }
.footer-brand p { font-size: 0.925rem; max-width: 300px; line-height: 1.7; }

.footer h4 {
  color: var(--text-bright);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent); }

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.925rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom a:hover { color: var(--accent); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0c1929 0%, #111827 100%);
  color: #fff;
  padding: 140px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Service Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.service-content h2 { margin: 28px 0 14px; }
.service-content p { margin-bottom: 16px; color: var(--text-muted); }
.service-content ul {
  margin: 16px 0 24px;
  padding-left: 0;
}
.service-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.service-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}

.sidebar-card h4 { margin-bottom: 16px; }
.sidebar-card ul li { margin-bottom: 10px; }
.sidebar-card ul a {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
}
.sidebar-card ul a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(14,165,233,0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(14,165,233,0.2);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text-bright);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-bright);
  transition: var(--transition);
}

.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-question { background: rgba(255,255,255,0.03); }

/* ---------- Tracking ---------- */
.track-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.track-input-group {
  display: flex;
  gap: 12px;
}

.track-input-group input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-bright);
}

.track-input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.track-input-group input::placeholder {
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .mobile-toggle { display: block; }
  .header-cta .btn { display: none; }

  .grid-2, .grid-3, .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-stats-bar { gap: 24px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .process-steps { grid-template-columns: 1fr; }
  .cta-banner { margin: 0; border-radius: 0; }
  .hero-slider { min-height: 560px; height: auto; }
  .slide { position: relative; opacity: 0; height: 0; overflow: hidden; }
  .slide.active { opacity: 1; height: auto; min-height: 560px; }
  .slider-arrows { display: none; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .slide-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}
