/* ==========================================================================
   71 Fifth Avenue - static site styles
   ========================================================================== */

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

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

body {
  margin: 0;
  background: #fff;
  color: #676767;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #5e5e5e;
  margin: 0 0 7px;
}

h2 {
  font-size: 28.9px;
  line-height: 35.7px;
}

h3 {
  font-size: 18.7px;
  line-height: 27.2px;
}

h4 {
  font-size: 16px;
  line-height: 26px;
}

h4 strong,
strong,
b {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

p {
  margin: 0 0 22px;
}

ul {
  margin: 0 0 22px 30px;
  padding: 0;
}

ul li {
  margin-bottom: 4px;
}

ul li p {
  margin: 0;
}

sup {
  font-size: 0.6em;
}

.container {
  width: 100%;
  max-width: 1425px;
  margin: 0 auto;
  padding: 0 90px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: #000;
  color: #fff;
  padding: 10px 15px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fff;
  transition: transform 0.35s ease, background-color 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 28px;
}

.site-header .logo img {
  height: 60px;
  width: auto;
}

.header-spacer {
  height: 102px;
}

/* Transparent header over the home page slideshow */
.home .site-header {
  position: absolute;
  background: transparent;
}

.home .header-spacer {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 2px;
  background: #000;
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.35s ease;
}

/* Hamburger turns into an X while the menu is open */
.menu-toggle[aria-expanded="true"] span {
  background: #fff;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Header sits above the menu overlay so the X stays clickable */
body.menu-open .site-header {
  position: fixed;
  z-index: 10001;
  background: transparent;
  transform: none;
}

body.menu-open .site-header .logo {
  opacity: 0;
  pointer-events: none;
}

.site-header .logo {
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   Full screen menu
   ========================================================================== */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.menu-overlay li {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.is-open li {
  opacity: 1;
  transform: none;
}

.menu-overlay.is-open li:nth-child(2) { transition-delay: 0.05s; }
.menu-overlay.is-open li:nth-child(3) { transition-delay: 0.1s; }
.menu-overlay.is-open li:nth-child(4) { transition-delay: 0.15s; }
.menu-overlay.is-open li:nth-child(5) { transition-delay: 0.2s; }

.menu-overlay li a {
  display: inline-block;
  padding: 8px 0;
  color: #fff;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 42px;
  font-weight: 300;
  text-transform: uppercase;
}

.menu-overlay li a:hover,
.menu-overlay li a[aria-current="page"] {
  opacity: 0.6;
}

.menu-overlay__bottom {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 12px;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Home page slideshow
   ========================================================================== */

.hero-slider {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

.hero-slide img.pos-bottom {
  object-position: center bottom;
}

.hero-slide__caption {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 3px 5px 3px 8px;
  white-space: nowrap;
  background-color: rgba(168, 168, 168, 0.6);
  color: #fff;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 48px;
  line-height: 72px;
  font-weight: 300;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-150%, -50%);
  transition: background-color 0.2s ease;
}

.hero-slide__caption--sm {
  font-size: 38px;
  line-height: 62px;
}

.hero-slide__caption--md {
  font-size: 42px;
  line-height: 62px;
  text-align: left;
}

.hero-slide.is-active .hero-slide__caption {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: transform 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s, background-color 0.2s ease;
}

.hero-slide__caption:hover {
  opacity: 1;
  background-color: transparent;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hero-arrow:hover {
  opacity: 0.75;
}

.hero-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

.hero-arrow--prev {
  left: 20px;
}

.hero-arrow--prev::before {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.hero-arrow--next {
  right: 20px;
}

.hero-arrow--next::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

.hero-bullets {
  position: absolute;
  bottom: 80px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-bullet {
  position: relative;
  width: 16px;
  height: 16px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  box-shadow: inset 0 0 0 2px #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-bullet:hover {
  background-color: rgba(0, 0, 0, 0.21);
}

.hero-bullet::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #fff;
  box-shadow: 0 0 1px #fff;
  transition: height 0.3s ease;
}

.hero-bullet.is-active::after {
  height: 100%;
}

/* ==========================================================================
   Content sections
   ========================================================================== */

.section {
  padding: 80px 0;
}

.section--pt-0 { padding-top: 0; }
.section--pb-0 { padding-bottom: 0; }
.section--pt-40 { padding-top: 40px; }
.section--pb-40 { padding-bottom: 40px; }
.section--pt-vw6 { padding-top: 6vw; }
.section--pt-vw3 { padding-top: 3vw; }
.section--pb-vw3 { padding-bottom: 3vw; }
.section--pb-vw10 { padding-bottom: 10vw; }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.row--middle {
  align-items: center;
}

.row--8-4 {
  grid-template-columns: 2fr 1fr;
}

.row--4-8 {
  grid-template-columns: 1fr 2fr;
}

.row--thirds {
  grid-template-columns: repeat(3, 1fr);
}

.row--gap-60 {
  gap: 60px;
}

.row--gap-0 {
  gap: 0;
}

.pad-right-6 { padding-right: 6%; }
.pad-left-6 { padding-left: 6%; }
.pad-right-4 { padding-right: 4%; }
.pad-y-4 { padding-top: 4%; padding-bottom: 4%; }

.text-block {
  max-width: 500px;
  margin-top: 20px;
}

.centered {
  text-align: center;
}

.centered img {
  margin-left: auto;
  margin-right: auto;
}

.spacer-60 { height: 60px; }
.spacer-30 { height: 30px; }

.divider {
  height: 1px;
  margin: 40px 0;
  background: #ddd;
  border: 0;
}

/* Image tiles used on the neighborhood page */
.image-tile {
  height: 300px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.image-tile--top {
  background-position: center top;
}

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

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn--purple {
  background: #836998;
  border-color: #836998;
  color: #fff;
}

.btn--outline-purple {
  background: transparent;
  border-color: #836998;
  color: #836998;
}

.btn--outline-purple:hover {
  background: #836998;
  color: #fff;
  opacity: 1;
}

.btn--mt-20 {
  margin-top: 20px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-row {
  margin-top: 20px;
}

.contact-card p {
  margin: 0;
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.to-top {
  position: fixed;
  right: 17px;
  bottom: 17px;
  z-index: 8000;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: #000;
}

.to-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-50%, -25%) rotate(45deg);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(11, 11, 11, 0.9);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .hero-slide__caption { font-size: 40px; line-height: 60px; }
  .hero-slide__caption--sm { font-size: 32px; line-height: 52px; }
  .hero-slide__caption--md { font-size: 36px; line-height: 54px; }
}

@media (max-width: 999px) {
  .container {
    padding: 0 40px;
  }

  .site-header {
    position: absolute;
  }

  .site-header__inner {
    padding: 13px 20px;
  }

  .site-header .logo img {
    height: 30px;
  }

  .header-spacer {
    height: 56px;
  }

  .row--8-4,
  .row--4-8,
  .row--thirds {
    grid-template-columns: 1fr;
  }

  .row--gap-0 {
    gap: 0;
  }

  .row--reverse-mobile > :first-child {
    order: 2;
  }

  .pad-right-6,
  .pad-left-6,
  .pad-right-4 {
    padding-left: 0;
    padding-right: 0;
  }

  .text-block {
    max-width: none;
  }

  .section {
    padding: 55px 0;
  }

  .section--pt-0 { padding-top: 0; }
  .section--pb-0 { padding-bottom: 0; }
  .section--pt-40 { padding-top: 30px; }
  .section--pb-40 { padding-bottom: 30px; }

  .contact-row {
    gap: 25px;
  }

  .hero-slide__caption,
  .hero-slide__caption--sm,
  .hero-slide__caption--md {
    font-size: 28px;
    line-height: 42px;
  }

  .hero-bullets {
    bottom: 40px;
  }
}

@media (max-width: 690px) {
  .container {
    padding: 0 20px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .image-tile {
    height: 250px;
  }

  .menu-overlay li a {
    font-size: 24px;
    line-height: 32px;
  }

  .hero-slide__caption,
  .hero-slide__caption--sm,
  .hero-slide__caption--md {
    width: 80%;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 1px;
    white-space: normal;
    text-align: center;
  }

  .hero-slide__caption br {
    display: none;
  }

  .hero-arrow--prev { left: 5px; }
  .hero-arrow--next { right: 5px; }

  .btn {
    padding: 13px 24px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
