/*-----------------------------------------------------------------------------------
    Tezex Courier Company - Custom Theme Colors
    Based on Brand Logo Colors:
    Primary Orange: #f37621
    Primary Dark Blue: #2a4063
-----------------------------------------------------------------------------------*/

:root {
  /* Primary Brand Colors from Logo */
  --tezex-primary: #f37621;
  --tezex-primary-dark: #d96618;
  --tezex-primary-light: #ff8e3d;

  --tezex-secondary: #2a4063;
  --tezex-secondary-dark: #1f3049;
  --tezex-secondary-light: #3d5a7e;

  /* Accent & Supporting Colors */
  --tezex-accent: #ff9f5a;
  --tezex-success: #4caf50;
  --tezex-warning: #ffc107;
  --tezex-info: #2196f3;

  /* Text Colors */
  --tezex-text-dark: #1f3049;
  --tezex-text-body: #4a5568;
  --tezex-text-light: #6b7280;
  --tezex-text-white: #ffffff;

  /* Background Colors */
  --tezex-bg-light: #f8f9fa;
  --tezex-bg-white: #ffffff;
  --tezex-bg-dark: #2a4063;
  --tezex-bg-gradient: linear-gradient(135deg, #2a4063 0%, #1f3049 100%);
  --tezex-bg-gradient-orange: linear-gradient(135deg, #f37621 0%, #ff8e3d 100%);

  /* Border Colors */
  --tezex-border: #e5e7eb;
  --tezex-border-light: #f3f4f6;

  /* Override existing theme colors */
  --tj-color-theme-primary: #f37621;
  --tj-color-theme-secondary: #2a4063;
  --tj-color-heading-primary: #2a4063;
  --tj-color-text-body: #4a5568;
  --tj-color-theme-bg: #f8f9fa;
  --tj-color-theme-dark: #2a4063;
}

/* Primary Button Styles */
.tj-btn-primary,
.tj-primary-btn,
.button-1 {
  background-color: var(--tezex-primary) !important;
  border-color: var(--tezex-primary) !important;
  color: var(--tezex-text-white) !important;
}

.tj-btn-primary:hover,
.tj-primary-btn:hover,
.button-1:hover {
  background-color: var(--tezex-primary-dark) !important;
  border-color: var(--tezex-primary-dark) !important;
}

/* Secondary Button Styles */
.tj-btn-secondary,
.button-2 {
  background-color: var(--tezex-secondary) !important;
  border-color: var(--tezex-secondary) !important;
  color: var(--tezex-text-white) !important;
}

.tj-btn-secondary:hover,
.button-2:hover {
  background-color: var(--tezex-secondary-dark) !important;
  border-color: var(--tezex-secondary-dark) !important;
}

/* Header Styles */
.header-area .header-top {
  background-color: var(--tezex-secondary);
}

.header-area .topbar-text,
.header-area .header-info a {
  color: var(--tezex-text-white);
}

.header-area .topbar-text a {
  color: var(--tezex-primary);
}

.header-area .topbar-text a:hover {
  color: var(--tezex-primary-light);
}

/* Navigation */
.header-menu ul li a:hover,
.header-menu ul li a.active {
  color: var(--tezex-primary) !important;
}

/* Hero Section */
.hero-area,
.hero-section {
  background: var(--tezex-bg-gradient);
}

.hero-title,
.hero-section .section-title {
  color: var(--tezex-text-white);
}

.hero-subtitle,
.hero-description {
  color: rgba(255, 255, 255, 0.9);
}

/* Section Titles */
.section-title,
h1,
h2,
h3 {
  color: var(--tezex-secondary);
}

.section-subtitle {
  color: var(--tezex-primary);
}

/* Icon Boxes & Service Cards */
.service-item,
.icon-box,
.feature-item {
  border-color: var(--tezex-border);
}

.service-item:hover,
.icon-box:hover,
.feature-item:hover {
  border-color: var(--tezex-primary);
  box-shadow: 0 10px 30px rgba(243, 118, 33, 0.15);
}

.service-icon,
.icon-box-icon {
  color: var(--tezex-primary);
}

.service-item:hover .service-icon,
.icon-box:hover .icon-box-icon {
  color: var(--tezex-primary-dark);
}

/* Counter/Stats Section */
.counter-area,
.funfact-area {
  background: var(--tezex-bg-gradient);
}

.counter-item .counter-number,
.funfact-item .odometer {
  color: var(--tezex-primary);
}

.counter-item .counter-title,
.funfact-item .funfact-title {
  color: var(--tezex-text-white);
}

/* CTA Section */
.cta-area,
.cta-section {
  background: var(--tezex-bg-gradient-orange);
}

.cta-title {
  color: var(--tezex-text-white);
}

/* Footer */
.footer-area {
  background-color: var(--tezex-secondary);
}

.footer-widget-title,
.footer-area h3,
.footer-area h4 {
  color: var(--tezex-text-white);
}

.footer-area p,
.footer-area a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-copyright {
  background-color: var(--tezex-secondary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links a {
  color: var(--tezex-text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background-color: var(--tezex-primary);
  border-color: var(--tezex-primary);
  color: var(--tezex-text-white);
}

/* Testimonial Section */
.testimonial-item {
  background-color: var(--tezex-bg-white);
  border: 1px solid var(--tezex-border);
}

.testimonial-item:hover {
  border-color: var(--tezex-primary);
}

.testimonial-rating i {
  color: var(--tezex-primary);
}

/* Process/Steps Section */
.process-item,
.step-item {
  border-color: var(--tezex-border);
}

.process-number,
.step-number {
  background: var(--tezex-bg-gradient-orange);
  color: var(--tezex-text-white);
}

/* Pricing Tables */
.pricing-item {
  border: 2px solid var(--tezex-border);
}

.pricing-item:hover,
.pricing-item.active {
  border-color: var(--tezex-primary);
  box-shadow: 0 15px 40px rgba(243, 118, 33, 0.15);
}

.pricing-price {
  color: var(--tezex-primary);
}

/* Blog/News Cards */
.blog-item,
.news-item {
  border: 1px solid var(--tezex-border);
}

.blog-item:hover,
.news-item:hover {
  box-shadow: 0 10px 30px rgba(42, 64, 99, 0.1);
}

.blog-meta a:hover,
.blog-title a:hover {
  color: var(--tezex-primary);
}

/* Forms */
.form-control:focus {
  border-color: var(--tezex-primary);
  box-shadow: 0 0 0 0.2rem rgba(243, 118, 33, 0.25);
}

/* Links */
a {
  color: var(--tezex-primary);
}

a:hover {
  color: var(--tezex-primary-dark);
}

/* Badges & Tags */
.badge-primary,
.tag-primary {
  background-color: var(--tezex-primary);
}

.badge-secondary,
.tag-secondary {
  background-color: var(--tezex-secondary);
}

/* Overlay Backgrounds */
.overlay-primary::before {
  background: rgba(243, 118, 33, 0.9);
}

.overlay-secondary::before {
  background: rgba(42, 64, 99, 0.9);
}

/* Animations & Transitions */
.tj-btn-primary,
.tj-btn-secondary,
.service-item,
.blog-item,
a {
  transition: all 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--tezex-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--tezex-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tezex-primary-dark);
}

/* Custom Courier-Specific Styles */
.tracking-number {
  font-family: "Courier New", monospace;
  font-weight: bold;
  color: var(--tezex-primary);
  letter-spacing: 2px;
}

.country-count {
  font-size: 48px;
  font-weight: 800;
  color: var(--tezex-primary);
}

.delivery-badge {
  display: inline-block;
  padding: 5px 15px;
  background: var(--tezex-bg-gradient-orange);
  color: var(--tezex-text-white);
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
  margin: 20px 0 10px 0;
}

/* Tracking Feature Card */
.tracking-feature-card {
  padding: 30px;
  background: linear-gradient(135deg, #2a4063 0%, #1f3049 100%);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(42, 64, 99, 0.2);
}

.tracking-feature-card .calculator-icon {
  background: var(--tezex-primary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
}

.tracking-feature-card .calculator-icon i {
  font-size: 28px;
  color: #ffffff;
}

.tracking-feature-card .title {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 15px;
}

.tracking-feature-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 25px;
}

.tracking-input-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.tracking-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tracking-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.tracking-input:focus {
  outline: none;
  border-color: var(--tezex-primary);
  background: rgba(255, 255, 255, 0.15);
}

.tracking-btn {
  white-space: nowrap;
  padding: 12px 25px;
}

@media (max-width: 768px) {
  .tracking-input-wrapper {
    flex-direction: column;
  }

  .tracking-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .country-count {
    font-size: 36px;
  }
}

/* Mobile Header Top Adjustments */
@media only screen and (max-width: 991px) {
  /* Hide topbar text on mobile */
  .header-top-content .topbar-text {
    display: none !important;
  }

  /* Keep only location, phone, and language switcher visible in ONE ROW */
  .header-top-content .header-info {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
  }

  /* Hide social links in header-top on mobile */
  .header-top-content .header-info .info-item:last-child {
    display: none !important;
  }

  /* Adjust info items spacing for mobile - keep in single row */
  .header-top-content .header-info .info-item {
    padding: 0 5px;
    font-size: 12px;
    white-space: nowrap;
    border: 0;
  }

  .header-top-content .header-info .info-item i {
    font-size: 14px;
  }

  /* Make language switcher compact */
  .header-top .language-switcher {
    margin-left: 0;
    margin-top: 0;
  }

  .header-top .info-item .language-switcher {
    width: auto;
  }
}

/* Extra small devices */
@media only screen and (max-width: 575px) {
  .header-top-content .header-info {
    padding: 8px 3px;
  }

  .header-top-content .header-info .info-item {
    padding: 0 3px;
    font-size: 11px;
  }

  .header-top-content .header-info .info-item span i {
    font-size: 13px;
  }

  .header-top-content .header-info .info-item a {
    font-size: 11px;
  }
}
