/* ----------------------- CSS BY NAME ------------------------- */
/* Author: Sebastian Meza-Torres 
   Course: GIT337 */

/* ----------------------- IMPORTED FONTS ------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kavoon&display=swap");

/* ------------------------- CSS RESET ---------------------------- */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ----------------------- ROOT VARIABLES ------------------------- */
:root {
  --teal: #4ca7c0;
  --purple: #484fb7;
  --lavender: #6b8fe7;
  --yellow: #e9bb57;
  --pink: #d9526f;
  --dark-gray: #1e1e1e;
  --white: #ffffff;
}

/* -------------- GLOBAL STYLES (Mobile First/Small) -------------- */
html {
  background-color: var(--purple);
}

h1,
h2 {
  font-family: Kavoon;
}

p,
h3,
h4,
nav h2,
li,
table,
#first-step a,
small {
  font-family: Inter;
}

h1 {
  font-size: 3em;
}

nav h2,
h3 {
  font-size: 1.5em;
}

h2 {
  font-size: 2em;
}

h4 {
  font-size: 1.15em;
}

header {
  color: var(--white);
  text-align: center;
}

header h1 {
  background-color: var(--lavender);
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  position: absolute;
  padding: 70px 0 40px 0;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

header p {
  background-color: var(--pink);
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  max-width: 97%;
  margin: auto auto 50px auto;
  position: relative;
  padding: 180px 0 5px 0;
  font-style: italic;
  color: transparent;
  z-index: 1;
}

header p::before {
  content: "Unlock your full potential";
  visibility: visible;
  position: absolute;
  color: var(--white);
  text-align: center;
  bottom: 5px;
  right: 0;
  left: 0;
}

nav ul {
  display: none;
}

nav h2 {
  color: var(--dark-gray);
  background-color: var(--yellow);
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 15px;
  border-bottom-left-radius: 15px;
}

nav h2:hover {
  color: var(--white);
}

main {
  line-height: 25px;
}

#services,
#pricing {
  margin: 10px;
}

h2 {
  color: var(--white);
  margin: 0 0 10px 0;
}

h3 {
  color: var(--yellow);
  font-weight: bold;
}

.service {
  background-color: var(--white);
  margin: 15px;
  border-radius: 15px;
  padding: 20px;
}

h4 {
  color: var(--purple);
  font-weight: bold;
  margin: 0 0 5px 0;
}

#choose-us,
#first-step {
  background-color: var(--pink);
  padding: 15px;
}

#choose-us ul {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  font-weight: bold;
  margin-top: 20px;
}

#choose-us ul li {
  padding: 15px;
  text-align: center;
  border-radius: 15px;
}

#choose-us ul li:nth-child(1) {
  background-color: var(--teal);
  margin: 0 7.5px 7.5px 0;
}

#choose-us ul li:nth-child(2) {
  background-color: var(--lavender);
  margin: 0 0 7.5px 7.5px;
}

#choose-us ul li:nth-child(3) {
  background-color: var(--yellow);
  margin: 7.5px 7.5px 0 0;
}

#choose-us ul li:nth-child(4) {
  background-color: var(--white);
  margin: 7.5px 0 0 7.5px;
}

table {
  margin: 10px auto 10px auto;
}

table,
th,
td {
  border: 2px solid var(--yellow);
  padding: 10px;
}

th {
  background-color: var(--yellow);
  text-transform: uppercase;
  font-weight: bold;
}

td {
  background-color: var(--white);
}

#first-step p {
  color: var(--white);
}

#first-step a {
  background-color: var(--white);
  display: block;
  max-width: 85%;
  margin: 10px auto auto auto;
  text-align: center;
  padding: 15px;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 15px;
  box-shadow: 5px 5px 5px var(--dark-gray);
}

#first-step a:visited {
  color: black;
  text-decoration: none;
}

footer {
  background-color: var(--lavender);
  margin-bottom: 50px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-size: smaller;
  color: var(--white);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

footer a:visited {
  color: var(--white);
}

/* --------------------- Medium Screen Media Query --------------------- */
@media screen and (min-width: 620px) {
  header p {
    color: var(--white);
  }

  header p::before {
    visibility: hidden;
  }

  #one-on-one,
  #group-coaching,
  #workshops,
  #online-courses {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #one-on-one h3,
  #one-on-one .service:nth-of-type(3),
  #group-coaching h3,
  #workshops .service,
  #online-courses .service {
    grid-column: 1/3;
  }

  #choose-us ul {
    grid-template-columns: 1.25fr 1fr 1.25fr 1fr;
    grid-template-rows: 1fr;
  }

  #choose-us ul li:nth-child(1),
  #choose-us ul li:nth-child(2),
  #choose-us ul li:nth-child(3),
  #choose-us ul li:nth-child(4) {
    margin: 5px;
  }

  #pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #pricing h2 {
    grid-column: 1/3;
  }

  #first-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #first-step h2 {
    grid-column: 1/3;
  }

  #first-step a {
    width: 100%;
  }
}

/* --------------------- Large Media Query ---------------------- */
@media screen and (min-width: 950px) {
  nav h2 {
    display: none;
  }

  nav ul {
    display: grid;
    background-color: var(--yellow);
    grid-template-columns: 1fr 1fr 1fr 1fr;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    padding: 15px;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    font-weight: bold;
  }

  nav a {
    text-transform: uppercase;
    color: black;
    text-decoration: none;
  }

  nav a:visited {
    color: black;
    text-decoration: none;
  }

  nav a:hover {
    color: var(--white);
  }

  #services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  #one-on-one,
  #group-coaching,
  #workshops,
  #online-courses {
    display: block;
  }

  #services h2 {
    grid-column: 1/5;
  }

  #services h3 {
    text-align: center;
  }

  #choose-us ul li {
    padding: 30px;
  }

  #pricing {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 0.1fr 6fr;
  }

  #pricing h2 {
    grid-column: 1/5;
  }

  #first-step a {
    width: 50%;
  }
}

/* ---------------------- Xtra Large Media Query ------------------------ */
@media screen and (min-width: 1280px) {
  body,
  h1 {
    max-width: 1280px;
    margin: auto;
  }
}
