/* ============================================
   Public country guides (« Travailler aux Émirats »…): the hero, the key
   facts, the article with its contents, the side column and the call
   to the free trial
   ============================================ */
.cp-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 36px) 0 96px;
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(201, 168, 76, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
  color: var(--white);
}
.cp-hero-glyph {
  position: absolute;
  right: -1%;
  bottom: -14%;
  font-family: var(--font-arabic);
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}
.cp-hero-inner { position: relative; }
.cp-hero-inner > h1, .cp-hero-inner > .cp-lead { max-width: 900px; }
.cp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.cp-crumbs a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.cp-crumbs a:hover { color: var(--gold-light); }
.cp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid rgba(201, 168, 76, 0.5); border-radius: var(--radius-full); color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.04em; }
.cp-hero h1 { margin: 16px 0 14px; font-family: var(--font-heading); font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.12; color: var(--white); }
.cp-lead { margin: 0; max-width: 720px; color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; line-height: 1.7; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cp-btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); color: var(--white); }
.cp-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.cp-facts-wrap { background: var(--off-white); }
.cp-facts {
  list-style: none;
  margin: -44px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--gray-200);
  box-shadow: 0 18px 50px rgba(11, 26, 51, 0.12);
}
.cp-facts li { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 18px 22px; background: var(--white); }
.cp-facts i { grid-row: 1 / span 2; align-self: center; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--gold-dark); }
.cp-facts span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.cp-facts strong { font-size: 0.98rem; color: var(--navy); }

.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 64px; }
.cp-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.cp-toc span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-right: 4px; }
.cp-toc a { padding: 5px 12px; border-radius: var(--radius-full); background: var(--white); border: 1px solid var(--gray-200); font-size: 0.84rem; color: var(--navy); text-decoration: none; }
.cp-toc a:hover { border-color: var(--gold); }

.cp-section { padding-top: 40px; scroll-margin-top: calc(var(--nav-height) + 16px); }
.cp-section h2 { margin: 0 0 16px; font-family: var(--font-heading); font-size: 1.75rem; color: var(--navy); }
.cp-section > p { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.cp-subtitle { margin: 28px 0 12px; font-size: 1.1rem; color: var(--navy); }

.cp-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-sector { padding: 20px 22px; border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgba(11, 26, 51, 0.06); }
.cp-sector i { font-size: 1.3rem; color: var(--gold-dark); }
.cp-sector h3 { margin: 10px 0 6px; font-size: 1.08rem; color: var(--navy); }
.cp-sector p { margin: 0; font-size: 0.94rem; line-height: 1.6; color: var(--text-muted); }

.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chips span { padding: 6px 14px; border-radius: var(--radius-full); background: var(--navy); color: var(--white); font-size: 0.88rem; font-weight: 500; }

.cp-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--cream); font-size: 0.9rem; line-height: 1.55; color: var(--text); }
.cp-note i { color: var(--gold-dark); margin-right: 6px; }
.cp-warning { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #fbefdc; color: #8a4b08; font-size: 0.92rem; }
.cp-warning i { margin-right: 6px; }

.cp-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.cp-list li { line-height: 1.65; }
.cp-list--icons { list-style: none; padding: 0; gap: 14px; }
.cp-list--icons li { display: flex; gap: 14px; align-items: flex-start; }
.cp-list--icons i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-light); }
.cp-list--icons strong { display: block; color: var(--navy); }
.cp-list--icons span { color: var(--text-muted); line-height: 1.6; }

.cp-table { width: 100%; border-collapse: collapse; margin-top: 8px; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 8px 24px rgba(11, 26, 51, 0.06); }
.cp-table caption { caption-side: top; text-align: right; padding: 0 4px 6px; font-size: 0.8rem; color: var(--text-muted); }
.cp-table th, .cp-table td { padding: 12px 18px; border-top: 1px solid var(--gray-200); font-size: 0.95rem; }
.cp-table tr:first-child th, .cp-table tr:first-child td { border-top: 0; }
.cp-table th { text-align: left; font-weight: 500; color: var(--text); }
.cp-table td { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; }

.cp-phrases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.cp-phrase { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--gray-200); }
.cp-phrase-ar { font-family: var(--font-arabic); font-size: 1.6rem; line-height: 1.6; text-align: right; color: var(--navy); }
.cp-phrase-tr { font-size: 0.86rem; font-style: italic; color: var(--gold-dark); }
.cp-phrase-fr { font-size: 0.92rem; color: var(--text-muted); }

.cp-faq { display: grid; gap: 12px; }
.cp-faq details { border: 1px solid rgba(18, 40, 74, 0.1); border-radius: 12px; background: var(--white); padding: 0 1.3rem; }
.cp-faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 1rem; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.cp-faq details[open] summary::after { content: '−'; }
.cp-faq p { margin: 0 0 1.1rem; color: var(--text-muted); line-height: 1.65; }
.cp-sources { margin: 32px 0 0; font-size: 0.82rem; color: var(--text-muted); }

.cp-aside { position: sticky; top: calc(var(--nav-height) + 24px); display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
.cp-card { padding: 22px; border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(11, 26, 51, 0.08); }
.cp-card h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--navy); }
.cp-card h2 i { color: var(--gold); margin-right: 6px; }
.cp-card p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); }
.cp-card--trial { background: linear-gradient(165deg, #fbf3dd, var(--white) 60%); border: 2px solid var(--gold); }
.cp-card-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--gold); color: var(--navy-dark); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cp-card--trial h2 { font-family: var(--font-heading); font-size: 1.35rem; }
.cp-card-link { font-size: 0.92rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.cp-card-link:hover { color: var(--gold-dark); }
.cp-card-link--block { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--gray-200); }
.cp-card-link--block:first-of-type { border-top: 0; }
.cp-card-link i { color: var(--gold-dark); }

.cp-final { padding: 72px 0; text-align: center; background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: var(--white); }
.cp-final h2 { margin: 0 0 10px; font-family: var(--font-heading); font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--white); }
.cp-final p { margin: 0 auto; max-width: 620px; color: rgba(255, 255, 255, 0.8); }
.cp-final .cp-actions { justify-content: center; }

@media (max-width: 980px) {
  .cp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cp-aside { position: static; padding-top: 0; }
  .cp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cp-hero { padding: calc(var(--nav-height) + 24px) 0 80px; }
  .cp-facts, .cp-sectors, .cp-phrases { grid-template-columns: minmax(0, 1fr); }
  .cp-actions .btn { width: 100%; justify-content: center; }
  .cp-table th, .cp-table td { padding: 10px 12px; }
  .cp-table td { white-space: normal; }
}
.cp-test { margin: 36px 0 0; }
