/* Main page styles */

.skip {
  z-index: -100;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/**
 * =======================================
 * Buttons
 * =======================================
 */

.icon {
  transition: all 0.3s ease-in-out;
}

.btn {
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--legacy-blue);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-wrap: nowrap;
  cursor: pointer;
}

.btn > .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-sm {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  gap: 0.75rem;
}

.btn-sm > .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary {
  background-color: var(--legacy-blue);
  color: var(--white);
}

.btn-primary > .icon {
  stroke: var(--white);
}

.btn-secondary {
  background-color: var(--canvas-white);
  color: var(--legacy-blue);
}

.btn-secondary > .icon {
  stroke: var(--legacy-blue);
}

.btn-primary-alt {
  background-color: var(--luminary-gold);
  color: var(--scholars-slate);
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  color: var(--white);
  background-color: var(--legacy-blue);
}

.icon-btn > .icon {
  width: 1.75rem;;
  height: 1.75rem;
}

.icon-btn > .icon-fill {
  stroke: none !important;
  fill: var(--white);
}

.icon-btn.full {
  background: none;
}

.icon-btn.full > .icon {
  fill: var(--legacy-blue);
  width: 100% !important;
  height: 100% !important;
}

/**
 * =======================================
 * Text and headings
 * =======================================
 */

h2 {
  color: var(--scholars-slate);
  font-weight: 400;
  line-height: 1;
}

.h2-alt {
  color: var(--canvas-white);
}

.link {
  color: var(--legacy-blue);
  text-decoration: underline;
}

.link:hover, .link:focus {
  color: var(--legacy-blue-ad0);
}

.alt .link {
  color: var(--luminary-gold);
}

/**
 * =======================================
 * Images
 * =======================================
 */

.img-zoom {
  transition: all 0.3s ease-in-out;
}

.img-zoom:hover {
  transform: scale(1.015);
}

/**
 * =======================================
 * Sections
 * =======================================
 */

.section-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  text-wrap: balance;
}

.section-row > .section-intro {
  text-wrap: auto;
}

.section-intro.left {
  align-items: start;
  text-align: left;
}

.section-intro > .body1 {
  width: 100%;
}

.section-row > .section-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: auto;
}

.section-img {
  width: 100%;
  border-radius: 1rem;
}

/**
 * =======================================
 * Home section
 * =======================================
 */

#home {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  background: linear-gradient(to bottom, var(--horizon-blue), var(--horizon-blue-a00));
}

.hero-img {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 45%;
  width: auto;
  max-height: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 1rem;
  flex-grow: 1;
  height: 100%;
  padding: 0 1rem;
}

.hero-h1 {
  font-size: 2.5rem;
  color: var(--scholars-slate);
}

.hero-h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--legacy-blue);
}

.hero-h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--scholars-slate);
  text-wrap: balance
}

.hero-info-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: var(--scholars-slate);
}

.hero-info > .icon {
  width: 1rem;
  height: 1rem;
  stroke: var(--legacy-blue);
}

.hero-info-label {
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.hero-btns {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

/**
 * =======================================
 * Image carousel
 * =======================================
 */

.carousel {
  position: relative;
  width: 100vw;
  height: 10rem;
  overflow-x: hidden;
}

@keyframes carousel-move-xs {
  0% {
    transform: translateX(0rem);
  }
  100% {
    /* 12rem * 10 images */
    transform: translateX(-120rem);
  }
}

@keyframes carousel-move-md {
  0% {
    transform: translateX(0rem);
  }
  100% {
    /* 20rem * 10 images */
    transform: translateX(-200rem);
  }
}

.carousel-inner {
  position: absolute;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: hidden;
  /* width: 100%; */
  height: 100%;
  left: 0;
  animation: carousel-move-xs 30s linear 0s infinite;
}

.carousel-img {
  width: 14rem;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.carousel-img.top {
  object-position: top;
}

/**
 * =======================================
 * About conference section
 * =======================================
 */

#conference {
  width: 100vw;
  padding: 5rem 1rem 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/**
 * Counter grid
 */
#counter-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.counter {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.counter .number {
  font-size: 4.5rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--scholars-slate);
}

.counter .label {
  font-size: 1.25rem;
  font-weight: 500;
  text-wrap: balance;
  font-family: var(--font-highlight);
  color: var(--legacy-blue);
}

/**
 * =======================================
 * About fellowship section
 * =======================================
 */

#fellowship {
  width: 100vw;
  padding: 5rem 1rem 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.company-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 20rem;
}

