/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*--- 01 TYPOGRAPHY SYSTEM

- Font size (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Paragraph default: 1.6

---02 COLORS

- Primary:#e67e22 , #606c38
- Tints: background-color: #fdf2e9;
- Shades: #cf711f
- Accents
- Greys
#555
#333
#ddd

--- 03 IMAGES (from Unsplash) and faces from UI Faces

--- 04 ICONS (not needed as yet)

--- 05 SHADOWS (not needed as yet)

--- 06 BORDER-RADIUS (not needed as yet)

Default: 9px

--- 07 WHITE SPACE

- Spacing (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 

*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;

  /* for mobile nav. Also this only works if the header is positioned relatively. Also only restricts scrolling left and right on the x axis*/
  overflow-x: hidden;
}

/**********************/
/*GENERAL REUSABLE COMPONENTS*/
/**********************/

/* Centering within viewport */
.container {
  /* convention is usually 120rem or 1140px */
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 9.6rem;
}

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

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

.grid--center-v {
  align-items: center;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.heading-primary {
  font-size: 5.2rem;
  color: #333;
  margin-bottom: 3.2rem;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 9.6rem;
}

.heading-tertiary {
  font-size: 3.6rem;
  margin-bottom: 3rem;
}

#link {
  font-size: 3.6rem;
  line-height: 1.2;

  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#link:hover,
#link:focus {
  color: #e67e22;
}

.sub-heading {
  /* block because it is a span element */
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: #606c38;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
}

.heading-primary {
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #333;
  margin-bottom: 3.2rem;
}

/* ORIGINAL STATE */
.btn:link,
.btn:visited {
  display: inline-block;
  background-color: #606c38;
  font-weight: 600;
  color: #fff;

  text-decoration: none;
  font-size: 2rem;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;

  /* MAKE THE BUTTONS ANIMATED A LITTLE BIT WHEN HOVERING */
  transition: background-color 0.3s;
}

.btn:hover,
.btn:active {
  background-color: #e67e22;
}

/* HELPER / SETTINGS CLASSES */

.margin-right-sm {
  /* A GAP BETWEEN THE TWO BUTTONS */
  margin-right: 1.6rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem;
}

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

.bold-text {
  display: inline-block;
  font-weight: 600;
}
