/*
---  TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Low: 300
Default: 400
Medium: 500
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6
Large: 1.8

- Letter spacing
-0.5px
0.75px

---  SHADOWS

0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);

---  BORDER-RADIUS

Default: 9px
Medium: 11px

---  WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

:root {
  --background: #e6eff0;
  --lightdark: #262626;
  --portgrey: #e3e3e3;
  --lightgrey: #e5eaea;
  --text: #333333;
  --lighttext: #e6eff0;
  --petrol: #00606b;
  --petroldark: rgb(0, 48, 53);
  --accred: #ef2545;
  --accyellow: rgb(229, 243, 61);
}

/* *,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

@font-face {
  font-family: "Glyphter";
  src: url("../fonts/Glyphter.eot");
  src: url("../fonts/Glyphter?#iefix") format("embedded-opentype"),
    url("../fonts/Glyphter.woff") format("woff"),
    url("../fonts/Glyphter.ttf") format("truetype"),
    url("../fonts/Glyphter.svg#Glyphter") format("svg");
  font-weight: normal;
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */

  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
  overflow-x: hidden;

  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: var(--petrol);
  background-color: var(--background);
}

/**************************/
/* GENRAL REUSABLE COMPONENTS */
/**************************/

.container {
  /* 1140px */
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.container-wide {
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;

  position: relative;
  overflow: hidden;
}

.grid {
  display: grid;
}

.gap {
  column-gap: 6.4rem;
  row-gap: 9.6rem;
}
.low-gap {
  column-gap: 3.6rem;
  row-gap: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--2-cols40 {
  grid-template-columns: 2fr 3fr;
}
.grid--2-cols60 {
  grid-template-columns: auto 40%;
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}
.grid--3-cols-book {
  grid-template-columns: repeat(3, 1fr);
}

.grid--3-cols-footer {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--center-v {
  align-items: center;
}

.light {
  background-color: var(--petrol);
}
.dark {
  background-color: var(--petroldark);
}

.section-heading {
  font-size: 7.4rem;
  font-family: "Roboto Serif";
  font-weight: 600;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 500;
  color: var(--petroldark);
}

.heading-primary {
  font-size: 5.2rem;
  letter-spacing: 8px;
  font-family: "Roboto Serif";
  line-height: 1.05;
  /* margin-bottom: 3.2rem; */
  align-self: center;
  text-align: center;
  padding-bottom: 2rem;
}
.heading-primary span {
  background-color: var(--background);
}

.heading-primary em {
  font-family: "Roboto", sans-serif;
  font-size: 3.6rem;
  font-weight: 400;
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: 5px;
}

.text-dark {
  color: var(--text);
}

hr {
  border: 0;
  margin: 1.6rem auto 8.2rem auto;
  max-width: 30%;
  background-position: 50%;
  box-sizing: border-box;
}
.line {
  height: 6px;
  background-image: radial-gradient(
    closest-side,
    var(--accred),
    rgba(128, 128, 128, 0) 100%
  );
  margin-bottom: 2rem;
}

.heading-secondary {
  font-size: 3.4rem;
  line-height: 1.2;
  letter-spacing: 0.8px;
  font-family: "Roboto Slab", serif;
  color: var(--lightergrey);
  margin-bottom: 9.6rem;
}

.heading-tertiary {
  font-size: 3rem;
  letter-spacing: 0.8px;
  font-family: "Roboto Slab", serif;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.subheading {
  font-size: 1.6rem;
  display: block;
  font-weight: 500;
  color: var(--petrol);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
  text-align: center;
}

.btn,
.btn:link,
.btn:visited {
  display: inline-block;

  text-decoration: none;
  font-size: 2rem;
  font-weight: 500;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;

  /* Only necessary for .btn */
  border: none;
  cursor: pointer;
  font-family: inherit;

  /* Put transition on original "state" */
  /* transition: background-color 0.3s; */
  transition: all 0.3s;
}

.btn--full:link,
.btn--full:visited {
  background-color: var(--background);
  color: var(--lightergrey);
}

.btn--full:hover,
.btn--full:active {
  background-color: var(--lightdark);
}

.btn--outline:link,
.btn--outline:visited {
  background-color: #fff;
  color: #555;
}

.btn--outline:hover,
.btn--outline:active {
  background-color: aliceblue;

  /* border: 3px solid #fff; */

  /* Trick to add border inside */
  box-shadow: inset 0 0 0 3px #fff;
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 2rem; /* Place the button at the bottom of the page */
  right: 3rem; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--accred); /* Set a background color */
  color: var(--lighttext); /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 0.5rem; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 1.8rem; /* Increase font size */
  height: 5rem;
  width: 5rem;
}

#myBtn:hover {
  background-color: var(--petroldark); /* Add a dark-grey background on hover */
}

.up {
  width: 4rem;
  height: 4rem;
}

.link:link,
.link:visited {
  font-size: 1.8rem;
  display: inline-block;
  color: var(--accred);
  text-decoration: none;
  /* border-bottom: 1px solid currentColor; */
  padding-bottom: 2px;
  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: var(--petrol);
  /* border-bottom: 1px solid transparent; */
}

.section {
  scroll-margin-top: 8rem;
  /* margin-top: 10vh;
  padding: 3.2rem 0; */
}
.section-marg {
  /* margin-top: 10vh; */
  /* padding: 3.2rem 0; */
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.list-item {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  line-height: 1.2;
  text-align: start;
}

.list-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accred);
  flex: 0 0 3rem;
  overflow: hidden;
  white-space: nowrap;
}

*:focus {
  outline: none;
  /* outline: 4px dotted rgb(239, 37, 69, 0.5); */
  /* outline-offset: 8px; */
  box-shadow: 0 0 0 0.8rem rgb(239, 37, 69, 0.5);
}

/* HELPER/SETTINGS CLASSES */
.margin-right-sm {
  margin-right: 1.6rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem !important;
}

.center-text {
  text-align: center;
}

strong {
  font-weight: 500;
}

[data-aos] {
  pointer-events: none;
}
.aos-animate {
  pointer-events: auto;
}
.aos-init[data-aos][data-aos].aos-animate {
  transform: unset;
}
.mltr {
  font-size: 2.4rem;
}

.mltr span {
  unicode-bidi: bidi-override;
  direction: rtl;
}
.nltr {
  unicode-bidi: bidi-override;
  direction: rtl;
}
