@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --ink: #12202b;
  --navy: #1b3144;
  --brass: #b0893e;
  --brass-deep: #8c6a2e;
  --sand: #f3efe6;
  --paper: #faf8f4;
  --stone: #5d6770;
  --line: #e3ddd2;
  --radius: 1.25rem;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media,
.hero-visual,
.split-media,
.service-media {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.card-media .photo,
.hero-visual .photo,
.split-media .photo,
.service-media .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
a { color: inherit; text-decoration: none; }
button, [role="button"] { cursor: pointer; font: inherit; }
::selection { background: #e8d7b0; color: var(--ink); }

.display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(227, 221, 210, 0.9);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
img.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
}
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 1.25rem; height: 1.25rem; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-desktop a {
  font-size: 0.95rem;
  color: var(--stone);
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--stone); }
.btn-lang {
  min-width: 2.75rem;
  padding: 0 0.85rem;
}
.menu-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink);
}
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.5rem 0 1rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .btn-cta-desktop { display: inline-flex; }
}
@media (max-width: 767px) {
  .btn-cta-desktop { display: none; }
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 4rem;
  }
}
.kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
}
.lead {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--stone);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(18,32,43,0.55), rgba(176,137,62,0.25)),
    linear-gradient(180deg, #2a4558 0%, #12202b 100%);
  position: relative;
  min-height: 14rem;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(243,239,230,0.12), transparent 45%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(243,239,230,0.04) 18px,
      rgba(243,239,230,0.04) 19px
    );
}
.hero-visual-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  color: var(--sand);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Stats */
.stats {
  border-block: 1px solid var(--line);
  background: var(--sand);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
}
.stat-l {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--stone);
}

/* Sections */
.section { padding: 4rem 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  font-weight: 500;
}
.section-link {
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .section-link.hide-mobile { display: none; }
}

.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #1b3144, #3d5a6e 50%, #b0893e 160%);
}
.card-media.alt1 { background: linear-gradient(160deg, #243b4a, #6b7c6a); }
.card-media.alt2 { background: linear-gradient(160deg, #1a2e28, #8a7a4a); }
.card-media.alt3 { background: linear-gradient(160deg, #2c2418, #5c6e7a); }
.card-body { padding: 1.25rem; }
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}
.card-body p {
  margin-top: 0.5rem;
  color: var(--stone);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split-media {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #1b3144, #4a5c4a 60%, #c4a15a);
}
.muted { color: var(--stone); }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

/* Page hero */
.page-hero {
  padding: 3.5rem 0 1rem;
}
.page-hero h1 {
  margin-top: 0.75rem;
  max-width: 40rem;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 500;
}
.page-hero .lead { max-width: 36rem; }

.service-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row.reverse .service-media { order: 2; }
}
.service-media {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #1b3144, #5a6e7a);
}
.service-row:nth-child(2) .service-media { background: linear-gradient(145deg, #243b30, #8c7a45); }
.service-row:nth-child(3) .service-media { background: linear-gradient(145deg, #2a3a28, #6b8f71); }
.service-row:nth-child(4) .service-media { background: linear-gradient(145deg, #3a3228, #7a6a50); }
.service-row:nth-child(5) .service-media { background: linear-gradient(145deg, #2c3540, #8a9098); }
.service-num {
  font-size: 0.9rem;
  color: var(--brass-deep);
}
.service-row h2 {
  margin-top: 0.4rem;
  font-size: 2rem;
  font-weight: 500;
}
.service-row p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: var(--stone);
}

.aside-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sand);
}

/* Form */
.form-grid {
  display: grid;
  gap: 1rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
input, select, textarea {
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
textarea { min-height: 8rem; resize: vertical; }
.form-note {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sand);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--stone);
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
  .footer-inner p:last-child { max-width: 28rem; text-align: right; }
}

[data-lang="en"] [data-i18n-fr],
[data-lang="fr"] [data-i18n-en] { display: none !important; }
[data-lang="fr"] [data-i18n-fr],
[data-lang="en"] [data-i18n-en] { display: revert; }

.grid-about {
  display: grid;
  gap: 3rem;
  padding-bottom: 4rem;
}
@media (min-width: 900px) {
  .grid-about { grid-template-columns: 1.3fr 1fr; }
}
.prose p + p { margin-top: 1rem; }
.prose { font-size: 1.125rem; color: var(--stone); }
.prose strong { color: var(--ink); font-weight: 600; }

/* WordPress menu integration */
.nav-desktop .menu,
.nav-mobile .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.nav-mobile .menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.nav-desktop .menu a,
.nav-mobile .menu a {
  font-size: 0.95rem;
  color: var(--stone);
}
.nav-desktop .menu a:hover,
.nav-desktop .current-menu-item > a,
.nav-mobile .menu a {
  color: var(--ink);
}
.nav-mobile .menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}
.custom-logo-link img,
img.brand-mark,
.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
}
.site-header .custom-logo-link {
  display: flex;
  align-items: center;
}

/* Contact details, map, social links (added Nov 2026) */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.85rem; }
.contact-list li { display: grid; gap: 0.15rem; }
.contact-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); }
.contact-list a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); justify-self: start; }
.contact-list a:hover { border-color: var(--stone); }
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.contact-map { grid-column: 1 / -1; display: grid; gap: 0.75rem; }
.contact-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); background: var(--sand); }
.form-note-error { border-color: #d9b1a6; background: #fbefeb; margin-bottom: 1rem; }
.footer-col { display: grid; gap: 0.35rem; }
.footer-inner .footer-col p:last-child { max-width: none; text-align: left; }
.footer-slogan { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.footer-col a { color: inherit; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 1rem; }

/* Client logos (References page) */
.clients { padding-top: 1rem; }
.client-logos { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.client-logos li { display: flex; align-items: center; justify-content: center; height: 120px; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.client-logos img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.client-logos li:hover img { filter: none; opacity: 1; }
.client-logos img[alt="Djezzy"], .client-logos img[alt="KOUGC"] { max-height: 88px; }
