/* ============================================================
   European Consulting Group — Shared Design System
   site.css · v28
   ============================================================
   Shared tokens, layout, navigation, typography, components
   and responsive rules used across all pages.
   ============================================================ */


/* ----- 1. Design Tokens ----- */

:root {
  --bg:           #f4f6f8;
  --bg-soft:      #fbfcfd;
  --panel:        rgba(255,255,255,.96);
  --line:         #dde4ec;
  --line-strong:  #cfd8e4;
  --text:         #0f1218;
  --muted:        #5b6673;
  --muted-2:      #7a8593;
  --blue:         #163A8C;
  --blue-2:       #2F63DF;
  --radius-xl:    34px;
  --radius-lg:    28px;
  --radius-md:    22px;
  --shadow-soft:  0 18px 46px rgba(17,22,29,.05);
  --shadow-card:  0 10px 26px rgba(17,22,29,.04);
  --max:          1260px;
}


/* ----- 2. Reset & Base ----- */

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47,99,223,.04), transparent 34%),
    linear-gradient(180deg, #f9fafb 0%, #f4f6f8 50%, #eff2f5 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100% }
a   { color: inherit; text-decoration: none }


/* ----- 3. Layout ----- */

.container {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}
.container--narrow { --max: 980px }

main { padding-bottom: 92px }


/* ----- 4. Site Header & Navigation ----- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(249,250,251,.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(207,215,226,.8);
}

.site-nav {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 13px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-link img {
  height: clamp(56px, 5.5vw, 74px);
  width: auto;
}
.site-nav img { height: clamp(56px, 5.5vw, 74px); width: auto }

.primary-nav {
  display: flex; align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.primary-nav a {
  font-size: 14px; line-height: 1.2;
  font-weight: 620; color: var(--muted);
  transition: color .18s ease, transform .18s ease;
}
.primary-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.primary-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px; padding: 0 18px;
  border-radius: 999px;
  background: var(--blue); color: #fff; border: 0;
  box-shadow: 0 12px 24px rgba(22,58,140,.18);
  font-weight: 650;
}

.back-link {
  font-size: 14px; font-weight: 620;
  color: var(--muted);
}
.back-link:hover { color: var(--text) }


/* ----- 5. Typography ----- */

.eyebrow {
  margin: 0;
  font-size: 12px; line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 780;
  color: var(--blue);
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 740;
}

.section-copy {
  margin: 0; max-width: 860px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--muted);
}

.page-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 740;
}

.page-h2 {
  margin: 26px 0 10px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.legal-body p,
.legal-body li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.legal-body ul { padding-left: 20px }
.legal-body a { color: var(--blue); text-decoration: none }
.legal-body a:hover { text-decoration: underline }


/* ----- 6. Panels & Cards ----- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.meta {
  display: grid; gap: 12px;
  margin-top: 10px;
}
.meta strong { color: var(--text) }

.panel-footer {
  margin-top: 20px;
  font-size: 13px; line-height: 1.6;
  color: var(--muted);
}


/* ----- 7. Buttons ----- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.button.primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 14px 30px rgba(22,58,140,.18);
}
.button.secondary {
  background: rgba(22,58,140,.06);
  color: var(--blue);
  border: 1px solid rgba(22,58,140,.12);
}


/* ----- 8. Sections ----- */

.section { padding: 88px 0 0 }

.section-intro {
  display: grid; gap: 12px;
  margin-bottom: 30px;
}

.section-intro--split {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  align-items: end;
  gap: 24px;
}


/* ----- 9. Pillar Grid ----- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.pillar-kicker {
  margin: 0 0 14px;
  font-size: 12px; line-height: 1.25;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 780;
  color: var(--blue);
}
.pillar-title {
  margin: 0;
  font-size: clamp(28px, 2.25vw, 36px);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 730;
}
.pillar-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 16px;
}
.pillar-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px; align-items: start;
  font-size: 17px; line-height: 1.58;
  color: #28313d;
}
.pillar-list li::before {
  content: "";
  width: 8px; height: 8px;
  margin-top: 9px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(22,58,140,.08);
}

.pillar-list--numbered {
  counter-reset: step;
}
.pillar-list--numbered li::before {
  content: counter(step);
  counter-increment: step;
  width: 24px; height: 24px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-list--numbered li {
  grid-template-columns: 24px 1fr;
}


/* ----- 10. Contact Section ----- */

.contact-section { padding: 92px 0 0 }

.contact-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
  gap: 28px;
  align-items: start;
}

.contact-copy { display: grid; gap: 12px }

.contact-panel--slim {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.contact-panel--slim .contact-actions {
  flex-direction: column;
  margin-top: 0;
}

.contact-title {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 40px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 730;
}
.contact-text {
  margin: 0;
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.contact-actions {
  display: flex; gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.contact-note {
  margin: 0;
  font-size: 14px; line-height: 1.5;
  color: var(--muted-2);
}

.contact-card {
  background: rgba(248,250,252,.92);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  display: grid; gap: 14px;
}
.contact-list { display: grid; gap: 12px }
.contact-item { display: grid; gap: 5px }
.contact-label {
  font-size: 12px; line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 760;
  color: var(--blue);
}
.contact-value {
  font-size: 17px; line-height: 1.52;
  color: #27303b;
}


/* ----- 11. Site Footer ----- */

.site-footer { padding: 26px 0 10px }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footer-meta {
  font-size: 13px; line-height: 1.5;
  color: var(--muted-2);
}
.footer-links {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px; line-height: 1.5;
  color: var(--muted);
  font-weight: 560;
}
.footer-links a:hover { color: var(--text) }


/* ----- 12. Legal Sub-Pages ----- */

.legal-page main { padding: 28px 0 72px }


/* ============================================================
   13. Shared Responsive
   ============================================================ */

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle .bar + .bar { margin-top: 5px }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0 }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

@media (max-width: 1180px) {
  .contact-panel    { grid-template-columns: 1fr }
  .section-intro--split { grid-template-columns: 1fr }
}

@media (max-width: 980px) {
  .container         { width: min(calc(100% - 40px), var(--max)) }
  .pillar-grid       { grid-template-columns: 1fr; max-width: 520px }
  .pillar-card       { min-height: 0 }
}

@media (max-width: 820px) {
  .nav-toggle { display: block }

  .primary-nav {
    position: fixed;
    inset: 0; top: 0;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: rgba(249,250,251,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    font-size: 20px;
    font-weight: 680;
    color: var(--text);
  }
  .primary-nav .nav-cta {
    min-height: 50px;
    padding: 0 28px;
    font-size: 17px;
  }
  .nav-toggle { position: relative; z-index: 110 }
}

@media (max-width: 720px) {
  .site-nav          { padding: 12px 0 10px }
  .brand-link img,
  .site-nav img      { height: 50px; width: auto }
  .section           { padding-top: 76px }
  .pillar-card       { padding: 24px; border-radius: 24px }
  .contact-panel     { padding: 24px; border-radius: 24px }
  .contact-panel--slim { grid-template-columns: 1fr }
  .contact-panel--slim .contact-actions { flex-direction: row }
  .contact-actions   { flex-direction: column; align-items: stretch }
  .button            { width: 100% }
  .footer-row        { align-items: flex-start }
}
