:root {
  /*
  Spacing system (px)
  2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
  */

  /* 
  font sizes (px)
  10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
  */

  /* font weights */
  --fw-default: 300;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line heights */
  --lh-normal: 1;
  --lh-bigger: 1.05;
  --lh-default: 1.2;
  --lh-big: 1.5;

  /* Letter spacing */
  --ls-small: -0.5px;
  --ls-header: 0.75px;
  --ls-default: 1.1px;

  /* Paragraph */
  --pa-default: 1.6;
  --pa-large: 1.8;

  /* BORDER-RADIUS */

  --br-default: 5px;
  --br-medium: 10px;

  /* COLORS */

  --co-background: #f8f9fa;
  --co-background2: #f0f1f2;
  --co-white: #fff;

  /* grays */
  --co-gray-default: rgb(60, 60, 60);
  --co-gray-dark: #333;
  --co-gray-medium: #555;
  --co-gray-light: #888;

  /* primary */
  --co-primary: #256dda;
  --co-tint1: #fafbfc;
  --co-tint2: #fae5d3;
  --co-footer-text: #b4b4b4;
  --co-tint3: #eb984e;

  --co-wather: #00aeff;
  --co-gas: #eb984e;
  --co-heating: red;
  --co-alternative: green;

  /* Shades */
  --co-shade1: #295bff;
  --co-shade2: #042aa8;

  --co-section-light: #fafbfc;
  --co-section-dark: #f5f6f7;
}

* {
  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;
}

body {
  background-color: var(--co-background);

  color: var(--co-gray-default);

  font-family: "Nunito", sans-serif;

  font-size: 2rem;
  font-weight: var(--fw-default);
  line-height: var(--lh-default);

  /* Only works if there is nothing absolutely positioned in relation to body */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/**************************/
/* GENRAL REUSABLE COMPONENTS */
/**************************/

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

.section-light {
  background-color: var(--co-section-light);
}

.section-dark {
  background-color: var(--co-section-dark);
}

.container {
  /* 1140px */
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.container--padding-wide {
  padding: 0 10rem;
}

/*** GRIDS ***/

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 4.8rem;
  margin-bottom: 1.6rem;
}

.grid-bottom-margin {
  margin-bottom: 8rem;
}

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

.grid--2-cols-06-14 {
  grid-template-columns: 0.6fr 1.4fr;
}

.grid--2-cols-02-08 {
  grid-template-columns: 0.2fr 0.8fr;
}

.grid--2-cols-08-02 {
  grid-template-columns: 0.8fr 0.2fr;
}

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

.grid--3-cols-2-1 {
  grid-template-columns: 2fr 1fr;
}

.grid--3-cols-1-2 {
  grid-template-columns: 1fr 2fr;
}

.grid--3-cols-06-12-12 {
  grid-template-columns: 0.6fr 1.2fr 1.2fr;
}

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

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

.grid--top-v {
  align-items: flex-start;
}

/*** HEADINGS ***/

.head-1,
.head-2,
.head-3,
.head-4 {
  font-weight: var(--fw-mediumbold);
  color: var(--co-gray-dark);
  letter-spacing: var(--ls-header);
}

.head-1 {
  font-size: 5.2rem;
  line-height: var(--lh-bigger);
  margin-bottom: 5.2rem;
}

.head-2 {
  font-size: 4.4rem;
  line-height: var(--lh-big);
  margin-bottom: 4.4rem;
}

.head-2-small-margin {
  margin-bottom: 1rem;
}

.head-3 {
  font-size: 3rem;
  line-height: var(--lh-big);
  margin-bottom: 2.4rem;
}

.head-3-small-margin {
  margin-bottom: 0.5rem;
}

.head-4 {
  font-size: 2.4rem;
  line-height: var(--lh-big);
  margin-bottom: 1.2rem;
}

.subhead {
  display: block;
  font-size: 1.6rem;
  font-weight: var(--fw-semibold);
  color: var(--co-shade1);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  letter-spacing: var(--ls-small);
}

.normal-text {
  font-size: 2rem;
  font-weight: var(--fw-default);
  line-height: var(--lh-default);
  color: var(--co-gray-default);
  letter-spacing: var(--ls-default);
  margin-bottom: 1.6rem;
}

.italic-text {
  font-style: italic;
}

.bold-text {
  font-weight: var(--fw-bold);
}

.small-text {
  font-size: 1.4rem;
  font-weight: var(--fw-default);
  line-height: var(--lh-normal);
  color: var(--co-gray-default);
  margin-bottom: 1rem;
}

.white-text-color {
  color: var(--co-background);
}

.center-text {
  text-align: center;
  margin: 0 auto;
}

.mediumbold-text {
  font-weight: var(--fw-medium);
}

.normal-image-div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.normal-image {
  max-width: 100%;
  height: auto;
}

.image-100 {
  max-width: 100%;
  height: auto;
}

.image-80 {
  max-width: 80%;
  height: auto;
}

.image-50 {
  max-width: 50%;
  height: auto;
}

.image-shadow {
  border-radius: var(--br-default);
  box-shadow: 2px 2px 2px 2px rgba(20, 20, 20, 0.2);
}

.color-weather {
  color: var(--co-wather);
}

.color-gas {
  color: var(--co-gas);
}

.color-heating {
  color: var(--co-heating);
}

.color-alternative {
  color: var(--co-alternative);
}

.color-dontdo {
  color: var(--co-gray-medium);
}

/* ------------------------------------------------- */
/*  HEADER
/* ------------------------------------------------- */
.header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)), url(img/background.webp);
  background-size: cover;
  background-position: center;
  height: 50vh;
  background-attachment: fixed;
}

