/* ==========================================================================
   Translogistics Design System
   ========================================================================== */

:root {
  /* Colors */
  --c-navy: #0A2540;
  --c-navy-light: #1A365D;
  --c-blue: #1565C0;
  --c-blue-light: #1E88E5;
  --c-blue-hover: #1976D2;
  --c-amber: #F59E0B;
  --c-amber-hover: #D97706;
  
  --c-text-main: #1E293B;
  --c-text-muted: #64748B;
  --c-text-light: #F8FAFC;
  
  --c-bg-main: #FFFFFF;
  --c-bg-alt: #F1F5F9;
  --c-border: #E2E8F0;

  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Transitions */
  --tr-fast: 200ms ease;
  --tr-normal: 300ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-base);
  color: var(--c-text-main);
  background: var(--c-bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--c-blue-hover); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* RTL Support */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .me-3 { margin-left: 0; margin-right: var(--space-3); }
[dir="rtl"] .ms-auto { margin-right: auto; margin-left: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-12) 0; }
.section-alt { background: var(--c-bg-alt); }

/* Typography Classes */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--c-navy); }
.section-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(21, 101, 192, 0.1);
  color: var(--c-blue);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.section-title { font-size: 2.5rem; margin-bottom: var(--space-2); }
.section-title span { color: var(--c-blue); }
.section-subtitle { font-size: 1.125rem; color: var(--c-text-muted); max-width: 600px; margin-bottom: var(--space-6); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all var(--tr-fast);
}
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--c-blue-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--c-amber); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--c-amber-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--c-blue); color: var(--c-blue); background: transparent; }
.btn-outline:hover:not(:disabled) { background: var(--c-blue); color: #fff; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Form Controls */
.form-group { margin-bottom: var(--space-3); }
.form-label { display: block; font-weight: 500; margin-bottom: var(--space-1); color: var(--c-navy); }
.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  background: #fff;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: #EF4444; }
.field-error { display: block; color: #EF4444; font-size: 0.875rem; margin-top: 4px; }

/* Input Wrappers with Icons */
.input-wrapper { position: relative; }
.input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-text-muted);
  pointer-events: none;
  transition: color var(--tr-fast);
}
.input-wrapper textarea ~ svg,
.input-wrapper textarea + svg {
  top: 14px;
  transform: none;
}
.input-wrapper .form-control, .input-wrapper .form-select {
  padding-left: 42px;
}
.input-wrapper:focus-within svg {
  color: var(--c-blue);
}
[dir="rtl"] .input-wrapper svg {
  left: auto;
  right: 14px;
}
[dir="rtl"] .input-wrapper .form-control,
[dir="rtl"] .input-wrapper .form-select {
  padding-left: 16px;
  padding-right: 42px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-border);
  transition: padding var(--tr-normal), box-shadow var(--tr-normal);
}
.navbar--scrolled { padding: var(--space-1) 0; box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--c-navy); display: flex; align-items: center; gap: 8px; }
.logo img { height: 32px; }
.nav-menu { display: flex; align-items: center; gap: var(--space-4); }
.nav-link { color: var(--c-text-main); font-weight: 500; position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--c-blue); transition: width var(--tr-fast);
}
.nav-link:hover::after, .nav-link--active::after { width: 100%; }
.nav-hamburger { display: none; font-size: 1.5rem; color: var(--c-navy); padding: 8px; }

/* Language Selector */
.lang-selector { display: flex; gap: 4px; align-items: center; border-left: 1px solid var(--c-border); padding-left: var(--space-3); margin-left: var(--space-1); }
[dir="rtl"] .lang-selector { border-left: none; border-right: 1px solid var(--c-border); padding-left: 0; padding-right: var(--space-3); margin-left: 0; margin-right: var(--space-1); }
.lang-btn { padding: 4px 8px; font-size: 0.875rem; font-weight: 600; color: var(--c-text-muted); border-radius: 4px; transition: all var(--tr-fast); }
.lang-btn:hover { background: var(--c-bg-alt); color: var(--c-navy); }
.lang-btn--active { background: var(--c-navy); color: #fff; }
.lang-btn--active:hover { background: var(--c-navy); color: #fff; }

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.7));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite;
  z-index: 0;
}

.hero-slide:nth-child(1) {
  background-image: url('../images/hero-bg.webp');
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  background-image: url('../images/hero-air.png');
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  background-image: url('../images/hero-land.png');
  animation-delay: 12s;
}

@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.05); }
  5% { opacity: 1; transform: scale(1); }
  33% { opacity: 1; transform: scale(1); }
  40% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; }
}

