/*

--- 01 TYPOGRAPHY SYSTEM ---

- Font sizes (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 
Medium: 1.2
Paragraph default: 1.6
Large: 1.8

- Letter spacing:
-0.5px
0.75px

--- 02 COLOURS ---

- Primary: #e67e22
- Tints: 
  #fdf2e9
  #fae5d3
  #eb984e
- Shades: 
  #cf711f 
  #45260a
- Accents:
- Greys: #333 #555 #6f6f6f #767676
- Meal card: #51cf66

--- 05 SHADOWS ---
- box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);

--- 06 BORDER RADIUS ---

- Default: 9px;
- Cards: 11px;

--- 07 WHITESPACE ---

- Spacing systems(px):
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */
  /* Percentage of user's browser font-size setting  */
  font-size: 62.5%;

  /* Only works if there's nothing 
  absolutely positioned in relation
  to body */
  overflow-x: hidden;

  /* Only works with Chrome 
  and Firefox, not Safari and Edge */
  /* scroll-behavior: smooth; */
}

body {
  color: #555;
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1;
  font-family: "Rubik", sans-serif;
}

/*************************/
/* GENERAL REUSABLE COMPONENTS */
/*************************/

strong {
  font-weight: 500;
}

.container {
  /* 1140px after subtract padding */
  margin: 0 auto;
  padding: 0 3.2rem;
  max-width: 120rem;
}

.grid {
  display: grid;
  row-gap: 9.6rem;
  column-gap: 6.4rem;
  /* margin-bottom: 9.6rem; */
}

/* .grid:last-child {
  margin-bottom: 0;
} */

.grid:not(:last-child) {
  margin-bottom: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid--5-cols {
  grid-template-columns: repeat(5, 1fr);
}

.grid--center-vert {
  align-items: center;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  color: #333;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.heading-primary {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 9.6rem;
}

.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.subheading {
  color: #cf711f;
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.btn,
.btn:link,
.btn:visited {
  display: inline-block;
  padding: 1.6rem 3.2rem;
  font-size: 2rem;
  font-weight: 600;
  /* Put the transition property in the original "state" */
  /* to transition between 2 values using an animation */
  transition: all 0.3s;
  border-radius: 9px;
  text-decoration: none;

  /* Only for .btn (CTA section) */
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--full:link,
.btn--full:visited {
  color: #fff;
  background-color: #e67e22;
}

.btn--full:hover,
.btn--full:active {
  background-color: #cf711f;
}

.btn--outline:link,
.btn--outline:visited {
  color: #555;
  background-color: #fff;
}

.btn--outline:hover,
.btn--outline:active {
  /* border: 3px solid #fff; */

  /* Trick: to add border inside */
  box-shadow: inset 0 0 0 3px #fff;
  background-color: #fdf2e9;
}

.btn-form {
  color: #fdf2e9;
  padding: 1.2rem;
  align-self: end;
  background-color: #45260a;
}

.btn-form:hover {
  color: #555;
  background-color: #fff;
}

.link:link,
.link:visited {
  color: #e67e22;
  display: inline-block;
  transition: all 0.3s;
  /* Better to use "currentColor" so that whenever we 
  change the color of the link it matches instantly */
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  text-decoration: none;
}

.link:hover,
.link:active {
  color: #cf711f;
  /* "transparent" is as same as #fff */
  border-bottom: 1px solid transparent;
}

.list {
  gap: 1.6rem;
  display: flex;
  list-style: none;
  flex-direction: column;
}

.list-item {
  gap: 1.6rem;
  display: flex;
  font-size: 1.8rem;
  line-height: 1.2;
  align-items: center;
}

.list-icon {
  color: #e67e22;
  width: 3rem;
  height: 3rem;
}

*:focus {
  outline: none;
  /* outline: 4px dotted #e67e22;
  outline-offset: 8px; */
  box-shadow: 0 0 0 0.8rem rgba(230, 125, 34, 0.5);
}

/*************************/
/* HELPER CLASSES */
/*************************/

.margin-right-sm {
  margin-right: 1.6rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem !important;
}

.center-text {
  text-align: center;
}
