*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom Properties */

:root {
  --ff-primary: "Coustard", serif;
  --ff-secondary: "DM Sans", sans-serif;

  --fw-reg: 400;
  --fw-bold: 900;

  --clr-light: #fcfbfc;
  --clr-dark: #1b365c;
  --clr-blk: #1b1b1b;
  --clr-accent: #061d61;
  --clr-accent2: #4480a6;
  --clr-accent3: #f3ad0f;
  --clr-accent4: #fdc905;
  --clr-accent5: #bf9169;

  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;

  --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25),
    0.125em 0.125em 0.25em rgba(0, 0, 0, 0.15);
}

@media (min-width: 755px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 3.5rem;
    --fs-h3: 1.35rem;
    --fs-body: 1.125rem;
  }
}

@media (min-width: 954px) {
  :root {
    --fs-h1: 4.5rem;
    --fs-h2: 3.75rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.125rem;
  }
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--ff-primary);
  font-weight: var(--fw-reg);
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
  color: var(--clr-dark);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

.main-quote {
  font-family: var(--ff-primary);
  font-size: var(--fs-h3);
}

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

/* General Styling */

body {
  background: var(--clr-light);
  color: var(--clr-dark);
  font-family: var(--ff-secondary);
  font-size: var(--fs-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/*  Navigation  */

nav {
  background: var(--clr-accent);
  width: 100%;
}

nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
}

nav li {
  list-style: none;
  transition: all 200ms ease-in;
}

nav li:hover {
  background-color: var(--clr-accent4);
}

nav a {
  display: block; /*makes whole element clickable*/
  padding: 1rem;
  text-decoration: none;
  color: var(--clr-light);
  transition: all 200ms ease-in;
}

nav li:hover a {
  color: var(--clr-dark);
}

/*  Mobile Menu  */
.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(-45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  font-size: var(--fs-body);
}

.mobile-menu li {
  margin-bottom: 10px;
  display: block;
  width: 100%;
  padding: 10px;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--clr-light);
}

.mobile-menu li:hover {
  background-color: var(--clr-accent4);
  color: var(--clr-accent3);
}

