/* ─── Mergers Europe · Premium Advisory ─── */

/* Google Fonts loaded in HTML:
   Source Sans 3 (headings + body) */

:root {
  --blue: #1398c5;
  --blue-soft: #edf7fb;
  --blue-dark: #0e7da6;
  --blue-muted: rgba(19, 152, 197, .08);
  --text: #1c1c1c;
  --text-secondary: #4a4a4a;
  --muted: #7a7a7a;
  --line: #e9e9e9;
  --line-light: #f2f2f2;
  --bg: #ffffff;
  --bg-warm: #fafaf9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.06);
  --radius: 4px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-text: 720px;
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Links ─── */
a { color: var(--blue); text-decoration: none; transition: color var(--transition) }
a:hover { color: var(--blue-dark) }

/* ─── Layout ─── */
.wrapper { max-width: 1080px; margin: 0 auto; padding: 0 40px }

/* ─── Topbar ─── */
.topbar {
  display: flex;
  align-items: center;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  margin: 0 -40px;
  padding-left: 40px;
  padding-right: 40px;
  transition: box-shadow var(--transition);
}
.topbar.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.brand img { height: 38px; width: auto; display: block; transition: opacity var(--transition) }
.brand:hover img { opacity: .75 }

/* ─── Navigation ─── */
.mainnav {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-left: auto;
}
.mainnav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.mainnav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: width var(--transition);
}
.mainnav a:hover,
.mainnav a.active { color: var(--text) }
.mainnav a:hover::after,
.mainnav a.active::after { width: 100% }
.mainnav .lang-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 4px;
}
.mainnav .lang-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.mainnav a.lang-link:hover { color: var(--blue-dark) }
.mainnav a.lang-link::after { display: none }
.mobile-logo { display: none }

/* ─── Hamburger button ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 80px;
  padding: 64px 0 40px;
  align-items: start;
  border-bottom: none !important;
}
.portrait-frame {
  position: relative;
}
.portrait {
  width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.portrait-caption {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.kicker {
  font-size: 14px;
  color: var(--blue);
  margin: 0 0 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero h1 {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--text);
}
.lead {
  font-size: 21px;
  line-height: 1.45;
  margin: 0 0 28px;
  font-weight: 600;
  color: var(--text);
}
.intro {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 20px;
  color: var(--text-secondary);
  max-width: var(--max-text);
}
.intro2 {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 20px;
  color: var(--text-secondary);
  max-width: var(--max-text);
}

/* CTA */
.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.cta a {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 15px 36px;
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--text);
  color: #fff;
}
.cta a:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.location {
  margin-top: 40px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── Metrics ─── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg);
  transition: background var(--transition);
}
.metric:hover {
  background: var(--bg-warm);
}
.metric .num {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}
.metric .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.4;
  font-weight: 400;
}

/* ─── Sections ─── */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
section > p,
section > .contactblock p {
  max-width: var(--max-text);
}
.smallcaps {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text);
}
p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.bullets { margin: 20px 0 0; padding-left: 20px }
.bullets li {
  font-size: 18px;
  line-height: 1.7;
  margin: 10px 0;
  padding-left: 6px;
  color: var(--text-secondary);
}

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 32px 28px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.step:last-child { border-right: none }
.step:hover { background: var(--bg-warm) }
.step-num {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.step h3 {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.step p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ─── Cases ─── */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.case:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.case .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.case h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.case p {
  margin-bottom: 0;
  font-size: 16px;
}

/* ─── Coverage ─── */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.coverage h3 {
  margin-bottom: 16px;
}

/* ─── Footer / Contact ─── */
.footer {
  display: block;
  padding: 80px 0 60px;
  border-bottom: none !important;
}
.contactblock h2 {
  margin-bottom: 24px;
}
.contactblock p {
  margin-bottom: 12px;
}
.contactblock a {
  font-weight: 600;
}

/* ─── Site footer (dark) ─── */
/* ─── Contact links ─── */
.contact-links {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
}
.contact-links a {
  color: var(--blue);
}
.contact-links a:hover {
  color: var(--blue-dark);
}

/* ─── Site footer ─── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.5);
  padding: 32px 40px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-sep {
  margin: 0 6px;
  opacity: .4;
}

/* ─── Fade-in animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.25,.1,.25,1), transform .8s cubic-bezier(.25,.1,.25,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.25,.1,.25,1), transform .6s cubic-bezier(.25,.1,.25,1);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0) }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .08s }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .16s }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .24s }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .32s }

/* ─── Legal pages ─── */
.legal-page {
  padding: 80px 0 60px;
  max-width: var(--max-text);
}
.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-page p, .legal-page li {
  color: var(--text-secondary);
}
.legal-updated {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.cookie-table th, .cookie-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.cookie-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-warm);
}
.cookie-table td {
  color: var(--text-secondary);
}

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  background: rgba(28, 28, 28, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 24px;
}
.cookie-inner {
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.cookie-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e0e0e0;
  flex: 1;
}
.cookie-inner a {
  color: #8fd4ec;
  text-decoration: underline;
}
.cookie-btn {
  flex-shrink: 0;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-btn:hover {
  background: var(--blue-dark);
}

/* ─── Footer legal links ─── */
.footer-legal a {
  color: inherit;
  opacity: .7;
  transition: opacity var(--transition);
}
.footer-legal a:hover {
  opacity: 1;
  color: inherit;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .wrapper { padding: 0 28px }
  .topbar { margin: 0 -28px; padding-left: 28px; padding-right: 28px }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 40px }
  .hero h1 { font-size: 36px }
  .portrait-frame { max-width: 280px }
  .steps, .cases { grid-template-columns: 1fr 1fr }
  .coverage { grid-template-columns: 1fr; gap: 40px }
  .footer { grid-template-columns: 1fr }
  .metrics { grid-template-columns: 1fr 1fr }
  h2 { font-size: 26px }
  section { padding: 56px 0 }
}
@media (max-width: 768px) {
  .hamburger { display: flex; z-index: 210 }
  .mainnav:not(.open) {
    display: none !important;
  }
  /* When open: topbar becomes fullscreen container */
  .topbar.menu-open {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 200;
    flex-wrap: wrap;
    align-content: flex-start;
    border-bottom: none;
  }
  .topbar.menu-open .brand {
    margin-bottom: 0;
  }
  .mainnav.open {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    width: 100%;
    height: calc(100vh - 80px);
    margin: 0;
  }
  .mainnav.open .mobile-logo {
    display: none;
  }
  .mainnav.open a {
    font-size: 18px;
    letter-spacing: .06em;
  }
  .mainnav.open a::after { display: none }
  .mainnav.open .lang-sep {
    width: 40px;
    height: 1px;
    margin: 8px 0;
  }
  .mainnav.open .lang-link {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .wrapper { padding: 0 20px }
  .topbar {
    margin: 0 -20px; padding: 20px 20px 16px;
  }
  .metrics { grid-template-columns: 1fr }
  .steps, .cases { grid-template-columns: 1fr }
  .hero { gap: 32px; padding: 48px 0 28px }
  .hero h1 { font-size: 30px }
  .portrait-frame { max-width: 260px }
  .lead { font-size: 18px }
  .cta a { width: 100%; text-align: center }
  h2 { font-size: 24px }
  section { padding: 44px 0 }
  .step { padding: 24px }
  .case { padding: 24px }
  .cookie-inner { flex-direction: column; text-align: center; gap: 12px }
  .footer-inner { flex-direction: column; gap: 4px }
}
