/* rem and em do NOT depend on html font-size in media queries, 1rem = 1em = 16px */

/* ************* */
/* BELOW 1344px (smaller desktops) */
/* ************* */

@media (max-width: 84em) {
  .hero-ole {
    max-width: 20%;
    translate: -10%;
  }
  .intro-section {
    max-width: 90%;
  }
  .unique-container {
    max-width: 90%;
  }
  .katie-section {
    max-width: 90%;
  }

  .course-container {
    max-width: 90%;
  }

  .pricing {
    max-width: 90%;
  }

  .location {
    width: 90%;
  }

  .contact-container {
    max-width: 90%;
  }

  .history-title h5 {
    width: 90%;
  }

  .history-intro {
    width: 90%;
  }

  .time-grid {
    width: 90%;
    grid-template-columns: 1fr 4fr;
  }

  .elements {
    width: 90%;
  }

  .info-finisher {
    width: 90%;
  }

  .learning-container {
    width: 90%;
  }

  .container {
    max-width: 90%;
  }
}

/* ************* */
/* BELOW 1200px (landscape tablets) */
/* ************* */

@media (max-width: 75em) {
  html {
    /* 9px / 16px */
    font-size: 56.25%;
  }

  .ligeros {
    padding-left: 3rem !important;
  }

  .pesados {
    padding-right: 3rem !important;
  }

  .about {
    background-position: -600px;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .hero {
    gap: 4.8rem;
  }

  .main-nav-list {
    gap: 3.2rem;
  }
}

/* ************* */
/* BELOW 944px (Tablets) */
/* ************* */

@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 */
    font-size: 50%;
  }

  .perseo-footer img {
    max-width: 30%;
  }

  .intro-vid {
    /* width: 100%;
  max-height: 64rem; */
    max-width: 50%;
  }

  .header {
    display: flex;
    /* position: fixed;
    top: 0;
    bottom: 0; */
    width: 100%;
    height: 8rem;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 500;
    background-color: rgba(62, 61, 61, 0.97);
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
  }

  .hero-nav {
    display: none;
  }

  .hero-ole {
    display: none;
  }

  .hero-main {
    max-width: 90%;
  }

  .section-hero {
    justify-content: space-around;
  }

  .about-boxes {
    gap: 2.4rem;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about {
    background-position: -50%;
  }

  .about-box {
    padding: 2.4rem 4.8rem 2.4rem 4.8rem;
    text-align: center;

    max-width: 50rem;
    /* background-color: #4a4747;
    color: #fff; */
  }

  .service-flexbox {
    flex-direction: column;
  }

  .service-break {
    display: none;
  }

  .mobile-margin {
    margin-bottom: -20px !important;
  }

  .service-group {
    width: 90%;
    margin: 0 auto;
  }

  .about-box p {
    font-size: 2rem;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 6.4rem;
  }

  #stats-1575 .cs-container {
    width: 100%;
    /* Changes to 1280px at small desktop */
    max-width: 59.6875rem;
    margin: 0 auto;
    text-align: center;
  }
  #stats-1575 .cs-container p {
    margin: 0 auto;
    text-align: center;
    max-width: none;
  }
  .why-us-end {
    text-align: center;
  }
  .learn-buttons {
    justify-content: space-around;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  .hero-img {
    width: 60%;
  }

  .cs-title {
    max-width: none;
  }

  #services-1724 .cs-content {
    gap: 3.2rem;
  }

  .logos img {
    height: 2.4rem;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 1000;
  }

  .main-nav {
    background-color: rgba(62, 61, 61, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /* Hide navigation */
    /* Allows NO transitions at all */
    /* display: none; */

    /* 1) hide it visually */
    opacity: 0;

    /* 2) mkae it unaccessbile to mouse and keyboard */
    pointer-events: none;

    /* 3) hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }

  .katie-imgs {
    padding: 0;
  }
}

/* ************* */
/* BELOW 704px (Smaller Tablets) */
/* ************* */

@media (max-width: 44em) {
  .logo {
    max-height: 3rem;
  }

  #submit {
    padding: 0.6rem 1.2rem;
  }

  .btn,
  .btn:link,
  .btn:visited {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
  }

  .course-container {
    gap: 2.4rem;
  }

  .course-topper {
    margin-bottom: 2.4rem;
  }

  .intro-vid {
    /* width: 100%;
  max-height: 64rem; */
    max-width: 100%;
  }

  .katie-header {
    text-align: center;
  }

  .last-pic {
    display: none;
  }

  .course {
    width: 90%;
  }

  .katie-section {
    text-align: center;
  }

  .hero-main {
    padding-top: 3rem;
  }
  .section-hero {
    min-height: 0;
  }

  .intro-section {
    flex-direction: column;
  }

  .unique-container {
    flex-wrap: wrap;
  }

  .course-container {
    margin-bottom: 0;
    padding-bottom: 2.4rem;
  }

  .contact-section {
    padding-top: 2.4rem;
  }

  .contact-info {
    text-align: center;
    margin: 0 auto;
  }

  .welcome-text {
    text-align: center;
  }

  .time-grid h6 {
    text-align: center;
    align-self: center;
    padding-bottom: 2.4rem;
  }

  .info-finisher h6 {
    text-align: center;
    align-self: center;
  }

  .learning-container {
    text-align: center;
  }

  .course-topper {
    text-align: center;
  }

  .unique-box {
    max-width: 35%;
  }

  .katie-section {
    flex-direction: column;
  }

  .course-container {
    flex-direction: column;
    align-items: center;
  }

  /* .course {
    width: 40%;
  } */

  .location {
    flex-direction: column;
    align-items: center;
  }

  .location-embed {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    width: 90%;
  }

  .form-container {
    width: 90%;
  }

  .embed {
    align-self: flex-start;
  }

  .questions,
  .google-maps,
  .embed {
    width: 90%;
  }

  .history-intro {
    flex-direction: column;
  }

  .history-intro h6 {
    border-right: none;

    border-bottom: 2px solid #3e3d3d;
    width: fit-content;
    padding-bottom: 1rem;
  }

  .elements {
    flex-direction: column;
  }

  .learning-videos {
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
  }

  .learning-vid {
    width: 90%;
  }

  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: 1fr 1fr;
  }

  .cs-seal {
    display: none !important;
  }

  .lw-nav {
    display: none;
  }

  .nav-section {
    display: none;
  }

  .button-green:link,
  .button-orange:link {
    font-size: 3rem;
  }

  .section-hero hr {
    display: none;
  }

  #services-1724 .cs-item {
    height: 40rem;
  }

  /* .section-hero {
    padding: 4.8rem 0 4.8rem 0;
  } */

  .lakewoods-logo {
    max-width: 60%;
  }

  .form-group {
    grid-template-columns: 1fr;
  }

  .intro-logo {
    max-width: 15%;
  }

  .header {
    display: flex;
  }

  .sticky .section-hero {
    margin-top: 6.4rem;
  }

  .heading-secondary {
    margin-bottom: 4.8rem;
  }

  .grid--footer {
    grid-template-columns: repeat(1, 1fr);
  }

  .contacts {
    border-left: none;
    padding-left: 0;
  }

  .footer {
    padding-top: 1rem;
  }

  .hero-ole {
    display: none;
  }

  .hero-main {
    max-width: 90%;
    padding: 6.4rem;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .hero-main img {
    display: none;
  }

  .location h6 {
    width: 100%;
  }

  /* .logo-col,
  .address-col {
    grid-column: span 3;
  }

  .nav-col {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 3.2rem;
  } */
}