.company-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
}

.company-img {
  width: auto;
  height: 3rem;
  object-fit: contain;
}

/**
 * =======================================
 * Sponsors section
 * =======================================
 */

#sponsors {
  width: 100vw;
  padding: 5rem 1rem 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/**
 * =======================================
 * FAQ section
 * =======================================
 */

#faq {
  width: 100vw;
  padding: 5rem 1rem 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.faq-btns {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  margin-top: -6px;
}

.faq-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.faq-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.faq-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.faq-question {
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--black);
  box-shadow: 1px 1px 0px var(--black);
  background-color: var(--faded-copper);
  color: var(--parchment);
  flex-shrink: 0;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  transform: rotate(0deg);
  transition: all 0.3s ease-in-out;
}

.faq-icon.open {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-answer.open {
  max-height: 20rem;
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  min-height: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  opacity: 0.8;
  overflow: hidden;
  /* display: flex;
  flex-direction: column;
  align-items: start; */
  display: block;
  gap: 1.5rem;
  padding: 1rem 0 0 0;
}

/**
 * =======================================
 * Contact section
 * =======================================
 */

#contact {
  width: 100vw;
  padding: 5rem 1rem 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.social-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.contact-form-field {
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--white);
  border-radius: 0.5rem;
  border: 1px solid var(--horizon-blue);
  color: var(--scholars-slate);
  outline: 2px solid transparent;
  transition: none;
}

.contact-form-field::placeholder {
  font-family: var(--font-body);
  color: #555;
}

.contact-form-field:focus {
  border: 1px solid var(--legacy-blue);
  outline: 1px solid var(--legacy-blue);
}

.contact-form-textarea {
  resize: none;
}

.contact-form-btn {
  position: relative;
  width: 100%;
}

.toast-container {
  transition: all 0.75s ease-in-out;
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 500;
  transform: translateY(200%);
}

.toast-container.toast-open {
  transform: translateY(0%);
}

.toast {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  color: var(--white);
  box-shadow: var(--black-a80) 0px 0px 10px;
}

.toast-success {
  background-color: var(--dark-teal);
}

.toast-error {
  background-color: var(--brandy);
}

.toast-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.toast-text {
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: none;
  font-size: 1rem;
}

/**
 * =======================================
 * Call to action section
 * =======================================
 */

#cta {
  width: 100vw;
  margin: -1rem 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-color: var(--legacy-blue);
}

.banner-border {
  width: 100vw;
}

.banner-border.top {
  padding-top: 5rem;
}

.cta-btns {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 90%;
}

.cta-btn {
  position: relative;
  width: 100%;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.countdown-value-group {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 6rem;
  aspect-ratio: 1;
  flex-shrink: 1;
  font-family: var(--font-body);
  font-size: 3rem;
  color: var(--white);
}

.countdown-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-text > .value {
  line-height: 1;
}

.countdown-text > .label {
  font-family: var(--font-highlight);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--luminary-gold);
  opacity: 0.8;
  /* text-transform: uppercase; */
}

/**
 * =======================================
 * Waitlist section
 * =======================================
 */

#waitlist {
  width: 100vw;
  padding: 5rem 1rem 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/**
 * =======================================
 * Footer section
 * =======================================
 */

footer {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 0 1rem 2rem 1rem;
  margin-top: -1rem;
  background-color: var(--scholars-slate);
}

.footer-top {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  width: auto;
  height: 2.5rem;
}

