:root {
  --navy: #1b2a4a;
  --navy-dark: #16213e;
  --accent: #d9437a;
  --accent-dark: #b8305f;
  --accent-light: #fdf1f3;
  --blue-light: #eaf2fb;
  --gray-text: #5b6472;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: "Be Vietnam Pro", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1,
.font-title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
}

h2,
.font-subtitle {
  font-family: "Bitter", serif;
  font-weight: 700;
}

h3,
.font-heading {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
}

img {
  max-width: 100%;
}

.hero-main-logo {
  width: clamp(320px, 32vw, 410px);
  max-width: 100%;
  transform: translateY(-12px);
}

#hero h1 {
  margin-top: 10px;
  margin-bottom: 32px;
  white-space: nowrap;
}

.hero-subheadline {
  margin-bottom: 40px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--navy);
  background: #fff;
}

.btn {
  transition: all 0.25s ease;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, white);
  outline-offset: 3px;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px -6px rgba(217, 67, 122, 0.45);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 24px -6px rgba(217, 67, 122, 0.5);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.btn-outline {
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  color: #fff;
  background: var(--navy);
  transform: translateY(-2px);
}

.btn-facebook {
  color: #fff;
  background: #1877f2;
  box-shadow: 0 8px 20px -6px rgba(24, 119, 242, 0.5);
}

.btn-facebook:hover {
  background: #166fe5;
  box-shadow: 0 12px 24px -6px rgba(24, 119, 242, 0.55);
  transform: translateY(-2px);
}

.underline-deco {
  width: 46px;
  height: 3px;
  margin: 10px auto 0;
  background: var(--accent);
  border-radius: 4px;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.in-view,
.no-js .fade-up {
  opacity: 1;
  transform: translateY(0);
}

.icon-outline {
  stroke: var(--accent);
  stroke-width: 1.6;
}

.card-icon {
  width: 56px;
  height: 56px;
}

.people-group-icon {
  overflow: visible;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-img {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 24px -10px rgba(27, 42, 74, 0.25);
}

.gallery-img img {
  transition: transform 0.45s ease;
}

.gallery-img:hover img {
  transform: scale(1.025);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--accent) !important;
  --swiper-navigation-size: 22px;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
}

.single-community-image .community-swiper {
  max-width: 320px;
  margin-right: auto;
  margin-left: auto;
}

.single-community-image .swiper-button-next,
.single-community-image .swiper-button-prev,
.single-community-image .swiper-pagination {
  display: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #9aa3b5;
}

.map-frame {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 30px -12px rgba(27, 42, 74, 0.3);
}

.location-heading {
  white-space: nowrap;
}

.nearby-item,
.nearby-item:visited {
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nearby-item:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.nearby-item.nearby-active {
  color: var(--accent);
  font-weight: 700;
}

.footer-white-logo {
  filter: brightness(0) invert(1);
}

.site-footer {
  padding: 20px 24px 0;
  background: #052855 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 20% 24% 26% 30%;
  width: 100%;
  max-width: 1200px;
  min-height: 210px;
  margin: 0 auto;
}

.footer-column {
  display: flex;
  min-width: 0;
  padding: 0 32px;
  flex-direction: column;
  justify-content: center;
}

.footer-column + .footer-column {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-logo-pair {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: auto;
  max-width: none;
  margin: 0 auto;
  gap: 16px;
  transform: none;
}

.footer-flamingo-logo {
  width: min(100%, 150px);
  height: auto;
}

.footer-housing-logo {
  width: 74px;
  max-height: 78px;
  object-fit: contain;
}

.footer-management-column {
  align-items: center;
  text-align: center;
}

.footer-elevate-logo {
  width: min(100%, 152px);
  height: auto;
  margin: 0 auto 13px;
}

.footer-management-copy {
  max-width: 220px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.65;
}

.footer-cta-column {
  align-items: flex-start;
  text-align: left;
}

.footer-cta-heading {
  max-width: 230px;
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(25px, 2.2vw, 32px);
  line-height: 1.28;
  white-space: normal;
}

.footer-cta-heading br {
  display: initial;
}

.footer-cta-copy {
  margin: 0 0 19px;
  color: #e64771;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.footer-homes-button {
  position: relative;
  display: inline-flex;
  min-width: 190px;
  min-height: 42px;
  padding: 11px 12px 11px 44px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  background: #1877f2;
  box-shadow: none;
}

.footer-homes-button:hover {
  background: #166fe5;
}

.footer-facebook-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 22px;
  height: 22px;
  color: #fff;
  flex: 0 0 auto;
  transform: translateY(-50%);
}

.footer-form-column {
  padding-right: 0;
  justify-content: flex-start;
}

.footer-form-heading {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

#contactForm {
  width: 100%;
}

#contactForm.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 5px;
}

#contactForm input,
#contactForm textarea {
  min-height: 30px;
  padding: 7px 11px;
  color: #5b6472;
  font-size: 11px;
  line-height: 1.25;
  border: 1px solid rgba(9, 26, 49, 0.2);
  border-radius: 3px;
}

