/* ==========================================================================
   Fonts
   ========================================================================== */


/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --hdp-primary: #1c262e;
  --hdp-secondary: #a15433;
  --hdp-tertiary: #fbaf63;
  --hdp-light: #f7f3ed;
  /* --hdp-light-alt: #f0e7da; */
  --hdp-light-alt: #f0ebe4;
  --hdp-light-text: #0c1114;
  --hdp-dark: #13171a;
  --hdp-dark-text: #f5f5f5;
  --hdp-font-heading: "Noto Kufi Arabic", sans-serif;
  /* --hdp-font-body: "IBM Plex Sans Arabic", sans-serif; */
  --hdp-font-body: "Noto Kufi Arabic", sans-serif;
  --hdp-header-height: 4.5rem;
  --hdp-container: 70rem;
  --hdp-space: 1.25rem;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdp-header-height);
}

html body {
  margin: 0;
  font-family: var(--hdp-font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hdp-light-text);
  background: var(--hdp-light);
  overflow-x: hidden;
}

body.is-nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

html h1,
html h2,
html h3 {
  font-family: var(--hdp-font-heading);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--hdp-primary);
  color: var(--hdp-dark-text);
  border-radius: 0.35rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

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

:focus-visible {
  outline: 2px solid var(--hdp-secondary);
  outline-offset: 3px;
}

.page-wrap {
  width: min(100% - (var(--hdp-space) * 2), var(--hdp-container));
  margin-inline: auto;
}

.section {
  padding-block: 4rem;
  font-size: 1.05rem;
}

.section p,
.units__list {
  font-size: inherit;
}

.section__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--hdp-primary);
  margin-bottom: 1rem;
}

.section__title::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.55rem;
  background: var(--hdp-secondary);
}

.payment .section__title,
.location .section__title,
.facilities .section__title,
.developer .section__title {
  text-align: center;
}

.payment .section__title,
.developer .section__title {
  color: var(--hdp-dark-text);
}

.payment .section__title::after,
.location .section__title::after,
.facilities .section__title::after,
.developer .section__title::after {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section {
    padding-block: 5.5rem;
    font-size: 1.15rem;
  }
}

/* @media (min-width: 1200px) {
  .section {
    font-size: 1.22rem;
  }
} */

.section--light {
  background: var(--hdp-light);
  color: var(--hdp-light-text);
}

.section--alt {
  background: var(--hdp-light-alt);
  color: var(--hdp-light-text);
}

.section--primary {
  background: var(--hdp-primary);
  color: var(--hdp-dark-text);
}

.latin {
  unicode-bidi: isolate;
  direction: ltr;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--hdp-header-height);
  background: transparent;
  color: var(--hdp-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.is-solid,
.site-header.is-open {
  background: var(--hdp-primary);
  color: var(--hdp-dark-text);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
}

.site-header.is-solid .site-header__logo img,
.site-header.is-open .site-header__logo img {
  filter: brightness(0) invert(1);
}

.site-header__inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding-inline: 1.8rem;
  direction: ltr;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1001;
}

.site-header__logo img {
  height: 1.65rem;
  width: auto;
}

.nav-toggle {
  --bar: 0.125rem;
  --gap: 0.35rem;
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: var(--bar);
  margin: 0;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(calc(var(--bar) + var(--gap))) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(calc(-1 * (var(--bar) + var(--gap)))) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hdp-primary);
  color: var(--hdp-dark-text);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.site-header.is-open .site-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  direction: rtl;
}

.site-nav__list a {
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav__list a:not(.site-nav__cta) {
  color: var(--hdp-primary);
}

.site-header.is-solid .site-nav__list a:not(.site-nav__cta),
.site-header.is-open .site-nav__list a:not(.site-nav__cta) {
  color: var(--hdp-dark-text);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--hdp-dark-text);
}

.site-header.is-solid .site-nav__list a:hover,
.site-header.is-solid .site-nav__list a:focus-visible,
.site-header.is-open .site-nav__list a:hover,
.site-header.is-open .site-nav__list a:focus-visible {
  color: var(--hdp-secondary);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 2rem;
  background: transparent;
  color: inherit;
  font-weight: 600;
}

