/* ============================================================
   BASE html, body, headings, links, img, tables
   ============================================================ */

html { font-size: 15px; }

body {
  color: var(--text-main);
  background-color: var(--bg-body);
  font-family: var(--font-body);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: var(--font-heading);
  color: var(--brand-white);
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

h1, .h1 {font-size: 1.5rem;}
h2, .h2 {font-size: 1.3rem;}
h3, .h3 { font-size: 1.2rem; }
h4, .h4 { font-size: 1.15rem; }
h5, .h5 { margin-bottom: 0.5rem; font-weight: 300; }

p { margin-bottom: 1.5rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

a:hover { text-decoration: none; opacity: 0.8; }

img { max-width: 100% !important; height: auto; }

hr {
  border-color: rgba(255, 255, 255, 0.15) !important;
  opacity: 1;
  margin: 0;
}

.small, small {font-size: 10px!important;}

.lead { font-size: 1.1rem; font-weight: 300; }

b, strong { font-weight: 600; }

.prose > *:last-child { margin-bottom: 0; }

.prose ul {
  padding-left: 1rem;
  list-style-position: outside;
}

.prose ul li { margin-bottom: 0.5rem; }

@media (min-width: 576px) {
  h1, .h1 {font-size: 1.5rem;}
  h2, .h2 { font-size: 1.75rem; }
}

@media (min-width: 992px) {
  .lead { font-size: 1.25rem; }
}

@media (min-width: 1200px) {
  html { font-size: 14px; }
  h1, .h1 {font-size: 1.75rem;}
  h2, .h2 {font-size: 1.4rem;}
  h3, .h3 { font-size: 1.5rem; }
  h4, .h4 { font-size: 1.15rem; }
  h5, .h5 { margin-bottom: 0.5rem; }
}


/* ============================================================
   LAYOUT  header, footer, nav, global page structure
   ============================================================ */

.site-main > section + section {
  margin-top: var(--section-gap);
}

.header {
  z-index: 9;
  position: absolute;
  width: 100%;
  background: transparent;
}

.navbar {padding: 15px 0;}

.container,
.container-fluid {
  --bs-gutter-x: var(--container-gutter-mobile);
}

@media (min-width: 992px) {
  .navbar { padding: 25px 0; }

  .container,
  .container-fluid {
    --bs-gutter-x: var(--container-gutter);
  }

.story-split__content, .home-intro__text, .home-team__content {
  /* max-width: 300px; */
  padding-left: 0px!important;
  padding-right: 0px!important;
  margin: 0 auto;
  color: #fff;
}


}

.nav-link {
  font-size: 0.9rem;
  color: var(--brand-white);
  padding: 0.75rem 0 !important;
  margin: 0 0.75rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-link:hover,
.current-menu-item a.nav-link {
  color: var(--brand-primary);
  text-decoration: none;
}

.navbar .nav-item:last-child a { margin-right: 23px; }


/* ============================================================
   HERO
   ============================================================ */

.home-hero {
  min-height: 75vh;
  min-height: 75svh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-bottom: var(--section-gap);
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 20%);
  z-index: 1;
}

.home-hero::after {
  content: "";
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 611 / 981;
  background: url("../images/home-hero-shape.png") no-repeat right center / 100% 100%;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .home-hero::after { display: block; }
}

.home-hero__content {
  position: relative;
  z-index: 2;
  color: var(--brand-white);
}

.home-hero h1 {
  color: var(--brand-white);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .home-hero h1 {/* font-size: 1.75rem; */}
}

@media (min-width: 992px) {
  .home-hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .home-hero h1 {/* font-size: 2.1rem; */}
}


/* ============================================================
   PAGE HEADER (internal pages)
   ============================================================ */

.page-header {
  background-color: var(--brand-black);
  padding: calc(var(--section-gap) + 80px) 0 var(--section-gap);
}

.page-header h1 { color: var(--brand-white); }


/* ============================================================
   PAGE HERO (short banner with image + title)
   ============================================================ */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 40vh;
  padding-bottom: 2rem;
  background-color: var(--brand-black);
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 35%), rgb(0 0 0 / 55%));
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-body);
  /* font-size: 1rem; */
  font-weight: 300;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .page-hero {
    min-height: 50vh;
    padding-bottom: 3rem;
  }
}


/* ============================================================
   PAGE: Our Story
   ============================================================ */

.story-heading {
  /* font-size: 1.15rem; */
  /* font-weight: 300; */
  /* letter-spacing: 0; */
}

.story-split__image {
  /* aspect-ratio: 4 / 3; */
}

.story-banner img {
  aspect-ratio: 2 / 1;
}

.story-team .story-heading { margin-bottom: 1.25rem; }

.journey-step__content { padding-top: var(--section-gap); }