.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 800px; }
.hero .section-badge { background: rgba(255,255,255,0.1); color: var(--c-amber); }
.hero h1 { color: #fff; font-size: 4rem; margin-bottom: var(--space-3); }
.hero h1 span { color: var(--c-amber); }
.hero p { font-size: 1.25rem; color: #E2E8F0; margin-bottom: var(--space-6); max-width: 600px; }
.hero-actions { display: flex; gap: var(--space-3); margin-bottom: var(--space-8); }
.hero-stats { display: flex; gap: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.1); }
.stat-item h3 { color: #fff; font-size: 2rem; margin-bottom: 4px; }
.stat-item p { color: #94A3B8; font-size: 0.875rem; margin: 0; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
.service-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--tr-fast), box-shadow var(--tr-fast);
  height: 100%;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-img { height: 200px; object-fit: cover; width: 100%; }
.service-body { padding: var(--space-4); }
.service-body h3 { margin-bottom: var(--space-2); }
.service-body p { color: var(--c-text-muted); }

/* Forms & Cards */
.card-form { background: #fff; border-radius: 12px; padding: var(--space-6); box-shadow: var(--shadow-md); max-width: 800px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.full-width { grid-column: 1 / -1; }

/* Tracking Result */
.tracking-result-card { background: var(--c-bg-alt); border-radius: 8px; padding: var(--space-4); margin-top: var(--space-4); border-left: 4px solid var(--c-blue); }
[dir="rtl"] .tracking-result-card { border-left: none; border-right: 4px solid var(--c-blue); }
.tracking-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--c-border); }
.tracking-header h3 { margin: 0; }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }
.status--pending { background: #FEF3C7; color: #D97706; }
.status--confirmed { background: #DBEAFE; color: #1D4ED8; }
.status--in-transit { background: #E0E7FF; color: #4338CA; }
.status--delivered { background: #D1FAE5; color: #059669; }
.status--cancelled { background: #FEE2E2; color: #DC2626; }
.tracking-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); }
.detail-item span { display: block; font-size: 0.875rem; color: var(--c-text-muted); margin-bottom: 4px; }
.detail-item strong { color: var(--c-navy); font-weight: 500; }

/* Contact Section */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-6); align-items: start; }
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info { 
  background: var(--c-navy); 
  color: #fff; 
  padding: var(--space-5); 
  border-radius: var(--br-lg); 
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--c-amber);
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
}
.contact-info h3 { color: #fff; margin-bottom: var(--space-4); font-size: 1.5rem; position: relative; z-index: 1; }
.info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: var(--space-4); position: relative; z-index: 1; }
.info-item:last-child { margin-bottom: 0; }
.info-item .icon { 
  width: 44px; 
  height: 44px; 
  background: rgba(255, 255, 255, 0.1); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--c-amber); 
  flex-shrink: 0; 
}
.info-item .icon svg { width: 22px; height: 22px; }
.info-item p { margin: 0; font-size: 1rem; font-weight: 500; }
.info-item span { display: block; color: #94A3B8; font-size: 0.875rem; margin-bottom: 4px; }

/* Footer */
.footer { 
  position: relative;
  background: linear-gradient(135deg, #0A2540 0%, #1565C0 100%);
  color: #fff;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 40px;
}

.footer-wave-path {
  fill: #F8FAFC;
}

.footer-content {
  position: relative;
  padding: calc(var(--space-4) + 30px) 0 var(--space-3);
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1.5fr; 
  gap: var(--space-4); 
  margin-bottom: var(--space-3);
}

.footer-col h4 { 
  color: #fff; 
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--c-amber);
  border-radius: 2px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-2);
}

.footer-logo svg {
  width: 20px;
  height: 20px;
}

.footer-logo span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-desc { 
  color: #CBD5E1; 
  margin-bottom: var(--space-2);
  line-height: 1.5;
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 6px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: all var(--tr-normal);
  backdrop-filter: blur(10px);
}

