/* ==========================================================================
   Shared styles for every brochure page.
   Page-specific layout lives in css/<page>.css.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Marcellus';
  src: url("fonts/marcellus-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url("fonts/mulish-variablefont_wght.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bar-bg: rgba(0, 0, 0, 0.8);
  --bar-fg: rgb(255, 255, 255);
  --bar-height: 57px;
  --overlay-bg: rgba(55, 58, 71, 0.9);
  --ease-anim: cubic-bezier(0.35, 0, 0.25, 1);
}

/* ---------- Base ---------- */
*, ::before, ::after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}
::before, ::after {
  text-decoration: inherit;
  vertical-align: inherit;
}
html, body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
:where(p) {
  margin: 0;
  padding: 0;
  line-height: inherit;
}
:where(figure) {
  margin: 0 0 16px;
}
:where(h1) {
  font-size: 2em;
  margin: 0.67em 0;
}
:where(hr) {
  color: inherit;
  height: 0;
}
:where(audio, canvas, iframe, img, svg, video) {
  vertical-align: middle;
}
:where(button) {
  margin: 0;
  background-color: transparent;
  font: inherit;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 73px;
  left: -500px;
  z-index: 1001;
  padding: 12px 20px;
  background: var(--bar-bg);
  color: var(--bar-fg);
  font-family: 'Mulish', sans-serif;
}
.skip-link:focus {
  left: 16px;
}

/* ---------- Page primitives: section > inner > row > column ---------- */
.page {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
:where(.sec) {
  justify-content: center;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
}
:where(.sec-inner) {
  display: flex;
  width: 100%;
  flex: 1 1 auto;
}
:where(.bg) {
  background-repeat: no-repeat;
  background-size: cover;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: inherit;
  opacity: 1;
  transition-duration: 500ms;
  transition-timing-function: linear;
  transition-delay: 0ms;
  transition-property: opacity;
  background-position-x: 50%;
  overflow: hidden;
}
:where(.row) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 50px;
  width: 100%;
  justify-content: space-between;
  margin: 0 auto;
}
:where(.col) {
  display: flex;
  position: relative;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 1;
  max-height: 100%;
}
:where(.col-in) {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  flex-direction: inherit;
  justify-content: inherit;
}
:where(.txt) {
  position: relative;
  width: 100%;
  color: rgb(51, 51, 51);
  padding-top: 0;
  padding-left: 0;
  padding-bottom: 0;
  visibility: visible;
  display: block;
  flex-direction: inherit;
  align-items: inherit;
  flex: unset;
}
:where(.txt h1) {
  overflow-wrap: break-word;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  position: relative;
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.05em;
  letter-spacing: 0;
  white-space: pre-wrap;
  padding: 0;
}
:where(.txt p) {
  overflow-wrap: break-word;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  position: relative;
  font-style: normal;
  letter-spacing: 0;
  white-space: pre-wrap;
  padding: 0;
}
:where(.txt ul) {
  margin: 0;
  padding: 0 0 0 1em;
}
:where(.txt li) {
  overflow-wrap: break-word;
  position: relative;
  font-family: 'Mulish', sans-serif;
  font-size: 1.25rem;
  font-weight: 200;
  font-style: normal;
  line-height: 2em;
  letter-spacing: 0;
  color: rgb(51, 51, 51);
  white-space: pre-wrap;
  margin: 0 0 0.5625em;
  padding: 0;
}
:where(.img-box) {
  display: flex;
  line-height: 0;
  max-width: 100%;
  width: 100%;
  flex-direction: inherit;
}
:where(.fig) {
  display: inline-block;
  min-width: 20px;
  position: relative;
  margin: 0;
  overflow: hidden;
}
:where(.pic) {
  width: 100%;
  height: auto;
  max-height: 100%;
  pointer-events: none;
}
:where(.btn-box) {
  display: flex;
  flex-direction: inherit;
  width: 100%;
  align-items: inherit;
  position: relative;
}
:where(.btn) {
  transition-duration: 0.3s;
  transition-timing-function: ease;
  transition-delay: 0s;
  transition-property: all;
  position: relative;
  width: fit-content;
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1em;
  letter-spacing: 0.05em;
  color: rgb(255, 255, 255);
  visibility: visible;
  display: inline-block;
  white-space: pre-wrap;
  padding: 12px 20px;
}
:where(.rule) {
  display: flex;
  flex-direction: inherit;
  align-items: inherit;
  width: 100%;
}
:where(.rule hr) {
  width: 494px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  align-self: center;
  margin-top: 0;
  margin-bottom: 16px;
  margin-inline-end: unset;
  margin-inline-start: unset;
  max-width: 100%;
  display: inline-block;
  position: relative;
  border-top-width: 0;
  border-right-width: 0;
  border-left-width: 0;
}
.txt h1, .txt p, .txt li {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.pic {
  display: inline;
}
.page a, .overlay a {
  text-decoration: none;
}

/* ---------- Background video (with still-image fallback) ---------- */
.video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  background-color: inherit;
  background-position: 50% 50%;
  background-size: cover;
}
.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.video-bg.playing iframe {
  opacity: 1;
}

