/* ============================================================
   MEGHABRI — NAVIGATION  (nav.css — loaded separately)
   Desktop: pure CSS :hover dropdowns (no JS needed)
   Mobile:  slide-in drawer with JS accordion
   ============================================================ */

/* ── Topbar ── */
.topbar {
  background: linear-gradient(90deg, #5e1c2a 0%, #a3304a 100%);
  height: 42px;
  display: flex;
  align-items: center;
  z-index: 999;
  position: relative;
  border-bottom: 1px solid rgba(78,92,165,.18);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2rem);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar-mail,
.topbar-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .25s;
}
.topbar-mail:hover,
.topbar-phone:hover { color: #7986c0; }
.topbar-mail svg,
.topbar-phone svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .85; }
.topbar-socials    { display: flex; gap: .4rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  transition: background .25s, transform .25s, border-color .25s, color .25s;
  text-decoration: none;
}
.social-btn:hover {
  background: #4e5ca5;
  border-color: #4e5ca5;
  color: #fff;
  transform: translateY(-2px);
}
.social-btn svg { width: 13px; height: 13px; }

/* ── Wrapper keeps topbar + navbar sticky together ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
}

/* ── Navbar ── */
.navbar {
  background: #fff;
  height: 78px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  position: relative;
  z-index: 8999;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2rem);
  display: flex;
  align-items: center;
  height: 100%;
  gap: .5rem;
}

/* ── Logo ── */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.nav-logo-fallback {
  display: none;
  align-items: center;
  gap: .6rem;
}
.nav-logo-mark {
  width: 40px; height: 40px;
  background: #a3304a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #4e5ca5;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-logo-text  { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-name  { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #1a3c34; }
.nav-logo-sub   { font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #666; }

/* ── Desktop menu list ── */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
}

/* ── Each nav item ── */
.nav-item {
  position: relative;
}

/* ── Nav link / trigger ── */
.nav-link {
  display: flex;
  align-items: center;
  gap: .32rem;
  padding: .6rem .95rem;
  font-size: .87rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #3a3a3a;
  letter-spacing: .01em;
  border-radius: 6px;
  transition: color .22s, background .22s;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  line-height: 1;
}
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.active > .nav-link {
  color: #1a3c34;
  background: rgba(78,92,165,.1);
}

/* chevron icon inside link */
.nav-link .chev {
  display: inline-flex;
  transition: transform .22s ease;
  opacity: .6;
}
.nav-item:hover > .nav-link .chev { transform: rotate(180deg); }

/* ── DROPDOWN — pure CSS hover ── */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 6px;
  border-top: 3px solid #4e5ca5;
  box-shadow: 0 16px 48px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  list-style: none;
  z-index: 9990;
  overflow: hidden;

  /* hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* show on hover — CSS only, no JS needed */
.nav-item:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* gap bridge so dropdown doesn't disappear when moving mouse to it */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown li { border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-dropdown li:last-child { border-bottom: none; }
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .78rem 1.1rem;
  font-size: .82rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background .2s, color .2s, padding-left .2s;
  white-space: nowrap;
}
.nav-dropdown li a:hover {
  background: #f6f6f1;
  color: #1a3c34;
  padding-left: 1.4rem;
}
.dd-icon { font-size: .95rem; width: 20px; text-align: center; flex-shrink: 0; }

/* ── CTA button ── */
.nav-cta-wrap { margin-left: .75rem; flex-shrink: 0; }

/* ── Hamburger (hidden on desktop) ── */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid rgba(0,0,0,.15);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  color: #222;
  transition: border-color .22s, color .22s;
}
.hamburger:hover { border-color: #1a3c34; color: #1a3c34; }

/* ════════════════════════════════════════
   MOBILE OVERLAY
════════════════════════════════════════ */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9100;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.mob-overlay.active { display: block; }

/* ════════════════════════════════════════
   MOBILE DRAWER
════════════════════════════════════════ */
.mob-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 84vw);
  height: 100%;
  background: #fff;
  z-index: 9200;
  transform: translateX(105%);
  transition: transform .34s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -4px 0 32px rgba(0,0,0,.18);
}
.mob-drawer.active { transform: translateX(0); }

/* Drawer header */
.mob-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  background: linear-gradient(90deg, #5e1c2a 0%, #a3304a 100%);
  flex-shrink: 0;
}
.mob-drawer-brand { display: flex; align-items: center; gap: .55rem; }

/* White pill wraps the logo — visible on any colored drawer header */
.mob-logo-wrap {
  background: #fff;
  border-radius: 7px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  max-width: 150px;
}
.mob-logo-img {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  filter: none;
}
.mob-logo-fallback { display: none; align-items: center; gap: .5rem; }
.mob-logo-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: #fff; }

