/* ================================================================
   Tawssil Dawli (توصيل دولي) by GO PLUS EXPRESS — C2C
   Charte: jaune #F5B922 / teal #1A8A99 / blanc / gris foncé #2C2C2C
   ================================================================ */

:root {
  --gold: #F5B922;
  --gold-dark: #d99e0a;
  --teal: #1A8A99;
  --teal-dark: #126570;
  --teal-light: #e6f4f6;
  --ink: #2C2C2C;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max); margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 8px 4px; border-bottom: 2px solid transparent; transition: all .2s;
}
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--teal { background: var(--teal); color: white; }
.btn--teal:hover { background: var(--teal-dark); color: white; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--ghost:hover { background: var(--teal); color: white; }
.btn--lg { padding: 14px 28px; font-size: 16px; }

.btn-pro {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(26,138,153,.3);
}
.btn-pro:hover { color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,138,153,.4); }
.btn-pro::after { content: '→'; font-weight: bold; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-light) 0%, #fff 100%);
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.hero__banner iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.hero__banner-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white; gap: 12px; text-align: center; padding: 20px;
}
.hero__banner-placeholder h2 { font-size: clamp(24px, 4vw, 42px); font-weight: 700; }
.hero__banner-placeholder p { font-size: clamp(14px, 1.6vw, 18px); opacity: .9; max-width: 600px; }

.hero__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.hero__title strong { color: var(--teal); }
.hero__title em { color: var(--gold); font-style: normal; }
.hero__subtitle {
  text-align: center;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 720px; margin: 0 auto 36px;
}

/* ============ SIMULATEUR ============ */
.simulator {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 980px;
  margin: 0 auto;
  border-top: 4px solid var(--gold);
}
.simulator h2 {
  font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.simulator h2::before { content: '📦'; }
.simulator__sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 720px) { .sim-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.field input, .field select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px; color: var(--ink);
  background: white; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,138,153,.12);
}
.field--inline { flex-direction: row; gap: 10px; align-items: end; }
.field--inline > .field { flex: 1; }

.shipment-type {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}
.type-chip {
  padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14px;
  transition: all .15s; background: white;
}
.type-chip:hover { border-color: var(--teal); }
.type-chip.is-active {
  background: var(--teal); color: white; border-color: var(--teal);
}

.packages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.package-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 10px; align-items: end;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px dashed var(--border);
}
.package-row .field input { padding: 10px 12px; font-size: 14px; }
.icon-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 8px; cursor: pointer;
  background: #fee2e2; color: #b91c1c; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #fecaca; }
.add-package {
  background: transparent; border: 1.5px dashed var(--teal); color: var(--teal);
  padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 600;
  margin-bottom: 18px; width: 100%;
}
.add-package:hover { background: var(--teal-light); }

.simulator__submit { display: flex; justify-content: center; }
.simulator__submit .btn { min-width: 240px; justify-content: center; }

/* ============ COMPARATEUR ============ */
.comparator { padding: 60px 0; background: var(--bg-soft); }
.comparator h2 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.comparator__sub { text-align: center; color: var(--muted); margin-bottom: 32px; }

.carrier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.carrier-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.carrier-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.carrier-card__logo {
  height: 44px;
  display: flex; align-items: center;
}
.carrier-card__logo img { max-height: 44px; width: auto; }
.carrier-card__service { font-size: 13px; color: var(--muted); font-weight: 500; }
.carrier-card__price {
  font-size: 28px; font-weight: 800; color: var(--ink);
}
.carrier-card__price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.carrier-card__transit {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.carrier-card__cta {
  margin-top: auto;
  padding: 11px;
  background: var(--gold); color: var(--ink);
  border: none; border-radius: 10px;
  font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.carrier-card__cta:hover { background: var(--gold-dark); }
.carrier-card__badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  background: var(--teal-light); color: var(--teal);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.carrier-card.is-cheapest { border-color: var(--gold); }
.carrier-card.is-fastest { border-color: var(--teal); }

/* ============ SECTIONS GÉNÉRIQUES ============ */
.section { padding: 60px 0; }
.section h2 { text-align: center; font-size: 28px; margin-bottom: 36px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step {
  text-align: center; padding: 24px;
}
.step__num {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink); color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: white; margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.site-footer__bottom {
  border-top: 1px solid #374151;
  padding-top: 18px;
  font-size: 13px; color: #94a3b8;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ============ RESPONSIVE NAV ============ */
@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ============ RTL (Arabic) ============ */
html[dir="rtl"] .btn-pro::after { content: '←'; }
