/*
Theme Name: Fortune Prime Reference
Author: Fortune Prime
Description: Single landing page based closely on the supplied Fortune Prime reference.
Version: 3.7.0
Requires at least: 6.0
Requires PHP: 7.4
*/

:root{
  --black:#050505;
  --green:#19aa6c;
  --green2:#41bf3e;
  --lime:#d9ed1b;
  --white:#fff;
  --card:#fafafa;
  --red:#ed6044;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:#000;
  color:#111;
  font-family:Arial,Helvetica,sans-serif;
}
a{text-decoration:none;color:inherit}

.ref-header{
  height:130px;
  background:#050505;
  color:#fff;
  display:flex;
  align-items:center;
  padding:0 2.2%;
  position:relative;
  z-index:10;
}
.ref-brand{
  width:44%;
  position:relative;
  padding-left:4px;
}
.ref-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:38px;
}
.ref-nav a{
  font-size:11px;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
}
.ref-nav a:hover{color:var(--lime)}

.ref-hero{
  position:relative;
  height:calc(100vh - 130px);
  min-height:600px;
  max-height:900px;
  overflow:hidden;
}
.ref-photo{
  position:absolute;
  inset:0;
  background-image:url("assets/images/madrid-hero.png");
  background-image:image-set(url("assets/images/madrid-hero.webp") type("image/webp"), url("assets/images/madrid-hero.png") type("image/png"));
  background-size:cover;
  background-position:center 48%;
}
.ref-photo-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 35%,rgba(0,0,0,.20) 70%,rgba(0,0,0,.40) 100%);
}

