body {
  overflow-x: hidden;
}

.hero {
  z-index: 1;
  position: relative;
  display: grid;
  background-color: #555;
  padding: max(8em, 10vw) 0;
}

.hero .content {
  display: grid;
  margin: auto;
  text-align: center;
  grid-row-gap: 2em;
}

.hero h1 {
  font-family: var(--prif);
  color: rgb(var(--pri));
  font-size: 5.5em;
  line-height: 1em;
  font-weight: 200;
  text-shadow: 0 0 10px #0008;
  opacity: 0;
}

.hero h2 {
  text-transform: uppercase;
  color: #fff;
  font-size: 2.3em;
  line-height: 1em;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0;
}

.hero a {
  color: #fff;
  background-color: rgb(var(--pri));
  margin: auto;
  padding: .7em 2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .8px;
  transition: transform .3s;
  opacity: 0;
}

.hero a:hover {
  transform: scale(.95);
}

.hero .controls {
  position: absolute;
  display: grid;
  grid-auto-flow: column;
  grid-column-gap: .5em;
  bottom: 2em;
  left: 50%;
  transform: translateX(-50%);
}

.hero .controls button {
  width: .8em;
  height: .8em;
  border-radius: 50%;
  border: 0;
  outline: 0;
  background-color: #ccc;
  cursor: pointer;
  transition: color .5s, transform .5s;
}

.hero .controls button.active {
  background-color: #fff;
  transform: scale(1.1);
}

.hero .viewport {
  z-index: -1;
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero .carousel {
  display: grid;
  position: absolute;
  top: 0;
  left: 0%;
  width: 300%;
  height: 100%;
  grid-template-columns: repeat(3, 1fr);
  transition: left 1s ease-in-out;
}

.hero .carousel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0008;
}

.hero .carousel img {
  height: 100vh;
  width: 100%;
  object-fit: cover;
}

section+section:not(.hero) {
  margin: 3em auto 0;
  max-width: 1200px;
}

section:not(.hero) h2 {
  color: rgb(var(--pri));
  font-family: var(--prif);
  text-align: center;
  margin: auto;
  font-size: 1.6em;
  font-weight: 300;
  line-height: 2em;
  opacity: 0;
}

section:not(.hero) > p {
  font-size: .8em;
  margin: .3em auto 0;
  padding: 0 .5em;
  text-align: center;
  max-width: 600px;
  opacity: 0;
}

.delivery-method ul {
  display: flex;
  justify-content: center;
  column-gap: 2em;
  list-style-type: none;
  margin: 3em auto 0;
}

.delivery-method li {
  position: relative;
  opacity: 0;
}

.delivery-method span {
  margin: auto 0 auto 0;
  font-family: var(--prif);
  opacity: .75;
}

.delivery-method a {text-decoration: none;}

.delivery-method img {
  height: 7em;
  transition: transform .2s;
}

.delivery-method a:hover img {
  transform: scale(.95);
}

.delivery-method p {
  text-align: center;
  margin: 1em auto;
  color: #000;
}

.varied-menu ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2em;

  list-style-type: none;
  margin: 3em auto 0;
  padding: 0 2em;
}

.varied-menu li {
  flex-grow: 1;
  flex-basis: 15em;
  opacity: 0;
}

.varied-menu a {text-decoration: none;}

.varied-menu img {
  width: 100%;
  max-height: 10em;
  object-fit: cover;
  transition: transform .2s;
}

.varied-menu a:hover img {
  transform: scale(.95);
}

.varied-menu p {
  text-align: center;
  margin: 1em auto;
  color: #000;
}

.customisability {
  display: grid;
}

.customisability .strip {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  position: relative;
  padding: 3em;
  margin: 3em 0 0;
  grid-column-gap: 3em;
  grid-row-gap: 2em;
  z-index: 1;
}

.customisability .strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background-image: linear-gradient(#0004,#0004), url('../imgs/carousel2.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.customisability .strip div {
  display: grid;
  position: relative;
  text-align: center;
  padding: 2em;
  box-shadow: 0 0 10px #0004;
  background-color: rgba(var(--pri),0.2);
  color: #fff;
  opacity: 0;
}

.customisability img {
  margin: 1em auto;
  max-width: 100%;
  max-height: 8em;
}

.customisability p {
  font-size: 1em;
}

@media (max-width: 900px) {
  .customisability .strip {
    grid-template-columns: 1fr;
    padding: 2em;
  }
}

@media (max-width: 600px) {
  .delivery-method ul {
    flex-direction: column;
  }
  .delivery-method li {
    margin: 0 auto;
  }
  .delivery-method img {
    margin: 0 auto;
  }
  .delivery-method p {
    margin: 1em auto 0;
  }
  .delivery-method span {
    margin: 1em auto;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 4.5em;
  }
  .hero h2 {
    font-size: 1.2em;
    line-height: 1.5em
  }
  .contact th {
    font-size: .8em;
  }
  .contact td {
    font-size: .6em;
  }
}