@media (min-width: 992px) {
  .journey-step__content { padding-top: 0; }
}

.site-main > .journey-heading + .journey-step {
  margin-top: calc(var(--section-gap) / 2);
}

.team-card__image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--transition-base);
  border-radius: var(--radius-sm);
}

.team-card:hover .team-card__image img { filter: grayscale(0); }

.team-card__meta {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  /* letter-spacing: 0.1em; */
  text-transform: uppercase;
}

.team-card__sep { opacity: 0.5; margin: 0 0.35rem; }


/* ============================================================
   HOMEPAGE: Intro Section
   ============================================================ */



.textabso {
    position: absolute;
    bottom: 100px;
    right: 100px;
    z-index: 2;
    max-width: 300px;
}

/* Tablet */
@media (max-width: 1199.98px) {
    .textabso {
        bottom: 50px;
        right: 40px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .textabso {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        padding: 30px 20px;
    }
}


/* ============================================================
   HOMEPAGE: Featured Residences
   ============================================================ */

.residence-card {
  overflow: hidden;
  transition: opacity var(--transition-base);
  position: relative;
}

.residence-card:hover { opacity: 0.9; text-decoration: none; }

.residence-grid { padding-inline: calc(var(--container-gutter-mobile) / 2); }

@media (min-width: 768px) {
  .residence-grid { padding-inline: 0; row-gap: 2rem; }
  .residence-grid > .col-md-6:nth-child(odd) {padding-right: 10px;}
  .residence-grid > .col-md-6:nth-child(even) {padding-left: 10px;}
}

/* Split-section images: keep the bleed side, pad the text side on mobile */
.img-pad-start { padding-left: calc(var(--container-gutter-mobile) / 2); }
.img-pad-end { padding-right: calc(var(--container-gutter-mobile) / 2); }

@media (min-width: 992px) {
  .img-pad-start,
  .img-pad-end { padding-left: 0; padding-right: 0; }
  .residence-card__body {
  padding: 0rem 0;
  color: var(--brand-white);
  position: absolute;
  bottom: 100px;
  right: 100px;
  text-align: left!important;
  min-width: 200px;
}
}

.residence-archive .residence-grid { row-gap: 2rem; }

.residence-card__image img {
  width: 100%;
  /* aspect-ratio: 16 / 10; */
  object-fit: cover;
  display: block;
}

.residence-card__body {
  padding: 1rem 0;
  color: var(--brand-white);

  text-align: left!important;
}

.residence-card__title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.residence-card__location {
  font-size: 0.85rem;
  /* color: var(--text-muted); */
  margin-bottom: 0px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.residence-card__link {
  font-size: 13px;
  color: var(--brand-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--brand-white);
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity var(--transition-base);
  /* display: none; */
}

.residence-card__link:hover {
  opacity: 0.7;
  text-decoration: none;
}


/* ============================================================
   HOMEPAGE: Team Section
   ============================================================ */

.home-team__image img {
  width: 100%;
  object-fit: cover;
}


/* ============================================================
   COMPONENTS: Buttons
   ============================================================ */

.btn, input[type="submit"] {
  font-family: var(--font-buttons);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 500ms;
  border-radius: var(--btn-radius);
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 576px) {
  .btn, input[type="submit"] {
    font-size: 0.75rem;
    padding: 13px 30px;
  }
}

@media (min-width: 992px) {
  .btn, input[type="submit"] {padding: 0px 36px 5px 36px;}
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible,
input[type="submit"],
input[type="submit"]:hover,
input[type="submit"]:active,
input[type="submit"]:focus {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-color: var(--brand-white);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-hover-color: var(--brand-white);
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-color: var(--brand-white);
  --bs-btn-focus-shadow-rgb: 0, 0, 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--brand-white);
  border-radius: 0;
  color: var(--brand-white);
  padding-left: 0;
  padding-right: 0;
  filter: none;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1;
}

.btn-primary:hover,
input[type="submit"]:hover {
  opacity: 0.7;
}

.btn-outline-primary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--brand-white);
  --bs-btn-color: var(--brand-white);
  --bs-btn-hover-bg: var(--brand-white);
  --bs-btn-hover-border-color: var(--brand-white);
  --bs-btn-hover-color: var(--brand-black);
  --bs-btn-active-bg: var(--brand-white);
  --bs-btn-active-border-color: var(--brand-white);
  --bs-btn-active-color: var(--brand-black);
  --bs-btn-focus-shadow-rgb: 0, 0, 0;
  background-color: transparent;
  border: 1px solid var(--brand-white);
  color: var(--brand-white);
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  background-color: var(--brand-white);
  color: var(--brand-black);
  box-shadow: none !important;
  outline: none !important;
}

.btn:focus,
.btn:focus-visible,
.btn:active,
.btn.active,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  box-shadow: none !important;
  outline: none !important;
}


