/* ============================================
   CORRIDEX SARL — Website Stylesheet
   Brand: Navy / Copper / Light Blue accent
   ============================================ */

:root {
  --navy: #0a2472;
  --navy-deep: #08123a;
  --lightblue: #3a6fd4;
  --copper: #c87030;
  --copper-light: #da8a3a;
  --dark: #0d1220;
  --grey: #6b7280;
  --grey-light: #9aa3b2;
  --line: #e5e7eb;
  --bg-light: #f7f8fb;
  --white: #ffffff;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #2a2f3a;
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: 0.5px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: 0.5px; }
h3 { font-size: 1.35rem; letter-spacing: 0.3px; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--copper);
  display: inline-block;
}

.lede {
  font-size: 1.08rem;
  color: var(--grey);
  max-width: 640px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-copper {
  background: var(--copper);
  color: var(--white);
}
.btn-copper:hover { background: #b3622a; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Header / Nav ===== */
.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);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-mono {
  width: 38px; height: 38px;
  border: 2px solid var(--lightblue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  flex-shrink: 0;
}
.logo-mono span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--lightblue);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.5px;
}
.logo-text .corride { color: var(--copper); }
.logo-text .x { color: var(--lightblue); }
.logo-sarl {
  font-size: 0.7rem;
  color: var(--grey-light);
  letter-spacing: 2px;
  margin-left: 6px;
  font-family: var(--font-display);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3a3f4a;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-light);
  border-radius: 7px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  color: var(--grey);
  font-family: var(--font-body);
}
.lang-switch button.active {
  background: var(--navy);
  color: white;
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
}

/* ===== Hero (shared pattern) ===== */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -160px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(200,112,48,0.15);
}
.hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(200,112,48,0.1);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em {
  font-style: normal;
  color: var(--copper);
}
.hero .lede { color: rgba(255,255,255,0.55); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--copper);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* small page header (non-home pages) */
.page-hero {
  background: var(--dark);
  padding: 64px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(200,112,48,0.13);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: white; margin-bottom: 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lede { color: rgba(255,255,255,0.5); }

/* ===== Sections ===== */
section { padding: 76px 0; }
.section-alt { background: var(--bg-light); }
.section-head { margin-bottom: 44px; max-width: 700px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Cards / Grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 14px 40px rgba(10,36,114,0.08); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 0.95rem; }

/* route / corridor card */
.route-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  background: white;
}
.route-flag { font-size: 1.6rem; margin-bottom: 8px; }
.route-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.route-arrow { color: var(--copper); font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
.route-desc { color: var(--grey); font-size: 0.88rem; line-height: 1.6; }
.route-card.angola { border-color: var(--copper); background: #fdf6ee; }

/* stat strip */
.stat-strip {
  display: flex;
  justify-content: space-around;
  background: var(--dark);
  border-radius: 16px;
  padding: 36px 20px;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-strip .stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--copper); }
.stat-num.blue { color: var(--lightblue); }
.stat-label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* policy card (compliance page) */
.policy-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0 12px 12px 0;
  padding: 28px 26px;
  background: white;
}
.policy-card.copper { border-left-color: var(--copper); }
.policy-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.policy-card p { color: var(--grey); font-size: 0.92rem; margin-bottom: 18px; }
.policy-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* info / highlight box */
.info-box {
  border-left: 4px solid var(--navy);
  background: #eef2ff;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
}
.info-box.copper { border-left-color: var(--copper); background: #fdf6ee; }
.info-box h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.info-box.copper h4 { color: var(--copper); }
.info-box p { font-size: 0.92rem; color: #4b5563; }

/* timeline / checklist */
.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #3a3f4a;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

/* map area */
.map-wrap {
  background: var(--dark);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.map-legend-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.map-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-legend-text { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.map-legend-text strong { color: white; font-weight: 600; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #3a3f4a;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--grey-light); margin-top: 10px; }
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.success { color: #15803d; display: block; }
.form-status.error { color: #b91c1c; display: block; }

.contact-detail-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.contact-detail-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-detail-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.contact-detail-body { font-size: 0.9rem; color: var(--grey); line-height: 1.8; }
.contact-detail-body a { color: var(--navy); font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 50px 0 26px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-col a:hover { color: var(--copper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .footer-logo { display: flex; align-items: center; gap: 10px; color: white; font-family: var(--font-display); font-weight: 700; }

/* ===== Lang visibility =====
   Default (English) state: show [data-lang-en], hide [data-lang-fr].
   When html[lang="fr"]: show [data-lang-fr], hide [data-lang-en].
   We use 'display: revert' to fall back to each element's natural
   display value (block for div/ul/li/p/h1-4/section, inline for
   span/a/em/strong, etc.) rather than enumerating every tag name. */

[data-lang-en] { display: revert; }
[data-lang-fr] { display: none; }

html[lang="fr"] [data-lang-en] { display: none; }
html[lang="fr"] [data-lang-fr] { display: revert; }

/* ===== Misc ===== */
.divider { border: none; border-top: 1px solid var(--line); margin: 50px 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

.gradient-rule {
  height: 3px;
  width: 70px;
  background: linear-gradient(90deg, var(--navy), var(--copper));
  border-radius: 2px;
  margin: 16px 0 0;
}