/* ---------- Scroll-in animations ---------- */
.anim:not(.in) {
  animation-play-state: paused;
}
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0px); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0px); }
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--bar-height);
  background-color: var(--bar-bg);
  color: var(--bar-fg);
}
.menu-btn, .volume-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 57px;
  height: 57px;
  padding: 0;
  border: 0;
  color: var(--bar-fg);
}
.menu-btn svg {
  fill: currentColor;
}
.volume-btn {
  margin-left: auto;
}
.volume-btn svg {
  fill: currentColor;
}
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
}
.logo img {
  display: block;
  width: 204.727px;
  height: auto;
}

/* ---------- Previous / next ---------- */
.prev-next {
  position: fixed;
  right: 30px;
  bottom: 60px;
  z-index: 100;
  display: flex;
}
.prev-next a, .prev-next span {
  display: flex;
  align-items: center;
  width: 41px;
  height: 41px;
  padding: 9px 8px 8px 9px;
  background-color: var(--bar-bg);
  color: var(--bar-fg);
}
.prev-next svg {
  fill: currentColor;
}
.prev-next .prev {
  border-radius: 2px 0 0 2px;
}
.prev-next .next {
  border-radius: 0 2px 2px 0;
}
.prev-next .is-disabled {
  opacity: 0.5;
}

/* ---------- Scroll-down hint (desktop heroes only) ---------- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 100;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  padding: 18px;
  border: 0;
  border-radius: 34px;
  background-color: var(--bar-bg);
  color: var(--bar-fg);
  line-height: 0;
  transition: opacity 0.4s ease-out;
}
.scroll-hint svg {
  fill: currentColor;
}
.scroll-hint.is-gone {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Page index (menu) ---------- */
.page-index {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow-y: auto;
  background-color: rgb(255, 255, 255);
  font-family: 'Mulish', sans-serif;
  font-weight: 200;
  animation: fadeIn 300ms ease both;
}
.page-index-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 57px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.page-index-tab {
  display: block;
  margin: 0 16px;
  padding: 15px 16px;
  border-bottom: 4px solid rgb(0, 0, 0);
  color: rgb(0, 0, 0);
  font-size: 16px;
  line-height: 17.6px;
}
.page-index-close {
  position: absolute;
  top: 15px;
  right: 5px;
  padding: 1px 6px;
  border: 0;
  color: rgba(0, 0, 0, 0.54);
}
.page-index-close svg {
  fill: currentColor;
}
.page-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(auto, 25%));
}
.page-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 67%;
  overflow: hidden;
  color: rgb(255, 255, 255);
}
.page-tile-thumb, .page-tile-shade, .page-tile-label {
  position: absolute;
  inset: 0;
}
.page-tile-thumb {
  z-index: 1;
  background-position: 50% 50%;
  background-size: cover;
  transform: scale(1.05);
  transition: transform 0.6s ease-in-out;
}
.page-tile-shade {
  z-index: 2;
  opacity: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0) 180px, rgba(0, 0, 0, 0.8) 100%);
  transition: opacity 0.3s;
}
.page-tile-label {
  z-index: 3;
  display: flex;
  align-items: end;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s;
}
.page-tile-name {
  display: block;
  margin-right: 10px;
  padding: 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 22.5px;
}
.page-tile:hover .page-tile-shade {
  opacity: 1;
}
.page-tile:hover .page-tile-label, .page-tile.is-current .page-tile-label {
  background-color: transparent;
}
.page-tile.is-current .page-tile-name {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 32px;
  padding: 10px;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.6);
}
.page-tile-thumb-index {
  background-image: url("images/thumbs/index.jpg");
}
.page-tile-thumb-sarasota {
  background-image: url("images/thumbs/sarasota.jpg");
}
.page-tile-thumb-625-palm {
  background-image: url("images/thumbs/625-palm.jpg");
}
.page-tile-thumb-625-point {
  background-image: url("images/thumbs/625-point.jpg");
}
.page-tile-thumb-development-team {
  background-image: url("images/thumbs/development-team.jpg");
}
.page-tile-thumb-contact {
  background-image: url("images/thumbs/contact.jpg");
}

/* ---------- Overlays (floor plans) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  background-color: var(--overlay-bg);
  animation: fadeIn 300ms ease both;
}
.overlay-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 10vh;
  overflow: auto;
}
.overlay-box {
  display: flex;
  flex-direction: column;
  margin: 10%;
  background-color: rgb(255, 255, 255);
}
.overlay-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  padding: 0;
  border: 0;
  color: rgb(255, 255, 255);
  line-height: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
.overlay-close svg {
  fill: currentColor;
}
body.has-overlay {
  overflow: hidden;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1679px) {
  .page-index-grid {
    grid-template-columns: repeat(3, minmax(auto, 33.333%));
  }
}
@media (max-width: 999px) {
  .page-index-grid {
    grid-template-columns: repeat(2, minmax(auto, 50%));
  }
  .scroll-hint,
  .volume-btn {
    display: none;
  }
}
@media (max-width: 749px) {
  .page-index-grid {
    grid-template-columns: minmax(auto, 100%);
  }
  .menu-btn {
    padding-bottom: 2px;
  }
  .overlay-box {
    margin: 0;
    overflow: visible;
  }
}
