/* CheckShips v2 - Complete styles */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0F172A;
  background: #F8FAFC;
}

a { color: #1A56DB; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #FF6B1A; color: white; padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid #E2E8F0;
  position: sticky; top: 0; z-index: 100;
}
.nav-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; color: #0F172A;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background: #FF6B1A;
  border-radius: 10px;
  text-align: center; line-height: 40px;
  font-size: 22px;
}
.brand-blue { color: #1A56DB; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
}
.main-nav a {
  color: #475569;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.main-nav a:hover { color: #FF6B1A; }
.mobile-toggle {
  display: none;
  background: none; border: none;
  font-size: 24px; padding: 4px 8px;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid #E2E8F0;
    gap: 12px;
  }
  .main-nav ul.open { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1A56DB 0%, #1A56DB 50%, #FF6B1A 100%);
  color: white;
  padding: 80px 24px;
}
.hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: 48px; font-weight: 800;
  line-height: 1.1; margin: 0 0 16px;
}
.hero h1 .accent { color: #FFB347; }
.subtitle {
  font-size: 19px; opacity: 0.95;
  margin: 0 0 32px;
}

@media (max-width: 600px) {
  .hero { padding: 50px 20px; }
  .hero h1 { font-size: 32px; }
  .subtitle { font-size: 16px; }
}

/* Search box on homepage */
.search-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.search-form {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15,23,42,.18);
}
.search-form input {
  width: 100%;
  padding: 18px 130px 18px 56px;
  font-size: 17px;
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: 16px;
  background: white;
  color: #0F172A;
  font-family: inherit;
}
.search-form input::placeholder { color: #94A3B8; font-weight: 400; }
.search-form input:focus { outline: none; border-color: #FF6B1A; }
.search-form::before {
  content: '🔍';
  position: absolute;
  left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
}
.search-btn {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  background: #FF6B1A;
  color: white; border: none;
  padding: 12px 22px;
  font-size: 15px; font-weight: 700;
  border-radius: 12px;
}
.search-btn:hover { background: #E55A0E; }

.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.18);
  max-height: 400px;
  overflow-y: auto;
  z-index: 10;
}
.search-suggestions.show { display: block; }
.search-result {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #F1F5F9;
  text-decoration: none;
  color: #0F172A;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: #FFF8F4; text-decoration: none; }
.search-name { flex: 1; font-weight: 600; font-size: 15px; }
.search-name mark { background: rgba(255,107,26,.18); padding: 0 2px; border-radius: 2px; font-weight: 700; }
.search-meta { font-size: 13px; color: #94A3B8; }
.search-arrow { color: #94A3B8; font-size: 18px; }
.search-empty { padding: 24px; text-align: center; color: #475569; font-size: 14px; }

.search-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.search-hint strong { color: white; }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15,23,42,.06);
  border: 1px solid #E2E8F0;
}
.stat { text-align: center; }
.stat .num { font-size: 28px; font-weight: 800; color: #FF6B1A; }
.stat .label { font-size: 13px; color: #475569; font-weight: 600; }

@media (max-width: 600px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 12px; }
  .stat .num { font-size: 22px; }
}

/* Container & sections */
.container { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.section-title { font-size: 32px; font-weight: 800; color: #0F172A; margin: 0 0 12px; text-align: center; }
.section-subtitle { font-size: 17px; color: #475569; text-align: center; margin: 0 0 32px; }

/* Carrier cards grid */
.carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.carrier-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: #0F172A;
  transition: all .2s;
  display: block;
}
.carrier-card:hover {
  border-color: #FF6B1A;
  box-shadow: 0 8px 24px rgba(255,107,26,.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.country-flag { font-size: 12px; color: #94A3B8; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.carrier-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.carrier-meta { font-size: 13px; color: #FF6B1A; font-weight: 600; }

/* Country grid */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.country-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: #0F172A;
}
.country-card:hover {
  border-color: #FF6B1A;
  text-decoration: none;
}
.country-card .name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.country-card .count { font-size: 13px; color: #94A3B8; }

/* A-Z nav */
.az-nav {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 16px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  margin: 16px 0;
  justify-content: center;
}
.az-nav a {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.az-nav a:hover, .az-nav a.active {
  background: #FF6B1A; color: white; border-color: #FF6B1A;
  text-decoration: none;
}

/* CTA button */
.cta-btn {
  display: inline-block;
  background: #FF6B1A;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}
.cta-btn:hover { background: #E55A0E; color: white; text-decoration: none; }

/* Content page */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  background: white;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 16px;
}
.content-page h1 {
  font-size: 36px; font-weight: 800;
  margin: 16px 0 16px; line-height: 1.2;
}
.content-page h2 {
  font-size: 24px; font-weight: 700;
  margin: 32px 0 12px; padding-bottom: 8px;
  border-bottom: 3px solid #FF6B1A;
  display: inline-block;
}
.content-page h3 {
  font-size: 18px; font-weight: 700;
  margin: 24px 0 8px;
}
.content-page p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}
.content-page ul, .content-page ol { padding-left: 24px; color: #334155; line-height: 1.7; }
.content-page li { margin: 8px 0; }
.breadcrumb {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 8px;
}
.breadcrumb a { color: #475569; }

/* === TRACKER (carrier page) === */
.tracker-form {
  display: flex;
  gap: 8px;
  background: #F8FAFC;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}
.tracker-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-family: inherit;
  background: white;
  color: #0F172A;
}
.tracker-input:focus { outline: none; border-color: #FF6B1A; box-shadow: 0 0 0 3px rgba(255,107,26,.15); }
.tracker-btn {
  padding: 14px 28px;
  background: #FF6B1A;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}
.tracker-btn:hover { background: #E55A0E; }

@media (max-width: 600px) {
  .tracker-form { flex-direction: column; }
  .tracker-btn { width: 100%; }
}

/* Tracker result states */
.track-loading {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  margin-top: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
  border: 1px solid #E2E8F0;
}
.track-loading-spinner {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border: 4px solid #E2E8F0;
  border-top-color: #FF6B1A;
  border-radius: 50%;
  animation: trkspin .8s linear infinite;
}
@keyframes trkspin { to { transform: rotate(360deg); } }
.track-loading-text { font-weight: 600; margin-bottom: 16px; }
.track-loading-progress {
  width: 240px; max-width: 100%;
  margin: 0 auto;
  height: 4px; background: #E2E8F0; border-radius: 2px; overflow: hidden;
}
.track-loading-bar {
  width: 0; height: 100%; background: #FF6B1A;
  animation: trkbar 1.2s ease-out forwards;
}
@keyframes trkbar { to { width: 100%; } }

.track-result-card {
  background: white;
  border-radius: 16px;
  margin-top: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
  border: 1px solid #E2E8F0;
}
.track-result-header {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.track-tick {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  color: white;
}
.track-result-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.track-result-sub { font-size: 13px; opacity: .9; margin-top: 4px; }
.track-result-body { padding: 20px 24px; }
.track-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
}
.track-row:last-child { border-bottom: none; }
.track-row .lbl {
  font-size: 13px; font-weight: 600; color: #475569;
  text-transform: uppercase; letter-spacing: .03em;
}
.track-row .val {
  font-size: 15px; font-weight: 700; color: #0F172A;
  text-align: right; word-break: break-all;
}
.track-result-cta {
  background: #FFF8F4;
  padding: 20px 24px;
  border-top: 1px solid #E2E8F0;
}
.track-cta-text { font-size: 14px; color: #475569; margin: 0 0 14px; }
.track-cta-btn {
  display: inline-block;
  padding: 14px 24px;
  background: #FF6B1A;
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255,107,26,.25);
}
.track-cta-btn:hover { background: #E55A0E; color: white; text-decoration: none; }
.track-disclaimer {
  padding: 12px 24px 20px;
  margin: 0;
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
  font-style: italic;
}

@media (max-width: 600px) {
  .track-result-header { padding: 16px; gap: 12px; }
  .track-result-title { font-size: 16px; }
  .track-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .track-row .val { text-align: left; }
}

/* Carrier list (a-z pages) */
.carrier-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.carrier-list-item {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: #0F172A;
}
.carrier-list-item:hover {
  border-color: #FF6B1A;
  text-decoration: none;
}
.carrier-list-item .name { font-weight: 700; font-size: 15px; }
.carrier-list-item .meta { font-size: 13px; color: #94A3B8; margin-top: 2px; }

/* Live filter */
.live-search {
  position: relative;
  margin: 20px 0;
}
.live-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  font-size: 16px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  background: white;
  font-family: inherit;
}
.live-search input:focus { outline: none; border-color: #FF6B1A; }
.live-search::before {
  content: '🔍';
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.search-stats { font-size: 14px; color: #94A3B8; margin: 8px 0; }
.empty-results {
  display: none;
  padding: 32px;
  text-align: center;
  color: #475569;
  background: #F8FAFC;
  border-radius: 14px;
  margin: 16px 0;
}
.empty-results.show { display: block; }

/* FAQ items */
.faq-item {
  background: #F8FAFC;
  border-left: 4px solid #FF6B1A;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
}
.faq-item h3 { margin: 0 0 8px; font-size: 16px; }
.faq-item p { margin: 0; }

/* Footer */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 48px 24px 24px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 { color: white; margin: 0 0 12px; font-size: 15px; }
.footer-col p { font-size: 14px; line-height: 1.6; margin: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 6px 0; font-size: 14px; }
.footer-col a { color: #94A3B8; }
.footer-col a:hover { color: #FF6B1A; text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  font-size: 13px;
  text-align: center;
}

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