.logo {
  height: 10rem;
  width: auto;
  float: left;
  margin-top: 0.5rem;
}

.ya-big-title {
  position: absolute;
  width: 1140px;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.firstline {
  font-size: 6.2rem;
  font-weight: 600;
  line-height: var(--lh-bigger);
  letter-spacing: 1rem;
  text-transform: uppercase;
  color: var(--co-white);
  margin-bottom: 1rem;
}

.secondline {
  font-size: 3.2rem;
  font-weight: var(--fw-semibold);
  color: var(--co-white);
}

/*** LINK ***/

.link:link,
.link:visited {
  display: inline-block;
  color: var(--co-primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: var(--co-shade1);
  border-bottom: 1px solid transparent;
}

.invisible-link:link,
.invisible-link:visited {
  display: inline-block;
  color: var(--co-footer-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  line-height: var(--lh-big);
}

.invisible-link:hover,
.invisible-link:active {
  border-bottom: 1px solid transparent;
}

.social-links {
  list-style: none;
  float: left;
}

.social-links li {
  display: inline-block;
  margin-right: 20px;
}

.social-links li:last-child {
  margin-right: 0px;
}

.social-links li a:link,
.social-links li a:visited {
  text-decoration: none;
  border: 0;
  color: rgb(180, 180, 180);
  transition: color 0.2s;
}

.social-links li a:link,
.social-links li a:visited {
  font-size: 160%;
}

/*** FOOTER ***/
footer {
  background-color: var(--co-gray-dark);
  padding: 40px;
  font-size: 80%;
}

footer p {
  color: var(--co-footer-text);
  text-align: left;
  font-size: 80%;
  line-height: var(--lh-default);
}

.footer-connection-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--co-footer-text);
}

.logo-facebook:hover {
  color: #3b5998;
}

.logo-twitter:hover {
  color: #00aced;
}

.logo-google:hover {
  color: #dd4b39;
}

.logo-instagram:hover {
  color: #517fa4;
}

.logo-youtube:hover {
  color: #ff0000;
}

.logo-facebook,
.logo-twitter,
.logo-google,
.logo-instagram,
.logo-youtube {
  transition: color 0.8s;
}

.center-social-links {
  display: flex;
  justify-content: center;
}

.connection-info-head {
  font-weight: var(--fw-semibold);
  margin-bottom: 1rem;
}

.auto-margins {
  margin-left: auto;
  margin-right: auto;
}