/* ============================================================
   COMPONENTS: Forms
   ============================================================ */

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
textarea,
select {
  padding: 13px !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 0;
  background-color: transparent;
  color: var(--brand-white);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
select {
  height: var(--input-height) !important;
}

textarea { padding-top: 20px; padding-bottom: 20px; }

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
}

textarea.form-control { height: 150px !important; }
input[type="submit"] { margin-bottom: 0 !important; }


/* ============================================================
   COMPONENTS: Logo
   ============================================================ */

.site-logo {width: 100px;}

.mobile-logo { max-height: 45px; width: auto; }

#hamburgler {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  width: 36px;
  padding: 8px 0;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.hamburger__line {
  display: block;
  height: 2px;
  background-color: #afafaf;
  transition: width var(--transition-base);
}

.hamburger__line:first-child { width: 100%; }
.hamburger__line:last-child { width: 65%; }

#hamburgler:hover .hamburger__line:last-child { width: 100%; }

@media (min-width: 992px) {
  .site-logo { width: 150px; }
}


/* ============================================================
   COMPONENTS: Mobile Nav
   ============================================================ */

.offcanvas {
  --bs-offcanvas-width: min(87vw, 720px);
  background-color: var(--bg-light);
  z-index: 99999;
  padding: 1.5rem 1.5rem 2rem 3rem;
}

.offcanvas { overflow: hidden; }

.offcanvas::after {
  content: "";
  position: absolute;
  top: 0;
  left: 28%;
  height: 100%;
  aspect-ratio: 611 / 981;
  background: url("../images/home-hero-shape.png") no-repeat right center / 100% 100%;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .offcanvas::after { left: auto; right: 0; }
}

.offcanvas-header,
.offcanvas-body { position: relative; z-index: 1; }

.offcanvas-body { padding: 0; }
.offcanvas-header { padding: 0; }

.offcanvas .menu-item a {
  color: var(--brand-white);
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offcanvas .menu-item { padding: 0; }

.offcanvas .menu-item a:hover,
.offcanvas .current-menu-item a.nav-link {
  color: #d80c8c;
}

button.btnclose {
  border: 0;
  background-color: transparent;
}


/* ============================================================
   FOOTER CTA
   ============================================================ */

.footer-cta {
  padding-bottom: var(--section-gap);
  padding-top: var(--section-gap);
}

.footer-cta__box {
  background-color: #151313;
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;
  padding: 4rem 0;
}

.footer-cta__box > .row > div {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 992px) {
  .footer-cta__box {
    background-size: cover;
    background-position: right center;
    padding: 8rem 0;
  }
  .footer-cta__box > .row > div { padding-left: 0; padding-right: 0; }
}

.footer-cta h2 {
  font-weight: 300;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--brand-black);
  color: rgba(255,255,255,0.5);
  /* border-top: 1px solid rgba(255,255,255,0.1); */
}

.footer-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #afafaf;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav a:hover {
  color: var(--brand-white);
  text-decoration: none;
}

.footer-social a {
  color: #afafaf;
  font-size: 1.1rem;
  transition: color var(--transition-base);
}

.footer-social a:hover {
  color: var(--brand-white);
  text-decoration: none;
}

.footerlogo { max-width: 100px !important; }

@media (min-width: 992px) {
  .footerlogo { max-width: 120px !important; }
}


/* ============================================================
   PAGE: Page Intro (text + image)
   ============================================================ */

.page-intro__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 992px) {
  .page-intro__image img { aspect-ratio: 650 / 710; }
}


/* ============================================================
   SINGLE RESIDENCE
   ============================================================ */

.residence-gallery__item a {
  display: block;
  overflow: hidden;
}

.residence-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity var(--transition-base);
}

.residence-gallery__item a:hover img { opacity: 0.85; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section { padding-bottom: var(--section-gap); }

.contact-details h2,
.contact-details h3,
.contact-details h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.contact-details p { margin-bottom: 1.5rem; }


/* ============================================================
   404
   ============================================================ */

.error-404 {
  text-align: center;
  padding: var(--section-gap) 0;
}


/* ============================================================
   UTILITIES
   ============================================================ */

.text-primary { color: var(--brand-primary) !important; }
.text-white { color: var(--brand-white) !important; }
.text-dark { color: var(--brand-black) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-dark { background-color: var(--bg-light) !important; }

.pt-none { padding-top: 0 !important; }
.pb-none { padding-bottom: 0 !important; }
.pt-small { padding-top: var(--section-gap-sm) !important; }
.pb-small { padding-bottom: var(--section-gap-sm) !important; }

.fw-bold { font-weight: 600 !important; }
.prose a {
    text-decoration: underline;
    text-underline-position: under;
}