.ref-cards{
  position:absolute;
  z-index:3;
  left:3.3%;
  right:3.3%;
  bottom:15px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:34px;
  align-items:stretch;
}
.ref-card{
  background:rgba(255,255,255,.97);
  min-height:390px;
  padding:14px 15px 13px;
  box-shadow:0 5px 15px rgba(0,0,0,.35);
  border-radius:2px;
  display:flex;
  flex-direction:column;
}
.card-heading{
  text-align:center;
  font-size:11px;
  line-height:1;
  font-weight:800;
  color:#111;
  margin-bottom:17px;
}
.ref-card h2{
  margin:0 0 15px;
  text-align:center;
  font-size:17px;
  line-height:1.18;
  color:#ed6247;
  font-weight:800;
}
.ref-card p{
  font-size:10px;
  line-height:1.48;
  margin:0;
  color:#222;
  min-height:61px;
}
.card-rule{
  position:relative;
  height:4px;
  background:rgba(230,199,191,.55);
  margin:13px 0 8px;
  overflow:hidden;
  border-radius:999px;
  box-shadow:inset 0 0 0 1px rgba(237,98,71,.08);
}
.card-rule::after{
  content:"";
  position:absolute;
  inset:0;
  width:0;
  border-radius:inherit;
  background:linear-gradient(90deg,#ed6247 0%,#f49a82 48%,#d9ed1b 100%);
  box-shadow:0 0 12px rgba(237,98,71,.42),0 0 18px rgba(217,237,27,.18);
  transition:width .72s cubic-bezier(.2,.75,.2,1);
}
.ref-card.is-selected .card-rule::after,
.ref-card:focus-within .card-rule::after{
  width:100%;
}
.ref-card.is-selected .card-rule{
  background:rgba(230,199,191,.9);
}

.ref-card ul{
  list-style:none;
  padding:0;
  margin:0;
  min-height:71px;
}
.ref-card li{
  font-size:10px;
  line-height:1.75;
  color:#222;
}
.ref-card li:before{
  content:"✓";
  display:inline-grid;
  place-items:center;
  width:10px;height:10px;
  border:1px solid #ee674e;
  border-radius:50%;
  color:#ee674e;
  font-size:7px;
  margin-right:7px;
}
.ref-card>a{
  margin-top:auto;
  border:1px solid #efc0b5;
  padding:9px 9px;
  font-size:8px;
  font-weight:800;
  color:#333;
  background:#fff;
}
.ref-card>a span{
  float:right;
  font-size:16px;
  line-height:7px;
  color:#ee674e;
}
.contact-mini{
  display:flex;
  align-items:center;
  gap:9px;
  margin:4px 0 7px;
}
.wa-icon{
  width:34px;height:34px;
  border-radius:50%;
  display:grid;place-items:center;
  background:transparent;
  flex:0 0 34px;
  overflow:hidden;
}
.wa-icon img{
  display:block;
  width:34px;height:34px;
  object-fit:contain;
}
.contact-mini small{
  display:block;
  font-size:7px;
  color:#e7634b;
  font-weight:800;
}
.contact-mini strong{
  display:block;
  font-size:15px;
  line-height:1;
}
.mini-contact{
  font-size:9px;
  line-height:1.8;
  padding-left:40px;
}
.anchor-section{
  height:1px;
  background:#000;
}
.ref-footer{
  height:42px;
  background:#050505;
  color:#aaa;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:8px;
  letter-spacing:.14em;
}

/* Desktop proportions tuned to the supplied image */
@media(min-width:1200px){
  .ref-header{height:130px}
  .ref-hero{height:calc(100vh - 130px)}
  .ref-card{min-height:390px}
}
@media(max-width:1100px){
  .ref-header{height:105px}
  .ref-brand{width:40%}
  .ref-nav{gap:18px}
  .ref-nav a{font-size:9px}
  .ref-hero{height:700px}
  .ref-cards{gap:12px;left:2%;right:2%}
  .ref-card{min-height:350px;padding:12px}
}
@media(max-width:760px){
  .ref-header{height:92px;padding:0 15px}
  .ref-brand{width:100%}
  .ref-nav{display:none}
  .ref-hero{
    height:auto;
    min-height:0;
    padding-bottom:18px;
    background:#ddd;
  }
  .ref-photo{
    position:absolute;
    height:100%;
    background-position:center;
  }
  .ref-cards{
    position:relative;
    left:auto;right:auto;bottom:auto;
    padding:370px 14px 0;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .ref-card{min-height:310px}
}
@media(max-width:480px){
  .ref-header{height:82px}
  .ref-cards{
    padding-top:300px;
    grid-template-columns:1fr;
  }
  .ref-card{min-height:300px}
}

/* Avoid accidental motion or visual overlays. */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* =========================================================
   V5 — FULL CARD CONTENT VISIBLE
   The five cards must never be clipped by the hero container.
   ========================================================= */
.ref-header{height:88px}
.ref-hero{
  height:calc(100vh - 88px);
  min-height:0;
  max-height:none;
  overflow:visible;
  display:flex;
  align-items:flex-end;
  padding-bottom:18px;
}
.ref-photo,.ref-photo-overlay{height:100%}
.ref-cards{
  position:relative;
  left:auto;right:auto;bottom:auto;
  width:95%;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
  z-index:3;
}
.ref-card{
  height:auto;
  min-height:0;
  padding:13px 13px 12px;
  display:flex;
  flex-direction:column;
}
.card-heading{font-size:10px;margin-bottom:10px}
.ref-card h2{font-size:15px;line-height:1.12;margin:0 0 9px}
.ref-card p{
  font-size:8.5px;
  line-height:1.32;
  min-height:50px;
  margin:0;
}
.card-rule{margin:7px 0 6px}
.ref-card ul{min-height:58px;margin:0}
.ref-card li{font-size:8.5px;line-height:1.52}
.ref-card li:before{width:9px;height:9px;font-size:6px;margin-right:6px}
.ref-card>a{padding:8px 8px;font-size:7.2px;line-height:1}
.contact-mini{margin:2px 0 4px}
.contact-mini small{font-size:6.5px}
.contact-mini strong{font-size:13px}
.mini-contact{font-size:7.5px;line-height:1.45;padding-left:39px}
.ref-footer{height:32px}

@media (min-width:900px) and (max-height:780px){
  .ref-header{height:78px}
  .ref-hero{height:calc(100vh - 78px);padding-bottom:10px}
  .ref-cards{gap:12px}
  .ref-card{padding:10px 10px 9px}
  .card-heading{font-size:8.5px;margin-bottom:7px}
  .ref-card h2{font-size:13px;margin-bottom:6px}
  .ref-card p{font-size:7.5px;line-height:1.25;min-height:43px}
  .card-rule{margin:5px 0 4px}
  .ref-card ul{min-height:50px}
  .ref-card li{font-size:7.5px;line-height:1.42}
  .ref-card>a{font-size:6.5px;padding:7px}
  .contact-mini small{font-size:5.8px}
  .contact-mini strong{font-size:11px}
  .mini-contact{font-size:6.7px}
}

@media (min-width:900px) and (min-height:781px) and (max-height:900px){
  .ref-header{height:88px}
  .ref-hero{height:calc(100vh - 88px)}
  .ref-cards{gap:16px}
}

@media(max-width:760px){
  .ref-header{height:82px}
  .ref-hero{height:auto;min-height:0;padding-bottom:16px;overflow:visible}
  .ref-cards{
    width:auto;margin:0;
    padding:300px 14px 0;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .ref-card{min-height:300px}
}
@media(max-width:480px){
  .ref-cards{padding:300px 14px 0;grid-template-columns:1fr}
  .ref-card{min-height:300px}
}


.ref-logo-link{display:block;line-height:0}
.ref-logo{display:block;width:min(390px,100%);height:auto;max-height:82px;object-fit:contain;object-position:left center}
@media(max-width:1100px){.ref-logo{width:310px;max-height:66px}}
@media(max-width:760px){.ref-logo{width:255px;max-height:58px}}

@media(max-width:1100px){.ref-logo{width:310px;max-height:66px}}
@media(max-width:760px){.ref-logo{width:255px;max-height:58px}}


/* =========================================================
   V18 — EFFECTS
   1 card entrance · 2 card hover · 3 menu underline · 4 sticky header
   5 parallax · 6 horizon glow · 7 button fill · 8 dome sparkles
   9 distant birds · + cloud drift (V17)
   Layers: madrid-hero-sky.png (photo without clouds), madrid-clouds.png,
   madrid-sky-mask.png (clouds only inside the sky, behind buildings).
   Browsers without container-query units keep the original static photo.
   ========================================================= */
html{scroll-padding-top:72px}
.ref-photo{container-type:size;overflow:hidden}
.fp-world{position:absolute;inset:0}
.fp-sky,.fp-fx{display:none}

@supports (width:1cqw){
  .ref-photo{background-image:none}
  .fp-world{
    background:url("assets/images/madrid-hero-sky.png") center 48% / cover no-repeat;
    background-image:image-set(url("assets/images/madrid-hero-sky.webp") type("image/webp"), url("assets/images/madrid-hero-sky.png") type("image/png"));
    transform:translate3d(var(--px,0px),var(--py,0px),0) scale(1.05);
    will-change:transform;
  }
  .fp-sky,.fp-fx{
    display:block;
    position:absolute;
    left:50%;
    top:48%;
    width:max(100cqw,calc(100cqh * 1672 / 941));
    aspect-ratio:1672 / 941;
    transform:translate(-50%,-48%);
    pointer-events:none;
    font-size:max(1cqw,calc(1cqh * 1672 / 941));
  }
  .fp-sky{
    overflow:hidden;
    -webkit-mask-image:url("assets/images/madrid-sky-mask.png");
    mask-image:url("assets/images/madrid-sky-mask.png");
    -webkit-mask-size:100% 100%;
    mask-size:100% 100%;
    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;
  }
  /* clouds */
  .fp-sky-track{
    position:absolute;
    top:0;left:0;
    width:200%;height:100%;
    background:url("assets/images/madrid-clouds.png") 0 0 / 50% 100% repeat-x;
    background-image:image-set(url("assets/images/madrid-clouds.webp") type("image/webp"), url("assets/images/madrid-clouds.png") type("image/png"));
    translate:var(--cx,0px) var(--cy,0px);
    transform:translate3d(-50%,0,0);
    animation:fp-clouds-drift 160s linear infinite;
    will-change:transform;
  }
  /* 9 birds */
  .fp-flock{
    position:absolute;
    left:0;
    top:var(--top);
    width:100%;height:0;
    opacity:0;
    animation:fp-fly var(--dur) linear var(--delay) infinite backwards;
  }
  .fp-bird{
    position:absolute;
    left:calc(var(--bx) * 1em * var(--sc,1));
    top:calc(var(--by) * 1em * var(--sc,1));
    width:calc(1.5em * var(--sc,1));
    height:calc(.62em * var(--sc,1));
    overflow:visible;
    fill:none;
    stroke:rgba(14,32,66,.55);
    stroke-width:1.5;
    stroke-linecap:round;
    stroke-linejoin:round;
    transform-origin:50% 75%;
    animation:fp-flap var(--f,.7s) ease-in-out infinite alternate;
  }
  /* 8 sparkles */
  .fp-spark{
    position:absolute;
    left:var(--x);
    top:var(--y);
    width:1.7em;height:1.7em;
    margin:-.85em 0 0 -.85em;
    opacity:0;
    transform:scale(0) rotate(0deg);
    background:radial-gradient(circle,rgba(255,248,205,.95) 0 7%,rgba(255,222,120,.35) 24%,rgba(255,222,120,0) 58%);
    animation:fp-spark var(--t,7s) ease-in-out var(--d,0s) infinite;
  }
  .fp-spark::before,.fp-spark::after{
    content:"";
    position:absolute;
    left:0;top:50%;
    width:100%;height:1.5px;
    margin-top:-.75px;
    background:linear-gradient(90deg,rgba(255,244,190,0),#fff8d6 50%,rgba(255,244,190,0));
  }
  .fp-spark::after{transform:rotate(90deg)}
}
@keyframes fp-clouds-drift{
  from{transform:translate3d(-50%,0,0)}
  to{transform:translate3d(0,0,0)}
}
@keyframes fp-fly{
  0%{transform:translate3d(-12%,0,0);opacity:0}
  2%{opacity:1}
  35%{opacity:1}
  38%{transform:translate3d(112%,-3em,0);opacity:0}
  100%{transform:translate3d(112%,-3em,0);opacity:0}
}
@keyframes fp-flap{
  from{transform:scaleY(1)}
  to{transform:scaleY(.35)}
}
@keyframes fp-spark{
  0%,68%,100%{opacity:0;transform:scale(0) rotate(0deg)}
  78%{opacity:1;transform:scale(1) rotate(45deg)}
  90%{opacity:0;transform:scale(.35) rotate(90deg)}
}

/* 6 warm horizon glow */
.ref-photo-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse 55% 22% at 50% 64%,rgba(255,206,130,.55),rgba(255,206,130,0) 70%);
  opacity:0;
  animation:fp-glow 10s ease-in-out infinite alternate;
}
@keyframes fp-glow{from{opacity:0}to{opacity:.16}}

/* 1 + 2 cards: staggered entrance and hover */
@keyframes fp-card-in{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:none}
}
.ref-card{
  animation:fp-card-in .7s cubic-bezier(.2,.7,.2,1) backwards;
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease;
}
.ref-card:nth-child(1){animation-delay:.25s}
.ref-card:nth-child(2){animation-delay:.34s}
.ref-card:nth-child(3){animation-delay:.43s}
.ref-card:nth-child(4){animation-delay:.52s}
.ref-card:nth-child(5){animation-delay:.61s}
.ref-card:hover{
  --lift:-8px;
  --card-scale:1.012;
  box-shadow:0 22px 42px rgba(0,0,0,.42);
}
.ref-card>a span{transition:transform .3s ease,color .3s ease}
.ref-card:hover>a span{transform:translateX(5px)}

/* 7 buttons: coral fill */
.ref-card>a{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transition:color .35s ease,border-color .35s ease;
}
.ref-card>a::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:#ed6247;
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .45s cubic-bezier(.3,.7,.2,1);
}
.ref-card>a:hover,.ref-card>a:focus-visible{color:#fff;border-color:#ed6247}
.ref-card>a:hover::before,.ref-card>a:focus-visible::before{transform:scaleX(1)}
.ref-card>a:hover span,.ref-card>a:focus-visible span{color:#fff}

/* 3 menu: growing lime underline */
.ref-nav a{position:relative;padding:6px 0}
.ref-nav a::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:1px;
  background:var(--lime);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .35s ease;
}
.ref-nav a:hover::after,.ref-nav a:focus-visible::after{transform:scaleX(1)}

/* 4 header: sticky, compacts with blur on scroll (total layout height is constant) */
.ref-header{
  position:sticky;
  top:0;
  transition:height .35s ease,margin-bottom .35s ease,background-color .35s ease,box-shadow .35s ease;
}
.ref-header.is-scrolled{
  height:64px;
  margin-bottom:calc(var(--hdr-h,88px) - 64px);
  background:rgba(5,5,5,.78);
  -webkit-backdrop-filter:blur(12px) saturate(140%);
  backdrop-filter:blur(12px) saturate(140%);
  box-shadow:0 6px 24px rgba(0,0,0,.35);
}
.ref-logo{transition:max-height .35s ease}
.ref-header.is-scrolled .ref-logo{max-height:44px}

@media (prefers-reduced-motion:reduce){
  .fp-sky-track{animation:none;transform:translate3d(-50%,0,0)}
  .fp-flock,.fp-spark{animation:none;opacity:0}
  .ref-photo-overlay::after{animation:none;opacity:0}
  .ref-card{animation:none;transition:none}
  .ref-card:hover{transform:none}
  .ref-header,.ref-logo{transition:none}
}


/* =========================================================
   V19 — FORTUNE PRIME PREMIUM INTERACTIONS
   - Main hero photograph remains completely static.
   - Motion is limited to UI/layers and respects reduced-motion.
   - Lightweight CSS/JS only: suitable for basic hosting.
   ========================================================= */

/* Static hero: never translate the main photograph itself. */
@supports (width:1cqw){
  .fp-world{
    transform:none;
    will-change:auto;
  }
}
.ref-photo{will-change:auto}

/* Premium page progress indicator */
.fp-scroll-progress{
  position:fixed;
  z-index:1000;
  top:0;
  left:0;
  width:100%;
  height:2px;
  pointer-events:none;
  background:transparent;
}
.fp-scroll-progress span{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#ed6247,#d9ed1b);
  transform-origin:left center;
  box-shadow:0 0 10px rgba(217,237,27,.35);
}

/* V31 — FORTUNE PRIME SOLID GOLD 3D LOGO */
.ref-logo-link{position:relative;display:block;line-height:0;isolation:isolate;overflow:visible}
.ref-logo{display:block;width:min(390px,100%);height:auto;max-height:82px;object-fit:contain;object-position:left center;filter:drop-shadow(0 5px 4px rgba(54,32,0,.55)) drop-shadow(0 9px 13px rgba(0,0,0,.28));transition:max-height .35s ease,filter .45s ease}
/* Gold light sweep clipped to the whole logo, with emphasis on the FORTUNE PRIME face. */
.ref-logo-link::before{
  content:"";position:absolute;z-index:2;inset:0;pointer-events:none;
  background:linear-gradient(112deg,transparent 0%,transparent 40%,rgba(255,244,184,0) 45%,rgba(255,241,171,.92) 50%,rgba(255,255,235,.62) 53%,rgba(255,211,77,.72) 57%,transparent 64%,transparent 100%);
  background-size:260% 100%;
  -webkit-mask-image:url('assets/images/fortune-prime-logo.png');mask-image:url('assets/images/fortune-prime-logo.png');
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left center;mask-position:left center;
  -webkit-mask-size:contain;mask-size:contain;opacity:0;filter:drop-shadow(0 0 8px rgba(255,211,77,.55));
  animation:fp-logo-gold-glint 8.5s cubic-bezier(.35,.05,.25,1) infinite;
}
.ref-logo-link::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:4;opacity:0;
  background:radial-gradient(circle at 28% 30%,rgba(255,245,190,.9) 0 1px,transparent 2px),radial-gradient(circle at 47% 18%,rgba(255,231,125,.75) 0 1.5px,transparent 3px),radial-gradient(circle at 72% 38%,rgba(255,245,190,.8) 0 1px,transparent 2.5px),radial-gradient(circle at 84% 24%,rgba(255,220,90,.7) 0 1px,transparent 2px);
  filter:drop-shadow(0 0 5px rgba(255,213,83,.85));animation:fp-logo-sparkle 5.8s ease-in-out infinite;
}
@keyframes fp-logo-gold-glint{0%,48%,100%{background-position:125% 0;opacity:0}58%{opacity:.28}69%{background-position:-125% 0;opacity:.9}78%{opacity:.12}84%{opacity:0}}
@keyframes fp-logo-sparkle{0%,52%,100%{opacity:0;transform:scale(.94)}62%{opacity:.65;transform:scale(1)}69%{opacity:.08;transform:scale(1.03)}75%{opacity:.7;transform:scale(1)}81%{opacity:0;transform:scale(.97)}}
.ref-logo-link:hover .ref-logo{filter:drop-shadow(0 6px 5px rgba(54,32,0,.62)) drop-shadow(0 0 10px rgba(255,211,77,.28))}

