/* ============================================================================
   GP LOGISTICS USA CORP — style.css
   Brand palette: Navy #16295E + Orange #F58220 (from official logo)
   Fully responsive: 4K desktops → laptops → tablets → phones (RTL-first)
   ============================================================================ */

:root {
  --navy:        #16295E;
  --navy-dark:   #0E1B40;
  --navy-soft:   #22377A;
  --orange:      #F58220;
  --orange-dark: #D96E0F;
  --sand:        #FAF6F0;
  --paper:       #FFFFFF;
  --ink:         #1E2430;
  --ink-soft:    #5A6272;
  --line:        #E8E4DC;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(22, 41, 94, 0.10);
  --shadow-lg:   0 24px 60px rgba(22, 41, 94, 0.16);
  --container:   1280px;
  --font:        'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  font-size: clamp(15px, 0.55vw + 12px, 18px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select { font-family: inherit; font-size: inherit; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #D9DEEC; font-size: 0.82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #F4C79A; margin-inline-start: 16px; }
.topbar a:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  background: var(--navy); color: #fff; font-weight: 900;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.15rem; letter-spacing: 0.5px;
  border-bottom: 3px solid var(--orange);
}
.brand-text { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.brand-text em { font-style: normal; color: var(--orange); letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; color: var(--navy); }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 3px;
  background: var(--orange); border-radius: 3px; transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--orange); color: #fff; padding: 10px 20px !important;
  border-radius: 10px; transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: var(--navy); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 10px; font-size: 1.3rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(245, 130, 32, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: clamp(48px, 7vw, 110px) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-kicker { color: var(--orange); font-weight: 800; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 3.3rem); font-weight: 900; line-height: 1.35; margin-bottom: 18px; }
