/* ============================================================
   Sahel WAM & IM Solutions
   Stylesheet aligned to brand: Navy #1C2B4A, Gold #B8943A
   ============================================================ */

:root {
  /* Brand palette (extracted from logo files) */
  --navy:        #1C2B4A;
  --navy-soft:   #2A3B5F;
  --gold:        #B8943A;
  --gold-warm:   #D4AE5C;
  --cream:       #F4F0E6;
  --cream-soft:  #FAF7F0;
  --white:       #FFFFFF;
  --ink:         #1A1A1A;
  --ink-mid:     #4A4A4A;
  --ink-soft:    #6E6E6E;
  --rule:        #E5DFCF;

  /* Typography stack matches the logo */
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;

  /* Layout */
  --max-width: 1180px;
  --pad-x: 28px;
}

/* ----- Reset & base ----- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

/* ----- Header & navigation ----- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand-mark { display: flex; align-items: center; }
.logo { height: 44px; width: auto; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 14.5px;
  letter-spacing: 0.2px;
}

.nav-list a {
  color: var(--ink-mid);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-list a:hover { color: var(--navy); }

.nav-list a:not(.lang-toggle):after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-list a:hover:after { transform: scaleX(1); }

.lang-toggle {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 6px 12px !important;
  border-radius: 2px;
}

.lang-toggle:hover {
  background: var(--gold);
  color: var(--white) !important;
}

/* ----- Hero ----- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse at top right, var(--cream-soft) 0%, transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 24px;
}

h1 {
  font-family: var(--font-sans);
  font-size: 52px;
  line-height: 1.12;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  max-width: 720px;
}

.lead {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-bottom: 40px;
  max-width: 600px;
  font-style: italic;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 16px 30px;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid var(--navy);
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 148, 58, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

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

/* Compass mark in hero */
.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}

.compass-mark {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(28, 43, 74, 0.15));
  animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ----- Section base ----- */
.section {
  padding: 96px 0;
}

.section-cream {
  background: var(--cream-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

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

.section-dark a { color: var(--gold-warm); }
.section-dark a:hover { color: var(--white); }

.section-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-label-light { color: var(--gold-warm); }

.section-heading {
  margin-bottom: 56px;
  max-width: 760px;
}

h2 {
  font-family: var(--font-sans);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.section-dark h2 { color: var(--white); }

h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.1px;
}

/* ----- Two-column layout (about, contact) ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.prose p { margin-bottom: 18px; color: var(--ink-mid); font-size: 17.5px; }
.prose p:last-child { margin-bottom: 0; }

/* ----- Service cards ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px 28px 28px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 43, 74, 0.08);
  border-color: var(--gold);
}

.service-card:hover:before { transform: scaleX(1); }

.service-tag {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 10px;
  background: var(--cream);
  border-radius: 2px;
}

.service-card p {
  color: var(--ink-mid);
  font-size: 16px;
  line-height: 1.6;
}

/* ----- Credentials / metrics ----- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
  padding-top: 8px;
}

.metric {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.metric:not(:last-child):after {
  content: '';
  position: absolute;
  right: -16px;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(212, 174, 92, 0.25);
}

.metric-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-warm);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
  display: block;
  line-height: 1.4;
}

.credentials-detail {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 174, 92, 0.2);
}

.credentials-line {
  font-family: var(--font-serif);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  line-height: 1.6;
}

.credentials-line:last-child { margin-bottom: 0; }
.credentials-line strong { color: var(--white); font-weight: 700; }

/* ----- Contact ----- */
.contact-intro {
  font-size: 17.5px;
  color: var(--ink-mid);
  margin: 16px 0 32px;
  line-height: 1.6;
}

.contact-block {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-mid);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.contact-block strong {
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--cream-soft);
  padding: 36px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 148, 58, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-serif);
}

.contact-form button {
  margin-top: 8px;
  align-self: flex-start;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.logo-footer { height: 56px; width: auto; }

.footer-meta { text-align: right; font-family: var(--font-sans); font-size: 14px; line-height: 1.8; }
.footer-line { color: rgba(244, 240, 230, 0.85); margin-bottom: 4px; }
.footer-copyright { color: rgba(244, 240, 230, 0.55); font-size: 13px; margin-top: 12px; }

.site-footer a {
  color: var(--gold-warm);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover { color: var(--white); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-mark { order: -1; }
  .compass-mark { max-width: 160px; }

  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .lead { font-size: 19px; }

  .metric:after { display: none; }

  .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }

  .nav-list { gap: 20px; }
  .nav-list li:not(:last-child):not(:nth-last-child(2)) { display: none; }

  .logo { height: 38px; }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .lead { font-size: 17.5px; }

  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }

  .metric-num { font-size: 44px; }

  .contact-form { padding: 24px; }
}

/* Print friendliness for the catalogue PDF link */
@media print {
  .site-header, .site-footer, .cta-row, .contact-form, .lang-toggle { display: none; }
  body { font-size: 12pt; }
  .section { padding: 16pt 0; page-break-inside: avoid; }
}