/* More editorial card treatment */
.ref-card{
  position:relative;
  overflow:hidden;
  transform-style:preserve-3d;
  --rx:0deg;
  --ry:0deg;
  --lift:0px;
  --card-scale:1;
  transform:perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) scale(var(--card-scale));
  transform-origin:center center;
  backface-visibility:hidden;
  transition:transform .38s cubic-bezier(.2,.7,.2,1),box-shadow .38s ease;
}
.ref-card::before{
  content:"";
  position:absolute;
  z-index:0;
  top:0;
  left:-120%;
  width:55%;
  height:100%;
  pointer-events:none;
  background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.22) 48%,transparent 100%);
  transform:skewX(-18deg);
  transition:left .75s cubic-bezier(.2,.7,.2,1);
}
.ref-card:hover::before{left:150%}
.ref-card>*{position:relative;z-index:1}

/* A thin premium accent appears on hover */
.ref-card::after{
  content:"";
  position:absolute;
  left:13px;
  right:13px;
  top:0;
  height:2px;
  background:#ed6247;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .45s cubic-bezier(.2,.7,.2,1);
  z-index:2;
}
.ref-card:hover::after{transform:scaleX(1)}

/* Better keyboard focus */
.ref-card:focus-within{
  outline:1px solid rgba(237,98,71,.65);
  outline-offset:3px;
}

/* Buttons: subtle arrow lift + sheen */
.ref-card>a span{
  display:inline-block;
  transition:transform .3s cubic-bezier(.2,.7,.2,1),color .3s ease;
}
.ref-card>a::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-80%;
  width:35%;
  transform:skewX(-20deg);
  background:rgba(255,255,255,.22);
  transition:left .6s ease;
  pointer-events:none;
}
.ref-card>a:hover::after{left:150%}

/* Scroll reveal: used only when JS is available */
.fp-reveal{
  opacity:1;
  transform:none;
  animation:none;
}
.fp-reveal.fp-pending{
  opacity:0;
  filter:blur(3px);
  transform:perspective(1000px) rotateX(7deg) rotateY(16deg) translateY(30px) scale(.965);
}
.fp-reveal.fp-visible{
  opacity:1;
  filter:blur(0);
  transform:perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) scale(var(--card-scale));
  transition:opacity .58s cubic-bezier(.2,.75,.2,1),filter .58s ease,transform .78s cubic-bezier(.16,.8,.2,1),box-shadow .38s ease;
  transition-delay:var(--entry-delay,0s);
}