.footer-right {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style-type: none;
  font-size: 1rem;
}

.footer-list a {
  color: var(--canvas-white);
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.toast-container {
  transition: all 0.75s ease-in-out;
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 500;
  transform: translateY(200%);
}

.toast-container.toast-open {
  transform: translateY(0%);
}

.toast {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  color: var(--white);
  box-shadow: var(--black-a80) 0px 0px 10px;
}

.toast-success {
  background-color: var(--legacy-blue);
}

.toast-error {
  background-color: var(--luminary-gold);
  color: var(--scholars-slate);
}

.toast-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.toast-text {
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: none;
  font-size: 1rem;
}

/**
 * =======================================
 * Media queries
 * =======================================
 */

/* width >= 400px */
@media (min-width: 25rem) {
}

/* width >= 640px */
@media (min-width: 40rem) {
  .section-img {
    width: 28rem;
  }

  .hero-btns {
    gap: 0.75rem;
  }

  .carousel {
    height: 12rem;
  }

  #counter-grid {
    flex-direction: row;
    justify-content: start;
  }

  .counter .number {
    font-size: 4rem;
  }

  .counter .label {
    font-size: 1.25rem;
  }

  .faq-grid {
    width: 90%;
  }

  .faq-btns {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  #waitlist-form {
    width: 90%;
  }

  .cta-btns {
    width: 60%;
  }

  .footer-middle {
    margin: 0;
  }

  .footer-slogan {
    font-size: 1.5rem;
  }
}

/* width >= 768px */
@media (min-width: 48rem) {
  .section-intro {
    gap: 2rem;
  }

  .hero-text {
    padding-top: 2rem;
    padding-left: 3rem;
  }

  .carousel-inner {
    animation: carousel-move-md 40s linear 0s infinite;
  }

  .carousel-img {
    width: 20rem;
  }

  #conference {
    padding: 5rem 3rem 0rem 3rem;
    gap: 3rem;
  }

  .company-row {
    width: 38rem;
  }

  .company-img {
    height: 3.25rem;
  }

  .counter .number {
    font-size: 5rem;
  }

  .counter .label {
    font-size: 1.125rem;
  }

  #fellowship {
    padding: 5rem 3rem 0rem 3rem;
    gap: 3rem;
  }

  #sponsors {
    padding: 5rem 3rem 0rem 3rem;
    gap: 3rem;
  }

  #faq {
    padding: 5rem 3rem 0rem 3rem;
    gap: 3rem;
  }

  .faq-grid {
    width: 80%;
  }

  .faq-question {
    font-size: 1.5rem;
  }

  .faq-icon-container {
    width: 2.25rem;
    height: 2.25rem;
  }

  .faq-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .faq-answer-inner {
    font-size: 1.2rem;
  }

  #contact {
    padding: 5rem 3rem 0rem 3rem;
    gap: 3rem;
  }

  #cta {
    padding: 3rem 3rem 2rem 3rem;
    gap: 3rem;
  }

  .banner-border.top {
    padding-top: 5rem;
  }

  .cta-btns {
    gap: 1rem;
    width: 70%;
  }

  #waitlist {
    padding: 5rem 3rem 0rem 3rem;
    gap: 3rem;
  }

  #waitlist-form {
    width: 40rem;
  }

  footer {
    padding: 0 3rem 2rem 3rem;
  }

  .footer-logo {
    height: 3.5rem;
  }

  .footer-list {
    font-size: 1.125rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }

  .countdown {
    gap: 2.75rem;
  }

  .countdown-value-group {
    width: 6rem;
    height: 6rem;
    font-size: 4rem;
  }

  .countdown .label {
    font-size: 1.5rem;
  }

  .footer-right {
    flex-direction: row;
    gap: 8rem;
  }

  .toast-container {
    left: auto;
    max-width: 600px;
  }
}

