/* ==========================================================================
   JKE Delivery - Corporate Premium Enterprise Design System
   ========================================================================== */

:root {
  /* Corporate Ultra-Premium Color Palette */
  --clr-navy-950: #0a0f1d;
  --clr-navy-900: #0f172a;
  --clr-navy-800: #1e293b;
  --clr-navy-700: #334155;
  
  --clr-brand-gold: #d97706; /* High-end Gold accent */
  --clr-accent-red: #dc2626;  /* Deep Corporate Red */
  --clr-orange-bright: #ea580c;
  
  /* Surfaces & Glassmorphism */
  --clr-surface: #ffffff;
  --clr-bg: #f8fafc;
  --clr-text-main: #1e293b;
  --clr-text-muted: #64748b;
  --clr-border: #e2e8f0;
  
  /* Gradients */
  --gradient-corporate: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --gradient-gold: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(15,23,42,0.88) 0%, rgba(10,15,29,0.95) 100%);

  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: 'Outfit', var(--font-family-base);
  
  /* Premium Shadows & Glows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family-base);
  color: var(--clr-text-main);
  background-color: var(--clr-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-navy-900);
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: all var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-gold);
  color: white;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
}

/* Header DocHub Login Pill Button */
.btn-login-dochub {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0.45rem 1.15rem !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
  transition: all var(--transition-smooth) !important;
}
.btn-login-dochub:hover {
  background: linear-gradient(135deg, #b45309 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45) !important;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 52px;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-navy-700);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--clr-brand-gold);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: #f1f5f9;
  border: 1px solid var(--clr-border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-base);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--clr-navy-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-dropdown {
  position: absolute;
  top: 130%;
  right: 0;
  background: white;
  min-width: 150px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
}

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

.lang-dropdown button {
  background: none;
  border: none;
  padding: 0.75rem 1.1rem;
  text-align: left;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-dropdown button:hover {
  background: #f8fafc;
  color: var(--clr-brand-gold);
}

/* ==========================================================================
   Responsive Mobile Navigation Overlay
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--clr-navy-900);
  cursor: pointer;
  z-index: 1002;
}

@media (max-width: 1024px) {
  .header-inner { height: 70px; }
  .brand-logo-img { height: 42px; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.75rem 1.5rem 3rem;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-smooth);
  }

  .nav-links a::after {
    content: "➔";
    font-size: 0.8rem;
    opacity: 0.6;
    color: var(--clr-brand-gold);
  }

  .nav-links a:hover, .nav-links a:focus {
    background: var(--gradient-gold);
    color: white;
    border-color: transparent;
  }

  .lang-switcher {
    width: 100%;
    margin-top: 0.5rem;
  }

  .lang-btn {
    width: 100%;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .lang-dropdown {
    width: 100%;
    position: relative;
    top: 0.5rem;
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .lang-dropdown button {
    color: white;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
}

.hero h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Tracking Box */
.tracking-widget {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.tracking-widget input {
  flex: 1;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  color: var(--clr-navy-900);
  outline: none;
}

@media (max-width: 640px) {
  .hero { padding-top: 130px; padding-bottom: 60px; }
  .container { padding: 0 1.25rem; }
  
  .tracking-widget form {
    flex-direction: column !important;
    gap: 0.85rem !important;
  }
  .tracking-widget input {
    width: 100% !important;
    text-align: center;
  }
  .tracking-widget button {
    width: 100% !important;
  }
}

/* Tracking Cards */
#tracking-result-container { margin-top: 2rem; display: none; }

.tracking-card {
  background: white;
  color: var(--clr-navy-900);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  text-align: left;
  border-top: 5px solid var(--clr-brand-gold);
}

.tracking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tracking-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Services & Cards
   ========================================================================== */
.services { padding: 6rem 0; background: var(--clr-surface); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--clr-text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 119, 6, 0.3);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(217, 119, 6, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--clr-brand-gold);
  font-size: 1.75rem;
}

.service-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Content Grid Components (Info, Values, Features, Offices)
   ========================================================================== */

/* Info Grid (3 Columns) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-subtle);
}

.info-card-header {
  background: var(--clr-navy-900);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Progress & Lead Times */
.progress-item { margin-bottom: 1.25rem; }
.progress-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--clr-navy-900); }
.progress-bar-wrap { background: #e2e8f0; height: 10px; border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar-fill { background: var(--gradient-gold); height: 100%; border-radius: var(--radius-pill); }

/* Fleet Box */
.fleet-box {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 1.5rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}

.fleet-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-brand-gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

/* Mission / Value Cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.value-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-subtle);
  border-left: 4px solid var(--clr-brand-gold);
}

.value-card h4 {
  color: var(--clr-navy-900);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* 5 Feature Cards Grid (About Us) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 119, 6, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--clr-navy-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* JKE Networks Table */
.network-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.network-table th, .network-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--clr-border);
}

.network-table th {
  background: var(--clr-navy-900);
  color: white;
}

.badge-done {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
}

/* Office Cards */
.office-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  border-top: 4px solid var(--clr-brand-gold);
  box-shadow: var(--shadow-subtle);
}

.office-title {
  font-weight: 700;
  color: var(--clr-navy-900);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.office-desc {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.map-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  margin-top: 2rem;
  border: 1px solid var(--clr-border);
}

/* Contact Form Box */
.contact-form-box {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--clr-border);
  max-width: 650px;
  margin: 0 auto;
}

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--clr-navy-900);
  background: #f8fafc;
  transition: border-color var(--transition-smooth);
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
  border-color: var(--clr-brand-gold);
  outline: none;
  background: white;
}

/* ==========================================================================
   Visitor Counter Widget
   ========================================================================== */
.visitor-stats-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.visitor-stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  color: #cbd5e1;
}

.visitor-stats-item strong {
  color: white;
  font-weight: 700;
}

.visitor-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visitor-total-badge {
  background: white;
  color: var(--clr-navy-950);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--clr-navy-950);
  color: white;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #94a3b8; font-size: 0.95rem; }
.footer-links a:hover { color: var(--clr-brand-gold); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #64748b;
  font-size: 0.875rem;
}
