/* Swift Air Cargo – light theme, animations, mobile-first track box */

/* ── Light theme ─────────────────────────────────── */
:root[data-theme="light"] {
  --bg: #ffffff; --bg2: #f6f7fb; --surface: #ffffff; --surface2: #f1f3f9; --surface3: #dfe4ef;
  --border: rgba(15,23,42,0.10); --border2: rgba(15,23,42,0.18);
  --accent: #d97706; --accent2: #b45309; --accent3: #92400e;
  --accent-dim: rgba(217,119,6,0.10); --accent-glow: rgba(217,119,6,0.25);
  --text: #11131a; --text2: #4b5568; --text3: #7b859a; --white: #0b0d14;
  --shadow: 0 16px 50px rgba(15,23,42,0.12); --shadow-sm: 0 4px 18px rgba(15,23,42,0.08);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] .navbar.scrolled { background: rgba(255,255,255,0.88); }
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-nav,
:root[data-theme="light"] .track-input-group button,
:root[data-theme="light"] .track-page-search button { color: #fff !important; }
:root[data-theme="light"] .hero-grid { opacity: .5; filter: invert(1); }
:root[data-theme="light"] .float-card,
:root[data-theme="light"] .service-card,
:root[data-theme="light"] .why-card,
:root[data-theme="light"] .review-card,
:root[data-theme="light"] .track-card { box-shadow: var(--shadow-sm); }
:root[data-theme="light"] .cta-banner { background: linear-gradient(135deg,#fff7e6,#ffedd5); }
:root[data-theme="light"] .marquee-strip { background: var(--surface2); }
:root[data-theme="light"] .footer { background: var(--bg2); }
body, .navbar, .service-card, .why-card, .review-card, .track-card, .footer, .reviews, .cta-banner, input, select, textarea {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.theme-toggle {
  background: var(--surface2); border: 1px solid var(--border2); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: inline-grid; place-items: center; transition: transform .25s ease, background .2s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }

/* Language select (replaces the old EN/FR/ES buttons; visible on mobile too) */
.lang-switcher { display: flex !important; }
.lang-select {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border2);
  border-radius: 20px; padding: 8px 12px; font: 600 .8rem var(--font-body); cursor: pointer; max-width: 120px;
}
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 769px) { .nav-right { margin-left: 0; } }

/* ── Mobile-style tracking box: button under the field ── */
.track-input-group, .track-page-search { flex-direction: column !important; gap: 12px !important; }
.track-input-group button, .track-page-search button { width: 100%; padding: 15px 24px; font-size: 1rem; }
.track-input-group input, .track-page-search input {
  width: 100%; font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 15px 18px;
}
.track-input-group input::placeholder, .track-page-search input::placeholder { letter-spacing: 0; text-transform: none; }

/* ── Animations ───────────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.from-left { transform: translateX(-34px); }
html.js .reveal.from-right { transform: translateX(34px); }
html.js .reveal.zoom { transform: scale(.94); }

.hero-badge, .hero-title, .hero-sub, .hero-cta, .hero-stats { animation: heroIn .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-title { animation-delay: .12s; } .hero-sub { animation-delay: .24s; }
.hero-cta { animation-delay: .36s; } .hero-stats { animation-delay: .48s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-orb { animation: orbDrift 14s ease-in-out infinite alternate; }
.orb2 { animation-duration: 19s; animation-direction: alternate-reverse; }
@keyframes orbDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,-30px) scale(1.12); } }

.btn-primary, .btn-outline, .btn-nav { transition: transform .2s ease, box-shadow .25s ease, background .2s; }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-2px); }
.btn-primary:active, .btn-outline:active { transform: scale(.97); }
.service-card, .why-card, .review-card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.service-card:hover, .why-card:hover, .review-card:hover { transform: translateY(-6px); }
.service-icon, .why-icon { display: inline-block; transition: transform .35s ease; }
.service-card:hover .service-icon, .why-card:hover .why-icon { transform: scale(1.18) rotate(-6deg); }
.step.active .step-dot { animation: pulse 1.8s ease-in-out infinite; }
body { animation: pageIn .5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ── Real-world polish ─────────────────────────────── */
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--accent); }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .logo, [dir="rtl"] .footer-inner { direction: ltr; }
[dir="rtl"] body { text-align: right; }
/* Third-party host badge */
[id*="netlify-badge"], a[href*="netlify.com"][class*="badge"] { display: none !important; }
.track-hint { font-size: .8rem; color: var(--text3); margin-top: 12px; }
.track-example { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }

/* ── Small-screen fit ── */
html { overflow-x: hidden; }
.track-card > *, .hero > *, .footer-inner > * { min-width: 0; }
@media (max-width: 768px) {
  .nav-inner { gap: 8px; padding: 0 14px; }
  .logo { font-size: 1.35rem; letter-spacing: 1.5px; gap: 5px; }
  .nav-right { gap: 8px; margin-left: auto; }
  .lang-select { max-width: 82px; padding: 7px 6px; font-size: .74rem; }
  .theme-toggle { width: 34px; height: 34px; }
  .hamburger { padding: 4px 6px; }
  .track-card { padding: 28px 18px !important; }
}
html.js .reveal.in.from-left, html.js .reveal.in.from-right, html.js .reveal.in.zoom { transform: none; }
.reviews-grid:empty { display: none; }
.reviews-empty { text-align: center; color: var(--text2); margin-bottom: 28px; }
.reviews-grid:not(:empty) + .reviews-empty { display: none; }
.reviews-grid:empty { display: none; }
.review-form { max-width: 720px; margin: 36px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.review-form h3 { font-family: var(--font-display); letter-spacing: 1.5px; font-size: 1.5rem; margin-bottom: 16px; color: var(--white); }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.review-form input:not([name=website]), .review-form select, .review-form textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 13px 15px; color: var(--text); font: 1rem var(--font-body); outline: none; }
.review-form textarea { margin-bottom: 14px; resize: vertical; }
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.review-form .btn-primary { width: 100%; }
.review-form .form-status:empty { display: none; }
@media (max-width: 600px) { .rv-grid { grid-template-columns: 1fr; } }
