@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #F97316;
  --primary-dark: #C2410C;
  --black: #111111;
  --black-dark: #050505;
  --white: #FFFFFF;
  --light: #F7F7F7;
  --text: #111111;
  --muted: #4B5563;
  --border: #E5E7EB;
  --success: #15803D;
  --danger: #DC2626;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================
   CONTAINER
========================= */

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.navbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
  background: rgba(249, 115, 22, 0.08);
}

.nav-links a.active {
  color: var(--primary-dark);
  background: rgba(249, 115, 22, 0.10);
}

.nav-button {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 17px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.nav-button:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.78)
    ),
    url('https://images.unsplash.com/photo-1494412651409-8963ce7935a7?auto=format&fit=crop&w=1800&q=80')
    center/cover no-repeat;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  padding: 90px 0;
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  background: rgba(255,255,255,0.10);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 800px;
  color: var(--white);
  font-size: clamp(2.35rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 700px;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

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

.btn-secondary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-secondary:hover {
  background: var(--black-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  border-color: var(--black);
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   TRACKING BOX
========================= */

.tracking-section {
  margin-top: -75px;
  position: relative;
  z-index: 10;
}

.tracking-box {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
  border: 1px solid var(--border);
}

.tracking-box h2 {
  color: var(--black);
  font-size: 1.65rem;
  line-height: 1.25;
  margin-bottom: 7px;
}

.tracking-box p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.tracking-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.tracking-form input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--black);
  background: var(--white);
  outline: none;
}

.tracking-form input::placeholder {
  color: #6B7280;
}

.tracking-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 90px 0;
}

.section-light {
  background: var(--light);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2 {
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================
   CARDS / SERVICES
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(249,115,22,0.10);
  color: var(--primary-dark);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.card h3 {
  color: var(--black);
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 9px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================
   STATS
========================= */

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

.stat {
  text-align: center;
  padding: 30px 15px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  color: var(--black);
  font-size: 2.4rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =========================
   FORMS
========================= */

.form-container {
  max-width: 850px;
  margin: 0 auto;
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
  color: var(--black);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6B7280;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

/* =========================
   TRACKING RESULT
========================= */

.tracking-result {
  margin-top: 30px;
}

.shipment-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.summary-item {
  background: var(--light);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.summary-item strong {
  color: var(--black);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(22,163,74,0.10);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================
   PROGRESS
========================= */

.progress,
.progress-bar,
.progress-track {
  max-width: 100%;
}

/* =========================
   TIMELINE
========================= */

.timeline {
  position: relative;
  margin-top: 30px;
  padding-left: 35px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--white);
}

.timeline-item.completed .timeline-dot {
  background: var(--success);
}

.timeline-item.current .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(249,115,22,0.15);
}

.timeline-item h4 {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================
   TABLES
========================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--light);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 700;
}

td {
  color: var(--text);
  font-size: 0.92rem;
}

/* =========================
   CTA
========================= */

.cta {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 75px 20px;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 15px;
}

.cta p {
  max-width: 650px;
  margin: 0 auto 25px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #090909;
  color: var(--white);
  padding: 65px 0 25px;
}

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

.site-footer h3 {
  color: var(--white);
  margin-bottom: 15px;
}

.site-footer p {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: rgba(255,255,255,0.78);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 45px;
  padding-top: 20px;
  color: rgba(255,255,255,0.60);
  font-size: 0.85rem;
}

/* =========================
   ALERTS
========================= */

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin: 15px 0;
  font-weight: 600;
  line-height: 1.5;
}

.alert-success {
  background: #ECFDF5;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* =========================
   ADMIN
========================= */

.admin-layout {
  min-height: 100vh;
  display: flex;
  background: var(--light);
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  padding: 25px 15px;
}

.admin-sidebar .logo {
  color: var(--white);
  padding: 0 10px 25px;
}

.admin-menu {
  list-style: none;
}

.admin-menu li {
  margin: 4px 0;
}

.admin-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  color: rgba(255,255,255,0.82);
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(249,115,22,0.16);
  color: var(--white);
}

.admin-main {
  flex: 1;
  min-width: 0;
}

.admin-header {
  min-height: 70px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  padding: 30px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
}

.dashboard-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.dashboard-card strong {
  display: block;
  color: var(--black);
  font-size: 2rem;
  margin-top: 5px;
}

/* =========================
   RESPONSIVE NAVIGATION
========================= */

@media (max-width: 950px) {

  .navbar {
    min-height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 0;
    box-shadow: 0 12px 25px rgba(0,0,0,0.10);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 11px 14px;
  }

  .nav-links .nav-button {
    justify-content: center;
    margin-top: 5px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .shipment-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    width: 220px;
  }
}

/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 700px) {

  .container {
    width: min(94%, 1160px);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 65px 0;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    line-height: 1.08;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .tracking-section {
    margin-top: -45px;
  }

  .tracking-box {
    padding: 22px;
  }

  .tracking-form {
    flex-direction: column;
  }

  .tracking-form input,
  .tracking-form .btn {
    width: 100%;
  }

  .section {
    padding: 65px 0;
  }

  .cards,
  .stats,
  .form-grid,
  .shipment-summary,
  .footer-grid,
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .form-container {
    padding: 22px;
  }

  .card {
    padding: 22px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-content {
    padding: 20px 15px;
  }

  .admin-header {
    padding: 0 15px;
  }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 420px) {

  .navbar {
    min-height: 64px;
  }

  .logo {
    font-size: 0.98rem;
    gap: 8px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding: 55px 0;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero p {
    font-size: 0.96rem;
  }

  .btn {
    min-height: 50px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .tracking-box {
    padding: 18px;
  }

  .tracking-box h2 {
    font-size: 1.4rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }
}

/* =========================
   ACCESSIBILITY
========================= */

:focus-visible {
  outline: 3px solid rgba(249,115,22,0.55);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
