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


/* ========================================
   1. COLOR VARIABLES
======================================== */
:root {
  --white: #fff;
  --off-white: #FAF9F6;
  --elder-white: #E1DDD6;
  --dk-gray: rgb(43, 43, 43);
  --iron-ore: #373732;
  --stone: #b7babc;
  --blue-gray: #6a7676;
  --med-gray: #999;
  --lt-gray: #DFDFDF;
  --soft-gray: #D3D3D3;
}

/* ========================================
   2. TYPOGRAPHY
======================================== */
body {
  font-family: 'Crimson Text', Helvetica,
    sans-serif;
  color: var(--dk-gray)
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
}
.text-serif { font-family: 'Crimson Text'; }
.text-sans { font-family: 'Lato', sans-serif; }
header .navbar {
  color: var(--med-gray);
  padding: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .03rem;
}
.navbar-nav .nav-link {
  color: var(--stone);
  font-size: 1rem;
  transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover {
  color: var(--off-white);
  border-bottom: 1px solid var(--off-white);
}
button {
  font-family: 'Lato', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
}
.intro-heading {
  font-size: 1.875rem;
  font-weight: 300;
}
.section-heading {
  font-size: 1.4rem;
  font-weight: 400;
}
section p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0.005em;
  line-break: auto;
}
#floorplans .desktop-plan,
#floorplans .accordion .accordion-item {
  text-transform: uppercase;
}
#floorplans .btn-download {
  font-size: .8rem;
}
#floorplans .accordion-body p {
  font-size: 1rem;
}
#floorplans .accordion-body .btn {
  font-size: 0.7rem;
}
.swipe-text {
  font-size: 0.8rem;
}
.accordion-button {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}
#neighborhood .score-box p {
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: var(--off-white);
}
.score-headline {
  text-transform: uppercase;
  font-weight: 400;
  font-style: normal;
}
.map-caption p {
  font-family: 'Lato', Helvetica, sans-serif;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.17;
  word-spacing: .06em;
  color: var(--dk-gray);
}
form .form-label {
  font-weight: 600;
  color: var(--dk-gray);
}
form .form-control,
form .form-check-input {
  font-size: 1rem;
}
form .btn {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.text-success {
  color: var(--blue-gray) !important;
  font-weight: 600 !important;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.65px;
}
.footer .fh-logo p {
  font-size: x-small;
}
.footer a {
  color: var(--white);
  text-decoration: underline;
}
.footer a:hover {
  color: var(--lt-gray);
  text-decoration: none;
}
.footer-tagline {
  font-weight: 300;
  font-family: 'Lato', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}

/* ========================================
   3. HEADER / NAVBAR
======================================== */
#main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: white;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-image-section {
  padding-top: 102px;
}
.hero-image-section img {
  width: 100%;
  height: auto;
  display: block;
}
.header-hidden {
  transform: translateY(-100%);
}
.header-scrolled {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
header .navbar {
  text-transform: uppercase;
}
.navbar-brand img {
  height: auto;
  max-height: 60px;
}

/* ========================================
   4. LAYOUT & SPACING
======================================== */
main,
.contact-section,
footer {
  padding-left: 1rem;
  padding-right: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.intro-heading {
  margin-bottom: 1.4rem;
}
.section-heading {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
hr.short-divider {
  width: 100%;
  max-width: 300px;
  margin: 3rem auto;
  border: none;
  border-top: 1px solid var(--iron-ore);
}
.features-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.kitchen-img-wrapper {
  overflow: hidden;
  position: relative;
}
.kitchen-img {
  transform: scale(1.15) translateX(5%);
  transition: transform 0.3s ease;
}
.object-fit-cover {
  object-fit: cover;
  height: 100%;
  width: 100%
}
.site-plan-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}
.contact-section {
  padding-bottom: 6rem;
}
.form-check-input[type=checkbox] {
  margin-right: 1rem;
  border-radius: 0;
} 

/* ========================================
   5. UTILITIES
======================================== */
.img-hover-zoom {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.img-hover-zoom:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ========================================
   6. ACCORDION
======================================== */
.accordion-item {
  position: relative;
  z-index: 1;
  border: none;
  margin-bottom: .4rem;
}
.accordion-item:first-child .accordion-button {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.accordion-body {
  background-color: var(--white);
  padding: 1.4rem 1rem 1rem 1rem;
  border: 1px solid var(--lt-gray);
  border-top: none;
}
.accordion-body ul {
  margin-left: 0;
}
.accordion-body li {
  margin-left: 0;
  margin-bottom: .6rem;
  padding-left: 0;
  line-height: 1.1rem;
}
.accordion-collapse {
  position: relative;
  z-index: 0;
}
.accordion-button {
  position: relative;
  z-index: 2;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  box-shadow: none;
  padding: 1.1rem;
}
.accordion-button:focus,
#floorplans .btn {
  outline: none;
  box-shadow: none;
}
.accordion-button:not(.collapsed) {
  background-color: var(--iron-ore);
  color: var(--off-white);
  font-weight: normal;
}
.accordion-button.collapsed {
  background-color: var(--lt-gray);
  color: var(--iron-ore);
}
.accordion-button::after {
  background-image: none;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  content: "";
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  padding-left: 1.5rem;
  transition: transform 0.2s ease-in-out;
}
#floorplans .btn {
  padding-left: 2.2rem;
  padding-right: 2.2rem;
  border-radius: 0;
}
#floorplans .btn-outline-dark {
  background-color: var(--lt-gray);
  border: none;
}
#floorplans .btn-outline-dark:hover{
  background-color: var(--blue-gray);
}
#floorplans .btn-outline-dark.active {
  background-color: var(--iron-ore);
  border: none;
}
#floorplans .btn-outline-dark.active:hover{
  background-color: var(--iron-ore);
}
#floorplans .accordion-body .btn {
  padding-left: 10px;
  padding-right: 10px;
}
#floorplans .tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
#floorplans .desktop-plan {
  display: none;
}
#floorplans .desktop-plan.active {
  display: block;
}
#floorplans .btn-download {
  padding-left: 14px;
  padding-right: 14px;
}