.site-nav__list a.site-nav__cta:hover,
.site-nav__list a.site-nav__cta:focus-visible {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.site-header.is-solid .site-nav__cta,
.site-header.is-open .site-nav__cta {
  background: var(--hdp-secondary);
  border-color: var(--hdp-secondary);
  color: var(--hdp-dark-text);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.site-header.is-solid .site-nav__list a.site-nav__cta:hover,
.site-header.is-solid .site-nav__list a.site-nav__cta:focus-visible,
.site-header.is-open .site-nav__list a.site-nav__cta:hover,
.site-header.is-open .site-nav__list a.site-nav__cta:focus-visible {
  /* background: var(--hdp-tertiary);
  border-color: var(--hdp-tertiary); */
  background: color-mix(in srgb, var(--hdp-secondary) 90%, black);
  border-color: color-mix(in srgb, var(--hdp-secondary) 90%, black);
  color: var(--hdp-dark-text);
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    background: transparent;
    color: inherit;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 1.35rem;
  }

  .site-nav__list a {
    font-size: 0.95rem;
  }

  .site-header__inner {
    padding-inline: 3rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  background: #fff;
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 3.25rem var(--hdp-space) 1.25rem;
}

.hero__brand {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  width: min(90vw, 24rem);
  aspect-ratio: 5.2 / 1;
  transform: translate(calc(-50% + 1.55rem), calc(-50% - 0.25rem));
  pointer-events: none;
  filter: drop-shadow(1.1px 0 0 rgba(255, 255, 255, 0.62))
  drop-shadow(-1.1px 0 0 rgba(255, 255, 255, 0.62))
  drop-shadow(0 1.1px 0 rgba(255, 255, 255, 0.62))
  drop-shadow(0 -1.1px 0 rgba(255, 255, 255, 0.62))
  drop-shadow(0 0 2.85rem rgba(255, 255, 255, 0.7))
  drop-shadow(0 0 1.5rem rgba(255, 255, 255, 0.4));
}


.hero__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--hdp-dark);
  background-image: url("../img/header/header 1_1280.webp");
  background-repeat: no-repeat;
  background-position: 42% 48%;
  background-size: 220%;
  -webkit-mask-image: url("../img/logos/logo%20project%20white%20crop.png");
  mask-image: url("../img/logos/logo%20project%20white%20crop.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-mode: luminance;
}

.hero__intro {
  width: 100%;
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--hdp-primary);
  text-align: right;
}

.hero__cta {
  display: block;
  max-width: 8.5rem;
  margin-inline-end: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(26, 35, 42, 0.28);
  color: var(--hdp-primary);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: right;
  transition: color 0.25s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  color: var(--hdp-secondary);
}

.hero__media {
  order: -1;
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background-color: #ece8e1;
}

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

