:root {
  --primary-color: #648de5;
  --accent-color: #dee6f4;
  --text-color: #2a2a3c;
  --background-color: #f3f4f7;
  --heading-font-family: "Montserrat", sans-serif;
  --body-font-family: "Google Sans", sans-serif;
}

/* HTML primary classes */

body {
  padding: 0 40px;
  background-image: radial-gradient(
    color-mix(in srgb, var(--text-color) 25%, transparent) 1px,
    var(--background-color) 1px
  );
  background-size: 20px 20px;
  background-attachment: fixed;
  color: var(--text-color);
  font-family: var(--body-font-family);
}

a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 20px;
}

p {
  font-size: 20px;
  text-align: justify;
  margin: 12px 0;
}

i {
  display: block;
  padding: 8px 0 32px 0;
  font-size: 20px;
}

b {
  font-size: 20px;
}

ul,
ol {
  margin-block-start: 0;
  margin-block-end: 0;
}

ol > li {
  font-weight: bold;
  font-family: var(--heading-font-family);
}

ol > li:not(:first-child) {
  margin-top: 20px;
}

li {
  font-size: 20px;
  margin: 4px 0;
}

/* Table section */
table {
  font-size: 20px;
  border-collapse: collapse;
  width: 100%;
}

th {
  font-family: var(--heading-font-family);
}

td,
th {
  border: 1px solid var(--text-color);
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: var(--accent-color);
}

/* Shared properties */

.divider {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  margin: 40px 0;
}

/* Header and Footer section */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  img {
    width: 60px;
    height: 60px;
  }
}

.footer {
  text-align: center;
  p {
    text-align: center;
  }
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  a:nth-child(2) {
    margin-left: 8px;
    margin-right: 8px;
  }
}

/* CTA/Buttons section */

.email-cta {
  display: flex;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
  background-color: var(--accent-color);
  span {
    padding: 8px 12px;
    font-size: 20px;
    color: var(--primary-color);
    font-family: var(--body-font-family);
  }
  img {
    background-color: var(--primary-color);
    width: 28px;
    height: 28px;
    padding: 8px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }
}

.secondary-cta {
  display: flex;
  a:first-of-type {
    margin-right: 8px;
  }
}

.main-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
}

.cta-bg {
  display: flex;
  width: 28px;
  height: 28px;
  background-color: var(--accent-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 8px;
}

.case-study-link {
  align-self: end;
  color: var(--primary-color);
  font-weight: bold;
}

/* Headings section */

.heading-1 {
  font-size: 40px;
  font-family: var(--heading-font-family);
  margin: 40px 0;
  span {
    font-weight: bolder;
  }
}

.heading-2 {
  margin: 20px 0;
  span {
    font-size: 32px;
    font-family: var(--heading-font-family);
    background-color: var(--accent-color);
    padding: 4px 8px;
  }
}

.heading-3 {
  font-size: 24px;
  font-family: var(--heading-font-family);
  margin: 20px 0;
}

/* Cards section */

.section-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.caps-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  padding: 0 20px;
}

.chips-list {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  p {
    margin: 12px 0;
  }
}

.section-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sub-section-2 {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  border: 2px solid var(--primary-color);
  padding: 20px;
  box-shadow: 4px 4px var(--primary-color);
}

.sub-section-2:nth-child(2) {
  margin: 0 12px;
}

.card-logo {
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  border: 1px solid var(--primary-color);
  box-shadow: 4px 4px var(--primary-color);
  padding: 4px;
}

/* Chips section */

.chip-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: start;
}

.chip {
  font-size: 20px;
  white-space: nowrap;
  border: 1px solid var(--primary-color);
  border-radius: 16px;
  padding: 4px 12px;
  background-color: var(--accent-color);
}

.case-study-chips-wrapper {
  margin: 20px 0 40px 0;
}

/* Navigation section */
.navigation {
  display: flex;
  justify-content: space-between;
  a {
    color: var(--primary-color);
    font-weight: bold;
  }
}

/* CSS for small screen size */
@media screen and (max-width: 1024px) {
  body {
    padding: 0 20px;
  }

  i {
    padding: 8px 0 12px 0;
  }

  /* CSS for handling capabilities cards */
  .section-3 {
    grid-template-columns: 1fr;
  }

  .caps-card {
    grid-template-rows: auto;
    grid-row: auto;
    padding: 0;
  }

  /* CSS for handling case study cards */
  .section-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sub-section-2 {
    grid-template-rows: auto;
    grid-row: auto;
  }

  .sub-section-2:nth-child(2) {
    margin: 0;
  }

  /* CSS for chips on case study page */
  .case-study-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* CSS for handling navigation */
  .navigation {
    flex-direction: column;
    align-items: center;
    a:nth-child(2) {
      padding: 12px 0;
    }
  }
}
