@import url("./variables.css");

/* ==========================================
   INTELLYJENT HOMEPAGE
========================================== */

:root {
  --home-blue: #4168e1;
  --home-navy: #0d2b49;
  --home-cyan: #00d5e8;
  --home-green: #19b85a;
  --home-yellow: #ffce72;
  --home-text: #202124;
  --home-muted: #5d626b;
  --home-light: #f5f5f5;
  --home-border: #d9dde5;
  --home-white: #ffffff;
  --home-container: 1320px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--home-text);
  background: var(--home-white);
  overflow-x: hidden;
  padding: 10px;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--home-container), calc(100% - 112px));
  margin-inline: auto;
}

.section-heading h2,
.courses-heading h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.section-heading p,
.courses-heading p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.button-primary {
  color: var(--home-white);
  background: var(--home-blue);
}

.button-primary:hover {
  background: #3156cc;
  transform: translateY(-2px);
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--home-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
  width: min(var(--home-container), calc(100% - 80px));
  min-height: 90px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  position: relative;
}

.brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links > a:not(.button) {
  color: #333333;
  font-size: 13px;
  font-weight: 500;
}

.nav-links > a:not(.button):hover {
  color: var(--home-blue);
}

.nav-cta {
  min-width: 115px;
  padding: 10px 20px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--home-navy);
}

/* Hero section */

.hero {
  padding: 0 0 70px;
  background: var(--home-white);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: min(1320px, calc(100% - 80px));
  max-width: 1320px;
  min-height: 760px;
  margin-inline: auto;
  padding: 105px 60px 45px;
  border: none;
  border-radius: 24px;
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(25, 35, 55, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 35, 55, 0.049) 1px, transparent 1px);
  background-size: 70px 70px;
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;

  border-top: 2px solid rgba(133, 133, 133, 0.5);

  background:
    linear-gradient(
        to bottom,
        rgba(133, 133, 133, 0.2) 0%,
        rgba(133, 133, 133, 0.2) 90%,
        transparent 100%
      )
      left top / 2px 50% no-repeat,
    linear-gradient(
        to bottom,
        rgba(133, 133, 133, 0.2) 0%,
        rgba(133, 133, 133, 0.2) 90%,
        transparent 100%
      )
      right top / 2px 50% no-repeat;
}

.hero-grid {
  display: none;
}

.eyebrow {
  display: none;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto;
  color: #171717;
  text-align: center;
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero h1 span {
  color: inherit;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0.02em 0.12em 0.08em;
  color: #000000;
  z-index: 1;
  background-color: rgba(70, 183, 215, 0.09);
  background-image:
    linear-gradient(
      to right,
      transparent calc(100% - 1px),
      rgba(67, 190, 220, 0.95) 1px
    ),
    linear-gradient(
      to bottom,
      transparent calc(100% - 1px),
      rgba(67, 190, 220, 0.95) 1px
    );
  background-size:
    137px 100%,
    100% 137px;
}

.hero-highlight::before,
.hero-highlight::after {
  content: "";
  position: absolute;
  width: 5px;
  background: #3985cb;
  z-index: -1;
}

.hero-highlight::before {
  left: 0;
  top: 0;
  height: 100%;
}

.hero-highlight::after {
  right: 0;
  top: 0;
  height: 100%;
}

.hero-highlight__dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3985cb;
  z-index: 2;
}

.hero-highlight__dot--top {
  top: -10px;
  left: -6.5px;
}

.hero-highlight__dot--bottom {
  bottom: -12px;
  right: -6.5px;
}

.hero-subtitle {
  margin-top: 32px;
  color: #444444;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}

.hero-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 55px;
  margin-top: 125px;
}

.hero-copy {
  padding-top: 5px;
}

.hero-copy p {
  margin-bottom: 22px;
  color: #393939;
  font-size: 13px;
  line-height: 1.95;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
}

.photo-placeholder {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #626b7a;
  background: #e8ebf0;
  font-size: 13px;
}

/* Section headings */

.section-heading {
  margin-bottom: 55px;
  text-align: center;
}

.section-heading h2 {
  color: var(--home-text);
}

.section-heading p {
  color: var(--home-muted);
}

.light-heading h2,
.light-heading p {
  color: var(--home-white);
}

/* We are in a class */

.class-section {
  position: relative;
  padding: 75px 0 100px;
  color: var(--home-white);
  background: var(--home-navy);
  overflow: visible;
}

.class-section::before,
.class-section::after {
  content: none !important;
  display: none !important;
}

