
/* Base Styles */
:root {
  --brand-blue: #0055b3;
  --brand-blue-dark: #004494;
  --brand-orange: #ff9500;
  --brand-orange-dark: #e67e00;
  --brand-lightblue: #f0f7ff;
  --brand-gray: #f5f5f7;
  --text-dark: #1a1a1a;
  --text-medium: #555;
  --text-light: #777;
  --white: #fff;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
  --transition: all 0.3s ease;
  --layer-base: 1;
  --layer-header: 50;
  --layer-modal: 100;
  --layer-toast: 1000;
}

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

html {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  background-color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style-type: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 6rem;
  height: 4px;
  background-color: var(--brand-orange);
  margin: 1rem auto 0;
}

.section-description {
  text-align: center;
  color: var(--text-medium);
  max-width: 48rem;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* Utility Classes */
.text-brand-blue {
  color: var(--brand-blue);
}

.text-brand-orange {
  color: var(--brand-orange);
}

.w-full {
  width: 100%;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--brand-blue);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--brand-blue-dark);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--brand-orange);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--brand-orange-dark);
}

.btn-white {
  display: inline-block;
  background-color: var(--white);
  color: var(--brand-blue);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-white:hover {
  background-color: #f5f5f5;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(0, 85, 179, 0.1);
}

.form-help-text {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--layer-header);
  transition: all 0.3s ease;
  background-color: transparent;
  padding: 1.25rem 0;
}

#header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
}

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

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.mobile-menu-btn {
  display: block;
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
}

.desktop-nav {
  display: none;
}

.mobile-menu {
  display: none;
  width: 100%;
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-blue);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
  
  .desktop-nav {
    display: flex;
    gap: 2rem;
  }
  
  .desktop-nav .nav-link {
    padding: 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 5rem;
  background-image: linear-gradient(to right, #0055b3, #0066cc);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://source.unsplash.com/1600x900/?logistics,shipping');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  max-width: 20rem;
  margin: 0 auto;
}

.stats-container {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .hero {
    padding: 12rem 0 6rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-content {
    text-align: left;
    max-width: 40rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
    margin: 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Services Section */
.services {
  background-color: var(--brand-gray);
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--text-medium);
}

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

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

/* Tracking Section */
.tracking {
  padding: 5rem 0;
  background-color: var(--brand-lightblue);
}

.tracking-form-container {
  max-width: 36rem;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Info Section */
.info {
  padding: 5rem 0;
}

.info-accordion {
  max-width: 48rem;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-header {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.accordion-icon {
  color: var(--brand-blue);
  margin-right: 1rem;
  flex-shrink: 0;
}

.accordion-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.accordion-description {
  color: var(--text-medium);
  font-size: 0.875rem;
}

.accordion-arrow {
  margin-left: auto;
  color: var(--brand-blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 1000px;
}

.content-inner {
  padding: 0 1.5rem 1.5rem;
}

.content-subtitle {
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text-dark);
}

.list-disc {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.list-decimal {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

/* Terms Section */
.terms {
  padding: 5rem 0;
  background-color: var(--brand-gray);
}

.terms-container {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terms-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab.active {
  color: var(--brand-blue);
  border-bottom: 3px solid var(--brand-blue);
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.terms-text {
  color: var(--text-medium);
  line-height: 1.6;
}

.terms-text p {
  margin-bottom: 1rem;
}

.terms-text h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.update-date {
  margin-top: 2rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Footer */
.footer {
  background-color: var(--brand-blue);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: var(--white);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--brand-orange);
}

.footer-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  color: var(--brand-orange);
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--layer-modal);
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  max-width: 36rem;
  width: 90%;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-medium);
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
}

.tracking-details {
  background-color: var(--brand-lightblue);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.tracking-details h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tracking-info {
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.info-label {
  color: var(--text-medium);
  width: 50%;
}

.info-value {
  font-weight: 500;
}

.tracking-history {
  font-size: 0.875rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.history-date {
  color: var(--text-medium);
}

.email-form {
  margin-top: 1.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  max-width: 90%;
  background-color: var(--white);
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: var(--layer-toast);
  transition: bottom 0.3s ease-in-out;
}

.toast.show {
  bottom: 30px;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-medium);
  margin-left: 1rem;
}