/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  --primary-color: #8cc63f;
  --header-font: 'Roboto Condensed Variable', system-ui, sans-serif;
  --copy-font: 'Roboto Variable', system-ui, sans-serif;
  --box-shadow: 4px 4px 10px rgba(0 0 0 / 15%);
  --copy-font-color: #222;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* roboto-condensed-latin-wght-normal */
@font-face {
  font-family: 'Roboto Condensed Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/roboto-condensed:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* roboto-latin-wght-normal */
@font-face {
  font-family: 'Roboto Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/roboto:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


/* ==========================================================================
   UI styles
   ========================================================================== */

body {
  font-family: var(--copy-font);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
}

a {
  color: var(--primary-color);
}

a:focus,
a:hover {
  color: var(--primary-color);
}

.button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
  color: #ffffff;
  border-width: 0px;
  border-radius: 6px;
  background-color: var(--primary-color);
  padding: 0.5em 1em;
  cursor: pointer;
  font-family: var(--header-font);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.2em;

  &.button-reverse {
    background-color: white;
    color: #333;
  }

  &.button-large {
    padding: 0.5em 1em;
    font-size: 1.4rem;
    font-weight: 600;
  }

  &.button-outline {
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);

    &.button-reverse {
      border-color: white;
      color: white;
    }
  }

  &:disabled {
    border: 1px solid #b9b9b9;
    background-color: transparent;
    color: #b9b9b9;
    cursor: default;
  }
}

/* Handle `a` buttons */
a.button {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;

  &:not(.button-outline):not(.button-reverse):focus {
    color: white;
  }
}

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

header {
  background-color: var(--primary-color);
  color: #333;
  font-family: var(--header-font);
  font-weight: 500;
  font-size: 1.2rem;
  top: 0;
  z-index: 100;

  body:not(.landing) & {
    position: sticky;
  }

  .container,
  .row {
    height: 100%;
  }
}

.top-header {
  height: 32px;
  transition: height 250ms ease-out;

  @media screen and (min-width: 640px) {
    height: 32px;
  }

  background-color: #222;
  font-family: var(--copy-font);
  font-size: 0.8rem;
  text-align: right;
  color: white;
}

.contact-info {
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 1em;
  justify-content: right;
  align-items: center;

  svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.1em;
    fill: currentColor;
    margin-right: 0.1em;
  }
}

.main-header {
  height: 50px;
  transition: height 250ms ease-out;

  @media screen and (min-width: 640px) {
    height: 80px;
  }

  a {
    color: #333;
    text-decoration: none;
  }

  .container {
    display: flex;
    flex-direction: row;
    gap: 1em;
  }

  .container > div {
    text-align: center;
    width: 100%;

    @media screen and (min-width: 640px) {
      width: auto;
    }
  }

  nav {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: end;
    text-transform: uppercase;
    line-height: 1;
    display: none;

    @media screen and (min-width: 640px) {
      display: flex;
    }
  }

  .logo {
    height: 80px;
    margin-top: -12px;

    transition: height 250ms ease-out;

    @media screen and (min-width: 640px) {
      margin-top: -16px;
      height: 120px;
    }
  }
}

main {
  padding: 20px 0 50px;

  @media screen and (min-width: 640px) {
    padding: 50px 0;
  }
}

section.background-dark {
  padding: 30px 0;
  background-color: #414441;
  color: white;

  @media screen and (min-width: 640px) {
    padding: 50px 0;
  }

  h1, h2, h3, h4, h5, h6 {
    color: white;
  }
}

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

footer {
  padding: 20px 0 60px;
  background-color: #23282d;
  color: white;
  text-align: center;

  @media screen and (min-width: 640px) {
    padding: 60px 0;
    text-align: left;
  }

  h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);

    @media screen and (min-width: 640px) {
      &:first-child {
        margin-top: 0;
      }
    }
  }

  .logo {
    max-width: 110px;

    @media screen and (max-width: 640px) {
      margin-bottom: 2em;
    }
  }

  @media screen and (max-width: 640px) {
    /* Override column widths on mobile */
    .column {
      flex: 1 1 auto !important;
      max-width: 100% !important;
    }
  }
}

.footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
}

.footer-socials {
  a {
    text-decoration: none;
  }

  svg {
    height: 1.6rem;
    margin-right: 0.5em;
    fill: #d9d9d9;
  }

    @media screen and (max-width: 640px) {
      margin-top: 2em;
    }
}

.copyright {
  font-size: 0.8rem;
  color: #d9d9d9;
  margin-top: 1.5em;
}

/* ==========================================================================
   Landing page
   ========================================================================== */

body.landing {
  --card-overlap: -32px;
}

body.landing header {
  .main-header {
    height: 0 !important;
  }

  .logo {
    height: 140px;
  }
}

body.landing main {
  padding: 0;
}