/* A single editorial light sweep accompanies each card's entrance. */
@keyframes fp-entry-sheen{
  0%{left:-90%;opacity:0}
  18%{opacity:.35}
  65%{opacity:.16}
  100%{left:150%;opacity:0}
}
.fp-reveal.fp-visible::before{
  animation:fp-entry-sheen .9s cubic-bezier(.2,.7,.2,1) var(--entry-delay,0s) both;
}
/* V23: subtle 3D self-rotation during entry. */
.fp-reveal{
  transform-style:preserve-3d;
  backface-visibility:hidden;
}
.fp-reveal:nth-child(even).fp-pending{
  transform:perspective(1000px) rotateX(7deg) rotateY(-16deg) translateY(30px) scale(.965);
}


/* Hero atmospheric light follows the pointer, but the photo does not move. */
.ref-photo-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(
    circle 230px at var(--mx,50%) var(--my,45%),
    rgba(255,245,215,.13),
    rgba(255,245,215,0) 70%
  );
  opacity:0;
  transition:opacity .5s ease;
}
.ref-hero:hover .ref-photo-overlay::before{opacity:1}

/* Desktop-only premium cursor */
.fp-cursor{
  position:fixed;
  z-index:2000;
  left:0;
  top:0;
  width:22px;
  height:22px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:50%;
  pointer-events:none;
  opacity:0;
  transform:translate3d(-50%,-50%,0) scale(1);
  transition:opacity .2s ease,transform .25s cubic-bezier(.2,.7,.2,1),width .25s ease,height .25s ease,border-color .25s ease;
  mix-blend-mode:difference;
}
.fp-cursor span{
  position:absolute;
  left:50%;
  top:50%;
  width:3px;
  height:3px;
  border-radius:50%;
  background:#fff;
  transform:translate(-50%,-50%);
}
.fp-cursor.is-active{
  opacity:1;
}
.fp-cursor.is-hover{
  width:42px;
  height:42px;
  border-color:#fff;
}
.fp-cursor.is-cta{
  width:58px;
  height:58px;
}
.fp-cursor.is-cta::after{
  content:"↗";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font:600 13px/1 Arial,sans-serif;
}
@media (hover:none),(pointer:coarse),(max-width:900px){
  .fp-cursor{display:none!important}
  .ref-photo-overlay::before{display:none}
}

/* =========================================================
   V21 — 3D LUXURY DEPTH
   Lightweight CSS perspective + pointer tracking.
   Main hero photograph remains completely static.
   ========================================================= */
.ref-cards{
  perspective:1400px;
  perspective-origin:50% 45%;
}
.ref-card{
  will-change:transform;
}
.ref-card::after{
  box-shadow:0 0 0 rgba(237,98,71,0);
}

/* Logo: a restrained metallic 3D response to the pointer. */
.ref-logo-link{
  perspective:900px;
  transform-style:preserve-3d;
  --logo-rx:0deg;
  --logo-ry:0deg;
  transform:perspective(900px) rotateX(var(--logo-rx)) rotateY(var(--logo-ry));
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.ref-logo{
  transform:translateZ(8px);
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.25));
  transition:max-height .35s ease,filter .45s ease;
}
.ref-logo-link:hover .ref-logo{
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.38)) drop-shadow(0 0 7px rgba(255,215,91,.10));
}

/* A very subtle depth shadow under the service cards. */
.ref-card:hover{
  box-shadow:0 22px 42px rgba(0,0,0,.42),0 3px 0 rgba(255,255,255,.55) inset;
}

@media (hover:hover) and (pointer:fine){
  .ref-card{
    cursor:none;
  }
}

@media(max-width:900px){
  .ref-card,.ref-logo-link{
    transform:none!important;
    --rx:0deg;--ry:0deg;--lift:0px;
  }
}

/* Mobile: preserve clean touch interaction */
@media(max-width:760px){
  .ref-card:hover{
    transform:none;
    box-shadow:0 5px 15px rgba(0,0,0,.35);
  }
  .ref-card::before,.ref-card::after{display:none}
}

/* Reduced motion means genuinely static UI. */
@media(prefers-reduced-motion:reduce){
  .fp-scroll-progress span{transition:none}
  .ref-logo-link::after,
  .ref-card::before,
  .ref-card::after,
  .ref-card>a::after,
  .ref-card>a span,
  .ref-photo-overlay::before{transition:none}
  .fp-reveal,
  .fp-reveal.fp-pending{
    opacity:1;
    filter:none;
    transform:none;
    transition:none;
  }
  .fp-reveal.fp-visible::before{animation:none}
  .fp-cursor{display:none}
}

/* =========================================================
   V24 — CINEMATIC CARD ROTATION
   Longer, clearly perceptible 3D entrance with motion trail
   and moving shadow. The card settles quickly enough to read.
   ========================================================= */
@keyframes fp-card-cinematic-entry{
  0%{
    opacity:0;
    filter:blur(5px);
    transform:perspective(1000px) rotateY(58deg) rotateX(8deg) translate3d(34px,26px,0) scale(.90);
    box-shadow:-34px 22px 28px rgba(0,0,0,.02), 0 0 0 rgba(0,0,0,0);
  }
  22%{
    opacity:.72;
    filter:blur(2px);
    transform:perspective(1000px) rotateY(36deg) rotateX(6deg) translate3d(20px,17px,0) scale(.94);
    box-shadow:-30px 25px 35px rgba(0,0,0,.14), 0 0 22px rgba(237,98,71,.08);
  }
  48%{
    opacity:1;
    filter:blur(.7px);
    transform:perspective(1000px) rotateY(-17deg) rotateX(-2deg) translate3d(-7px,5px,0) scale(.985);
    box-shadow:18px 24px 38px rgba(0,0,0,.25), -12px 0 26px rgba(237,98,71,.10);
  }
  70%{
    transform:perspective(1000px) rotateY(8deg) rotateX(1deg) translate3d(3px,0,0) scale(1.008);
    box-shadow:7px 20px 34px rgba(0,0,0,.31), -5px 0 18px rgba(237,98,71,.08);
  }
  86%{
    transform:perspective(1000px) rotateY(-3deg) rotateX(0deg) translate3d(-1px,0,0) scale(1.003);
    box-shadow:0 18px 34px rgba(0,0,0,.34), 0 0 14px rgba(237,98,71,.06);
  }
  100%{
    opacity:1;
    filter:blur(0);
    transform:perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) scale(var(--card-scale));
    box-shadow:0 5px 15px rgba(0,0,0,.35);
  }
}

.fp-reveal.fp-visible{
  transition:box-shadow .38s ease;
  animation:fp-card-cinematic-entry 1.65s cubic-bezier(.18,.72,.18,1) var(--entry-delay,0s) both;
}

/* The existing sheen becomes a soft, blurred motion trail following the rotation. */
.fp-reveal.fp-visible::before{
  left:-135%;
  width:72%;
  filter:blur(8px);
  background:linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,.05) 22%,
    rgba(255,255,255,.55) 50%,
    rgba(237,98,71,.16) 60%,
    transparent 100%);
  transform:skewX(-20deg) scaleY(1.15);
  animation:fp-entry-trail 1.28s cubic-bezier(.16,.72,.2,1) calc(var(--entry-delay,0s) + .08s) both;
}
@keyframes fp-entry-trail{
  0%{left:-135%;opacity:0;filter:blur(13px)}
  18%{opacity:.12}
  42%{opacity:.72;filter:blur(7px)}
  68%{opacity:.34;filter:blur(9px)}
  100%{left:155%;opacity:0;filter:blur(13px)}
}