/* ========================================
   7. SWIPER
======================================== */
.swiper {
  width: 100%;
  overflow: hidden;
}
.swiper-slide {
  max-width: 100%;
  text-align: center;
}
.swiper {
  position: relative;
  padding-bottom: 3rem;
}
.swiper .swiper-pagination {
  position: absolute;
  bottom: 4px !important;
  left: 0;
  width: 100%;
  text-align: center;
}
.swiper-pagination-bullet {
  background-color: rgba(0, 0, 0, 0.2);
  width: 10px;
  height: 10px;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background-color: rgba(0, 0, 0, 0.6);
}

/* ========================================
   8. NEIGHBORHOOD SECTION
======================================== */
.score-box {
  background-color: var(--blue-gray);
  padding: 2.2rem 1.25rem;
  /* outline: 1px solid var(--lt-gray);
  outline-offset: -8px; */
}
.poi-container {
  background-color: var(--elder-white);
}
.poi-container .map-pair:first-of-type {
  margin-bottom: 2rem;
}
.map-pair .map-col:first-child {
  flex: 0 0 60%;
}
.map-pair .map-col:last-child {
  flex: 0 0 40%;
}
.map-pair.stacked {
  display: block;
  width: 100%;
}
.map-pair.stacked .img-hover-zoom img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.map-pair.stacked .map-caption {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}
#neighborhood .img-wrapper {
  overflow: hidden;
}
#neighborhood .img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poi-container .accordion-button.collapsed {
  background-color: var(--off-white);
}
.poi-container .accordion-body {
  border: 1px solid rgba(55, 55, 50, 0.3);
  background-color: var(--elder-white);
}
.poi-container a {
  color: #415353;
}
.poi-container a:hover {
  color: #557272;
}

/* ========================================
   9. CONTACT FORM
======================================== */
#contact {
  background-color: var(--elder-white);
}
.contact-container {
  max-width: 600px;
}
form .form-control:focus,
form .form-check-input:focus {
  border-color: var(--soft-gray);
  box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.08);
  outline: none;
}
form .form-control,
form .form-check-input {
  border-radius: 0;
  border: 1px solid var(--soft-gray);
  padding: 0.75rem;
}
form .form-check-input:checked {
  background-color: var(--iron-ore);
  border-color: var(--iron-ore);
}
form .btn {
  padding: 0.6rem 2.5rem;
  border-radius: 0;
}
form .btn-dark {
  background-color: var(--blue-gray);
  border: none;
}
form .btn-dark:hover {
  background-color: var(--iron-ore);
}
form.visually-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
form:not(.visually-hidden) {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.5s ease;
}
/* Success Message Box */
#form-message {  
  padding-top: .5rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#form-message.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* ========================================
   10. FOOTER
======================================== */
.footer {
  background-color: var(--iron-ore);
  color: var(--white);
  font-size: 0.9rem;
}
.footer a {
  color: var(--white);
  text-decoration: underline;
}
.footer a:hover {
  color: var(--lt-gray);
  text-decoration: none;
}
.footer-tagline {
  font-weight: 300;
  font-family: 'Lato', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}
/* Address & Info Section */
.footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer .row:first-of-type {
  text-align: left;
  justify-content: center;
}
/* Logo Section */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7rem;
  text-align: center;
}
.footer-logo {
  max-height: 50px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
}
.footer-logo+.footer-logo {
  margin-left: 1rem;
}
/* Equal Housing Row */
.fh-logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-top: 2rem;
}
.footer .fh-logo img {
  height: 25px;
}

/* ========================================
   11. MEDIA QUERIES
======================================== */
@media (min-width: 769px) {
  #POIAccordion button {
    font-size: .8rem;
  }
  .footer .row {
    justify-content: center;
    text-align: center;
  }
  .footer .row:first-of-type {
    text-align: center;
  }
}
@media (min-width: 1500px) {
  .footer-logo {
    max-height: 80px;
    display: block;
  }
}

@media (min-width: 420px) {
  .logo-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .partner-logos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}