/* ==========================================================================
   PUBLIC LANDING PAGE — matches Figma at 1440px
   ========================================================================== */

.public-landing {
  background-color: var(--color-gray-very-light);
}

/* Header — 109px tall */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 109px;
  background-color: var(--color-gray-very-light);
  position: relative;

  .landing-logo {
    height: 65px;
    width: 161px;
  }

  .landing-login-btn {
    position: absolute;
    right: 80px;
    top: 32px;
    background-color: var(--color-black);
    color: var(--color-gray-very-light);
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    width: 116px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: opacity 0.2s ease;

    &:hover {
      opacity: 0.85;
    }
  }
}

/* Hero — 400px tall */
.landing-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;

  .landing-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .landing-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.7);
    z-index: 1;
  }

  .landing-hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 48px;
    color: #d9d6c9;
    text-align: center;
    width: 1111px;
    max-width: 90%;
    text-shadow: 0px 0px 54px black;
    margin: 0;
  }
}

/* Our Pillars — 498px tall */
.landing-pillars {
  padding: 71px var(--page-margin-x) 144px;
  background-color: var(--color-gray-very-light);
  text-align: center;

  h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 50px;
    line-height: normal;
  }
}

.landing-pillars-grid {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.landing-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  flex-shrink: 0;

  img {
    width: 146px;
    height: 146px;
    margin-bottom: var(--space-20);
  }

  strong {
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 30px;
  }

  span {
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #655e4c;
    line-height: 30px;
  }
}

/* Want to learn more CTA — 400px tall */
.landing-cta {
  padding: 99px var(--page-margin-x) 152px;
  background-color: #d9d6c9;
  text-align: center;

  h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 50px;
    line-height: normal;
  }
}

.landing-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 19px;
}

.landing-cta-btn {
  background-color: var(--color-black);
  color: var(--color-gray-very-light);
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: opacity 0.2s ease;

  &:first-child {
    width: 270px;
  }

  &:last-child {
    width: 290px;
  }

  &:hover {
    opacity: 0.85;
  }
}

/* Footer — 250px tall */
.landing-footer {
  background-color: var(--color-black);
  height: 250px;
  position: relative;
  overflow: hidden;

  .landing-footer-badge {
    position: absolute;
    inset: 0;
    width: fit-content;
    height: fit-content;
    margin: auto;

    .footer-badge {
      height: 120px;
      width: auto;
    }
  }

  .landing-footer-inner {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 59px var(--page-margin-x) 0 89px;
  }

  .landing-footer-logo img {
    width: 144px;
    height: 144px;
    display: block;
  }

  .landing-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: var(--page-margin-x);

    a {
      font-family: "DM Sans", sans-serif;
      font-size: 18px;
      font-weight: 400;
      color: var(--color-gray-very-light);
      text-decoration: none;
      line-height: 42px;
      transition: opacity 0.2s ease;

      &:hover {
        opacity: 0.7;
      }
    }
  }

  .landing-footer-copy {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-gray-very-light);
    text-align: center;
    margin: 0;
    white-space: nowrap;

    span {
      color: #beb8a2;
      font-weight: 200;
      margin: 0 var(--space-4);
    }
  }
}

/* Responsive — scale down from 1440px */
@media (max-width: 1440px) {
  .landing-header .landing-login-btn {
    right: 40px;
  }

  .landing-footer .landing-footer-links {
    padding-right: var(--section-gap);
  }
}

@media (max-width: 1024px) {
  .landing-header .landing-login-btn {
    right: 24px;
    width: auto;
    padding: 0 var(--space-24);
    font-size: 18px;
  }

  .landing-hero {
    height: 320px;

    .landing-hero-text {
      font-size: 38px;
      line-height: 52px;
    }
  }

  .landing-pillars-grid {
    flex-wrap: wrap;
    gap: var(--section-gap);
  }

  .landing-pillar {
    width: 240px;
  }

  .landing-cta {
    padding: 70px var(--section-gap) var(--space-80);
  }

  .landing-footer {
    height: auto;
    padding-bottom: var(--section-gap);

    .landing-footer-links {
      padding-right: 0;
    }

    .landing-footer-copy {
      position: static;
      transform: none;
      padding: var(--section-gap) 0 0;
      text-align: center;
    }
  }
}

@media (max-width: 768px) {
  .landing-header {
    height: 80px;

    .landing-login-btn {
      right: 20px;
      font-size: 16px;
      width: auto;
      padding: 0 var(--space-20);
      height: 40px;
      top: 50%;
      transform: translateY(-50%);
    }
  }

  .landing-hero {
    height: 280px;

    .landing-hero-text {
      font-size: 26px;
      line-height: 40px;
    }
  }

  .landing-pillars {
    padding: var(--space-48) var(--space-24) 64px;
  }

  .landing-pillars-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-32);
  }

  .landing-pillar {
    width: 200px;

    img {
      width: 100px;
      height: 70px;
    }

    strong, span {
      font-size: 16px;
    }
  }

  .landing-cta {
    padding: var(--space-48) var(--space-24) 64px;

    h2 {
      font-size: 26px;
    }
  }

  .landing-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
  }

  .landing-cta-btn {
    font-size: 16px;

    &:first-child,
    &:last-child {
      width: 280px;
    }
  }

  .landing-footer {
    height: auto;

    .landing-footer-inner {
      flex-direction: column;
      align-items: center;
      gap: var(--space-32);
      padding: var(--space-32) var(--space-24) 0;
      text-align: center;
    }

    .landing-footer-links {
      align-items: center;
      padding-right: 0;
    }

    .landing-footer-copy {
      position: static;
      transform: none;
      padding: var(--space-24) 0 var(--space-32);
    }
  }
}