/* width >= 1024px */
@media (min-width: 64rem) {
  .section-intro {
    gap: 2.5rem;
  }

  .section-row {
    flex-direction: row;
    gap: 3.5rem;
  }

  .section-row > .section-intro {
    width: 50%;
  }

  .section-intro > .body1 {
    width: 70%;
  }

  .section-row > .section-intro > .body1 {
    width: 100%;
  }

  .section-row > .section-img-container {
    width: 50%;
  }

  .section-row > .section-img-container > .section-img {
    width: 100%;
  }

  .hero-h1 {
    font-size: 4.5rem;
  }

  .hero-h2 {
    font-size: 1.65rem;
  }

  .hero-h3 {
    font-size: 1.35rem;
  }

  .hero-info-container {
    flex-direction: row;
    gap: 1.25rem;
  }

  .carousel {
    height: 14rem;
  }

  #conference {
    margin-top: 0;
    gap: 4rem;
  }

  #fellowship {
    margin-top: 0;
    gap: 4rem;
  }

  #sponsors {
    gap: 4rem;
  }

  #faq {
    gap: 4rem;
  }

  .faq-btns {
    gap: 2rem;
  }

  .faq-grid {
    width: 90%;
    flex-direction: row;
    gap: 2rem;
  }

  .faq-col {
    width: 50%;
  }

  .faq-answer-inner {
    padding: 1rem 3rem 0 0;
  }

  #contact, #cta, #waitlist {
    gap: 4rem;
  }

  .countdown {
    gap: 3.25rem;
  }

  .countdown-value-group {
    width: 7rem;
    height: 7rem;
    font-size: 4.5rem;
  }

  .countdown .label {
    font-size: 1.75rem;
  }

  #waitlist-form {
    width: 44rem;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-left {
    align-items: start;
  }

  .footer-right {
    justify-content: auto;
  }

  .toast-container {
    max-width: 50rem;
  }
}

/* width >= 1280px */
@media (min-width: 80rem) {
  .btn {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
  }

  .btn > .icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .btn-sm {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    gap: 0.75rem;
  }

  .btn-sm > .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .icon-btn {
    width: 3.4rem;
    height: 3.4rem;
  }

  .icon-btn > .icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .hero-text {
    padding-left: 6rem;
  }

  .hero-h1 {
    font-size: 6rem;
  }

  .hero-h2 {
    font-size: 2rem;
  }

  .hero-h3 {
    font-size: 1.5rem;
  }

  #conference {
    padding: 8rem 6rem 0rem 6rem;
  }

  #counter-grid {
    width: 72rem;
    margin-right: auto;
  }

  .counter .number {
    font-size: 6rem;
  }

  .counter .label {
    font-size: 1.45rem;
  }

  #fellowship {
    padding: 8rem 6rem 0rem 6rem;
  }

  #sponsors {
    padding: 8rem 6rem 0rem 6rem;
  }

  #faq {
    padding: 8rem 6rem 0rem 6rem;
  }

  .faq-grid {
    width: 80%;
  }

  #contact, #waitlist {
    padding: 8rem 6rem 0rem 6rem;
  }

  #cta {
    padding: 3rem 6rem 0 6rem;
  }

  .banner-border.top {
    padding-top: 8rem;
  }

  .cta-btns {
    gap: 1.25rem;
    width: 40%;
  }

  .countdown {
    gap: 3.5rem;
  }

  .countdown-value-group {
    width: 8rem;
    height: 8rem;
    font-size: 5rem;
  }

  .countdown .label {
    font-size: 2rem;
  }

  footer {
    padding: 0 6rem 2rem 6rem;
  }

  .toast-container {
    max-width: 60rem;
  }
}

/* width >= 1536px */
@media (min-width: 96rem) {
  .countdown {
    gap: 4rem;
  }

  .countdown-value-group {
    width: 9rem;
    height: 9rem;
    font-size: 5.5rem;
  }
}

/* width >= 1920px */
@media (min-width: 120rem) {
  .faq-grid {
    width: 70%;
  }
}