.class-sun-decoration {
  position: absolute;
  top: 0;
  right: 7%;
  width: 105px;
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.class-sun-decoration-secondary {
  position: absolute;
  bottom: -40px;
  right: 7%;
  width: 105px;
  height: auto;
  display: block;
  z-index: 8;
  pointer-events: none;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin-inline: auto;
}

.class-card {
  position: relative;
  min-height: 160px;
  padding: 25px 28px;
  overflow: hidden;
  border: 1px solid #8b9ba9;
  border-radius: 12px;
  background: #263f55;
  transition: transform 0.25s ease;
}

.class-card:hover {
  transform: translateY(-4px);
}

.class-card h3 {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.class-card p {
  max-width: 430px;
  padding-right: 25px;
  color: #f1f4f7;
  font-size: 13px;
  line-height: 1.65;
}

.corner-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: 45px;
  border-radius: 50% 0 0 0;
  background: var(--home-cyan);
  clip-path: polygon(0 30%, 47% 48%, 100% 0, 100% 100%, 0 100%);
}

/* Why choose us */

.benefits-section {
  padding: 85px 0 95px;
  background: #f5f5f5;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}

.benefit-card {
  position: relative;
  min-height: 235px;
  padding: 30px 28px 42px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  background: var(--home-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.045);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.benefit-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(to bottom, rgba(15, 169, 77, 0.75), #0fa94d);
  z-index: 0;
}

.benefit-card > * {
  position: relative;
  z-index: 1;
}

.benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 9px;
  color: var(--home-blue);
  background: #f0f0f0;
  font-size: 20px;
}

.benefit-card h3 {
  margin-bottom: 9px;
  color: #202124;
  font-size: 15px;
  font-weight: 700;
}

.benefit-card p {
  color: #555555;
  font-size: 12px;
  line-height: 1.65;
}

/* Extra mile */

.extra-heading {
  margin-top: 90px;
  margin-bottom: 40px;
}

/* Join a cohort */

.cohort-section {
  padding: 80px 0 95px;
  background: #ffffff;
  border-radius: 20px;
}

.cohort-content {
  max-width: 950px;
}

.cohort-section .section-heading {
  margin-bottom: 40px;
}

.cohort-copy {
  max-width: 850px;
  margin-inline: auto;
}

.cohort-copy p {
  margin-bottom: 18px;
  color: #454545;
  font-size: 13px;
  line-height: 1.24;
  text-align: center;
}

/* Training courses */

.courses-section {
  position: relative;
  padding: 70px 0 60px;
  margin-bottom: 20px;
  color: #ffffff;
  background: var(--home-blue);
  border-radius: 18px 18px 0 0;
  overflow: visible;
  isolation: isolate;
}

.courses-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 28px solid #ffcc00;
  filter: none;
  box-shadow: none;
}

.courses-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 80%;
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 28px solid var(--home-navy);
}

.courses-section .container {
  position: relative;
  z-index: 1;
  padding-inline: 24px;
}

.courses-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 75px;
}

.courses-heading h2 {
  color: #ffffff;
}

