/* ============================================
   4NEM Solutions – Premium Courier Website CSS
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0B2D5C;
  --navy-dark: #071d3e;
  --navy-mid: #0d3570;
  --red: #D91F2A;
  --red-dark: #b01821;
  --white: #FFFFFF;
  --off-white: #F7F8FC;
  --gray-light: #EEF0F6;
  --gray-mid: #8892A4;
  --text: #1A1F2E;
  --border: #DDE3EE;
  --shadow-sm: 0 2px 12px rgba(11,45,92,0.08);
  --shadow-md: 0 8px 32px rgba(11,45,92,0.13);
  --shadow-lg: 0 20px 60px rgba(11,45,92,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, button { font-family: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-weight: 800; line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

/* ---------- Utility ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.highlight { color: var(--red); }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(217,31,42,0.09);
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(217,31,42,0.28);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,31,42,0.38);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-red {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(217,31,42,0.28);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img {
  height: 54px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--red); background: rgba(217,31,42,0.06); }
.nav-cta { margin-left: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 600;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-menu a:hover { background: var(--gray-light); }
.mobile-menu .btn-primary { margin-top: 8px; text-align: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #f7f8fc 0%, #eef1f9 60%, #fdf0f0 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,31,42,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { animation: fadeSlideUp 0.7s ease both; }
.badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.hero-text h1 { margin-bottom: 20px; color: var(--navy-dark); }
.hero-text p {
  font-size: 1.08rem;
  color: var(--gray-mid);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; font-weight: 900; color: var(--navy); font-family: 'Barlow Condensed', sans-serif; }
.stat span { font-size: 0.78rem; color: var(--gray-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual { animation: fadeSlideRight 0.7s 0.15s ease both; }
.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-circle {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,45,92,0.06) 0%, transparent 70%);
}
.hero-van { width: 100%; max-width: 500px; position: relative; z-index: 2; filter: drop-shadow(0 20px 40px rgba(11,45,92,0.18)); }
.floating-card {
  position: absolute;
  z-index: 4;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  min-width: 200px;
  animation: float 3s ease-in-out infinite;
}
.floating-card strong { display: block; font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.floating-card small { color: var(--gray-mid); }
.fc-icon { font-size: 1.4rem; }
.card-top { top: 20px; right: -10px; animation-delay: 0s; }
.card-bot { bottom: 40px; left: -10px; animation-delay: 1.5s; }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why {
  padding: 100px 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(28px);
}
.why-card.visible { opacity: 1; transform: translateY(0); }
.why-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.why-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { margin-bottom: 10px; color: var(--navy); }
.why-card p { font-size: 0.9rem; color: var(--gray-mid); line-height: 1.7; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(217,31,42,0.08);
  pointer-events: none;
}
.how .section-label { background: rgba(255,255,255,0.12); color: var(--white); }
.how .section-title { color: var(--white); }
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 40px 28px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.5s ease;
  position: relative;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: 10px;
  right: 16px;
  line-height: 1;
}
.step-icon {
  width: 70px; height: 70px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(217,31,42,0.4);
}
.step h3 { color: var(--white); margin-bottom: 10px; }
.step p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.step-arrow {
  font-size: 2rem;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  font-weight: 300;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: 100px 0;
  background: var(--off-white);
}
.calc-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.calc-left {
  padding: 56px 48px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}
.calc-left h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 14px; }
.calc-left p { color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.75; }
.calc-features { display: flex; flex-direction: column; gap: 12px; }
.calc-features li { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; }
.calc-right { padding: 48px 40px; }
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-weight: 700; font-size: 0.85rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input,
.form-group select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--navy); }
.calc-btn { margin-top: 8px; font-size: 1rem; padding: 14px; border-radius: 12px; }
.calc-result { margin-top: 4px; }
.calc-price {
  background: rgba(11,45,92,0.05);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  color: var(--navy);
  border: 1px solid rgba(11,45,92,0.1);
}
.calc-price strong { font-size: 1.5rem; color: var(--red); display: block; margin-top: 4px; }
.calc-price small { display: block; margin-top: 6px; color: var(--gray-mid); font-size: 0.8rem; }
.calc-error { color: var(--red); font-weight: 600; }

/* ============================================
   TRACKING
   ============================================ */
.tracking {
  padding: 100px 0;
  background: var(--navy-dark);
  position: relative;
}
.track-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.track-card h2 { color: var(--white); margin-bottom: 14px; }
.track-card p { color: rgba(255,255,255,0.65); margin-bottom: 36px; font-size: 1rem; }
.track-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 32px;
}
.track-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.track-form input::placeholder { color: rgba(255,255,255,0.4); }
.track-form input:focus { border-color: var(--red); }
.track-result { margin-bottom: 32px; }
.track-info {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--white);
  text-align: left;
  display: inline-block;
  min-width: 300px;
  line-height: 1.7;
}
.track-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
}
.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.track-step span { font-size: 1.6rem; }
.track-step small {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.track-step.active small { color: var(--white); }
.track-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.15);
  max-width: 80px;
  margin: 0 12px;
  margin-bottom: 24px;
}
.track-line.active { background: var(--red); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testi-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--off-white);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(28px);
}
.testi-card.visible { opacity: 1; transform: translateY(0); }
.testi-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy); transform: translateY(-4px); }
.stars { color: #F5B301; font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 3px; }
.testi-card p {
  color: #444;
  font-size: 1.0rem;
  line-height: 1.78;
  margin-bottom: 28px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-weight: 700; color: var(--navy); }
.testi-author small { color: var(--gray-mid); font-size: 0.82rem; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--red) 0%, #a0151e 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '4NEM';
  position: absolute;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  right: -40px;
  top: -60px;
  line-height: 1;
  pointer-events: none;
}
.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-content h2 { color: var(--white); margin-bottom: 8px; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  padding: 80px 0 0;
}
.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-logo { height: 54px; object-fit: contain; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.75; max-width: 300px; }
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social-icons a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-icons a:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--red); }
.contact-list li { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 24px;
  text-align: center;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.83rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--red); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .card-top, .card-bot { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .calc-card { grid-template-columns: 1fr; }
  .calc-left { padding: 36px 28px; }
  .calc-right { padding: 28px 24px; }
  .testi-grid { grid-template-columns: 1fr; }
  .cta-content { flex-direction: column; text-align: center; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .track-form { flex-direction: column; border-radius: var(--radius); }
  .track-form input { border-radius: var(--radius-sm); }
  .track-form .btn-red { border-radius: var(--radius-sm); }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .why, .how, .pricing, .tracking, .testimonials { padding: 64px 0; }
  .cta-banner { padding: 56px 0; }
  .track-card { padding: 36px 24px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ============================================
   SERVICE CARDS (Delivery Types)
   ============================================ */
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  position: relative;
  padding-top: 44px;
  display: flex;
  flex-direction: column;
}
.service-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 40px;
}
.tag-red   { background: rgba(217,31,42,0.1);  color: #D91F2A; }
.tag-orange{ background: rgba(232,101,10,0.1); color: #E8650A; }
.tag-navy  { background: rgba(11,45,92,0.1);   color: #0B2D5C; }
.tag-green { background: rgba(26,138,74,0.1);  color: #1a8a4a; }

.service-bullets {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.service-bullets li {
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}
.service-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { color: var(--red-dark); letter-spacing: 0.02em; }

.service-card:hover .service-link { text-decoration: underline; }

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