.landing-hero {
  position: relative;
  padding: 70px 0;
  background-color: var(--primary-color);
  background-image: radial-gradient(
    circle farthest-corner at 23.1% 25.2%,
    var(--primary-color) 0%,
    color-mix(in oklch, black 52.5%, var(--primary-color)) 145.2%
  );
  color: white;
  font-size: 1.1rem;
  text-shadow: 1px 1px rgb(0 0 0 / 30%);
  min-height: 85dvh;
  display: flex;

  .container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    .row {
      height: 100%;
    }
  }

  @media screen and (min-width: 640px) {
    padding-top: 130px;
  }
}

.landing-hero-background {
  position: absolute;
  inset: 0;
  background-image: url("/images/hero-bg.png");
  background-repeat: no-repeat;
  background-position: 50% 10%;
  background-size: cover;
  opacity: .75;

  @media (min-aspect-ratio: 3/2) {
    background-position: 0% 10%;
    background-size: 125%;
  }
}

.landing-hero-content {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 400px;

  h1 {
    margin: 0;
    text-shadow: none;
  }

  button, .button {
    box-shadow: var(--box-shadow);
    text-shadow: none;
  }
}

.landing-cards-two-up {
  position: relative;
  margin-top: var(--card-overlap);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  @media screen and (min-width: 640px) {
    margin-inline: min(5cqw, 2rem);
    flex-direction: row;
  }
}

.landing-cards-one-up {
  position: relative;
  transform: translateY(var(--card-overlap));
  margin-bottom: calc(2 * var(--card-overlap));
  z-index: 10;

  .landing-card {
    max-width: 650px;
  }
}

.landing-card {
  background-color: white;
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  color: var(--copy-font-color);
  text-align: center;
  border-radius: 16px;
  max-width: 400px;
  margin-inline: auto;

  &:last-child {
    margin-bottom: var(--card-overlap);
  }

  @media screen and (min-width: 640px) {
    margin-block: 0;
    margin-bottom: var(--card-overlap);
  }

  h2 {
    color: var(--primary-color);
  }
}

.landing-icon {
  max-width: 180px;
  margin: 0 auto;
  fill: var(--primary-color);
}

/* Pricing + customer service cards */
.landing-section-01 {
  background-color: #d9d9d9;
}

/* Photo section */
.landing-section-02 {
  max-height: 50dvh;
  height: 1200px;

  @media (min-aspect-ratio: 1/1) {
    max-height: 80dvh;
  }
}

.landing-section-03 {
  background-color: var(--primary-color);
}

.landing-section-04 {
  background-color: #828a92;
  background-color: #414441;
  color: white;
  padding-top: 64px !important;
  padding: 30px 0;
}

.photo-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: -1;

  img {
    object-fit: cover;
  }

  > .apartment-photo {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transition: opacity 600ms;
    opacity: 1;

    &.photo-remove {
      opacity: 0;
    }
  }
}

.network-container {
  gap: 1.5rem;
  margin: 0 1.5rem 1.5rem;

  @media screen and (min-width: 640px) {
    display: flex;
    flex-direction: row-reverse;
  }

  .landing-icon {
    display: flex;
    max-width: 300px;
    flex-basis: 400px;
    justify-content: center;
    align-items: center;
  }

  .network-text {
    text-align: center;

    @media screen and (min-width: 640px) {
      text-align: left;
    }
  
    h2 {
      margin-bottom: 0;
    }
  }
}

.local-container {
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 550px;

  @media screen and (min-width: 640px) {
    display: flex;
    flex-direction: row-reverse;
  }

  .landing-icon {
    display: flex;
    flex-basis: 200px;
    justify-content: center;
    align-items: center;
    fill: #e9e9e9;
  }

  .local-text {
    color: #d3d3d3;

    @media screen and (min-width: 640px) {
      text-align: left;
    }
  
    h2 {
      margin-bottom: 0;
      color: white;
    }
  }
}

.section-text {
  text-align: center;
}

.landing-section-05 {
  padding: 30px 0;
  color: #222;
  margin-bottom: var(--card-overlap);
  background-color: #d9d9d9;

  h2 {
    color: #222;
  }

  .landing-icon {
    fill: #222;
  }

  @media screen and (min-width: 640px) {
    .local-container {
      display: flex;
      flex-direction: row;
    }
  }
}

.final-call-to-action {
  background: var(--primary-color);
  max-width: 550px;
  margin-top: 2rem;
  padding-top: 0.5rem;
  text-align: center;

  h2 {
    color: #222;
  }
}

body.landing footer {
  padding-top: 50px;

  @media screen and (min-width: 640px) {
    padding-top: 64px;
  }
}

iframe.signup {
  height: 100vh;
  width: 100vw;
  border: none;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
}

span.bold {
  font-weight: bold;
}

div.faqq {
  font-weight: bold;
}