.courses-heading p {
  color: #ffffff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  background: #ffffff;
  color: var(--home-text);
  transition:
    transform 0.3s ease,
    box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.course-icon {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #7195ff;
  background: #eeeeee;
  font-size: 22px;
  overflow: hidden;
}

.course-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.course-card h3 {
  margin-bottom: 10px;
  color: #202124;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.course-card p {
  margin-bottom: 15px;
  color: #454545;
  font-size: 12px;
  line-height: 1.65;
}

.course-card a {
  align-self: flex-end;
  margin-top: auto;
  padding: 12px 10px;
  border: 1.5px dotted #5b5b5b;
  color: #444444;
  font-size: 9px;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.course-card a:hover {
  border-color: var(--home-blue);
  color: var(--home-blue);
}

.apply-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 50px;
}

.apply-button {
  min-width: 135px;
  border-radius: 25px;
}

/* FAQ */

.faq-section {
  padding: 85px 0 95px;
  background: #f5f5f5;
}

.faq-section .section-heading {
  margin-bottom: 45px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 850px;
  margin-inline: auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 9px;
  background: #ffffff;
  transition: background 0.2s ease;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border: 0;
  color: #222222;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.faq-symbol {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #555555;
  background: #f1f1f1;
  font-size: 20px;
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
}

.faq-answer p {
  color: #555555;
  font-size: 12px;
  line-height: 1.8;
}

.faq-item.is-open {
  border-color: var(--home-navy);
  background: var(--home-navy);
}

.faq-item.is-open .faq-question {
  color: #ffffff;
}

.faq-item.is-open .faq-symbol {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-answer p {
  color: #ffffff;
}

.support-block {
  max-width: 650px;
  margin: 65px auto 0;
  text-align: center;
}

.support-block h2 {
  margin-bottom: 12px;
  color: #222222;
  font-size: 23px;
}

.support-block p {
  color: #555555;
  font-size: 13px;
}

.support-block a {
  color: var(--home-blue);
  font-weight: 700;
}

/* Footer */

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: #ffffff;
  padding-bottom: 40px;
}

.footer-blue-shape {
  position: absolute;
  width: 105%;
  height: 500px;
  z-index: -2;
  background: var(--home-blue);
  border-radius: 55px 0 0 0;
  transform: rotate(3deg);
  transform-origin: top left;
}

.footer-wordmark {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 35px 20px 0;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(75px, 15vw, 190px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.footer-star {
  position: absolute;
  top: 65px;
  left: 7%;
  width: 35px;
  height: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.footer-panel {
  position: relative;
  z-index: 2;
  margin-top: -65px;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  color: var(--home-text);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.2fr;
  gap: 55px;
  padding: 35px 40px 40px;
  background: transparent;
  color: var(--home-text);
}

.footer-brand > a:first-child > img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 22px;
}

.play-badge {
  display: inline-flex;
  width: 110px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
}

.play-badge img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.play-badge span {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.play-badge small {
  font-size: 7px;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--home-blue);
  border: 1px solid var(--home-blue);
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--home-navy);
  border-color: var(--home-navy);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-column h3 {
  margin-bottom: 10px;
  color: #333333;
  font-size: 12px;
  letter-spacing: 1px;
}

.footer-column a,
.footer-column p {
  color: #555555;
  font-size: 12px;
  line-height: 1.8;
}

.footer-column a:hover {
  color: var(--home-blue);
}

.contact-column p {
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 40px;
  border-top: 1px solid #dedede;
  background: #ffffff;
  color: #555555;
  font-size: 11px;
}

.footer-bottom a {
  color: #555555;
}

.footer-bottom a:hover {
  color: var(--home-blue);
}

.footer-smiley {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: auto;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
}

/* Footer responsive */

@media (max-width: 1000px) {
  .footer-main {
    gap: 30px;
    padding-inline: 25px;
  }

  .footer-wordmark {
    font-size: clamp(70px, 14vw, 145px);
  }
}

@media (max-width: 700px) {
  .footer-blue-shape {
    height: 190px;
    border-bottom-left-radius: 35px;
  }

  .footer-wordmark {
    padding-top: 35px;
    font-size: clamp(55px, 13vw, 90px);
  }

  .footer-star {
    top: 25px;
    left: 5%;
    width: 25px;
  }

  .footer-panel {
    margin-top: -25px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
    padding: 30px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 22px;
    padding-right: 65px;
    line-height: 1.8;
  }

  .footer-smiley {
    width: 48px;
  }
}

@media (max-width: 420px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 1000px) {
  .footer-main {
    gap: 30px;
    padding-inline: 25px;
  }

  .footer-vector {
    width: 110%;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding-top: 120px;
  }

  .footer-star {
    top: 25px;
    left: 5%;
    width: 25px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
    padding: 30px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand > a:first-child > img {
    width: 40px;
    height: 40px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 22px;
    padding-right: 65px;
    line-height: 1.8;
  }

  .footer-smiley {
    width: 48px;
  }
}

@media (max-width: 420px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* Mobile navigation */

@media (max-width: 700px) {
  .container,
  .nav {
    width: calc(100% - 40px);
  }

  .nav {
    min-height: 72px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 22px 22px;
    background: #ffffff;
    border-top: 1px solid var(--home-border);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a:not(.button) {
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
  }

  .nav-cta {
    margin-top: 15px;
  }

  .hero {
    padding-bottom: 45px;
  }

  .hero-inner {
    width: calc(100% - 30px);
    min-height: auto;
    padding: 70px 22px 30px;
    border-radius: 16px;
    background-size: 38px 38px;
  }

  .hero h1 {
    font-size: clamp(39px, 10vw, 52px);
    letter-spacing: -1px;
  }

  .hero-subtitle {
    margin-top: 20px;
    font-size: 14px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 60px;
  }

  .hero-copy p {
    font-size: 12px;
  }

  .hero-photo img {
    height: 230px;
  }

  .class-sun-decoration {
    top: 0px;
    right: 5%;
    width: 85px;
  }

  .class-sun-decoration-secondary {
    top: -20px;
    left: 5%;
    width: 85px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 175px;
  }

  .extra-heading {
    margin-top: 65px;
  }

  .cohort-copy p {
    font-size: 12px;
  }

  .courses-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 35px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 230px;
  }

  .faq-question {
    padding: 16px;
    font-size: 12px;
  }

  .faq-answer {
    padding-inline: 16px;
  }
}

/* Small mobile */

@media (max-width: 420px) {
  .hero-inner {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .section-heading h2,
  .courses-heading h2 {
    font-size: 25px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
