/* ========================================================================== 
   Header & footer refinement — aligned with the refined front system
   Keep the existing identity, tighten spacing, hierarchy and premium finish.
   ========================================================================== */

.topbar--refined{
  background: linear-gradient(90deg, #16233a 0%, #1d2d46 58%, #18253a 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
}

.topbar--refined::before{
  opacity: .85;
}

.topbar__inner{
  justify-content: flex-end;
  min-height: 38px;
  padding: 10px 0;
  gap: 12px;
}

.topbar__dot{
  flex: 0 0 auto;
  color: rgba(201,163,93,.92);
  font-size: 10px;
}

.topbar__text{
  display: block;
  max-width: min(100%, 820px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.header--refined{
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
  backdrop-filter: blur(16px) saturate(180%);
}

.header--refined.scrolled{
  box-shadow: 0 18px 44px rgba(15,23,42,.08);
}

.header--refined .row{
  min-height: 86px;
  padding: 14px 0 12px;
  gap: 24px;
}

.brand--refined .logo img{
  height: clamp(72px, 6.2vw, 88px);
  max-width: 270px;
}

.nav--refined{
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.nav--refined a{
  padding: 10px 0;
}

.nav--refined a::after{
  bottom: 0;
  height: 2px;
  border-radius: 999px;
}

.nav--refined a:hover,
.nav--refined a.active{
  color: #0f172a;
}

.header-actions--refined{
  gap: 12px;
  padding: 8px 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.94) 100%);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

.header-actions--refined .header-quick{
  gap: 10px;
}

.header--refined .icon-pill{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.header--refined .icon-pill:hover{
  transform: translateY(-2px);
  border-color: rgba(201,163,93,.32);
  box-shadow: 0 16px 28px rgba(15,23,42,.08);
}

.lang-pill--header{
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.94) 100%);
  border-color: rgba(15,23,42,.08);
  box-shadow: none;
}

.lang-pill--header a{
  min-width: 42px;
  padding: 10px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.lang-pill--header a.active{
  color: #0f172a;
}

.header-cta{
  min-height: 46px;
  padding: 13px 24px;
  box-shadow: 0 16px 34px rgba(15,23,42,.16);
}

.header-cta:hover{
  transform: translateY(-2px);
}

.header-search-row--refined{
  padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.94) 100%);
  border-top: 1px solid rgba(15,23,42,.06);
}

.header-search-shell{
  max-width: 920px;
  margin: 0 auto;
}

.header-search-row--refined .header-search{
  max-width: none;
}

.header-search-row--refined .header-search__field{
  gap: 12px;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.92) 100%);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 32px rgba(15,23,42,.06);
}

.header-search-row--refined .header-search__input{
  padding: 10px 6px 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
}

.header-search-row--refined .header-search__input:focus{
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

.header-search-row--refined .header-search__btn{
  width: 48px;
  height: 48px;
  border-radius: 18px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.94) 100%);
}

.header-search-row--refined .search-dropdown{
  margin-top: 10px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
}

.footer--refined{
  margin-top: 64px;
  padding: 0 0 34px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,250,252,.66) 28%, rgba(255,255,255,.96) 100%);
}

.footer--refined::before{
  display: none;
}

.footer__shell{
  position: relative;
  overflow: hidden;
  padding: 38px 36px 26px;
  border-radius: 30px 30px 22px 22px;
  border: 1px solid rgba(15,23,42,.08);
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(201,163,93,.12) 0%, transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.97) 100%);
  box-shadow: 0 22px 54px rgba(15,23,42,.08);
}

.footer__shell::before{
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(201,163,93,.78) 0%, rgba(14,124,134,.56) 100%);
}

.footer__cols{
  grid-template-columns: 1.3fr .95fr .9fr;
  gap: 34px;
  align-items: start;
}

.footer__brand-panel{
  display: grid;
  gap: 16px;
  max-width: 400px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(248,250,252,.70) 100%);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.footer__brand{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.footer__brand-copy{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.footer__brand-mark{
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.94) 100%);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 24px rgba(15,23,42,.08);
}

.footer__brand-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer__title{
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  color: #0f172a;
}

.footer__site-title{
  margin-bottom: 0;
  font-size: 16px;
}

.footer__tagline,
.footer__description,
.footer__bottom,
.footer__list{
  color: #475569;
}

.footer__tagline{
  font-size: 14px;
}

.footer__description{
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
}

.footer__utility-stack{
  display: grid;
  gap: 10px;
}

.footer__utility-link,
.footer__address-card{
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.95) 100%);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.footer__utility-link{
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.footer__utility-link:hover,
.footer__utility-link:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(201,163,93,.26);
  box-shadow: 0 14px 26px rgba(15,23,42,.08);
}

.footer__utility-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.footer__utility-label::before{
  content: '';
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,163,93,.85) 0%, rgba(14,124,134,.52) 100%);
}

.footer__utility-text,
.footer__address-text{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #0f172a;
}

