@charset "utf-8";
@import url("site-footer.css");

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 16px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  background-color: #ffffff;
  color: #111111;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0;
}

/* ------------------------------
   Header
--------------------------------- */
.logo {
    max-width: 393px;
    height: auto;
    margin: 0 auto;
}

.title-group h1 {
  margin: 10px 0 0;
  line-height: 1.1;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.header-sub {
  font-size: 0.95rem;
  margin: 8px 0 0;
  line-height: 1.3;
}

/* ------------------------------
   Main navigation
--------------------------------- */
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
}

.main-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #457B9D;
  border-radius: 9px;
  min-height: 44px;
  width: 100%;
}

.main-nav-btn-txt {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
}

/* ------------------------------
   Footer navigation
--------------------------------- */
.foot-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
}

.foot-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2ECC71;
  border-radius: 9px;
  min-height: 44px;
  width: 100%;
}

.foot-nav-txt {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
}

/* ------------------------------
   Home intro / art section
--------------------------------- */
.home-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.home-art-p {
  text-align: left;
  max-width: 600px;
  width: 100%;
  font-weight: normal;
  margin: 0 auto;
}

.home-art-img {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

/* ------------------------------
   Home grid / training boxes
--------------------------------- */
.home-grid-center-text {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 0 auto 30px;
  text-align: center;
}

.home-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

#Level1,
#A313-L2,
#A313-L3,
#A313-L4,
#D313-L2,
#D313-L3 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

#Level1 {
  background-color: #F5B041;
}

#A313-L2,
#D313-L2 {
  background-color: #F8C471;
}

#A313-L3,
#D313-L3 {
  background-color: #FAD7A0;
}

#A313-L4 {
  background-color: #FDEBD0;
}

/* ------------------------------
   Footer layout support
--------------------------------- */
.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ------------------------------
   Tablet and up
--------------------------------- */
@media (min-width: 768px) {
  body {
    padding: 24px;
    font-size: 17px;
  }

  .main-nav,
  .foot-nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .main-nav-btn {
    width: auto;
    min-width: 140px;
  }

  .foot-nav-btn {
    width: auto;
    min-width: 180px;
  }

  .home-art {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .home-art-p {
    flex: 1 1 320px;
  }

  .home-art-img {
    flex: 0 1 350px;
  }

  .home-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  #Level1,
  #A313-L2,
  #A313-L3,
  #A313-L4,
  #D313-L2,
  #D313-L3 {
    width: auto;
    min-width: 200px;
  }

  .footer-wrap {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}

/* ------------------------------
   Desktop
--------------------------------- */
@media (min-width: 992px) {
  body {
    font-size: 18px;
  }

  .container {
    width: min(100%, 1400px);
  }

  .main-nav-btn-txt,
  .foot-nav-txt {
    font-size: 1.05rem;
  }
}