.mob-close-btn {
  width: 38px; height: 38px;
  min-width: 38px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .22s, border-color .22s;
  flex-shrink: 0;
  overflow: hidden;
}
.mob-close-btn:hover { background: rgba(255,255,255,.35); border-color: rgba(255,255,255,.5); }
.mob-close-btn svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }

/* Drawer body */
.mob-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Accordion item */
.mob-acc { border-bottom: 1px solid rgba(0,0,0,.08); }

.mob-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.1rem;
  background: none;
  border: none;
  font-size: .88rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  font-family: inherit;
  transition: background .22s, color .22s;
  text-align: left;
}
.mob-acc-trigger:hover        { background: #f6f6f1; color: #1a3c34; }
.mob-acc.open .mob-acc-trigger{ color: #1a3c34; background: #f0f7f4; }

.mob-acc-trigger .chev-mob {
  display: inline-flex;
  opacity: .55;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.mob-acc.open .mob-acc-trigger .chev-mob { transform: rotate(180deg); opacity: 1; }

/* Panel */
.mob-acc-panel { display: none; background: #f8f9f7; }
.mob-acc.open .mob-acc-panel { display: block; }

.mob-acc-panel a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .72rem 1.1rem .72rem 1.55rem;
  font-size: .84rem;
  color: #555;
  border-bottom: 1px solid rgba(0,0,0,.05);
  text-decoration: none;
  transition: all .2s;
}
.mob-acc-panel a:last-child { border-bottom: none; }
.mob-acc-panel a:hover { color: #1a3c34; background: rgba(163,48,74,.06); padding-left: 1.9rem; }
.mob-acc-panel a span { font-size: .95rem; flex-shrink: 0; }

/* Direct link (Careers / Contact) */
.mob-direct-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-decoration: none;
  transition: background .22s, color .22s;
}
.mob-direct-link:hover { background: #f6f6f1; color: #1a3c34; }

/* Drawer footer */
.mob-drawer-foot {
  padding: 1.1rem 1.1rem .9rem;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #f6f6f1;
  flex-shrink: 0;
}
.mob-social-row {
  display: flex;
  gap: .55rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.mob-social {
  width: 42px; height: 42px;
  background: #a3304a;
  border: 2px solid rgba(163,48,74,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background .22s, transform .22s, border-color .22s;
  flex-shrink: 0;
}
.mob-social:hover {
  background: #4e5ca5;
  border-color: rgba(78,92,165,.3);
  transform: translateY(-2px);
}
.mob-social svg {
  display: block;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.mob-email {
  font-size: .78rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: .4rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-menu, .nav-cta-wrap { display: none !important; }
  .hamburger { display: flex; }
  .topbar-mail span { display: none; }
}

@media (max-width: 640px) {
  .navbar  { height: 62px; }
  .topbar  { height: 40px; }
  .nav-logo-img { height: 42px; }

  /* Hide email+phone on small screens — keep social icons only */
  .topbar-left { display: none; }

  /* Social icons row — centered in topbar on mobile */
  .topbar-socials {
    gap: .5rem;
    margin: 0 auto;
  }

  /* Slightly larger tap targets on mobile */
  .social-btn {
    width: 30px;
    height: 30px;
  }
  .social-btn svg { width: 14px; height: 14px; }
}

/* ════════════════════════════════════════
   CLIENT LOGO SLIDER
════════════════════════════════════════ */
.clients-section {
  padding: clamp(60px,7vw,90px) 0;
  background: #fff;
  overflow: hidden;
}
.clients-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.clients-head h2 { color: #1a3c34; }
.clients-head p  { color: #666; font-size: .95rem; margin-top: .5rem; }

/* Outer track wrapper — clips overflow */
.logo-slider-wrap {
  position: relative;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  user-select: none;
}
.logo-slider-wrap:hover .logo-track { animation-play-state: paused; }

/* Scrolling track — doubled for infinite loop */
.logo-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  animation: logoScroll 32s linear infinite;
}
@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Each logo card — reliable text-badge design (no external image dependency) */
.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 96px;
  margin: 0 10px;
  padding: 12px 18px;
  background: #fbfaf7;
  border: 1.5px solid rgba(163,48,74,.1);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s, border-color .25s, background .25s;
  flex-shrink: 0;
  cursor: default;
}
.logo-card:hover {
  box-shadow: 0 8px 24px rgba(163,48,74,.12);
  transform: translateY(-3px);
  border-color: #4e5ca5;
  background: #fff;
}

/* Image kept for cases where it DOES load, but text badge is primary/reliable */
.logo-card img {
  display: none;
}

/* Main client name — large, bold, dark green for strong contrast */
.logo-card .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #1a3c34;
  text-align: center;
  line-height: 1.25;
  transition: color .25s;
}
.logo-card:hover .logo-text { color: #0d2820; }

.logo-card .logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #4e5ca5;
  margin-top: .3rem;
  text-align: center;
  transition: color .25s;
}
.logo-card:hover .logo-sub { color: #a9854f; }

/* Pause on reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-slider-wrap {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}


