/* GigPilot USA — "Panneaux d'autoroute": US guide-sign green, navy, warning yellow. */
:root {
  --navy: #0B2545;
  --navy-2: #1E4D7B;
  --sign: #00653A;
  --sign-dark: #004D2C;
  --yellow: #F2B705;
  --ground: #E9ECE8;
  --paper: #FFFFFF;
  --ink: #0B2545;
  --muted: #4A5563;
  --post: #8A949E;
  --pale: #C9D6E8;
  --mint: #6EE7A8;
  --display: 'Overpass', 'Highway Gothic', system-ui, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--display); background: var(--ground); color: var(--ink); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--sign); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; font-weight: 900; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; background: var(--yellow); padding: 8px 12px; z-index: 9; }

/* Header */
.hdr { background: var(--navy); color: #fff; position: relative; z-index: 5; }
.hdr .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.hdr .logo img { height: 32px; display: block; }
.nav { display: flex; gap: 24px; flex-grow: 1; }
.nav a { color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint); }
.btn-app { background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 900; text-decoration: none; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
.btn-app:hover { color: var(--navy); background: #FFD03D; }
.langs { position: relative; }
.langs summary { list-style: none; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .06em; cursor: pointer; padding: 8px 10px; border: 2px solid var(--navy-2); border-radius: 8px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { border-color: var(--mint); color: var(--mint); }
.langs > div { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; background: #fff; border: 2px solid var(--navy); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; min-width: 150px; box-shadow: 0 8px 24px rgba(11,37,69,.25); z-index: 6; }
.langs > div a { padding: 10px 12px; border-radius: 6px; text-decoration: none; font-weight: 700; color: var(--ink); }
.langs > div a:hover { background: var(--ground); }
.langs > div a[aria-current] { background: var(--sign); color: #fff; }
.nav-app { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 8px; background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Signs */
.sign { background: var(--sign); color: #fff; border-radius: 14px; padding: 6px; }
.sign > .in { border: 3px solid #fff; border-radius: 10px; position: relative; }
.exit-tab { position: absolute; top: -3px; inset-inline-end: 32px; background: var(--sign); border: 3px solid #fff; border-top: 0; border-radius: 0 0 8px 8px; padding: 4px 14px; font-weight: 900; letter-spacing: .06em; font-size: 15px; }
.posts { display: flex; justify-content: space-between; width: 74%; max-width: 700px; height: 34px; margin: 0 auto; }
.posts span { width: 10px; background: var(--post); }
.hero { background: linear-gradient(var(--navy) 0 62%, var(--ground) 62%); }
.hero .wrap { padding-block: 40px 0; }
.hero .sign { max-width: 940px; margin: 0 auto; }
.hero .in { padding: 30px 36px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1; display: flex; align-items: center; gap: 20px; }
.hero h1 svg { width: 1em; height: 1em; fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hero p { margin: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 600; max-width: 720px; }
.dests { display: flex; gap: 10px 28px; flex-wrap: wrap; border-top: 3px solid #fff; padding-top: 14px; font-weight: 800; letter-spacing: .05em; font-size: 17px; }
.dests a { color: #fff; text-decoration: none; }
.dests a:hover { color: var(--mint); }
.search { max-width: 940px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; background: #fff; border: 3px solid var(--navy); border-radius: 12px; padding: 8px; }
.search label { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.search input, .search select { border: 0; outline: 0; font: inherit; font-size: 18px; flex-grow: 1; min-width: 0; padding: 12px 0; color: var(--ink); background: transparent; }
.search .sel { flex: 0 1 auto; border-inline-start: 2px solid var(--ground); }
.btn-go { border: 0; background: var(--sign); color: #fff; font: inherit; font-weight: 900; letter-spacing: .06em; font-size: 16px; padding: 0 26px; border-radius: 8px; min-height: 50px; cursor: pointer; }
.btn-go:hover { background: var(--sign-dark); }

/* Sections */
main.wrap { padding-block: 48px 64px; display: flex; flex-direction: column; gap: 56px; }
.sec { display: flex; flex-direction: column; gap: 18px; }
.sec-h { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sec-h h2 { font-size: 30px; }
.sec-h .more { margin-inline-start: auto; font-weight: 900; }
.tag { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* Route shields */
.exit { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--paper); border-radius: 10px; border: 2px solid var(--navy); color: var(--ink); text-decoration: none; }
.exit:hover { border-color: var(--sign); color: var(--ink); }
.exit b { font-size: 19px; display: block; }
.exit small { color: var(--muted); font-size: 14px; display: block; }
.shield { position: relative; width: 60px; height: 64px; flex-shrink: 0; }
.shield svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shield span { position: absolute; inset: 17px 0 0; text-align: center; font-size: 21px; font-weight: 900; color: #fff; }

/* Company sign cards */
.co { display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; overflow: hidden; border: 2px solid var(--navy); }
.co .sign { border-radius: 0; padding: 5px; }
.co .sign .in { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.co .sign a { color: #fff; text-decoration: none; font-size: 23px; font-weight: 900; line-height: 1.1; }
.co .sign a::after { content: ""; position: absolute; inset: 0; }
.co .sign .kind { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: end; }
.co dl { margin: 0; padding: 14px 16px; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px 10px; font-size: 15px; }
.co dt { color: var(--muted); }
.co dd { margin: 0; font-weight: 700; }
.co .foot { padding: 0 16px 14px; display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }
.co { position: relative; }
.co .foot .go { font-weight: 900; position: relative; z-index: 1; }
.nv { display: inline-flex; align-items: center; gap: 7px; color: #5C4A00; font-weight: 700; white-space: nowrap; }
.nv i { width: 11px; height: 11px; background: var(--yellow); border: 1.5px solid var(--navy); transform: rotate(45deg); display: inline-block; flex-shrink: 0; }

/* Mile markers */
.mile { display: inline-flex; flex-direction: column; align-items: center; background: var(--sign); color: #fff; border: 2px solid #fff; outline: 2px solid var(--sign); border-radius: 4px; padding: 6px 10px; font-family: var(--mono); font-size: 11px; line-height: 1.1; }
.mile b { font-size: 24px; font-family: var(--display); font-weight: 900; }
.panel { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 26px; background: var(--paper); border-radius: 12px; border: 2px solid var(--navy); }
.dark { background: var(--navy); color: #fff; border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.dark a { color: #fff; font-weight: 700; }
.dark a:hover { color: var(--mint); }
.split { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.split > * { flex: 1 1 380px; min-width: 0; }

/* Page heads */
.phead { background: var(--navy); color: #fff; }
.phead .wrap { padding-block: 28px 36px; display: flex; flex-direction: column; gap: 14px; }
.crumbs { font-size: 14px; color: var(--pale); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--pale); }
.phead h1 { font-size: clamp(32px, 5vw, 48px); }
.phead p { margin: 0; font-size: 19px; color: var(--pale); max-width: 760px; }
.phead .sign { align-self: flex-start; }
.phead .shield svg path:first-child { fill: #1E4D7B; stroke: #fff; stroke-width: 2.5; }

/* Company page */
.cp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.facts { background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; }
.facts h2 { font-size: 20px; padding: 16px 18px; border-bottom: 2px solid var(--ground); }
.facts dl { margin: 0; }
.facts .row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ground); }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }
.applybox { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.applybox .in { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.btn-apply { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--sign); font-weight: 900; text-decoration: none; padding: 14px; border-radius: 8px; font-size: 17px; letter-spacing: .02em; }
.btn-apply:hover { background: #E7F6EC; color: var(--sign-dark); }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.box { background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.note { background: #FFF7D6; border: 2px solid var(--yellow); border-radius: 12px; padding: 16px 18px; display: flex; gap: 12px; }
.faq details { background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; padding: 14px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 10px 0 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border: 2px solid var(--navy); border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
a.chip:hover { border-color: var(--sign); color: var(--sign); }
.src { word-break: break-all; }

/* Directory */
.filters { display: flex; gap: 10px; flex-wrap: wrap; background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; padding: 12px; align-items: center; }
.filters label { display: flex; flex-direction: column; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); gap: 2px; flex: 1 1 160px; min-width: 0; }
.filters input, .filters select { font: inherit; font-size: 16px; padding: 10px; border: 2px solid var(--ground); border-radius: 8px; color: var(--ink); background: #fff; text-transform: none; letter-spacing: 0; font-weight: 600; }
.filters .check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; font-size: 15px; letter-spacing: 0; color: var(--ink); flex: 0 1 auto; }
.count { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.empty { text-align: center; padding: 30px; }

/* Compare */
.tbl-wrap { overflow-x: auto; background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.tbl th, .tbl td { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--ground); vertical-align: top; }
.tbl thead th { background: var(--sign); color: #fff; font-size: 20px; font-weight: 900; }
.tbl tbody th { color: var(--muted); font-weight: 600; width: 200px; }

/* Documents */
.doc { background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; padding: 32px clamp(18px, 4vw, 48px); max-width: 820px; }
.doc h2 { font-size: 23px; margin: 26px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc a { word-break: break-word; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.form input, .form textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 12px; border: 2px solid var(--navy); border-radius: 8px; color: var(--ink); background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn-go { align-self: flex-start; padding: 12px 26px; }
.status { font-weight: 700; margin: 0; }
.status:empty { display: none; }

/* App band */
.appband .in { padding: 24px 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.appband p { margin: 0; font-size: 21px; font-weight: 800; flex: 1 1 340px; }
.btn-white { background: #fff; color: var(--sign); padding: 14px 22px; border-radius: 8px; font-weight: 900; text-decoration: none; letter-spacing: .03em; }
.btn-white:hover { color: var(--sign-dark); background: #E7F6EC; }
.soon { background: rgba(255,255,255,.14); color: #fff; padding: 14px 18px; border-radius: 8px; font-weight: 800; border: 2px dashed #fff; }

/* Footer */
.ftr { background: var(--navy); color: var(--pale); font-size: 14px; }
.ftr .wrap { padding-block: 34px; display: flex; flex-direction: column; gap: 16px; }
.ftr nav { display: flex; gap: 10px 22px; flex-wrap: wrap; font-weight: 700; }
.ftr nav a { color: #fff; }
.ftr p { margin: 0; max-width: 760px; }
.ftr .credits { display: flex; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--navy-2); padding-top: 14px; }
.ftr .credits a { color: var(--mint); font-weight: 700; }

@media (max-width: 900px) {
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp { grid-template-columns: minmax(0, 1fr); }
  .applybox { position: static; order: -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .menu-btn { display: inline-flex; }
  .btn-app { display: none; }
  .langs { margin-inline-start: auto; }
  .nav .nav-app { display: block; color: var(--yellow); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; gap: 0; padding: 8px 16px 16px; border-top: 1px solid var(--navy-2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--navy-2); }
  .hero { background: linear-gradient(var(--navy) 0 70%, var(--ground) 70%); }
  .hero .wrap { padding-top: 20px; }
  .hero .in { padding: 32px 18px 20px; gap: 12px; }
  .exit-tab { inset-inline-end: 16px; font-size: 13px; padding: 3px 10px; }
  .dests { font-size: 13px; gap: 6px 14px; }
  .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); }
  main.wrap { padding-block: 30px 44px; gap: 36px; }
  .sec-h h2 { font-size: 24px; }
  .facts .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .search .sel { border-inline-start: 0; border-top: 2px solid var(--ground); flex-basis: 100%; }
  .btn-go { flex-basis: 100%; }
  .form .btn-go { align-self: stretch; }
  .tbl { min-width: 0; font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .tbl tbody th { width: 84px; }
  .tbl thead th { font-size: 16px; }
}
/* Arabic: Cairo for Arabic script, no letter-spacing, arrows point left */
[dir="rtl"] { --display: 'Cairo', 'Overpass', system-ui, sans-serif; }
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] .flip, [dir="rtl"] .hero h1 svg { transform: scaleX(-1); }
[dir="rtl"] .tag, [dir="rtl"] .count { font-family: var(--display); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Blog */
.blog-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.blog-card { background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 6px 0 var(--navy); transform: translateY(-2px); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 2px solid var(--navy); }
.blog-card .in { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.blog-card h2 { font-size: 20px; line-height: 1.25; margin: 0; }
.blog-card p { margin: 0; }
.blog-card .tag { align-self: flex-start; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--sign); }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body .cover { width: 100%; margin-bottom: 18px; }
.post-body blockquote { border-inline-start: 4px solid var(--navy); margin: 16px 0; padding-inline-start: 14px; font-style: italic; }
.post-body h3 { font-size: 19px; margin: 20px 0 6px; }