@media (min-width: 768px) and (min-height: 600px) {
  .hero {
    flex-direction: row-reverse;
    height: 100svh;
    max-height: none;
  }

  .hero__copy {
    flex: 0 0 36%;
    min-height: 100svh;
    justify-content: flex-end;
    padding: 6rem 2.5rem 3.5rem;
  }

  .hero__brand {
    left: 0;
    top: 50%;
    width: min(54vw, 36rem);
    transform: translate(calc(-50% + 2.6rem), calc(-50% - 3.7rem));
  }

  .hero__brand::after {
    background-size: 160%;
    background-position: 35% 45%;
  }

  .hero__media {
    order: 0;
    flex: 1 1 64%;
    min-height: 100svh;
  }

  .hero__media img {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .hero__title {
    font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  }

  .hero__cta {
    font-size: 1.35rem;
  }
}

@media (max-height: 540px) {
  .hero {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 100svh;
  }

  .hero__copy {
    flex: 0 0 auto;
    min-height: 0;
    padding: 3.75rem var(--hdp-space) 1rem;
  }

  .hero__brand {
    left: 50%;
    top: 0;
    z-index: 1;
    width: min(42vw, 14rem);
    transform: translate(calc(-50% + 0.95rem), calc(-50% - 0.1rem));
    filter: drop-shadow(1.1px 0 0 rgba(255, 255, 255, 0.62))
      drop-shadow(-1.1px 0 0 rgba(255, 255, 255, 0.62))
      drop-shadow(0 1.1px 0 rgba(255, 255, 255, 0.62))
      drop-shadow(0 -1.1px 0 rgba(255, 255, 255, 0.62))
      drop-shadow(0 0 1.1rem rgba(255, 255, 255, 0.55));
  }

  .hero__title {
    font-size: clamp(1.35rem, 6.5vh, 2rem);
    margin-bottom: 0.85rem;
  }

  .hero__cta {
    font-size: 1.05rem;
    padding-top: 0.85rem;
  }

  .hero__media {
    order: -1;
    flex: 1 1 40svh;
    min-height: 9rem;
  }

  .hero__media img {
    position: static;
    min-height: 0;
  }
}

/* ==========================================================================
   Payment + About (shared background)
   ========================================================================== */

.story-band {
  background: var(--hdp-light);
  color: var(--hdp-light-text);
}

.payment {
  padding-block: 4.25rem;
  background: var(--hdp-primary);
  color: var(--hdp-dark-text);
}

.payment .page-wrap {
  text-align: center;
}

.payment .section__title {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin-bottom: 1.35rem;
}

.payment .section__title::after {
  background: var(--hdp-tertiary);
}

.payment__lead {
  font-family: var(--hdp-font-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.payment__detail {
  max-width: 46rem;
  margin-inline: auto;
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
  line-height: 1.85;
}

.payment__detail strong {
  color: var(--hdp-tertiary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .payment {
    padding-block: 5.25rem;
  }
}

.about {
  padding-top: 4rem;
}

.about__grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.75rem;
}

/* .about__media {
  max-width: 28rem;
} */

.about__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 0.625rem;
  box-shadow: 0 0.5rem 1.35rem rgba(26, 35, 42, 0.12);
  transition:
    box-shadow 0.45s ease,
    transform 0.45s ease;
}

.about__media img:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.75rem 1.7rem rgba(26, 35, 42, 0.16);
}

.about__copy p {
  max-width: 40rem;
  text-align: justify;
}

@media (min-width: 768px) {
  .about__grid {
    flex-direction: row;
    /* align-items: center; */
  }

  .about__copy,
  .about__media {
    flex: 1 1 0;
  }
}

@media (min-width: 992px) {
  .about__grid {
    gap: 5rem;
  }
}

/* ==========================================================================
   Location
   ========================================================================== */

.location__grid {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.location__copy p {
  max-width: 36rem;
  margin-inline: auto;
}

.location__map {
  position: relative;
  /* width: min(100%, 32rem);
  aspect-ratio: 1 / 1; */
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0.625rem;
  background: var(--hdp-light-alt);
  box-shadow: 0 0.5rem 1.35rem rgba(26, 35, 42, 0.12);
}

.location__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .location__map {
    aspect-ratio: 21 / 9;
  }
}

/* ==========================================================================
   Unit types
   ========================================================================== */

.units.section {
  padding-block: 0;
  background-color: var(--hdp-light);
}

.units__grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  background-color: var(--hdp-light);
}

.units__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: 4rem 3.25rem;
  background-color: var(--hdp-light);
}

.units .section__title {
  margin-bottom: 2rem;
}

.units__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.units__list li {
  color: var(--hdp-primary);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
}

.units__scroller {
  overflow: hidden;
  direction: ltr;
  pointer-events: none;
}

.units__track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  will-change: transform;
}

.units__shot {
  flex: 0 0 auto;
  width: 72vw;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--hdp-primary);
}

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