.footer-social a:hover {
  background: var(--c-amber);
  color: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

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

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

.footer-links a { 
  color: #CBD5E1;
  transition: all var(--tr-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
}

.footer-links a span {
  color: var(--c-amber);
  font-weight: 700;
  transition: transform var(--tr-fast);
  font-size: 0.75rem;
}

.footer-links a:hover { 
  color: #fff;
  padding-left: 4px;
}

.footer-links a:hover span {
  transform: translateX(3px);
}

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

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--c-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact strong {
  display: block;
  color: #fff;
  font-size: 0.8125rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.footer-contact span {
  display: block;
  color: #CBD5E1;
  font-size: 0.8125rem;
}

.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.1); 
  padding-top: var(--space-3);
  margin-top: var(--space-3);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-copyright {
  color: #CBD5E1;
  font-size: 0.8125rem;
  margin: 0;
}

.footer-copyright strong {
  color: #fff;
  font-weight: 700;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #CBD5E1;
  font-size: 0.8125rem;
  transition: color var(--tr-fast);
}

.footer-bottom-links a:hover {
  color: var(--c-amber);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer-made {
  color: #CBD5E1;
  font-size: 0.8125rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-heart {
  color: #EF4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Success Messages */
.success-msg { text-align: center; padding: var(--space-4); background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; color: #166534; }
.success-msg h3 { color: #166534; margin-bottom: var(--space-2); }
.success-number { display: inline-block; margin-top: var(--space-2); padding: 8px 16px; background: #fff; border-radius: 4px; font-weight: 700; letter-spacing: 2px; font-size: 1.25rem; box-shadow: var(--shadow-sm); }

/* ── Page Loader ────────────────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--c-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Logo dentro do loader */
.loader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: loaderLogoIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.loader-logo svg { filter: drop-shadow(0 0 16px rgba(245,158,11,0.4)); }
.loader-logo-text {
  font-family: var(--font-base);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Track de progresso */
.loader-progress-track {
  width: 220px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: hidden;
}
.loader-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c-blue-light), var(--c-amber));
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(245,158,11,0.5);
}

/* Texto de estado */
.loader-status {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

/* Spinner (AJAX) */
.loader-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,37,64,0.45); backdrop-filter: blur(6px);
  z-index: 9999; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--tr-normal), visibility var(--tr-normal);
}
.loader-overlay.active { opacity: 1; visibility: visible; }
.spinner {
  position: relative;
  width: 56px; 
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--c-amber);
  border-bottom-color: var(--c-blue);
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.spinner::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-left-color: var(--c-accent);
  border-right-color: #38BDF8;
  animation: spin-reverse 0.7s linear infinite;
}
.spinner::after {
  content: '';
  position: absolute;
  top: 14px; left: 14px; right: 14px; bottom: 14px;
  background: var(--c-amber);
  border-radius: 50%;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-overlay > div[data-i18n] {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-top: 12px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes pulse-glow {
  0%, 100% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 20px rgba(245, 158, 11, 0.9); }
}
@keyframes loaderLogoIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.9;  }
}

/* Toasts */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
[dir="rtl"] #toast-container { right: auto; left: 24px; }
.toast {
  background: #fff; color: var(--c-text-main); padding: 16px 20px; border-radius: 8px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(20px); opacity: 0; transition: all var(--tr-fast); min-width: 300px; border-left: 4px solid var(--c-blue);
}
[dir="rtl"] .toast { border-left: none; border-right: 4px solid var(--c-blue); }
.toast.toast--visible { transform: translateY(0); opacity: 1; }
.toast--success { border-color: #10B981; }
.toast--error { border-color: #EF4444; }
.toast__close { background: none; border: none; color: var(--c-text-muted); cursor: pointer; padding: 4px; }

/* WhatsApp Button */
.whatsapp-fixed {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background: #25D366; color: #fff; border-radius: 50%;
  display: flex; justify-content: center; align-items: center; font-size: 32px;
  box-shadow: var(--shadow-lg); z-index: 990; transition: transform var(--tr-fast); cursor: pointer;
}
[dir="rtl"] .whatsapp-fixed { right: auto; left: 30px; }
.whatsapp-fixed:hover { transform: scale(1.1); }
.whatsapp-fixed svg { width: 32px; height: 32px; fill: currentColor; }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-content { justify-content: center; text-align: center; }
  .footer-wave svg { height: 35px; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: var(--space-4); gap: var(--space-3);
    box-shadow: var(--shadow-md); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all var(--tr-fast);
  }
  .nav-menu--open { transform: translateY(0); opacity: 1; visibility: visible; }
  .lang-selector { border-left: none; padding-left: 0; margin-left: 0; margin-top: var(--space-2); justify-content: center; }
  [dir="rtl"] .lang-selector { border-right: none; padding-right: 0; margin-right: 0; }
  .hero { padding: 120px 0 60px; min-height: auto; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; justify-content: center; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-content { 
    flex-direction: column; 
    text-align: center; 
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .footer-wave svg {
    height: 30px;
  }
  .footer-content {
    padding: calc(var(--space-3) + 25px) 0 var(--space-2);
  }
}

/* ==========================================================================
   Print Styles — Clean Print of Tracking / Booking Confirmation
   ========================================================================== */
@media print {
  /* Hide everything we don't need */
  .print-hide,
  .share-actions,
  nav,
  header,
  footer,
  .section-badge,
  .section-subtitle,
  .lang-selector,
  .nav-toggle,
  #global-loader,
  .toast-container,
  #form-booking,
  #form-tracking,
  .loader-overlay {
    display: none !important;
  }

  /* Reset page layout */
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 12pt;
    margin: 0;
  }

  /* Show only the success / tracking card */
  .card-form,
  .tracking-result-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    max-width: 100% !important;
  }

  /* Booking success */
  #booking-success {
    display: block !important;
  }

  /* Print header branding */
  .success-number,
  #res-tracking {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #000 !important;
  }

  /* Page break helpers */
  .tracking-result-card,
  #booking-success {
    page-break-inside: avoid;
  }

  /* Add print watermark footer */
  .tracking-result-card::after,
  #booking-success::after {
    content: "Impresso em " attr(data-print-date) " — translogistics.com";
    display: block;
    margin-top: 24px;
    font-size: 9pt;
    color: #999;
    border-top: 1px dashed #ccc;
    padding-top: 8px;
    text-align: center;
  }
}
