/* =========================================================
   HumanPower Senegal SARL — Company Website
   Design tokens
   ========================================================= */
:root {
  --navy: #14203F;
  --navy-2: #1B2A55;
  --navy-soft: #23345F;
  --orange: #F07C1E;
  --orange-dim: #C9660F;
  --off-white: #F7F6F3;
  --white: #FFFFFF;
  --steel: #7C87A0;
  --steel-light: #DADFE8;
  --ink: #16181D;
  --ink-soft: #4B4F58;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --gap: 1.5rem;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--navy);
  letter-spacing: 0.2px;
}

h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.section-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 0.6rem;
  display: block;
}

.lede {
  font-size: 1.08rem;
  max-width: 62ch;
}

section { padding: 5.5rem 0; }
@media (max-width: 720px) {
  section { padding: 3.5rem 0; }
}

.section-navy { background: var(--navy); }
.section-off  { background: var(--off-white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dim); }

.btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-ghost-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost-navy:hover { background: var(--navy); color: var(--white); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 32, 63, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { height: 34px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 1.1rem; }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
}
.lang-toggle button {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: none;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button.active {
  background: var(--orange);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

@media (max-width: 480px) {
  .brand-name { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy);
  padding-top: 76px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: 640px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem 4rem 1.5rem;
  max-width: 560px;
  margin-left: auto;
}
.hero-copy .section-tag { color: var(--orange); }
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin-bottom: 0.55em;
}
.hero-copy p {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

.hero-media {
  position: relative;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}
@media (max-width: 900px) {
  .hero-media { clip-path: none; }
}
.hero-media .section-photo { position: absolute; inset: 0; border-radius: 0; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-fact {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.hero-fact:last-child { border-right: none; }
.hero-fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--orange);
  font-weight: 700;
}
.hero-fact span {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { margin: 0; max-width: 100%; padding: 2.5rem 1.5rem; }
  .hero-media { height: 280px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; }
  .hero-fact { padding: 1rem; }
}

@media (max-width: 540px) {
  .hero-facts {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
  }
  .hero-fact {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .hero-fact:last-child { border-bottom: none; }
}

/* =========================================================
   Placeholder panels (stand in for photography)
   ========================================================= */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(240,124,30,0.10),
      rgba(240,124,30,0.10) 10px,
      rgba(27,42,85,0.06) 10px,
      rgba(27,42,85,0.06) 20px
    ),
    var(--off-white);
  border: 1.5px dashed var(--steel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}
.img-placeholder .ph-inner {
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder svg { width: 34px; height: 34px; margin-bottom: 0.6rem; opacity: 0.55; }
.img-placeholder .ph-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 22ch;
  margin: 0 auto;
}

.section-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.logo-placeholder {
  background: var(--white);
  border: 1.5px dashed var(--steel-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.4rem 0.8rem;
  min-height: 108px;
  text-align: center;
}
.logo-placeholder svg { width: 22px; height: 22px; opacity: 0.4; }
.logo-placeholder span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* =========================================================
   Overview
   ========================================================= */
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.overview-media .section-photo { aspect-ratio: 4/5; }

/* =========================================================
   Competencies
   ========================================================= */
.comp-list { margin-top: 2.5rem; }
.comp-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--steel-light);
  align-items: start;
}
.comp-row:last-child { border-bottom: 1px solid var(--steel-light); }
.comp-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.comp-icon svg { width: 26px; height: 26px; stroke: var(--white); }
.comp-row h3 { margin-bottom: 0.25rem; }
.comp-row p { margin: 0; max-width: 58ch; }

.comp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .comp-layout { grid-template-columns: 1fr; gap: 2rem; }
}
.comp-media .section-photo { min-height: 480px; max-height: 620px; }
@media (max-width: 900px) {
  .comp-media .section-photo { min-height: 280px; max-height: 420px; }
}

/* =========================================================
   Track record
   ========================================================= */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
}
@media (max-width: 720px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}
.client-name {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}
.note-block {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  max-width: 72ch;
}
.note-block p { margin: 0; color: var(--ink); }

/* =========================================================
   Workforce stats
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.stat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: left;
  min-width: 0;
  overflow-wrap: break-word;
}
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-card span { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.section-navy h2, .section-navy .section-tag + h2 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }
.section-navy .section-tag { color: var(--orange); }

/* =========================================================
   Equipment
   ========================================================= */
.equip-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .equip-layout { grid-template-columns: 1fr; gap: 2rem; }
  .equip-layout .comp-media { order: -1; }
}
.equip-media .section-photo { min-height: 480px; max-height: 620px; }
@media (max-width: 900px) {
  .equip-media .section-photo { min-height: 280px; max-height: 420px; }
}

/* =========================================================
   HSE / ESG
   ========================================================= */
.hse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) {
  .hse-grid { grid-template-columns: 1fr; }
}
.hse-card {
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
}
.hse-card .comp-icon { margin-bottom: 1rem; }
.hse-disclaimer {
  margin-top: 2.2rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 78ch;
}

/* =========================================================
   Contact / Footer
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
}
.contact-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--orange); }
.contact-list a { transition: color 0.15s ease; }
.contact-list a:hover { color: var(--orange); }

.contact-map {
  display: block;
  width: 100%;
  min-height: 340px;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

.site-footer {
  background: var(--navy-2);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  font-size: 0.85rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { height: 22px; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* utility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (min-width: 2000px) {
  .hero-grid,
  .hero-facts {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
  }
}