.footer__trust{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.footer__trust--tags .pill{
  box-shadow: none;
  background: rgba(255,255,255,.86);
}

.footer__list{
  display: grid;
  gap: 10px;
}

.footer__list a,
.footer__list div{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}

.footer__nav-list a{
  width: fit-content;
}

.footer__nav-list a:hover,
.footer__contact-list a:hover,
.footer__language-link a:hover{
  color: #0f172a;
}

.footer__cta{
  margin-top: 16px;
}

.footer__whatsapp{
  min-height: 48px;
  padding-inline: 24px;
}

.footer__bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(15,23,42,.08);
  font-size: 13px;
}

@media (max-width: 1180px){
  .nav--refined{
    gap: 18px;
    font-size: 13px;
  }

  .brand--refined .logo img{
    max-width: 240px;
  }
}

@media (max-width: 980px){
  .header-actions--refined{
    gap: 10px;
    padding: 8px;
  }

  .header-cta{
    padding-inline: 20px;
  }

  .footer__cols{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand-col{
    grid-column: 1 / -1;
  }

  .footer__brand-panel{
    max-width: none;
  }
}

@media (max-width: 768px){
  .topbar__inner{
    justify-content: center;
    min-height: 40px;
    text-align: center;
  }

  .topbar__text{
    white-space: normal;
  }

  .header--refined .row{
    min-height: 74px;
  }

  .brand--refined .logo img{
    height: clamp(64px, 19vw, 92px);
    max-width: 220px;
  }

  .footer__brand-panel{
    padding: 16px;
    border-radius: 20px;
  }

  .header-search-row--refined{
    padding: 10px 0 14px;
  }

  .header-search-row--refined .header-search__field{
    padding: 10px;
    border-radius: 22px;
  }

  .header-search-row--refined .header-search__btn{
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .footer--refined{
    margin-top: 52px;
    padding-bottom: 26px;
  }

  .footer__shell{
    padding: 24px 18px 20px;
    border-radius: 24px 24px 20px 20px;
  }

  .footer__cols{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer__brand-panel{
    max-width: none;
  }

  .footer__utility-link,
  .footer__address-card{
    padding: 12px;
    border-radius: 16px;
  }

  .footer__brand-col{
    grid-column: auto;
  }

  .footer__bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ========================================================================== 
   Header polish v2 — closer to the refined footer language
   Keep the same architecture, reduce bulk, improve rhythm and visual alignment.
   ========================================================================== */

.topbar--refined{
  background: linear-gradient(90deg, #162338 0%, #1b2940 52%, #162338 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
}

.topbar__inner{
  justify-content: center;
  min-height: 36px;
  padding: 8px 0;
  gap: 10px;
}

.topbar__text{
  max-width: min(100%, 880px);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(255,255,255,.90);
}

.header--refined{
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.86) 100%);
  border-bottom: 1px solid rgba(15,23,42,.06);
  box-shadow: none;
}

.header--refined.scrolled{
  box-shadow: none;
}

.header--refined .row{
  position: relative;
  min-height: 80px;
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 12px 22px;
  gap: 22px;
  border-radius: 28px;
  background:
    radial-gradient(120% 170% at 100% 0%, rgba(201,163,93,.10) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.96) 100%);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 38px rgba(15,23,42,.07);
}

.header--refined .row::before{
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, rgba(201,163,93,.72) 0%, rgba(14,124,134,.48) 100%);
}

.brand--refined{
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.brand--refined .logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.92) 100%);
  border: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.brand--refined .logo img{
  height: clamp(58px, 5vw, 72px);
  max-width: 228px;
}

.nav--refined{
  flex: 1 1 auto;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 650;
  color: #475569;
}

.nav--refined a{
  position: relative;
  padding: 8px 0;
}

.nav--refined a::after{
  bottom: -2px;
}

.header-actions--refined{
  flex: 0 0 auto;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.header-actions--refined .header-quick,
.lang-pill--header{
  padding: 5px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.92) 100%);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 24px rgba(15,23,42,.06);
}

.header-actions--refined .header-quick{
  gap: 8px;
}

.header--refined .icon-pill{
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.header--refined .icon-pill:hover{
  background: rgba(255,255,255,.86);
  border-color: rgba(201,163,93,.28);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}

.lang-pill--header{
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 12px 24px rgba(15,23,42,.06);
}

.lang-pill--header a{
  min-width: 40px;
  padding: 10px 13px;
  border-radius: 15px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.lang-pill--header a.active{
  background: linear-gradient(135deg, rgba(201,163,93,.92) 0%, rgba(224,191,128,.92) 100%);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26);
}

.header-cta{
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(15,23,42,.14);
}

.header-search-row--refined{
  padding: 0 0 16px;
  background: transparent;
  border-top: 0;
}

.header-search-shell{
  max-width: 920px;
  margin: 0 auto;
}

.header-search-row--refined .header-search__field{
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.94) 100%);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 34px rgba(15,23,42,.07);
}