/* A soft secondary shadow trails behind the card as it rotates. */
.fp-reveal.fp-visible::after{
  top:12%;
  bottom:12%;
  left:7%;
  right:7%;
  height:auto;
  background:linear-gradient(90deg,rgba(0,0,0,.22),rgba(237,98,71,.08),rgba(0,0,0,0));
  filter:blur(13px);
  opacity:0;
  transform:translate3d(-34px,15px,0) scale(.88);
  transform-origin:center;
  animation:fp-shadow-trail 1.5s cubic-bezier(.18,.72,.18,1) var(--entry-delay,0s) both;
  z-index:-1;
}
@keyframes fp-shadow-trail{
  0%{opacity:0;transform:translate3d(-34px,15px,0) scale(.88)}
  24%{opacity:.34}
  48%{opacity:.26;transform:translate3d(22px,11px,0) scale(.98)}
  72%{opacity:.12;transform:translate3d(7px,5px,0) scale(1.01)}
  100%{opacity:0;transform:translate3d(0,0,0) scale(1)}
}

@media (prefers-reduced-motion:reduce){
  .fp-reveal.fp-visible{animation:none;transition:none}
  .fp-reveal.fp-visible::before,.fp-reveal.fp-visible::after{animation:none;opacity:0}
}

/* Direct application links */
.contact-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.contact-action{display:inline-flex;align-items:center;gap:18px;padding:11px 14px;border:1px solid rgba(8,8,8,.24);color:#080808;text-decoration:none;text-transform:uppercase;letter-spacing:.12em;font-size:8px;font-weight:800;transition:all .28s ease}
.contact-action span{font-size:13px;transition:transform .28s ease}
.contact-action:hover{background:#080808;color:#fff;border-color:#080808;transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.12)}
.contact-action:hover span{transform:translate(2px,-2px)}
.contact-action.whatsapp:hover{box-shadow:0 10px 24px rgba(37,211,102,.16)}
@media(max-width:640px){.contact-actions{display:grid;grid-template-columns:1fr}.contact-action{justify-content:space-between}}

/* V27 — compact cards + direct contact links */
.ref-card{padding:10px 12px 9px}
.ref-card p{min-height:38px}
.ref-card ul{min-height:44px}
.card-rule{margin:6px 0 5px}
.contact-mini{margin:1px 0 3px}
.contact-whatsapp-link{display:inline-flex;align-items:center;gap:9px;color:inherit;text-decoration:none;transition:transform .28s ease,filter .28s ease}
.contact-whatsapp-link:hover,.contact-whatsapp-link:focus-visible{transform:translateY(-2px);filter:drop-shadow(0 5px 8px rgba(37,211,102,.18))}
.contact-whatsapp-link .wa-icon{display:flex;width:27px;height:27px;align-items:center;justify-content:center}
.contact-whatsapp-link .wa-icon img{width:25px;height:25px}
.contact-whatsapp-link small{display:block;font-size:6px;letter-spacing:.1em}
.contact-whatsapp-link strong{display:block;font-size:14px;line-height:1.05;letter-spacing:.01em}
.mini-contact{display:block;padding-left:36px;font-size:11px;line-height:1.25;font-weight:600;letter-spacing:.01em;color:#111;text-decoration:none;transition:color .25s ease,transform .25s ease,text-shadow .25s ease}
.mini-contact:hover,.mini-contact:focus-visible{color:#b44b39;transform:translateX(2px);text-shadow:0 0 10px rgba(237,98,71,.14)}
.email-link{margin-top:3px;font-size:10.5px}
.contact-actions{display:none!important}
@media (min-width:900px) and (max-height:780px){
  .ref-card{padding:8px 9px 7px}
  .ref-card p{min-height:32px}
  .ref-card ul{min-height:38px}
  .contact-whatsapp-link .wa-icon{width:23px;height:23px}
  .contact-whatsapp-link .wa-icon img{width:22px;height:22px}
  .contact-whatsapp-link strong{font-size:12px}
  .mini-contact{font-size:9px;padding-left:32px}
  .email-link{font-size:8.8px}
}
@media(max-width:760px){
  .ref-card{padding:11px 11px 10px}
  .mini-contact{font-size:11px}
  .email-link{font-size:10px}
}

/* =========================================================
   V28 — SELECTED CARD: EMBOSSED GOLD FRAME + HALO + SOFT SHINE
   The selected card receives a restrained luxury treatment while
   preserving V27's progress bar, 3D tilt, entry trail and shadow.
   ========================================================= */
.ref-card.is-selected{
  background:
    linear-gradient(145deg,rgba(255,226,139,.46) 0%,rgba(212,175,55,.24) 42%,rgba(255,245,205,.34) 100%),
    rgba(255,255,255,.97);
  border:1px solid rgba(201,157,44,.92);
  outline:1px solid rgba(255,231,145,.72);
  outline-offset:-3px;
  box-shadow:
    inset 0 1px 0 rgba(255,250,220,.92),
    inset 0 0 0 1px rgba(155,111,18,.38),
    inset 0 0 22px rgba(212,175,55,.16),
    0 7px 17px rgba(0,0,0,.34),
    0 0 24px rgba(212,175,55,.24);
}

/* A second inner bevel creates the embossed/recessed gold frame. */
.ref-card.is-selected::after{
  left:4px;
  right:4px;
  top:4px;
  bottom:4px;
  width:auto;
  height:auto;
  border:1px solid rgba(255,239,174,.62);
  border-radius:1px;
  background:linear-gradient(135deg,rgba(255,255,255,.24),transparent 28%,transparent 72%,rgba(125,88,8,.10));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -1px 0 rgba(127,89,10,.20);
  transform:none;
  opacity:1;
  z-index:2;
  pointer-events:none;
}

/* Independent shine layer: it does not interfere with V24's motion trail. */
.ref-card .fp-selected-shine{
  position:absolute;
  z-index:0;
  top:-30%;
  bottom:-30%;
  left:-72%;
  width:32%;
  pointer-events:none;
  opacity:0;
  transform:skewX(-18deg) translateX(0);
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0) 18%,
    rgba(255,247,196,.10) 40%,
    rgba(255,249,211,.68) 50%,
    rgba(255,247,196,.10) 60%,
    transparent 82%);
  filter:blur(4px);
}
.ref-card.is-selected .fp-selected-shine{
  opacity:1;
  animation:fp-selected-gold-shine 4.8s cubic-bezier(.35,.05,.25,1) infinite;
}

@keyframes fp-selected-gold-shine{
  0%,18%{left:-72%;opacity:0}
  28%{opacity:.24}
  48%{opacity:.62}
  67%{left:142%;opacity:.24}
  76%,100%{left:142%;opacity:0}
}

/* Keep text and controls crisp above the gold treatment. */
.ref-card.is-selected > *:not(.fp-selected-shine){z-index:3}

@media (prefers-reduced-motion:reduce){
  .ref-card.is-selected .fp-selected-shine{animation:none;opacity:.12;left:36%}
}


/* V31 — dome-style gold sparkles around the logo */
.ref-logo-link .fp-logo-spark{position:absolute;z-index:5;width:7px;height:7px;border-radius:50%;pointer-events:none;opacity:0;background:radial-gradient(circle,#fff9dc 0 12%,#ffe07a 28%,rgba(255,205,65,0) 72%);filter:drop-shadow(0 0 5px rgba(255,214,90,.9));animation:fp-logo-dome-spark 5.5s ease-in-out infinite}
.ref-logo-link .fp-logo-spark::before,.ref-logo-link .fp-logo-spark::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:1px;transform:translate(-50%,-50%);background:linear-gradient(90deg,transparent,#fff8d5,transparent)}
.ref-logo-link .fp-logo-spark::after{transform:translate(-50%,-50%) rotate(90deg)}
.ref-logo-link .spark-a{left:35%;top:28%;animation-delay:0s}.ref-logo-link .spark-b{left:66%;top:42%;animation-delay:1.8s}.ref-logo-link .spark-c{left:82%;top:24%;animation-delay:3.4s}
@keyframes fp-logo-dome-spark{0%,55%,100%{opacity:0;transform:scale(.15) rotate(0)}65%{opacity:.9;transform:scale(1.15) rotate(45deg)}73%{opacity:0;transform:scale(.35) rotate(90deg)} }
@media(max-width:760px){.ref-logo-link .fp-logo-spark{display:none}}
@media(prefers-reduced-motion:reduce){.ref-logo-link::before,.ref-logo-link::after,.ref-logo-link .fp-logo-spark{animation:none;opacity:0}}


/* V33 — FORTUNE PRIME: CHAMPAGNE JEWEL GOLD / REFERENCE-STYLE LIGHT */
.ref-logo-link{
  transform:none !important;
  perspective:none !important;
}
.ref-logo{
  transform:none !important;
  filter:
    drop-shadow(0 5px 4px rgba(65,38,0,.48))
    drop-shadow(0 0 8px rgba(255,210,45,.22)) !important;
}
/* The moving highlight is restricted to FORTUNE PRIME, not the icon/tagline. */
.ref-logo-link::before{
  z-index:6;
  inset:0;
  clip-path:polygon(18% 5%,100% 5%,100% 62%,18% 62%);
  background:linear-gradient(112deg,
    transparent 0%,transparent 42%,
    rgba(255,230,90,0) 46%,
    rgba(255,241,130,.96) 49.5%,
    rgba(255,248,185,1) 51%,
    rgba(255,216,67,.92) 53%,
    rgba(214,155,15,.18) 56%,
    transparent 61%,transparent 100%);
  background-size:340% 100%;
  -webkit-mask-image:url('assets/images/fortune-prime-logo.png');mask-image:url('assets/images/fortune-prime-logo.png');
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:left center;mask-position:left center;
  -webkit-mask-size:contain;mask-size:contain;
  filter:drop-shadow(0 0 7px rgba(255,211,55,.78));
  animation:fp-reference-gold-sweep 9.5s cubic-bezier(.22,.08,.18,1) infinite;
}
.ref-logo-link::after{
  z-index:7;
  inset:0;
  clip-path:polygon(18% 5%,100% 5%,100% 62%,18% 62%);
  background:
    radial-gradient(circle at 78% 39%,rgba(255,251,196,1) 0 1px,rgba(255,228,91,.98) 1.5px,transparent 5px),
    radial-gradient(circle at 78% 39%,rgba(255,255,255,.9) 0 1px,transparent 14px),
    radial-gradient(circle at 43% 23%,rgba(255,239,123,.9) 0 1px,transparent 4px),
    radial-gradient(circle at 66% 48%,rgba(255,220,70,.72) 0 1px,transparent 4px);
  filter:drop-shadow(0 0 6px rgba(255,219,67,1));
  animation:fp-reference-sparkle 6.8s ease-in-out infinite;
}
@keyframes fp-reference-gold-sweep{
  0%,48%,100%{background-position:125% 0;opacity:0}
  56%{opacity:.18}
  67%{background-position:-125% 0;opacity:.94}
  73%{opacity:.18}
  80%{opacity:0}
}
@keyframes fp-reference-sparkle{
  0%,55%,100%{opacity:0;transform:scale(.92)}
  63%{opacity:.18;transform:scale(.98)}
  69%{opacity:.96;transform:scale(1.02)}
  73%{opacity:.2;transform:scale(1.05)}
  79%{opacity:0;transform:scale(.96)}
}
/* Curved luxury light trail inspired by the supplied reference image. */
.ref-logo-link .fp-logo-arc{
  position:absolute;z-index:8;pointer-events:none;
  left:27%;top:27%;width:59%;height:42%;
  border-top:1.5px solid rgba(255,220,70,.84);
  border-radius:50%;
  transform:rotate(-16deg);
  filter:drop-shadow(0 0 4px rgba(255,208,43,.95));
  opacity:0;
  animation:fp-reference-arc 9.5s cubic-bezier(.22,.08,.18,1) infinite;
}
.ref-logo-link .fp-logo-arc::after{
  content:"";position:absolute;right:9%;top:-5px;width:5px;height:5px;border-radius:50%;
  background:#fffdf4;box-shadow:0 0 5px 2px rgba(255,211,50,1),0 0 15px 5px rgba(255,190,20,.52);
}
@keyframes fp-reference-arc{
  0%,48%,100%{opacity:0;transform:rotate(-16deg) translateX(-8%)}
  60%{opacity:.08}
  68%{opacity:.72;transform:rotate(-16deg) translateX(0)}
  74%{opacity:.16}
  81%{opacity:0;transform:rotate(-16deg) translateX(7%)}
}
.ref-logo-link .fp-logo-spark{
  background:radial-gradient(circle,#fffdf4 0 12%,#ffe06a 28%,rgba(255,200,30,0) 72%);
  filter:drop-shadow(0 0 5px rgba(255,214,55,1));
}
.ref-logo-link .fp-logo-spark::before,.ref-logo-link .fp-logo-spark::after{
  background:linear-gradient(90deg,transparent,#fff1a0,transparent);
}
.ref-logo-link .spark-a{left:39%;top:33%}
.ref-logo-link .spark-b{left:66%;top:34%}
.ref-logo-link .spark-c{left:88%;top:35%}
@media(max-width:760px){.ref-logo-link .fp-logo-spark,.ref-logo-link .fp-logo-arc{display:none}}
@media(prefers-reduced-motion:reduce){
  .ref-logo-link::before,.ref-logo-link::after,.ref-logo-link .fp-logo-spark,.ref-logo-link .fp-logo-arc{animation:none;opacity:0}
}


/* V35 — FINAL LOGO: YELLOW JEWEL GOLD / NO SWEEP
   Remove the fleeting left-to-right light sweep and moving arc.
   Keep only the discrete luxury sparkle points. */
.ref-logo-link::before{display:none !important;animation:none !important;opacity:0 !important;content:none !important;}
.ref-logo-link .fp-logo-arc{display:none !important;animation:none !important;opacity:0 !important;}
.ref-logo-link::after{
  animation:fp-final-logo-sparkle 6.8s ease-in-out infinite !important;
  background:
    radial-gradient(circle at 39% 33%,rgba(255,255,225,1) 0 1.2px,rgba(255,225,74,.98) 1.8px,transparent 5px),
    radial-gradient(circle at 39% 33%,rgba(255,255,255,.92) 0 1px,transparent 13px),
    radial-gradient(circle at 66% 34%,rgba(255,244,105,.96) 0 1px,transparent 4px),
    radial-gradient(circle at 88% 35%,rgba(255,229,70,.9) 0 1px,transparent 4px) !important;
  -webkit-mask-image:url('assets/images/fortune-prime-logo.png');
  mask-image:url('assets/images/fortune-prime-logo.png');
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
}
.ref-logo-link .fp-logo-spark{
  background:radial-gradient(circle,#fffef0 0 12%,#ffe34f 28%,rgba(255,198,20,0) 72%) !important;
  filter:drop-shadow(0 0 6px rgba(255,220,45,1)) !important;
}
.ref-logo-link .fp-logo-spark::before,.ref-logo-link .fp-logo-spark::after{
  background:linear-gradient(90deg,transparent,#fff3a3,transparent) !important;
}
@keyframes fp-final-logo-sparkle{
  0%,55%,100%{opacity:0;transform:scale(.92)}
  63%{opacity:.22;transform:scale(.98)}
  69%{opacity:1;transform:scale(1.03)}
  74%{opacity:.22;transform:scale(1.06)}
  80%{opacity:0;transform:scale(.96)}
}
@media(prefers-reduced-motion:reduce){
  .ref-logo-link::after,.ref-logo-link .fp-logo-spark{animation:none !important;opacity:.72 !important}
}


/* V36 — Full service architecture / curated property selection */
.fp-journey,.fp-service-panel,.fp-owner,.fp-blog{position:relative;z-index:1;padding:90px 6%;background:#070707;color:#fff}
.fp-service-panel:nth-of-type(even),.fp-blog{background:#f4f1eb;color:#111}
.fp-section-intro{max-width:900px;margin:0 auto 46px;text-align:center}
.fp-kicker{display:inline-block;font-size:10px;letter-spacing:.22em;font-weight:800;color:#d9b43a;margin-bottom:14px}
.fp-section-intro h2,.fp-panel-copy h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(36px,4.3vw,62px);line-height:.98;margin:0 0 18px;font-weight:500;letter-spacing:-.02em}
.fp-section-intro h2 em,.fp-panel-copy h2 em{font-style:normal;color:#d8ad28}
.fp-section-intro p,.fp-panel-copy p{max-width:760px;margin:0 auto;color:#aaa;font-size:15px;line-height:1.7}
.fp-service-panel .fp-panel-copy p{margin-left:0}
.fp-service-dark{background:#0b0b0b;color:#fff}
.fp-service-dark .fp-panel-copy p{color:#aaa}
.fp-service-map{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.fp-map-node{border:1px solid rgba(216,173,40,.38);background:linear-gradient(145deg,rgba(216,173,40,.13),rgba(255,255,255,.025));padding:24px 16px;min-height:110px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transition:.3s ease}
.fp-map-node:hover{transform:translateY(-5px);border-color:#e5c34f;box-shadow:0 14px 40px rgba(0,0,0,.35),0 0 22px rgba(216,173,40,.13)}
.fp-map-node strong{font-size:11px;letter-spacing:.08em}.fp-map-node span{font-size:11px;color:#aaa;margin-top:8px}
.fp-service-panel{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(500px,1.2fr);gap:70px;align-items:start;scroll-margin-top:90px}
.fp-panel-copy{padding-top:20px}.fp-panel-copy h2{max-width:620px}.fp-panel-copy p{font-size:15px;line-height:1.8;max-width:590px}
.fp-choice-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}
.fp-choice{border:1px solid rgba(216,173,40,.5);background:transparent;color:#d9b43a;padding:12px 15px;font-size:9px;font-weight:800;letter-spacing:.08em;cursor:pointer}.fp-choice:hover,.fp-choice.is-active{background:#d9b43a;color:#080808;border-color:#d9b43a}
.fp-property-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.fp-property{background:#fff;color:#111;box-shadow:0 12px 30px rgba(0,0,0,.12);transition:.3s ease}.fp-property:hover{transform:translateY(-6px);box-shadow:0 18px 38px rgba(0,0,0,.2)}.fp-property.is-hidden{display:none}
.fp-property-image{height:205px;background-size:cover;background-position:center;position:relative}.fp-property-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.55))}.fp-property-image span{position:absolute;z-index:1;left:12px;top:12px;background:#d9b43a;color:#111;padding:6px 8px;font-size:8px;font-weight:800;letter-spacing:.08em}
.fp-property-body{padding:18px}.fp-property-body small{font-size:8px;letter-spacing:.13em;color:#888}.fp-property-body h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:25px;line-height:1.05;margin:8px 0}.fp-property-body p{font-size:10px;color:#666;margin:0 0 14px}.fp-property-body strong{font-size:10px;display:block;margin-bottom:13px}.fp-property-body a{font-size:9px;color:#bd8d16;font-weight:800}
.fp-section-cta{text-align:center;margin-top:30px}.fp-gold-button{display:inline-block;border:1px solid #d9b43a;background:linear-gradient(135deg,#f0cf59,#c99716);color:#080808;padding:13px 18px;font-size:9px;font-weight:900;letter-spacing:.08em;cursor:pointer;box-shadow:0 8px 25px rgba(216,173,40,.18)}.fp-gold-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.fp-lead-form{background:rgba(255,255,255,.045);border:1px solid rgba(216,173,40,.22);padding:30px;box-shadow:0 18px 50px rgba(0,0,0,.2)}
.fp-service-panel:not(.fp-service-dark) .fp-lead-form{background:#fff;border-color:rgba(185,146,36,.25);box-shadow:0 16px 45px rgba(0,0,0,.1)}
.fp-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.fp-lead-form label{display:flex;flex-direction:column;gap:7px;font-size:9px;font-weight:800;letter-spacing:.08em}.fp-lead-form input,.fp-lead-form select,.fp-lead-form textarea{font:inherit;font-size:12px;letter-spacing:0;font-weight:400;border:1px solid rgba(216,173,40,.35);background:rgba(255,255,255,.04);color:inherit;padding:12px 13px;outline:none}.fp-service-panel:not(.fp-service-dark) .fp-lead-form input,.fp-service-panel:not(.fp-service-dark) .fp-lead-form select,.fp-service-panel:not(.fp-service-dark) .fp-lead-form textarea{background:#faf9f6;color:#111}.fp-lead-form select option{color:#111}.fp-lead-form input:focus,.fp-lead-form select:focus,.fp-lead-form textarea:focus{border-color:#d9b43a;box-shadow:0 0 0 2px rgba(216,173,40,.1)}.fp-form-wide{margin-top:15px}.fp-lead-form textarea{resize:vertical;min-height:100px}.fp-lead-form .fp-gold-button{margin-top:20px}
.fp-owner{background:#080808}.fp-owner-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.fp-owner-action{min-height:135px;padding:22px 15px;background:linear-gradient(145deg,rgba(216,173,40,.13),rgba(255,255,255,.025));border:1px solid rgba(216,173,40,.35);display:flex;flex-direction:column;justify-content:center;text-align:center}.fp-owner-action strong{font-size:11px;color:#e4c75f}.fp-owner-action span{font-size:10px;color:#999;margin-top:8px;line-height:1.5}.fp-owner-action:hover{border-color:#e6c34b;background:linear-gradient(145deg,rgba(216,173,40,.24),rgba(255,255,255,.045))}.fp-owner-form{max-width:1000px;margin:35px auto 0}
.fp-blog-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.fp-blog-grid article{background:#fff;padding-bottom:20px;box-shadow:0 10px 30px rgba(0,0,0,.08)}.fp-blog-image{height:220px;background-size:cover;background-position:center}.fp-blog-grid article>span{display:block;color:#bd8d16;font-size:8px;font-weight:800;letter-spacing:.15em;margin:16px 18px 7px}.fp-blog-grid h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:27px;line-height:1.05;margin:0 18px 14px}.fp-blog-grid a{margin-left:18px;color:#bd8d16;font-size:9px;font-weight:800}
.fp-form-success{position:fixed;right:22px;bottom:22px;z-index:99;background:#d9b43a;color:#111;padding:15px 18px;font-size:11px;font-weight:800;box-shadow:0 12px 35px rgba(0,0,0,.3)}
#propiedades-servicio,#personal-shopper-servicio,#relocation-servicio,#propietarios-servicio,#consultas-servicio,#blog{scroll-margin-top:25px}
@media(max-width:1100px){.fp-service-map,.fp-owner-grid{grid-template-columns:repeat(3,1fr)}.fp-service-panel{grid-template-columns:1fr;gap:35px}.fp-property-grid{grid-template-columns:repeat(2,1fr)}.fp-panel-copy p{max-width:800px}}
@media(max-width:760px){.fp-journey,.fp-service-panel,.fp-owner,.fp-blog{padding:65px 5%}.fp-service-map,.fp-owner-grid,.fp-property-grid,.fp-blog-grid{grid-template-columns:1fr}.fp-form-grid{grid-template-columns:1fr}.fp-lead-form{padding:20px}.fp-property-image{height:230px}.fp-section-intro h2,.fp-panel-copy h2{font-size:42px}.fp-nav{} }

/* V37 — tighter vertical rhythm
   Reduce the empty visual space without changing the landing's visual language. */
@media (min-width:1101px){
  .ref-hero{height:min(760px,calc(100vh - 88px));}
  .ref-cards{bottom:0;}
  .fp-journey{padding-top:54px;padding-bottom:54px;}
  .fp-service-panel,.fp-owner,.fp-blog{padding-top:58px;padding-bottom:58px;}
  .fp-section-intro{margin-bottom:34px;}
}
@media (min-width:761px) and (max-width:1100px){
  .ref-hero{height:680px;}
  .fp-journey{padding-top:48px;padding-bottom:48px;}
  .fp-service-panel,.fp-owner,.fp-blog{padding-top:52px;padding-bottom:52px;}
}

/* V38 — logo sparkles confined to the FORTUNE PRIME wordmark area */
.ref-logo-link .fp-logo-spark.spark-a{left:39% !important;top:33% !important}
.ref-logo-link .fp-logo-spark.spark-b{left:66% !important;top:34% !important}
.ref-logo-link .fp-logo-spark.spark-c{left:88% !important;top:35% !important}

/* V39 — FINAL LOGO SPARKLES: strictly clipped to FORTUNE PRIME letters. */
.ref-logo-link .fp-logo-spark{display:none !important;}
.ref-logo-link .fp-logo-arc{display:none !important;}
.ref-logo-link::after{
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  content:"" !important;
  pointer-events:none !important;
  z-index:9 !important;
  opacity:0;
  background:
    radial-gradient(circle at 31% 38%,rgba(255,255,255,1) 0 1.3px,rgba(255,229,66,.98) 2px,transparent 6px),
    radial-gradient(circle at 52% 39%,rgba(255,255,245,.98) 0 1.2px,rgba(255,222,52,.95) 2px,transparent 6px),
    radial-gradient(circle at 75% 38%,rgba(255,255,245,.98) 0 1.2px,rgba(255,222,52,.95) 2px,transparent 6px),
    radial-gradient(circle at 91% 39%,rgba(255,255,245,.98) 0 1px,rgba(255,222,52,.9) 2px,transparent 5px) !important;
  -webkit-mask-image:url('assets/images/fortune-prime-wordmark-mask.png') !important;
  mask-image:url('assets/images/fortune-prime-wordmark-mask.png') !important;
  -webkit-mask-size:100% 100% !important;
  mask-size:100% 100% !important;
  -webkit-mask-repeat:no-repeat !important;
  mask-repeat:no-repeat !important;
  -webkit-mask-position:center !important;
  mask-position:center !important;
  animation:fp-v39-wordmark-sparkle 7.2s ease-in-out infinite !important;
  filter:drop-shadow(0 0 5px rgba(255,216,45,.95));
}
@keyframes fp-v39-wordmark-sparkle{
  0%,56%,100%{opacity:0;transform:scale(.985)}
  64%{opacity:.15;transform:scale(.995)}
  69%{opacity:1;transform:scale(1)}
  74%{opacity:.16;transform:scale(1.005)}
  80%{opacity:0;transform:scale(.99)}
}

/* V40 — Internal pages: no floating logo sparkles. Keep the wordmark clean;
   the animated sparkle treatment is reserved exclusively for the landing page. */
body:not(.home) .ref-logo-link::after{
  display:none !important;
  animation:none !important;
  opacity:0 !important;
  content:none !important;
}
body:not(.home) .ref-logo-link .fp-logo-spark,
body:not(.home) .ref-logo-link .fp-logo-arc{
  display:none !important;
  animation:none !important;
  opacity:0 !important;
}


/* =========================================================
   V41 — LANDING FIRST SCREEN / CARDS VISIBLE ON LOAD
   Keep the five service cards inside the first viewport instead
   of making the visitor scroll to reveal them.
   ========================================================= */
@media (min-width: 761px){
  .ref-hero{
    height:680px;
    min-height:680px;
    max-height:680px;
    padding-bottom:22px;
    overflow:visible;
    align-items:flex-end;
  }
  .ref-photo,.ref-photo-overlay{height:680px;}
  .ref-cards{
    position:absolute;
    left:3.3%;
    right:3.3%;
    bottom:22px;
    width:auto;
    margin:0;
    gap:18px;
    z-index:3;
  }
  .ref-card{
    min-height:0;
    height:245px;
    padding:12px 12px 11px;
  }
}
@media (min-width: 1200px){
  .ref-hero{
    height:680px;
    min-height:680px;
    max-height:680px;
  }
  .ref-photo,.ref-photo-overlay{height:680px;}
  .ref-cards{bottom:22px;gap:18px;}
  .ref-card{height:245px;}
}
@media (min-width: 761px) and (max-height: 780px){
  .ref-header{height:78px;}
  .ref-hero{height:600px;min-height:600px;max-height:600px;padding-bottom:16px;}
  .ref-photo,.ref-photo-overlay{height:600px;}
  .ref-cards{bottom:16px;gap:12px;}
  .ref-card{height:215px;padding:9px 9px 8px;}
}
@media (max-width: 760px){
  .ref-hero{height:auto;min-height:0;max-height:none;overflow:visible;padding-bottom:14px;}
  .ref-photo,.ref-photo-overlay{height:100%;min-height:650px;}
  .ref-cards{padding-top:300px;}
}

/* V42 — Sticky header: keep the compact logo completely clean after scrolling.
   The landing-page sparkle treatment is shown only in the initial header state.
   This prevents the sparkle layer from drifting outside the resized wordmark. */
.ref-header.is-scrolled .ref-logo-link::after{
  display:none !important;
  animation:none !important;
  opacity:0 !important;
  content:none !important;
}
.ref-header.is-scrolled .ref-logo-link .fp-logo-spark,
.ref-header.is-scrolled .ref-logo-link .fp-logo-arc{
  display:none !important;
  animation:none !important;
  opacity:0 !important;
}


/* V43 — SINGLE RANDOM GOLD SPARKLE, CONFINED TO WORDMARK LETTERS. */
.ref-logo-link::after{display:none !important;animation:none !important;opacity:0 !important;content:none !important;}
.ref-logo-link .fp-logo-spark,.ref-logo-link .fp-logo-arc{display:none !important;animation:none !important;opacity:0 !important;}
.ref-logo-link .fp-dynamic-spark{
  position:absolute !important; inset:0 !important; z-index:10 !important;
  pointer-events:none !important; opacity:0;
  background:radial-gradient(circle at var(--sx,50%) var(--sy,36%),
    rgba(255,255,255,1) 0 1.2px,
    rgba(255,246,173,.98) 1.7px,
    rgba(255,218,58,.95) 2.6px,
    rgba(255,196,20,.35) 4px, transparent 7px) !important;
  -webkit-mask-image:url('assets/images/fortune-prime-wordmark-mask.png') !important;
  mask-image:url('assets/images/fortune-prime-wordmark-mask.png') !important;
  -webkit-mask-size:100% 100% !important; mask-size:100% 100% !important;
  -webkit-mask-repeat:no-repeat !important; mask-repeat:no-repeat !important;
  -webkit-mask-position:center !important; mask-position:center !important;
  filter:drop-shadow(0 0 4px rgba(255,213,48,.95));
  transform:scale(.94); transition:opacity .12s ease,transform .12s ease;
}
.ref-logo-link .fp-dynamic-spark.is-lit{opacity:1;transform:scale(1);}
.ref-header.is-scrolled .ref-logo-link .fp-dynamic-spark,
body:not(.home) .ref-logo-link .fp-dynamic-spark{display:none !important;opacity:0 !important;}
@media(max-width:760px){.ref-logo-link .fp-dynamic-spark{display:none !important;}}
@media(prefers-reduced-motion:reduce){.ref-logo-link .fp-dynamic-spark{display:none !important;}}


/* V44 — USER-PROVIDED FORTUNE PRIME LOGO
   The supplied logo artwork is the authoritative gold treatment.
   Disable all previous logo sweeps, spark layers and pointer transforms. */
.ref-logo-link::before,
.ref-logo-link::after{
  content:none !important;
  display:none !important;
}
.ref-logo-link{
  perspective:none !important;
  transform:none !important;
  transform-style:flat !important;
  transition:none !important;
}
.ref-logo{
  transform:none !important;
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.32)) !important;
  transition:max-height .35s ease !important;
}
.ref-logo-link:hover .ref-logo{
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.32)) !important;
}