#contactForm textarea {
  min-height: 56px;
}

#contactForm button {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.2;
  background: #e64771;
  box-shadow: none;
}

#contactForm button:hover {
  background: #d63d67;
}

.footer-copyright {
  max-width: 1200px;
  min-height: 34px;
  margin: 12px auto 0;
  padding: 9px 20px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.floating-call-button {
  box-shadow: 0 10px 24px -6px rgba(217, 67, 122, 0.55);
}

.flamingo-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#contactModalOverlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
  background: rgba(5, 20, 35, 0.55);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

#contactModalOverlay.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition-delay: 0s;
}

#contactModalCard {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  padding: 28px 26px 26px;
  overflow-y: auto;
  background: var(--navy-dark);
  border-radius: 18px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

#contactModalOverlay.open #contactModalCard {
  transform: translateY(0) scale(1);
}

#contactModalCard input,
#contactModalCard textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--navy);
  font-size: 14px;
  background: #eef2f6;
  border: 0;
  border-radius: 10px;
  outline: 0;
}

#contactModalCard input:focus,
#contactModalCard textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

#contactModalClose {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

#contactModalClose:hover {
  color: #fff;
}

.form-status.is-success {
  color: #f8b4cd;
}

.form-status.is-error {
  color: #fca5a5;
}

.entry-content > * + * {
  margin-top: 1.25rem;
}

@media (max-width: 767px) {
  #hero {
    min-height: 600px;
  }

  #hero .relative.z-10 {
    width: 100%;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-main-logo {
    width: min(92%, 310px);
    transform: translateY(-8px);
  }

  #hero h1 {
    margin-top: 8px;
    margin-bottom: 26px;
    font-size: clamp(1.35rem, 7vw, 2.65rem);
    line-height: 1.12;
  }

  #hero p {
    max-width: 34rem;
    margin-bottom: 34px;
    font-size: clamp(0.76rem, 3.5vw, 0.98rem);
    line-height: 1.65;
  }

  #hero .btn {
    width: min(100%, 320px);
  }

  #benefits,
  #community,
  #ownership,
  #location {
    padding: 64px 20px;
  }

  #benefits h2,
  #community h2,
  #ownership h2,
  #location h2 {
    font-size: clamp(1.75rem, 7.4vw, 2.2rem);
    line-height: 1.2;
  }

  .location-heading {
    max-width: 100%;
    white-space: normal;
  }

  .map-frame iframe {
    height: 340px;
  }

  .community-swiper {
    overflow: visible;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  #contact {
    padding: 0 20px;
  }

  .floating-call-button {
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  #contactModalOverlay {
    align-items: flex-end;
    padding: 12px;
  }

  #contactModalCard {
    max-height: calc(100vh - 24px);
    padding: 24px 20px 22px;
    border-radius: 18px 18px 14px 14px;
  }
}

@media (max-width: 380px) {
  #hero {
    min-height: 570px;
  }

  #hero h1 {
    font-size: 1.9rem;
  }

  .hero-main-logo {
    width: min(90%, 280px);
  }

  #benefits,
  #community,
  #ownership,
  #location {
    padding-right: 16px;
    padding-left: 16px;
  }

  #ownership .grid {
    gap: 2rem 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-column {
    min-height: 235px;
    padding: 28px 42px;
  }

  .footer-column:nth-child(3) {
    border-left: 0;
  }

  .footer-column:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .footer-form-column {
    padding-right: 42px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 0 20px;
  }

  .footer-grid {
    display: block;
    min-height: 0;
  }

  .footer-column {
    width: 100%;
    min-height: 0;
    padding: 34px 10px;
    align-items: center;
    text-align: center;
    border-left: 0 !important;
  }

  .footer-column + .footer-column {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .footer-logo-pair {
    flex-direction: row;
    gap: 22px;
  }

  .footer-flamingo-logo {
    width: min(55vw, 170px);
  }

  .footer-housing-logo {
    width: min(23vw, 78px);
    max-height: 84px;
  }

  .footer-elevate-logo {
    width: min(58vw, 175px);
  }

  .footer-management-copy {
    max-width: 340px;
    font-size: 12px;
  }

  .footer-cta-heading {
    max-width: 310px;
    margin-bottom: 12px;
    font-size: clamp(26px, 8vw, 32px);
    text-align: center;
  }

  .footer-cta-copy {
    font-size: clamp(13px, 4vw, 17px);
  }

  .footer-homes-button {
    width: min(100%, 300px);
  }

  .footer-form-column {
    padding-right: 10px;
  }

  .footer-form-heading {
    width: min(100%, 420px);
    font-size: 19px;
    text-align: left;
  }

  #contactForm {
    max-width: 420px;
  }

  #contactForm input,
  #contactForm textarea {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }

  #contactForm textarea {
    min-height: 82px;
  }

  #contactForm button {
    min-height: 42px;
    font-size: 12px;
  }

  .footer-copyright {
    margin-top: 0;
    padding: 18px 8px 20px;
    font-size: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
