/* ==========================================================================
   MONDRIAN RESIDENCES CANCÚN - OFFICIAL BRAND DESIGN SYSTEM
   Reference: https://mondrianresidencescancun.com.mx/
   Brand Fonts: ABC Prophet (Official) + Figtree & Syne
   Palette: Alabaster Sand (#EBEBE3), Pure White (#FFFFFF), Deep Black (#000000), Charcoal (#2A2A28)
   ========================================================================== */

/* --------------------------------------------------------------------------
   OFFICIAL BRAND TYPEFACES: ABC PROPHET (@font-face)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'ABC Prophet';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://mondrianresidencescancun.com.mx/wp-content/uploads/2026/06/ABCProphet-Light-2.otf') format('opentype');
}

@font-face {
  font-family: 'ABC Prophet';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('https://mondrianresidencescancun.com.mx/wp-content/uploads/2026/06/ABCProphet-LightItalic-1.otf') format('opentype');
}

@font-face {
  font-family: 'ABC Prophet';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://mondrianresidencescancun.com.mx/wp-content/uploads/2026/06/ABCProphet-Regular-1.otf') format('opentype');
}

@font-face {
  font-family: 'ABC Prophet';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('https://mondrianresidencescancun.com.mx/wp-content/uploads/2026/06/ABCProphet-RegularItalic-1.otf') format('opentype');
}

@font-face {
  font-family: 'ABC Prophet';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://mondrianresidencescancun.com.mx/wp-content/uploads/2026/06/ABCProphet-Regular-1.otf') format('opentype');
}

@font-face {
  font-family: 'ABC Prophet';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://mondrianresidencescancun.com.mx/wp-content/uploads/2026/06/ABCProphet-Regular-1.otf') format('opentype');
}

/* --------------------------------------------------------------------------
   DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --mondrian-sand: #EBEBE3;
  --mondrian-white: #FFFFFF;
  --mondrian-black: #000000;
  --mondrian-black-soft: #111111;
  --mondrian-charcoal: #2A2A28;
  --mondrian-muted: #6B6B66;
  --mondrian-border: #DCDCD4;
  --mondrian-border-subtle: rgba(0, 0, 0, 0.08);

  /* Bootstrap 5.2 Overrides */
  --bs-body-bg: var(--mondrian-white);
  --bs-body-color: var(--mondrian-charcoal);
  --bs-primary: var(--mondrian-black);
  --bs-primary-rgb: 0, 0, 0;
  --bs-border-color: var(--mondrian-border);

  /* Typography Stack */
  --font-brand: 'ABC Prophet', 'Figtree', sans-serif;
  --font-display: 'ABC Prophet', 'Syne', sans-serif;

  /* Shadows */
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   BASE STYLING
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-brand);
  background-color: var(--mondrian-white);
  color: var(--mondrian-charcoal);
  font-weight: 300;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-brand);
  color: var(--mondrian-black);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

p {
  color: #4A4A45;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  font-weight: 300;
  line-height: 1.85;
}

.lead {
  font-size: 1.22rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--mondrian-black-soft);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background-color: #ED1C24;
  border-bottom: 5px solid #242424;
  padding: 5px 0;
}

.site-header-logo {
  height: 35px;
  width: auto;
}

@media (max-width: 768px) {
  .site-header-logo {
    height: 34px;
  }
}

/* ==========================================================================
   SECTION BLOCKS (LUXURY MINIMALIST EDITORIAL)
   ========================================================================== */
.section-block {
  padding: 95px 0;
}

.section-block-alt {
  background-color: var(--mondrian-sand);
}

.block-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.8rem;
  line-height: 1.25;
}

/* Architectural Image Framing */
.img-luxury-frame {
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s ease;
}