.hero h1 span { color: var(--orange); }
.hero-sub { color: #C9D1E6; max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; color: #E7EBF6; font-weight: 600; font-size: 0.92rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 12px;
  font-weight: 800; cursor: pointer; border: 0; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(245, 130, 32, 0.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { border: 2px solid #fff; color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* Tracking widget */
.hero-tracking {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-tracking h3 { margin-bottom: 16px; font-size: 1.15rem; }
.tracking-form { display: flex; gap: 10px; }
.tracking-form input {
  flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.95); color: var(--ink); min-width: 0;
}
.tracking-form input:focus { outline: 3px solid rgba(245, 130, 32, 0.45); }

.tracking-result { margin-top: 22px; }
.track-step { display: flex; align-items: center; gap: 12px; color: #C9D1E6; font-size: 0.92rem; }
.track-step span {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.35); background: transparent;
}
.track-step.done { color: #fff; }
.track-step.done span { background: var(--orange); border-color: var(--orange); }
.track-step.active { color: var(--orange); font-weight: 700; }
.track-step.active span { border-color: var(--orange); animation: pulse 1.4s infinite; }
.track-line { width: 3px; height: 22px; background: rgba(255,255,255,0.2); margin-inline-start: 7.5px; }
.track-line.done { background: var(--orange); }
.track-line.active { background: repeating-linear-gradient(to bottom, var(--orange) 0 5px, transparent 5px 10px); }
.track-note { margin-top: 14px; font-size: 0.78rem; color: #9FA9C4; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,130,32,0.5);} 50% { box-shadow: 0 0 0 7px rgba(245,130,32,0);} }

/* ---------- Stats ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 30px 10px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.6rem, 2.4vw, 2.4rem); color: var(--navy); font-weight: 900; }
.stat span { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 56px); }
.section-kicker { color: var(--orange); font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: var(--navy); font-weight: 900; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); }

/* Services cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.section-alt .card { background: var(--sand); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(245,130,32,0.5); }
.card-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; background: rgba(22,41,94,0.06); margin-bottom: 16px;
}
.card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.93rem; }

/* Split (cars) */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.split-copy h2 { color: var(--navy); font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: 18px; }
.check-list li { padding: 8px 0 8px 0; color: var(--ink-soft); position: relative; padding-inline-start: 30px; }
.check-list li::before { content: '✅'; position: absolute; inset-inline-start: 0; }
.split-copy .btn { margin-top: 20px; }
.split-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.visual-card {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 10px; text-align: center; font-size: 2.4rem; box-shadow: var(--shadow);
}
.visual-card span { display: block; font-size: 0.95rem; font-weight: 800; color: var(--navy); margin-top: 8px; }
.visual-card:nth-child(2), .visual-card:nth-child(3) { transform: translateY(14px); }

/* ---------- Calculator ---------- */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 980px; margin: 0 auto;
}
.calc-form, .calc-result {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.field select, .field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.field select:focus, .field input:focus { outline: 3px solid rgba(245,130,32,0.35); border-color: var(--orange); }

.calc-result { display: flex; flex-direction: column; justify-content: center; }
.calc-placeholder { text-align: center; color: var(--ink-soft); }
.calc-price { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 900; color: var(--orange); text-align: center; direction: ltr; }
.calc-price small { font-size: 0.4em; color: var(--ink-soft); }
.calc-meta { margin: 16px 0; color: var(--ink-soft); font-size: 0.95rem; }
.calc-meta li { padding: 4px 0; }
.calc-disclaimer { font-size: 0.8rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 16px; }

/* ---------- Articles ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-card img { height: 180px; width: 100%; object-fit: cover; }
.article-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-soft); flex-wrap: wrap; }
.badge { background: rgba(22,41,94,0.08); color: var(--navy); padding: 3px 10px; border-radius: 20px; font-weight: 700; }
.badge-lang { background: rgba(245,130,32,0.14); color: var(--orange-dark); }
.article-card h3 { color: var(--navy); font-size: 1.05rem; line-height: 1.55; }
.article-card p { color: var(--ink-soft); font-size: 0.9rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { color: var(--orange); font-weight: 800; font-size: 0.92rem; }
.read-more:hover { color: var(--orange-dark); }

.notice {
  background: rgba(245,130,32,0.1); border: 1px solid rgba(245,130,32,0.4);
  color: var(--orange-dark); padding: 20px 24px; border-radius: var(--radius);
  text-align: center; font-weight: 700; max-width: 760px; margin: 0 auto;
}

/* Single article */
.single-article { padding: clamp(40px, 5vw, 72px) 0; max-width: 860px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--orange); font-weight: 800; }
.article-full { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.article-full header { margin-bottom: 20px; }
.article-full h1 { color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 12px 0 8px; line-height: 1.5; }
.article-full time { color: var(--ink-soft); font-size: 0.85rem; }
.article-hero-img { border-radius: var(--radius); margin-bottom: 22px; max-height: 460px; width: 100%; object-fit: cover; }
.article-body { color: #2A3140; }
.article-body h2, .article-body h3 { color: var(--navy); margin: 22px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 22px 14px; }
.article-body ul li, .article-body ol li { margin-bottom: 6px; list-style: disc; }
.article-body a { color: var(--orange-dark); text-decoration: underline; }
.article-body blockquote { border-inline-start: 4px solid var(--orange); padding: 10px 18px; background: var(--sand); border-radius: 8px; margin: 16px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; }
.article-body th { background: var(--sand); color: var(--navy); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: clamp(44px, 6vw, 80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: 8px; }
.cta p { color: #C9D1E6; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #B9C2D9; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px; padding: clamp(40px, 5vw, 64px) 0;
}
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-text { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer address { font-style: normal; font-size: 0.9rem; line-height: 1.9; }
.site-footer ul li { padding: 4px 0; font-size: 0.92rem; }
.footer-domains a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 0.85rem; }

/* ============================================================================
   RESPONSIVE — 4K → Laptop → Tablet → Phone
   ============================================================================ */

/* 4K / ultra-wide: scale up gracefully */
@media (min-width: 2000px) {
  :root { --container: 1760px; }
  body { font-size: 20px; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Laptop */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-tracking { max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 520px; }
}

/* Tablet */
@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: 100%; inset-inline: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 4%; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin: 8px 0; }
  .calc-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 560px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner > span:first-child { display: none; }
  .hero { text-align: center; }
  .hero-actions, .hero-trust { justify-content: center; }
  .tracking-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .cta-inner { flex-direction: column; text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .visual-card:nth-child(2), .visual-card:nth-child(3) { transform: none; }
}