@media (min-width: 768px) {
  .units.section {
    overflow: hidden;
  }

  .units__grid {
    display: grid;
    grid-template-columns: minmax(11rem, 0.8fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: start;
    width: min(100% - (var(--hdp-space) * 2), var(--hdp-container));
    margin-inline: auto;
  }

  .units__copy {
    width: 100%;
    margin-inline: 0;
    padding-block: 5.5rem 7rem;
  }

  .units__list li {
    font-size: 1.3rem;
  }

  .units__scroller {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 13;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .units__track {
    position: absolute;
    inset-inline: 0;
    top: 0;
    flex-direction: column;
    width: 100%;
  }

  .units__shot {
    width: 100%;
    border-radius: 1.15rem;
  }
}

/* ==========================================================================
   Facilities
   ========================================================================== */

.facilities {
  overflow: hidden;
  background: var(--hdp-light-alt);
}

.facilities-carousel {
  position: relative;
  width: 100%;
}

.facilities-carousel__stage {
  position: relative;
  height: 20.5rem;
}

.facilities-carousel.is-dragging .facility-card {
  transition: none;
}

@media (pointer: coarse) {
  .facilities-carousel__stage {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
}

.facilities-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-inline: 1rem;
}

.facilities-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 35, 42, 0.28);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.facilities-carousel__dot:hover,
.facilities-carousel__dot:focus-visible {
  background: var(--hdp-secondary);
  outline: none;
}

.facilities-carousel__dot.is-active {
  background: var(--hdp-primary);
  transform: scale(1.2);
}

.facility-card {
  --tx: 0px;
  --scale: 1;
  --abs-offset: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(14.5rem, 62vw);
  height: 18rem;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
  background: #fff;
  color: var(--hdp-light-text);
  border-radius: 1rem;
  box-shadow: 0 0.85rem 2rem rgba(26, 35, 42, 0.12);
  transform: translate(-50%, -50%) translateX(var(--tx)) scale(var(--scale));
  opacity: calc(1 - (var(--abs-offset) * 0.18));
  z-index: calc(20 - var(--abs-offset));
  transition:
    transform 0.6s ease,
    opacity 0.6s ease,
    box-shadow 0.6s ease;
  cursor: pointer;
}

.facility-card.is-active {
  box-shadow: 0 1.15rem 2.6rem rgba(26, 35, 42, 0.2);
  cursor: default;
}

.facility-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.facility-card img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(64%) sepia(18%) saturate(780%)
    hue-rotate(351deg) brightness(92%) contrast(88%);
}

.facility-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .facilities-carousel__stage {
    height: 24rem;
  }

  .facility-card {
    width: 16.5rem;
    height: 21rem;
    border-radius: 1.15rem;
    background: var(--hdp-light);
  }

  .facility-card img {
    width: 5rem;
    height: 5rem;
  }

  .facility-card h3 {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   About developer
   ========================================================================== */

.developer__grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
  text-align: center;
}

.developer__logo img {
  width: min(14rem, 70vw);
  height: auto;
  margin-inline: auto;
}

.developer__copy {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin-inline: auto;
}

.developer__copy p {
  text-align: justify;
  text-align-last: center;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

#contact {
  scroll-margin-top: calc(var(--hdp-header-height) + 0.75rem);
  background: #fff;
}

.contact__wrap {
  width: min(100% - 2.5rem, 40rem);
}

@media (min-width: 768px) {
  .contact__wrap {
    width: min(100% - (var(--hdp-space) * 2), 40rem);
  }
}

.contact .section__title {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  text-align: center;
}

.contact .section__title::after {
  margin-inline: auto;
}

#contactForm {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding: 0.15rem 0.15rem 0.35rem;
}

#contact .form-control {
  border: 1px solid rgba(26, 35, 42, 0.1) !important;
  border-radius: 0.75rem;
  background-color: #f7f5f2 !important;
  box-shadow: none;
  color: var(--hdp-primary);
  text-align: right;
  font-family: var(--hdp-font-body);
  font-size: 1.05rem;
}

#contact .form-control:focus {
  border-color: var(--hdp-secondary) !important;
  background-color: #faf9f7 !important;
  box-shadow: none;
}

#contact .form-control.error {
  border-color: #9a3b32;
}

#contact .form-floating > label {
  left: auto;
  right: 0;
  width: 100%;
  padding-right: 0.9rem;
  padding-left: 0.9rem;
  text-align: right;
  transform-origin: right top;
  color: rgba(26, 35, 42, 0.55);
  font-family: var(--hdp-font-body);
  font-size: 1.05rem;
  font-weight: 500;
}