.img-luxury-frame:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.img-luxury-frame img {
  transform: scale(1);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-luxury-frame:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   CARDS (VALUE PILLARS - MONDRIAN ARCHITECTURAL STYLE)
   ========================================================================== */
.card-pillar {
  border: 1px solid var(--mondrian-border);
  padding: 2.4rem 2rem;
  transition: all 0.35s ease;
  box-shadow: var(--card-shadow);
}

.card-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--mondrian-black);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card-pillar:hover {
  border-color: var(--mondrian-black);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-pillar:hover::before {
  opacity: 1;
}

.card-pillar h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.card-pillar p {
  font-size: 0.94rem;
  color: #555550;
  line-height: 1.75;
}

/* ==========================================================================
   AMENIDADES DE CLASE MUNDIAL (BLOQUE 3)
   ========================================================================== */
.amenities-photo {
  min-height: 320px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .amenities-photo {
    min-height: 240px;
  }
}

/* ==========================================================================
   UN SELLO DE ELEGANCIA (BLOQUE 4)
   ========================================================================== */
.elegance-block {
  padding-bottom: 80px;
  margin-bottom: 80px;
}

.elegance-heading {
  position: sticky;
  top: 100px;
  padding-top: 1.6rem;
  border-top: 4px solid var(--mondrian-black);
}

.elegance-block .lead {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.elegance-cities {
  margin-top: 2.4rem;
  padding-top: 2rem;
  color: var(--mondrian-black-soft);
}

@media (max-width: 991px) {
  .elegance-heading {
    position: static;
  }
}

@media (max-width: 768px) {
  .elegance-block {
    padding-bottom: 56px;
    margin-bottom: 56px;
  }
}

/* ==========================================================================
   LA DISTINCIÓN DE LAS MEMBRESÍAS (BLOQUE 5)
   ========================================================================== */
.membership-photo {
  min-height: 420px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .membership-photo {
    min-height: 260px;
  }
}

/* ==========================================================================
   UN ACTIVO DIFERENTE & CIERRE (BLOQUE 6)
   ========================================================================== */
.closing-bar {
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 4px solid var(--mondrian-black);
}

.closing-bar .tagline-motto {
  max-width: 560px;
}

/* ==========================================================================
   DISEÑO GALERÍA (BENTO GRID SEGÚN REFERENCIA)
   Estructura: Columna Izquierda (2 cuadrados arriba + 1 rectángulo ancho abajo)
               Columna Derecha (1 elemento vertical a toda la altura)
   ========================================================================== */
.gallery-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.gallery-bento-col-left {
  gap: 16px;
}

.gallery-bento-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-bento-item {
  border: 1px solid var(--mondrian-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  background-color: var(--mondrian-sand);
  cursor: pointer;
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
}

.gallery-bento-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gallery-bento-item:hover {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
  border-color: var(--mondrian-black);
}

.gallery-bento-item:hover::after {
  opacity: 1;
}

.gallery-bento-item img {
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gallery-bento-item:hover img {
  transform: scale(1.09);
  filter: brightness(1.05) contrast(1.02);
}

.gallery-bento-sq1,
.gallery-bento-sq2 {
  aspect-ratio: 1 / 1;
}

.gallery-bento-wide {
  flex: 1;
  min-height: 250px;
}

.gallery-bento-tall {
  height: 100%;
  min-height: 100%;
}

/* ==========================================================================
   DESTACADO (EDITORIAL PULL QUOTE)
   ========================================================================== */
.destacado-block {
  padding: 5.5rem 4rem;
  margin-top: 5rem;
}

.destacado-quote {
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.55;
  max-width: 900px;
  letter-spacing: 0.02em;
}

.destacado-quote::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 2.4rem;
  background-color: var(--mondrian-white);
}

/* ==========================================================================
   VIDEO EMBED FRAME (9:16)
   ========================================================================== */
.video-frame-wrapper {
  max-width: 380px;
  border-radius: 2px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--mondrian-black);
}

.ratio-9x16 {
  --bs-aspect-ratio: 177.77%;
}

/* ==========================================================================
   TAGLINE & OFFICIAL MONDRIAN BUTTON
   ========================================================================== */
.tagline-motto {
  font-family: var(--font-brand);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.18em;
  color: var(--mondrian-black);
  font-weight: 500;
}

/* Official Mondrian CTA Button: Sharp, Black, Tracked */
.btn-mondrian {
  background-color: var(--mondrian-black);
  color: #FFFFFF !important;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  padding: 16px 42px;
  border: 1px solid var(--mondrian-black);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-mondrian:hover {
  background-color: var(--mondrian-sand);
  color: var(--mondrian-black) !important;
  border-color: var(--mondrian-black);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991px) {
  .section-block {
    padding: 70px 0;
  }
  .gallery-bento-wide {
    min-height: 200px;
  }
  .destacado-block {
    padding: 3.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .section-block {
    padding: 60px 0;
  }
  .gallery-bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gallery-bento-col-left {
    gap: 12px;
  }
  .gallery-bento-top-row {
    gap: 12px;
  }
  .gallery-bento-sq1,
  .gallery-bento-sq2 {
    aspect-ratio: 1 / 1;
  }
  .gallery-bento-wide {
    aspect-ratio: 16 / 9;
    min-height: unset;
  }
  .gallery-bento-tall {
    height: 380px;
    min-height: unset;
  }
  .destacado-block {
    padding: 2.8rem 1.4rem;
  }
  .video-frame-wrapper {
    max-width: 300px;
  }
  .btn-mondrian {
    padding: 14px 28px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }
}

/* --------------------------------------------------------------------------
   MOVIMIENTO REDUCIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .img-luxury-frame:hover img,
  .gallery-bento-item:hover img {
    transform: none;
  }
}
