/* ------------------------------------------------------------ */
/* APARTAMENTO — PREMIUM EDITORIAL                              */
/* ------------------------------------------------------------ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
}

.ap-main {
  font-family: 'Montserrat', sans-serif;
  color: var(--bj-text, #1a1a1a);
  background: #fff;
  line-height: 1.7;
}


/* ============================================ */
/* HERO                                         */
/* ============================================ */

.ap-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) contrast(1.05);
  z-index: 1;
}

.ap-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%),
    linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.ap-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 780px;
  padding: 0 2rem;
}

.ap-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.2rem;
}

.ap-hero__h1 {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.ap-hero__sub {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto;
}


/* ============================================ */
/* INTRO                                        */
/* ============================================ */

.ap-intro {
  background: #fff;
  padding: 120px 2rem;
  text-align: center;
}

.ap-intro__inner {
  max-width: 680px;
  margin: 0 auto;
}

.ap-intro__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.5rem;
}

.ap-intro__title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bj-navy, #002244);
  margin-bottom: 1.5rem;
}

.ap-intro__text {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
}


/* ============================================ */
/* FEATURES — PARALLAX                          */
/* ============================================ */

.ap-features {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ap-features__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.ap-features__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 44, 0.75);
  z-index: 2;
}

.ap-features__content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 2rem;
  text-align: center;
}

.ap-features__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 3rem;
}

.ap-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.ap-features__item {
  text-align: center;
}

.ap-features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.ap-features__item p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 240px;
  margin: 0 auto;
}


/* ============================================ */
/* GALLERY                                      */
/* ============================================ */

.ap-gallery {
  padding: 100px 0 80px;
  background: #eeeeee;
}

.ap-gallery__block {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.ap-gallery__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.2rem;
  border-left: 2px solid var(--bj-gold, #c8a84e);
  padding-left: 0.8rem;
}

.ap-gallery__row {
  display: grid;
  gap: 3px;
}

.ap-gallery__row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ap-gallery__row img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  cursor: pointer;
}

.ap-gallery__quote {
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  text-align: center;
  color: #555;
  max-width: 600px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
  line-height: 1.8;
}


/* ============================================ */
/* CTA FINAL                                    */
/* ============================================ */

.ap-cta {
  background: var(--bj-navy, #002244);
  padding: 100px 2rem;
  text-align: center;
}

.ap-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.ap-cta__eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bj-gold, #c8a84e);
  margin-bottom: 1.5rem;
}

.ap-cta__title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 2.5rem;
}

.ap-cta__btn {
  display: inline-block;
  padding: 0.8rem 2.8rem;
  border: 1.5px solid #fff;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.ap-cta__btn:hover {
  background: #fff;
  color: var(--bj-navy, #002244);
}


/* ============================================ */
/* LIGHTBOX                                     */
/* ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 0;
  object-fit: contain;
}

.lightbox-btn {
  position: absolute;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease;
  user-select: none;
}

.lightbox-btn:hover {
  opacity: 0.6;
}

.lightbox-btn.close {
  top: 1.2rem;
  right: 1.5rem;
  font-size: 3rem;
}

.lightbox-btn.prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-btn.next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}


/* ============================================ */
/* RESPONSIVE — TABLET                          */
/* ============================================ */

@media (max-width: 992px) {
  .ap-intro {
    padding: 80px 2rem;
  }

  .ap-intro__title {
    font-size: 2.2rem;
  }

  .ap-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .ap-gallery__row--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ap-gallery__row img {
    min-height: 200px;
  }

  .ap-cta {
    padding: 80px 2rem;
  }

  .ap-cta__title {
    font-size: 2.2rem;
  }
}


/* ============================================ */
/* RESPONSIVE — MOBILE                          */
/* ============================================ */

@media (max-width: 768px) {
  .ap-hero {
    height: 100vh;
  }

  .ap-hero__h1 {
    font-size: 2.4rem;
  }

  .ap-hero__sub {
    font-size: 1rem;
  }

  .ap-intro {
    padding: 64px 1.5rem;
  }

  .ap-intro__title {
    font-size: 1.9rem;
  }

  .ap-intro__text {
    font-size: 1rem;
  }

  .ap-features__bg {
    background-attachment: scroll;
  }

  .ap-features__content {
    padding: 64px 1.5rem;
  }

  .ap-features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .ap-gallery {
    padding: 64px 0 56px;
  }

  .ap-gallery__block {
    padding: 0 1rem;
  }

  .ap-gallery__row--3 {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ap-gallery__row img {
    min-height: 240px;
  }

  .ap-gallery__quote {
    font-size: 1rem;
    padding: 0 1.5rem;
  }

  .ap-cta {
    padding: 64px 1.5rem;
  }

  .ap-cta__title {
    font-size: 1.9rem;
  }
}


/* ============================================ */
/* RESPONSIVE — SMALL MOBILE                    */
/* ============================================ */

@media (max-width: 480px) {
  .ap-hero__h1 {
    font-size: 2rem;
  }

  .ap-hero__eyebrow {
    font-size: 0.6rem;
  }

  .ap-features__grid {
    grid-template-columns: 1fr;
  }

  .ap-intro__title {
    font-size: 1.7rem;
  }

  .ap-cta__title {
    font-size: 1.7rem;
  }
}