.header-search-row--refined .header-search__input{
  padding: 10px 8px 10px 10px;
  font-size: 15px;
  color: #334155;
}

.header-search-row--refined .header-search__input::placeholder{
  color: #94a3b8;
}

.header-search-row--refined .header-search__btn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10203a 0%, #1f2f48 100%);
  color: #fff;
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 12px 24px rgba(15,23,42,.12);
}

.header-search-row--refined .header-search__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15,23,42,.16);
}

@media (max-width: 1180px){
  .header--refined .row{
    padding: 12px 18px;
    gap: 18px;
  }

  .nav--refined{
    gap: 14px;
    font-size: 13px;
  }

  .brand--refined .logo img{
    max-width: 210px;
  }
}

@media (max-width: 980px){
  .header--refined .row{
    margin-top: 10px;
    margin-bottom: 8px;
    min-height: 72px;
    padding: 10px 14px;
    border-radius: 24px;
  }

  .header--refined .row::before{
    border-radius: 24px 24px 0 0;
  }

  .brand--refined .logo{
    padding: 6px 8px;
    border-radius: 18px;
  }

  .brand--refined .logo img{
    height: clamp(52px, 7vw, 64px);
    max-width: 188px;
  }

  .header-actions--refined{
    gap: 8px;
  }

  .header-actions--refined .header-quick{
    display: none;
  }

  .lang-pill--header a{
    min-width: 36px;
    padding: 9px 11px;
  }

  .header-cta{
    padding: 12px 18px;
  }
}

@media (max-width: 768px){
  .topbar__inner{
    min-height: 34px;
    padding: 7px 0;
  }

  .topbar__text{
    font-size: 11px;
    letter-spacing: .03em;
  }

  .header--refined .row{
    min-height: 68px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .header--refined .row::before{
    border-radius: 20px 20px 0 0;
  }

  .brand--refined .logo{
    padding: 6px 8px;
    border-radius: 16px;
  }

  .brand--refined .logo img{
    height: clamp(48px, 15vw, 58px);
    max-width: 172px;
  }

  .lang-pill--header{
    padding: 4px;
    border-radius: 16px;
  }

  .lang-pill--header a{
    border-radius: 12px;
  }

  .header-cta{
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 16px;
  }

  .header-search-row--refined{
    padding: 0 0 14px;
  }

  .header-search-row--refined .header-search__field{
    padding: 9px;
    border-radius: 20px;
  }

  .header-search-row--refined .header-search__btn{
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}


/* ========================================================================== 
   Project status flow fix — sold out remains visible but clearly badged
   ========================================================================== */

.project-page .project-header-badges{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.project-page .badge--project-status{
  font-weight:700;
  border-width:1px;
}

.project-page .badge--project-status-soldout,
.project-card__status-badge--soldout{
  background:rgba(153, 27, 27, 0.08);
  border-color:rgba(153, 27, 27, 0.18);
  color:#991b1b;
}

.project-page .badge--project-status-comingsoon,
.project-card__status-badge--comingsoon{
  background:rgba(14, 124, 134, 0.08);
  border-color:rgba(14, 124, 134, 0.18);
  color:#0e7c86;
}

.project-card__status-badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 24px rgba(15,23,42,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.project-page .detail-header__ctas--soldout{
  max-width:360px;
}

.project-page .soldout-note,
.project-page .soldout-side-note{
  display:grid;
  gap:6px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.97) 100%);
  border:1px solid rgba(153, 27, 27, 0.14);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
  color:#475569;
  line-height:1.6;
}

.project-page .soldout-note strong,
.project-page .soldout-side-note strong{
  color:#0f172a;
  font-size:15px;
  line-height:1.35;
}

.project-page .soldout-note span,
.project-page .soldout-side-note span{
  font-size:14px;
}

@media (max-width: 720px){
  .project-card__status-badge{
    top:10px;
    left:10px;
    min-height:30px;
    padding:7px 10px;
    font-size:11px;
  }

  .project-page .detail-header__ctas--soldout{
    max-width:none;
    width:100%;
  }
}


/* ==========================================================================
   Lot 1 hardening patch — 2026-03-20
   Keep the refined header stable on tablet widths before the mobile layout.
   ========================================================================== */
@media (max-width: 1080px){
  .nav--refined{
    display: none;
  }

  .header-actions--refined{
    display: none;
  }

  .nav-toggle{
    display: inline-flex;
  }

  .header--refined .row{
    gap: 14px;
    align-items: center;
  }
}

@media (max-width: 1080px) and (min-width: 769px){
  .header--refined .row{
    display: flex;
    justify-content: flex-start;
  }

  .brand--refined{
    min-width: 0;
  }

  .brand--refined .logo img{
    height: clamp(52px, 7vw, 64px);
    max-width: 188px;
  }

  .nav-toggle{
    margin-left: auto;
  }
}
