@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap");

:root {
  --purple: #581D74;
  --blue: #3F589E;
  --ink: #171721;
  --muted: #74747f;
  --line: #d9dce8;
  --panel: #f2f5fb;
  --soft: #eef3f6;
  --teal: #b8d1d0;
  --white: #fff;
  --container: 1200px;
  --article: 760px;
  --display: Montserrat, "Segoe UI", Arial, sans-serif;
  --body: Roboto, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

p {
  line-height: 1.65;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 168px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 600;
}

.nav a {
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav a[aria-current="page"] {
  color: var(--purple);
  text-decoration-line: underline;
}

.nav a:focus-visible,
.menu-button:focus-visible,
.carousel-button:focus-visible,
.hero-slide:focus-visible {
  outline: 3px solid rgba(88, 29, 116, .35);
  outline-offset: 4px;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--display);
  font-weight: 800;
}

.section {
  padding: 76px 0;
}

.section-title {
  margin-bottom: 58px;
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.page-title {
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.article-title,
.article-body {
  width: min(var(--article), calc(100% - 48px));
  margin-inline: auto;
}

.article-title {
  margin-bottom: 46px;
}

.article-body ul {
  margin: 20px 0 0 28px;
  padding: 0;
  line-height: 1.55;
}

.article-body p + p {
  margin-top: 24px;
}

.article-body h2 {
  margin: 48px 0 18px;
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.14;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border: 3px solid var(--purple);
  color: var(--purple);
  background: transparent;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}

.arrow {
  font-size: 1.1em;
  margin-left: 6px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  max-width: 1260px;
  margin: 0 auto;
}

.article-image {
  position: relative;
  min-height: 260px;
  margin-bottom: 22px;
  overflow: hidden;
  background: #dce7ef;
}

.article-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 50%, rgba(255, 255, 255, .92) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, rgba(63, 88, 158, .58) 0 26%, transparent 27%),
    repeating-linear-gradient(45deg, rgba(63, 88, 158, .2) 0 2px, transparent 2px 15px);
}

.article-image-globe::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(63, 88, 158, .84) 0 32%, transparent 33%),
    radial-gradient(circle at 50% 50%, rgba(88, 29, 116, .22), transparent 55%),
    #102c45;
}

.article-image-earth::before {
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, .45), transparent 18%),
    radial-gradient(circle at 58% 52%, rgba(63, 88, 158, .78), transparent 35%),
    #162232;
}

.article-card h4 {
  margin-bottom: 18px;
  color: var(--purple);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.08;
}

.article-card p {
  margin-bottom: 16px;
  color: #111;
  font-size: 1rem;
}

.article-card-link {
  display: block;
}

.article-card-link > span {
  color: var(--purple);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}

.article-card-link:focus-visible {
  outline: 3px solid rgba(88, 29, 116, .35);
  outline-offset: 6px;
}

.site-footer {
  padding: 92px 0;
  color: var(--white);
  background: var(--purple);
}

.footer-grid {
  display: grid;
  grid-template-columns: .85fr .42fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}

.bpce-logo {
  display: inline-flex;
  width: 270px;
  max-width: 100%;
}

.bpce-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-contact {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, .7);
}

.footer-nav,
.footer-contact {
  min-height: 128px;
  display: grid;
  align-content: center;
}

.footer-nav {
  gap: 13px;
  padding-inline: 32px;
  border-left: 1px solid rgba(255, 255, 255, .7);
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 400;
}

.footer-contact h4,
.footer-contact h5 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: .98rem;
  line-height: 1.45;
  font-weight: 400;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  font-family: var(--display);
  font-weight: 400;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.map-link {
  display: inline-flex;
  align-items: center;
}

.linkedin-icon,
.map-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    padding-left: 0;
    border-left: 0;
  }

  .footer-nav {
    min-height: 0;
    padding-inline: 0;
    border-left: 0;
  }

  .footer-contact {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    width: 132px;
  }

  .nav {
    display: none;
  }

  .site-header.nav-open .nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    z-index: 10;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 40px rgba(20, 20, 30, .12);
  }

  .site-header.nav-open .nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .nav a:last-child {
    border-bottom: 0;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .section {
    padding: 54px 0;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .article-title,
  .article-body {
    width: min(100% - 28px, var(--article));
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 34px;
  }

  .bpce-logo {
    width: 220px;
  }
}