/* Hero */
header {
  height: 75vh;
  background-image: url(assets/gym/gym-hero.jpg);
  background-color: var(--clr-light);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gradient {
  width: 100%;
  background: rgb(255, 255, 255);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  background-attachment: scroll;
  height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Main Area */

h1 {
  text-align: center;
  margin: 2rem 0;
}

.gym__home {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.text__1 {
  grid-column: 2/7;
}

.main__image1 {
  grid-column: 7/12;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: var(--bs);
}

.text__2 {
  grid-column: 7 /12;
}

.quote__main {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.main__image2 {
  grid-column: 2/7;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: var(--bs);
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5rem;
  background-color: var(--clr-accent);
  height: 3rem;
}

.footer__a {
  padding: 0 1rem;
  text-decoration: none;
  color: var(--clr-light);
}

.footer__a:hover {
  color: var(--clr-accent4);
}

/* Responsive */
@media only screen and (max-width: 700px) {
  nav {
    display: none;
  }

  #hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background-color: var(--clr-accent);
    width: 100%;
  }

  #hamburger-icon div {
    width: 44px;
    height: 4px;
    background-color: var(--clr-light);
    margin-bottom: 10px;
    transition: 0.4s;
  }
  #hamburger-icon {
    display: block;
  }
  .mobile-menu {
    text-align: center;
    margin: 0;
    padding: 0;
  }
}

@media only screen and (max-width: 600px) {
  .text__1 {
    grid-column: 3/11;
    grid-row: 3/4;
  }

  .main__image1 {
    grid-column: 3/11;
    grid-row: 1/2;
  }

  .text__2 {
    grid-column: 3/11;
    grid-row: 7/8;
  }

  .main__image2 {
    grid-column: 3/11;
    grid-row: 5/6;
  }
}

/* 

KHC

*/

.khc__t1 {
  grid-column: 7/12;
  grid-row: 1/2;
}

.khc__image1 {
  grid-column: 2/6;
  grid-row: 1/2;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: var(--bs);
}

.khc__t2 {
  grid-column: 7/12;
  grid-row: 3/4;
}

.khc__image2 {
  grid-column: 2/6;
  grid-row: 3/4;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: var(--bs);
}

@media only screen and (max-width: 600px) {
  .khc__t1 {
    grid-column: 3/11;
    grid-row: 3/4;
  }

  .khc__image1 {
    grid-column: 3/11;
    grid-row: 1/2;
  }

  .khc__t2 {
    grid-column: 3/11;
    grid-row: 7/8;
  }

  .khc__image2 {
    grid-column: 3/11;
    grid-row: 5/6;
  }
}

/* 

Mile

*/
.mile__t1 {
  grid-column: 7/12;
  grid-row: 1/2;
}

.signup__form {
  color: var(--clr-dark);
  transition: color 125ms ease-out;
}

.signup__form:hover {
  color: var(--clr-accent4);
}

.mile__image1 {
  grid-column: 2/6;
  grid-row: 1/2;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: var(--bs);
}

.mile__h2 {
  text-align: center;
}

.mile__q {
  font-weight: 900;
}

.mile__t2 {
  grid-column: 2/12;
  grid-row: 3/4;
}

@media only screen and (max-width: 600px) {
  .mile__t1 {
    grid-column: 3/11;
    grid-row: 3/4;
  }

  .mile__image1 {
    grid-column: 3/11;
    grid-row: 1/2;
  }

  .mile__t2 {
    grid-column: 3/11;
    grid-row: 5/6;
  }
}

/* 

Olympics

*/
.oly__t1 {
  grid-column: 7/12;
  grid-row: 1/2;
}

.oly__image1 {
  grid-column: 2/6;
  grid-row: 1/2;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: var(--bs);
}

.oly__t2 {
  grid-column: 2/12;
  grid-row: 3/4;
  margin-top: 10rem;
}

.oly__h2 {
  text-align: center;
}

.oly__q {
  font-weight: 900;
}

@media only screen and (max-width: 600px) {
  .oly__t1 {
    grid-column: 3/11;
    grid-row: 3/4;
  }

  .oly__image1 {
    grid-column: 3/11;
    grid-row: 1/2;
  }

  .oly__t2 {
    grid-column: 3/11;
    grid-row: 5/6;
  }
}

/* 

Attire

*/

.h1__attire {
  margin-bottom: 2rem;
}

.att__home {
  padding: 0 4em;
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;
}
.att__t1 {
  max-width: 1200px;
}

.att__img {
  margin-bottom: 4rem;
}

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

/* 

About

*/
.abt__image1 {
  grid-column: 5/9;
  grid-row: 1/2;
  width: 100%;
  height: auto;
  max-width: 500px;
  box-shadow: var(--bs);
}

.abt__t1 {
  grid-column: 3/11;
  grid-row: 3/4;
}

/* 

Contact

*/
.main-contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.contact {
  grid-area: 1/7/2/11;
}

.input {
  color: var(--clr-dark);
  border-radius: 5px;
  border: 2px solid var(--clr-dark);
  transition: all 0.3s;
  padding: 15px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  outline: 0;
}

.input:focus {
  border: 2px solid var(--clr-accent2);
}

textarea {
  height: 150px;
  line-height: 150%;
  resize: vertical;
}

[type="submit"] {
  font-family: var(--ff-secondary);
  width: 100%;
  background-color: var(--clr-accent3);
  border-radius: 5px;
  font-size: 2rem;
  padding: 10px 0 10px 0;
  transition: all 0.3s;
  margin-top: -4px;
  font-weight: 700;
}

[type="submit"]:hover {
  background: var(--clr-accent4);
}

.contact-image {
  grid-area: 1/2/2/6;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-text {
  grid-area: auto/3/auto/11;
}

@media only screen and (max-width: 900px) {
  .contact {
    grid-area: 2/2/3/12;
  }

  .contact-image {
    grid-area: 1/2/2/12;
    margin-bottom: 5rem;
  }
}

/*

Thank you Page

*/

.main-thx {
  display: grid;
  grid-template-columns: repeat(12, 1fr);

  justify-content: center;
  align-items: center;
  min-height: 100vh;

  margin-top: 5rem;
  text-align: center;
}

.h2-thx {
  grid-area: 1/3/2/11;
}

.h3-thx {
  grid-area: 2/3/2/11;
}

.thx-a {
  text-decoration: none;
  color: var(--clr-dark);
}

.thx-a:hover {
  color: var(--clr-accent5);
}
