/* ================================================================
   DWDG Extra — v7
   Menu: barre horizontale glassmorphisme (pas overlay full-screen)
   ================================================================ */

/* ── LOGO SVG ────────────────────────────────────────────────── */
.brand-pill img.dwdg-logo,
.footer-brand img.dwdg-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* ── HEADER SHELL ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  z-index: 192;
  top: 20px;
  left: 0;
  width: 100%;
  pointer-events: none;
  transition: top 240ms cubic-bezier(.16,1,.3,1);
}
.site-header.is-scrolled { top: 12px; }

.header-shell {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

/* ── LOGO PILL (hamburger inside) ───────────────────────────── */
/* The brand-pill contains the hamburger lines + logo together */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  text-decoration: none;
  color: var(--ink);
  transition: background 180ms ease;
  cursor: default;
  /* Sit on top of nav-bar so bar shows around it */
  position: relative;
  z-index: 191;
}

/* Hamburger lines inside the brand pill */
.brand-pill .burger-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 180ms;
}
.brand-pill .burger-lines:hover { background: rgba(0,0,0,.06); }
.brand-pill .burger-lines span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 240ms cubic-bezier(.16,1,.3,1), opacity 240ms;
}
body.nav-open .brand-pill .burger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .brand-pill .burger-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .brand-pill .burger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Logo image inside pill */
.brand-pill .pill-logo { display: flex; align-items: center; }
.brand-pill .pill-logo img { height: 28px; width: auto; }

/* Hide old menu-toggle button (we use burger-lines inside brand-pill now) */
.menu-toggle { display: none !important; }

/* ── NAV BAR (horizontal glassmorphism dropdown) ──────────────── */
/* The nav bar slides down from top when .nav-open */
.dwdg-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 190;
  padding: 0 clamp(24px, 4vw, 56px);
  /* pill = 56px, sits at top:20px → bar must be at least 20+56+20 = 96px */
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(22,24,20,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  /* Initial state: hidden above the top */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 320ms cubic-bezier(.16,1,.3,1),
    opacity   320ms cubic-bezier(.16,1,.3,1);
}

body.nav-open .dwdg-nav-bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Primary nav links inside the bar */
.dwdg-nav-bar__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dwdg-nav-bar__links > li {
  position: relative;
}

.dwdg-nav-bar__links > li > a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color 150ms, background 150ms;
  white-space: nowrap;
}
.dwdg-nav-bar__links > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.dwdg-nav-bar__links > li > a.is-contact {
  background: var(--green);
  color: #fff;
  padding: 0 18px;
}
.dwdg-nav-bar__links > li > a.is-contact:hover {
  background: var(--green-deep);
}

/* LinkedIn icon */
.dwdg-nav-bar__li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: 8px;
  transition: background 150ms, color 150ms;
}
.dwdg-nav-bar__li:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Dropdown sub-menu (Expertise / Services) */
.dwdg-nav-bar__links > li.has-sub > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  opacity: .6;
}

.dwdg-nav-sub-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 160px;
  background: rgba(30,32,28,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.dwdg-nav-bar__links > li.has-sub:hover .dwdg-nav-sub-panel,
.dwdg-nav-bar__links > li.has-sub:focus-within .dwdg-nav-sub-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dwdg-nav-sub-panel a {
  display: block;
  padding: 6px 18px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 150ms, background 150ms;
}
.dwdg-nav-sub-panel a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

/* ── OVERLAY BACKDROP (click outside to close) ────────────────── */
.dwdg-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 189;
  background: transparent;
  display: none;
}
body.nav-open .dwdg-nav-backdrop {
  display: block;
}

/* ── HERO VIDEO NOTICE ───────────────────────────────────────── */
.dwdg-video-notice {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(18,201,95,.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
}

/* ── HERO MEDIA VIDEO ────────────────────────────────────────── */
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02) brightness(1.02);
}

/* ── EXPERTISE GREEN BLOCK ───────────────────────────────────── */
.expertise-green-block {
  background: linear-gradient(135deg, #1a7a3a 0%, #12c95f 60%, #58d986 100%);
  border-radius: 28px;
  padding: clamp(48px, 6vw, 80px) clamp(36px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.expertise-green-block::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Restore original expertise-grid layout inside green block — centered */
.expertise-green-block .expertise-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr) !important;
  gap: 0 clamp(40px,7vw,100px) !important;
  width: 100% !important;
  max-width: 760px !important;
  align-items: start;
  position: relative;
  z-index: 1;
  /* Opaque white card inside the green block — matches image 4 */
  background: rgba(255,255,255,.80);
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 20px;
  padding: clamp(36px, 5vw, 56px) clamp(36px, 5vw, 64px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.expertise-green-block h2 {
  color: var(--ink) !important;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important;
  margin-bottom: 28px !important;
}
.expertise-green-block .link-list { display: grid !important; gap: 14px !important; }
.expertise-green-block .link-list a {
  color: var(--ink-soft) !important;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  gap: 12px !important;
}
/* ↗ arrows — dark green on white card */
.expertise-green-block .link-list a::before {
  content: "↗" !important;
  color: var(--green) !important;
  font-size: 0.88em !important;
  font-weight: 500 !important;
  transition: transform 150ms !important;
}
.expertise-green-block .link-list a:hover { color: var(--ink) !important; }
.expertise-green-block .link-list a:hover::before {
  transform: translate(2px, -2px) !important;
  color: var(--green-deep) !important;
}
.expertise-green-block .expertise-divider {
  background: var(--line) !important;
  display: block !important;
  align-self: stretch;
}

/* HIDE caption — replaced by centered layout */
.expertise-caption { display: none !important; }

@media (max-width: 760px) {
  .expertise-green-block .expertise-grid {
    grid-template-columns: 1fr !important;
    gap: 32px 0 !important;
  }
  .expertise-green-block .expertise-divider { display: none !important; }
}

/* ── PUBLICATION COVER ───────────────────────────────────────── */
.report-cover {
  position: relative;
  width: min(170px, 100%);
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 6px;
  background: #fafaf7;
  box-shadow: 0 20px 40px rgba(0,0,0,.16);
  padding: 28px 24px;
}
.report-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 42%, rgba(18,201,95,.18) 42% 64%, transparent 64%);
}
.report-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 48%, rgba(18,201,95,.32) 48% 66%, transparent 66%);
}
.report-cover > * { position: relative; z-index: 1; }

/* ── PROGRAM CARDS — edit hint for admin ─────────────────────── */
.generation-img { position: relative; overflow: hidden; }
.dwdg-edit-img {
  display: none;
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.generation-img:hover .dwdg-edit-img { display: flex; }

/* ── ADMIN BAR OFFSET ────────────────────────────────────────── */
.admin-bar .site-header { top: calc(20px + 32px); }
.admin-bar.nav-open .dwdg-nav-bar { padding-top: 32px; height: calc(96px + 32px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: calc(20px + 46px); }
}
