/* ==========================================================================
   The Real Estate of Roatán
   Design system measured from the reference site's computed styles.
   ========================================================================== */

:root {
  --cream: #f4efeb;
  --slate: #2e4157;
  --slate-soft: rgba(46, 65, 87, 0.85);
  --aqua: #bed9d8;
  --white: #ffffff;
  --hairline: rgba(46, 65, 87, 0.16);
  --hairline-light: rgba(255, 255, 255, 0.2);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Afacad Flux', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --shell: 1328px;
  --gutter: 56px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset --- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.35;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------- typography --- */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  text-transform: uppercase;
}

/* Set explicitly rather than relying on the h1–h4 rule: these classes are also
   used on spans (band labels), which wouldn't inherit it. */
.t-hero {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.t-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.t-sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.t-body { font-size: 18px; line-height: 1.45; }
.t-micro { font-size: 13px; line-height: 1.25; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------------------------------------------------------- nav --- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: clamp(20px, 2vw, 28px);
  color: var(--cream);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}

.nav--solid {
  background: var(--slate);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo {
  display: block;
  font-family: var(--serif);
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
}

.logo__a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.logo__b {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.38em;
  opacity: 0.9;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav__link {
  position: relative;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 26px; height: 18px; position: relative; }
.nav__toggle span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: currentColor; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; }
.nav__toggle span:nth-child(3) { top: 100%; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: absolute;
  left: clamp(20px, 2vw, 28px);
  right: clamp(20px, 2vw, 28px);
  bottom: clamp(32px, 4.5vh, 56px);
  z-index: 2;
}

/* compact hero used on interior pages */
.hero--page { height: 62svh; min-height: 400px; }
.hero--page .hero__inner { bottom: clamp(28px, 4vh, 48px); }

/* --------------------------------------------------------- intro band --- */

.intro {
  padding-block: clamp(64px, 9vw, 128px) clamp(48px, 6vw, 92px);
  text-align: center;
}

.intro__lead {
  max-width: 62ch;
  margin: clamp(36px, 5vw, 78px) auto 0;
  color: var(--slate);
}

/* ------------------------------------------------------------- listings --- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--slate);
  color: var(--white);
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.5s var(--ease);
}

.card:hover .card__img { transform: scale(1.055); }

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(16px, 1.7vw, 24px);
}

.card__title {
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.4;
  letter-spacing: 0.085em;
  max-width: 20ch;
}

.card__price {
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1;
}

.card__meta { text-align: right; flex-shrink: 0; }

.card__specs {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  font-size: clamp(13px, 1.1vw, 16px);
}

.card__area {
  margin-top: 6px;
  font-size: clamp(11px, 0.9vw, 13px);
  opacity: 0.92;
}

.card[hidden] { display: none; }

.more { display: flex; justify-content: center; padding-block: clamp(40px, 5vw, 72px); }

.more__btn {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  background: rgba(46, 65, 87, 0.92);
  border-radius: 8px;
  padding: 15px 28px;
  transition: background-color 0.3s var(--ease);
}

.more__btn:hover { background: var(--slate); }

/* ------------------------------------------------------------ cta bands --- */

.bands { padding-block: clamp(28px, 4vw, 56px); display: grid; gap: clamp(28px, 4vw, 56px); }

.band {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(280px, 30vw, 420px);
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.band:hover .band__img { transform: scale(1.04); }
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.band__label { position: relative; z-index: 2; }

/* ----------------------------------------------------------- newsletter --- */

.signup {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(90px, 12vw, 170px);
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.signup__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signup::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.34); }

.signup__inner { position: relative; z-index: 2; width: 100%; max-width: 1000px; padding-inline: 24px; }
.signup__head { max-width: 900px; margin-inline: auto; }

.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 54px);
}

.signup__field {
  flex: 1 1 260px;
  max-width: 320px;
  padding: 16px 22px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.signup__field::placeholder { color: rgba(255, 255, 255, 0.75); }
.signup__field:focus { outline: 2px solid var(--white); outline-offset: 2px; }

.signup__btn {
  flex: 0 0 auto;
  min-width: 200px;
  padding: 16px 30px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--cream);
  border-radius: 999px;
  transition: opacity 0.3s var(--ease);
}

.signup__btn:hover { opacity: 0.88; }

