/**
 * Formex Base Styles
 * Reset, Typography, and Base Elements
 */

/* ===========================
   GOOGLE FONTS IMPORT
   =========================== */

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

/* ===========================
   BASE TYPOGRAPHY
   =========================== */

body {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.625;
  color: rgb(0, 1, 5);
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   HEADINGS
   =========================== */

h1, h2, h3, h4, h5, h6 {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: rgb(0, 1, 5);
  margin: 0 0 1rem 0;
  padding: 0;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.875rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.875rem;
  }
}

/* ===========================
   DISPLAY HEADINGS
   =========================== */

.display-1 {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgb(0, 1, 5);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .display-1 {
    font-size: 3.75rem;
  }
}

.display-2 {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .display-2 {
    font-size: 3rem;
  }
}

/* ===========================
   PARAGRAPHS & TEXT
   =========================== */

p {
  margin: 0 0 1rem 0;
  line-height: 1.625;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.625;
  color: rgb(0, 1, 5);
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.25rem;
  }
}

/* ===========================
   TAGLINE
   =========================== */

.tagline {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(0, 1, 5);
}

/* ===========================
   LINKS
   =========================== */

a {
  color: rgb(0, 1, 5);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: rgb(0, 1, 5);
}

/* ===========================
   LISTS
   =========================== */

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===========================
   IMAGES
   =========================== */

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===========================
   CONTAINER
   =========================== */

.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===========================
   SECTIONS
   =========================== */

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section--white {
  background-color: rgb(255, 255, 255);
}

.section--grey-light {
  background-color: rgb(245, 245, 245);
}

.section--off-white {
  background-color: rgb(250, 250, 250);
}

.section--grey-dark {
  background-color: rgb(90, 93, 91);
  color: rgb(255, 255, 255);
}

.section--lg {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section--lg {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.section--grey-dark h1,
.section--grey-dark h2,
.section--grey-dark h3,
.section--grey-dark h4,
.section--grey-dark h5,
.section--grey-dark h6 {
  color: rgb(255, 255, 255);
}

/* ===========================
   SECTION HEADER
   =========================== */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .tagline {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .lead {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section--grey-dark .section-header h2,
.section--grey-dark .section-header .lead {
  color: rgb(255, 255, 255);
}

.section--grey-dark .section-header .tagline {
  color: rgb(255, 255, 255);
}

/* ===========================
   GRID
   =========================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===========================
   TEXT ALIGNMENT
   =========================== */

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ===========================
   TEXT CONTENT WIDTHS
   =========================== */

.text-content {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.text-content--narrow {
  max-width: 48rem;
}

.text-content--medium {
  max-width: 64rem;
}

.text-content--wide {
  max-width: 80rem;
}

/* ===========================
   BACKGROUND PATTERNS
   =========================== */

.section--pattern-squares-bottom-grey-left {
  position: relative;
  overflow: hidden;
}

.section--pattern-squares-bottom-grey-left::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 378px;
  width: 606px;
  background-image: url('../images/patterns/padrao-quadrados-para-fundo-cinza.svg');
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: left bottom;
  transform: rotate(90deg) scaleX(-1);
  transform-origin: bottom left;
  pointer-events: none;
  z-index: 0;
}

.section--pattern-squares-bottom-grey-left > * {
  position: relative;
  z-index: 1;
}

.section--pattern-squares-bottom-white-right {
  position: relative;
  overflow: hidden;
}

.section--pattern-squares-bottom-white-right::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  height: 378px;
  width: 606px;
  background-image: url('../images/patterns/padrao-quadrados-para-fundo-branco.svg');
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: right bottom;
  pointer-events: none;
  z-index: 0;
}

.section--pattern-squares-bottom-white-right > * {
  position: relative;
  z-index: 1;
}

.section--pattern-squares-bottom-white-top-left {
  position: relative;
  overflow: hidden;
}

.section--pattern-squares-bottom-white-top-left::after {
  content: '';
  position: absolute;
  top: -7rem;
  left: 0;
  height: 378px;
  width: 606px;
  background-image: url('../images/patterns/padrao-quadrados-para-fundo-branco.svg');
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: left top;
  transform: scaleY(-1);
  pointer-events: none;
  z-index: 0;
}

.section--pattern-squares-bottom-white-top-left > * {
  position: relative;
  z-index: 1;
}

#cta-section.section--pattern-squares-bottom-white-right::before {
  bottom: 0;
}