#contact .form-floating > .form-control:focus ~ label,
#contact .form-floating > .form-control:not(:placeholder-shown) ~ label,
#contact .form-floating:focus-within > label[for="phone"],
#contact
  .form-floating:has(#phone:not(:placeholder-shown))
  > label[for="phone"] {
  color: var(--hdp-secondary);
  opacity: 1;
  transform: translateY(-0.45rem) scale(0.85);
}

#contact #phone {
  height: calc(3.5rem + 2px);
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
  padding-right: 0.9rem;
  padding-left: 3.4rem;
}

#contact #phone::placeholder {
  color: transparent;
  opacity: 0;
}

#contact .form-floating > label[for="phone"] {
  height: calc(3.5rem + 2px);
}

#contact input[type="number"],
#contact input[type="tel"] {
  appearance: textfield;
}

#contact input[type="number"]::-webkit-outer-spin-button,
#contact input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#contact .iti {
  width: 100%;
  display: block;
}

#contact .iti__selected-flag {
  gap: 0.25rem;
}

#contact .iti__country-list {
  border-radius: 0.75rem;
  border-color: rgba(26, 35, 42, 0.18);
  box-shadow: 0 0.45rem 1.2rem rgba(26, 35, 42, 0.12);
  font-family: var(--hdp-font-body);
  text-align: right;
  left: 0;
}

#contact .iti__country-name,
#contact .iti__dial-code,
.iti-mobile .iti__country-name,
.iti-mobile .iti__dial-code {
  direction: ltr;
  unicode-bidi: isolate;
}

#contact .iti__country.iti__highlight {
  background-color: rgba(177, 139, 97, 0.16);
}

#contact .iti__dial-code,
.iti-mobile .iti__dial-code {
  padding: 0 0.5rem;
}

#contact #error-msg:not(.iti__hide),
#contact #valid-msg:not(.iti__hide) {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--hdp-font-body);
  font-size: 0.92rem;
  text-align: right;
}

#contact #error-msg {
  color: #9a3b32;
}

#contact #valid-msg {
  color: #2f6b45;
}

#contact .contact__submit {
  width: 100%;
  min-height: 3.1rem;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 2rem;
  background: var(--hdp-primary);
  color: var(--hdp-dark-text);
  font-family: var(--hdp-font-body);
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

#contact .contact__submit:hover,
#contact .contact__submit:focus-visible {
  background: var(--hdp-secondary);
  color: var(--hdp-dark-text);
}

#contact .contact__submit:disabled {
  pointer-events: none;
  opacity: 0.7;
}

#contact .w-form-done > div,
#contact .w-form-fail > div {
  padding: 1.25rem 1rem;
  background: #f7f5f2;
  border-radius: 0.75rem;
  text-align: center;
  font-family: var(--hdp-font-body);
  font-size: 1.1rem;
}

#contact .w-form-fail > div {
  color: #9a3b32;
}

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

.site-footer {
  background: var(--hdp-dark);
  color: var(--hdp-dark-text);
  font-family: var(--hdp-font-body);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.site-footer__inner {
  width: min(100%, var(--hdp-container));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--hdp-secondary);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.js-anim .hero__title {
  animation: rise-in 0.75s ease both;
}

.js-anim .hero__cta {
  animation: rise-in 0.75s ease 0.12s both;
}

.js-anim .hero__media {
  animation: fade-in 0.9s ease both;
}

.js-anim .reveal {
  opacity: 0;
  transform: translateY(0.9rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js-anim .reveal.is-inview {
  opacity: 1;
  transform: none;
}

.js-anim .reveal.is-inview .section__title::after {
  animation: line-in 0.45s ease 0.15s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes line-in {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.js-anim .section__title::after {
  transform-origin: right center;
}

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

  .site-header,
  .site-nav,
  .nav-toggle span,
  .facility-card,
  .about__media img,
  .hero__cta,
  .units__track {
    transition: none;
  }

  .js-anim .hero__title,
  .js-anim .hero__cta,
  .js-anim .hero__media,
  .js-anim .reveal,
  .js-anim .reveal.is-inview .section__title::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