.signup__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 860px;
  margin: 20px auto 0;
  text-align: left;
  opacity: 0.94;
}

.signup__consent a { text-decoration: underline; }

/* ---------------------------------------------------------------- stats --- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(56px, 7vw, 104px);
}

.stat { display: flex; gap: 20px; align-items: baseline; }

.stat__value {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  flex-shrink: 0;
}

.stat__value--tbd { font-size: clamp(20px, 1.8vw, 24px); opacity: 0.55; }
.stat__label { font-size: 18px; line-height: 1.25; }

/* --------------------------------------------------------------- footer --- */

.footer { padding-bottom: 48px; }
.footer__rule { height: 1px; background: var(--hairline); }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(32px, 4vw, 56px);
}

.footer__contact { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 16px; }
.footer__contact a { text-decoration: underline; }
.footer__tbd { opacity: 0.5; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer__links { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 26px); font-size: 16px; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { font-size: 15px; }
.footer__social { display: flex; gap: 10px; }

.footer__social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-size: 13px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.footer__social a:hover { background: var(--slate); color: var(--cream); }

/* ------------------------------------------------------- property page --- */

.pill {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--slate);
  background: var(--cream);
  border-radius: 999px;
}

.p-hero__price {
  margin-top: 4px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(22px, 2.3vw, 32px);
  color: var(--white);
  line-height: 1.2;
}

.p-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 30px);
  margin-top: clamp(14px, 2vw, 26px);
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--white);
}

.contact-pill {
  position: fixed;
  right: clamp(16px, 2.4vw, 36px);
  bottom: clamp(16px, 2.4vw, 36px);
  z-index: 90;
  padding: 17px 34px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--slate);
  border-radius: 999px;
  transition: transform 0.35s var(--ease);
}

.contact-pill:hover { transform: translateY(-2px); }

.prose {
  max-width: 1060px;
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 110px) clamp(20px, 3vw, 40px);
}

.prose p { margin: 0 0 22px; max-width: 92ch; }
.prose .t-sub { margin-top: clamp(30px, 4vw, 50px); margin-bottom: 18px; }
.prose > .t-sub:first-child { margin-top: 0; }

.amen { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 110px); text-align: center; }

.amen__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(36px, 5vw, 68px);
  text-align: left;
}

.amen__head { padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.amen__list { margin-top: 20px; display: grid; gap: 8px; font-size: 17px; }

/* ------------------------------------------------------------- slider --- */

.slider { position: relative; overflow: hidden; background: var(--slate); }
.slider__track { position: relative; aspect-ratio: 16 / 9; }

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s var(--ease);
}

.slider__slide[data-active='true'] { opacity: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease);
}

.slider__arrow:hover { background: var(--white); }
.slider__arrow--prev { left: clamp(12px, 2vw, 28px); }
.slider__arrow--next { right: clamp(12px, 2vw, 28px); }

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.3s var(--ease);
}

.slider__dot[aria-current='true'] { background: var(--white); }

.mapblock { padding-block: clamp(48px, 7vw, 96px); }
.mapblock iframe {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 0;
  display: block;
}

.related { padding-bottom: clamp(20px, 3vw, 40px); }
.related__head { text-align: center; padding-bottom: clamp(30px, 4vw, 56px); }

/* -------------------------------------------------------- simple pages --- */

.page { padding-block: clamp(56px, 8vw, 110px); }
.page__lead { max-width: 68ch; }
.page__lead p { margin: 0 0 22px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.form { display: grid; gap: 14px; }

.form__field {
  width: 100%;
  padding: 15px 20px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.form__field:focus { outline: 2px solid var(--slate); outline-offset: 1px; }
textarea.form__field { min-height: 150px; resize: vertical; }

.form__btn {
  justify-self: start;
  padding: 16px 34px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--slate);
  border-radius: 999px;
}

.notice {
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 16px;
  border: 1px dashed var(--hairline);
  border-radius: 10px;
  opacity: 0.75;
}

/* --------------------------------------------------------------- reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 1100px) {
  .amen__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--slate);
    color: var(--cream);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
  }

  .nav__links[data-open='true'] { transform: none; }
  .nav__link { font-size: 22px; }

  .grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .slider__track { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .amen__grid { grid-template-columns: 1fr; }
  .card__body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card__meta { text-align: left; }
  .card__specs { justify-content: flex-start; }
  .signup__btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