/* ************* */
/* BELOW 544px (Phones) */
/* ************* */

@media (max-width: 34em) {
  .grid--2-cols,
  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: 1fr;
  }

  .grid--footer {
    text-align: center;
  }

  .grid--footer .logo {
    padding-left: 10px;
  }

  .contacts p:first-child {
    margin-bottom: 0;
  }

  .perseo-footer img {
    max-width: 40%;
  }

  .unique-box {
    max-width: 70%;
    line-height: 1.5;
    padding-bottom: 0;
  }

  .unique-box:last-child {
    padding-bottom: 2.4rem;
  }

  /* .course {
    width: 70%;
  } */

  .pricing {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem 0 1.2rem 0;
    border-top: none;
  }

  .embed {
    margin-left: -30px;
  }

  .price {
    border-right: none;
    border-bottom: 2px solid #3e3d3d;
    padding-right: 0;
    padding-bottom: 1.2rem;
    width: 100%;
  }

  .price:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  #services-1724 .cs-link {
    justify-content: space-around;
  }

  #services-1724 .cs-h3 {
    font-size: 2.4rem;
  }

  #services-1724 {
    padding: 0;
  }

  #stats-1575 {
    justify-content: center;
  }

  #sbsr-1575 .cs-image-group {
    order: 2;
  }

  #sbsr-1575 .cs-container {
    gap: 4.8rem;
  }

  #sbsr-1007 .cs-picture img {
    transform: scale(1.4) translateX(-10%);
  }

  .owner-2 {
    transform: scale(1.3) translateX(-10%) !important;
  }

  #sbsr-1007 .cs-seal {
    width: 10rem;
  }

  .about-box {
    padding: 2.4rem 4.8rem 2.4rem 4.8rem;
    text-align: center;

    max-width: 90%;
  }

  .about-box p {
    font-size: 1.6rem;
  }

  #services-1724 .cs-item {
    height: 30rem;
  }

  .learn-buttons {
    flex-direction: column;
    align-items: center;
  }

  .lakewoods-logo {
    max-width: 80%;
  }

  .intro-logo {
    max-width: 25%;
  }

  .grid {
    row-gap: 4.8rem;
  }

  .btn,
  .btn:link,
  .btn:visited {
    padding: 0.6rem 1.2rem;
  }

  /* .section-hero {
    padding: 2.4rem 0 6.4rem 0;
  } */

  .hero {
    padding: 3.2rem;
  }

  .hero-img {
    width: 80%;
  }

  .logos img {
    height: 1.2rem;
  }

  .grid--footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .nav-col {
    grid-column: span 2;
  }

  .contact-bot {
    margin-bottom: 4.8rem;
  }

  #services-1724 {
    padding-top: 4.8rem;
  }

  #services-1724 .cs-content {
    padding-bottom: 4.8rem;
  }

  .unique-section {
    padding: 0;
  }

  .photo {
    max-width: 30%;
  }
}

/*400 px below*/

@media (max-width: 25em) {
  .grid--footer {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }

  .hero-main {
    padding: 2rem;
  }

  .form-container label {
    font-size: 1.7rem;
  }

  .nav-col {
    grid-column: span 1;
    margin-top: 4.8rem;
  }

  .footer {
    padding-top: 1rem;
  }

  .footer-logo {
    margin-bottom: 0;
  }
}

/* FIXING OLD SAFARI FLEXBOX GAP */

.no-flexbox-gap .main-nav-list li:not(:last-child) {
  margin-right: 4.8rem;
}

.no-flexbox-gap .list-item:not(:last-child) {
  margin-bottom: 1.6rem;
}

.no-flexbox-gap .list-icon:not(:last-child) {
  margin-right: 1.6rem;
}

.no-flexbox-gap .delivered-faces {
  margin-right: 1.6rem;
}

.no-flexbox-gap .meal-attribute:not(:last-child) {
  margin-bottom: 2rem;
}

.no-flexbox-gap .meal-icon {
  margin-right: 1.6rem;
}

.no-flexbox-gap .footer-row div:not(:last-child) {
  margin-right: 6.4rem;
}

.no-flexbox-gap .social-links li:not(:last-child) {
  margin-right: 2.4rem;
}

.no-flexbox-gap .footer-nav li:not(:last-child) {
  margin-bottom: 2.4rem;
}

@media (max-width: 75em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 3.2rem;
  }
}

@media (max-width: 59em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 4.8rem;
  }
}

/*
-Font sizes(px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

-Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

*/
