/* =========================================================
   HOTELS & BRANDS PAGE
   Scoped to .hb-* classes.
========================================================= */

.hb-container{
  width:min(1180px,calc(100% - 90px));
  margin-inline:auto;
}

.hb-hero{
  position:relative;
  height:78svh;
  min-height:500px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fffaf1;
  background:#17110d;
}

.hb-hero-media,
.hb-hero-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.hb-hero-media img{
  object-fit:cover;
  filter:saturate(.92) contrast(1.02);
}

.hb-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,rgba(17,11,8,.20),rgba(17,11,8,.10) 42%,rgba(17,11,8,.50)),
    linear-gradient(90deg,rgba(24,14,10,.70),rgba(24,14,10,.28) 56%,rgba(24,14,10,.56));
}

.hb-hero-content{
  position:relative;
  z-index:2;
  width:min(760px,calc(100% - 60px));
  margin-right:auto;
  margin-left:max(45px,calc((100vw - 1180px) / 2));
  padding-top:92px;
}

.hb-hero-content span,
.hb-kicker{
  display:block;
  margin:0 0 17px;
  color:var(--red);
  font-size:10px;
  line-height:1.4;
  font-weight:700;
  letter-spacing:.32em;
  text-transform:uppercase;
}

.hb-hero-content span{
  color:#fffaf1;
}

.hb-hero-content h1{
  width:min(720px,100%);
  color:#fffaf1;
  font-size:46px;
  line-height:1.05;
  text-shadow:0 12px 34px rgba(0,0,0,.28);
}

.hb-hero-content p{
  width:min(590px,100%);
  margin-top:26px;
  color:rgba(255,250,241,.92);
  font-size:15px;
  line-height:1.88;
}

.hb-intro,
.hb-featured,
.hb-directory{
  background:var(--cream);
}

.hb-intro{
  padding:104px 0 86px;
}

.hb-intro-grid{
  display:grid;
  grid-template-columns:.86fr 1.14fr;
  gap:96px;
  align-items:start;
}

.hb-intro-copy h2,
.hb-section-head h2,
.hb-brand-copy h3,
.hb-cta h2{
  color:var(--ink);
  font-size:34px;
  line-height:1.15;
}

.hb-intro-text{
  display:grid;
  gap:18px;
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
}

.hb-stat-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  margin-top:68px;
  border-top:1px solid rgba(139,3,4,.22);
  border-bottom:1px solid rgba(139,3,4,.22);
}

.hb-stat-row div{
  padding:28px 30px;
  border-right:1px solid rgba(139,3,4,.18);
}

.hb-stat-row div:last-child{
  border-right:0;
}

.hb-stat-row strong{
  display:block;
  color:var(--red);
  font-family:var(--font-title);
  font-size:36px;
  line-height:1;
  font-weight:400;
}

.hb-stat-row span{
  display:block;
  margin-top:9px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.hb-featured{
  padding:28px 0 104px;
}

.hb-section-head{
  width:min(690px,100%);
  margin:0 auto 66px;
  text-align:center;
}

.hb-section-head p{
  margin-top:20px;
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
}

.hb-brand-panel{
  display:grid;
  grid-template-columns:1.12fr .88fr;
  align-items:center;
  gap:70px;
  margin-top:56px;
}

.hb-brand-panel:first-of-type{
  margin-top:0;
}

.hb-brand-panel--reverse{
  grid-template-columns:.88fr 1.12fr;
}

.hb-brand-panel--reverse .hb-brand-image{
  order:2;
}

.hb-brand-panel--reverse .hb-brand-copy{
  order:1;
}

.hb-brand-image{
  position:relative;
  overflow:hidden;
  min-height:430px;
  background:#d7d0c5;
}

.hb-brand-panel--large .hb-brand-image{
  min-height:520px;
}

.hb-brand-image img{
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  object-fit:cover;
  transition:transform .8s var(--ease);
}

.hb-brand-image:hover img{
  transform:scale(1.035);
}

.hb-brand-copy{
  max-width:460px;
}

.hb-brand-type{
  display:block;
  margin-bottom:15px;
  color:var(--red);
  font-size:10px;
  line-height:1.4;
  font-weight:700;
  letter-spacing:.25em;
  text-transform:uppercase;
}

.hb-brand-copy p{
  margin-top:20px;
  color:var(--muted);
  font-size:15px;
  line-height:1.88;
}

.hb-text-link,
.hb-primary-link,
.hb-secondary-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  margin-top:28px;
  padding-bottom:6px;
  color:var(--ink);
  font-size:12px;
  line-height:1;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.hb-text-link::after,
.hb-primary-link::after,
.hb-secondary-link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:var(--red);
  transform-origin:left center;
  transition:transform .36s var(--ease);
}

.hb-text-link:hover::after,
.hb-primary-link:hover::after,
.hb-secondary-link:hover::after{
  transform:scaleX(1.16);
}

.hb-directory{
  padding:96px 0 106px;
  background:#f7f4ed;
}

.hb-section-head--compact{
  margin-bottom:48px;
}

.hb-brand-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.hb-brand-card{
  display:block;
  min-height:100%;
  background:#fffaf1;
  border:1px solid rgba(139,3,4,.16);
  transition:transform .36s var(--ease), border-color .36s var(--ease), box-shadow .36s var(--ease);
}

.hb-brand-card:hover{
  transform:translateY(-5px);
  border-color:rgba(139,3,4,.30);
  box-shadow:0 22px 54px rgba(43,39,35,.10);
}

.hb-brand-card img{
  height:250px;
  object-fit:cover;
}

.hb-brand-card span,
.hb-brand-card h3,
.hb-brand-card p{
  margin-left:24px;
  margin-right:24px;
}

.hb-brand-card span{
  display:block;
  margin-top:24px;
  color:var(--red);
  font-size:10px;
  line-height:1.4;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.hb-brand-card h3{
  margin-top:10px;
  color:var(--ink);
  font-size:24px;
  line-height:1.14;
}

.hb-brand-card p{
  margin-top:14px;
  margin-bottom:26px;
  color:var(--muted);
  font-size:13px;
  line-height:1.76;
}

.hb-cta{
  position:relative;
  padding:90px 0;
  overflow:hidden;
  color:#fffaf1;
  background:#241c17;
}

.hb-cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(36,28,23,.94),rgba(36,28,23,.70)),
    url("../img/lantern-hoian.jpg?v=2") center/cover;
  opacity:1;
}

.hb-cta-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr auto;
  gap:42px;
  align-items:center;
}

.hb-cta h2{
  width:min(620px,100%);
  color:#fffaf1;
}

.hb-cta-actions{
  display:flex;
  align-items:center;
  gap:30px;
}

.hb-primary-link,
.hb-secondary-link{
  color:#fffaf1;
  margin-top:0;
}

@media(max-width:980px){
  .hb-container{
    width:min(760px,calc(100% - 54px));
  }

  .hb-hero{
    height:74svh;
    min-height:470px;
  }

  .hb-hero-content{
    margin-left:27px;
    width:calc(100% - 54px);
  }

  .hb-hero-content h1{
    font-size:38px;
  }

  .hb-intro-grid,
  .hb-brand-panel,
  .hb-brand-panel--reverse,
  .hb-cta-inner{
    grid-template-columns:1fr;
    gap:38px;
  }

  .hb-brand-panel--reverse .hb-brand-image,
  .hb-brand-panel--reverse .hb-brand-copy{
    order:initial;
  }

  .hb-brand-copy{
    max-width:640px;
  }

  .hb-brand-grid{
    grid-template-columns:1fr;
  }

  .hb-cta-actions{
    align-items:flex-start;
  }
}

@media(max-width:620px){
  .hb-container{
    width:calc(100% - 40px);
  }

  .hb-hero{
    height:72svh;
    min-height:430px;
  }

  .hb-hero-content{
    width:calc(100% - 40px);
    margin-left:20px;
    padding-top:72px;
  }

  .hb-hero-content h1{
    font-size:30px;
    line-height:1.08;
  }

  .hb-hero-content p{
    margin-top:20px;
    font-size:13px;
    line-height:1.78;
  }

  .hb-intro{
    padding:74px 0 62px;
  }

  .hb-intro-copy h2,
  .hb-section-head h2,
  .hb-brand-copy h3,
  .hb-cta h2{
    font-size:28px;
  }

  .hb-stat-row{
    grid-template-columns:1fr;
    margin-top:46px;
  }

  .hb-stat-row div{
    border-right:0;
    border-bottom:1px solid rgba(139,3,4,.18);
  }

  .hb-stat-row div:last-child{
    border-bottom:0;
  }

  .hb-featured{
    padding:22px 0 74px;
  }

  .hb-section-head{
    margin-bottom:44px;
  }

  .hb-brand-panel{
    margin-top:44px;
    gap:28px;
  }

  .hb-brand-image,
  .hb-brand-panel--large .hb-brand-image{
    min-height:310px;
  }

  .hb-directory{
    padding:72px 0 78px;
  }

  .hb-brand-card img{
    height:230px;
  }

  .hb-cta{
    padding:72px 0;
  }

  .hb-cta-actions{
    display:grid;
    gap:22px;
  }
}

/* Title scale aligned with the refined typography used on Our Story. */
.hb-hero-content h1{
  margin:0;
  font-size:30px;
  line-height:1.08;
}

.hb-intro-copy h2,
.hb-section-head h2,
.hb-brand-copy h3,
.hb-cta h2{
  font-size:31px;
  line-height:1.08;
}

.hb-brand-card h3{
  font-size:24px;
  line-height:1.14;
}

@media(max-width:560px){
  .hb-hero-content h1{
    font-size:30px;
    line-height:1.08;
  }

  .hb-intro-copy h2,
  .hb-section-head h2,
  .hb-brand-copy h3,
  .hb-cta h2{
    font-size:28px;
    line-height:1.12;
  }

  .hb-brand-card h3{
    font-size:22px;
    line-height:1.16;
  }
}

/* Lower hero copy to match the inner-page banner position. */
.hb-hero-content{
  position:absolute;
  inset:auto 0 clamp(84px,13.5vh,132px);
  width:min(820px,calc(100% - 48px));
  margin:0 auto;
  padding:0;
  text-align:center;
}

@media(max-width:560px){
  .hb-hero-content{
    inset:auto 0 clamp(72px,12vh,108px);
    width:min(360px,calc(100% - 44px));
  }
}

/* Inline brand links follow the same restrained treatment as homepage text links. */
.hb-text-link{
  display:inline-block;
  padding:0 0 4px;
  color:#4e4e4e;
  border-bottom:1px solid currentColor;
  font-size:11px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:none;
  transition:color .2s ease;
}

.hb-text-link::after{
  content:none;
  display:none;
}

.hb-text-link:hover{
  color:var(--red, #8b0304);
}

/* Smooth, restrained page reveals. */
.hb-hero.fadein-up{
  opacity:0;
  transform:none;
  filter:none;
  animation:none;
  transition:opacity 1.25s cubic-bezier(.22,.72,.22,1);
}

.hb-hero.fadein-up.is-visible{
  opacity:1;
  transform:none;
  filter:none;
}

.hb-hero-content h1{
  opacity:0;
  transform:translate3d(0,14px,0);
  transition:
    opacity 1s cubic-bezier(.22,.72,.22,1) .2s,
    transform 1s cubic-bezier(.22,.72,.22,1) .2s;
}

.hb-hero.is-visible .hb-hero-content h1{
  opacity:1;
  transform:translate3d(0,0,0);
}

.hb-intro.fadein-up,
.hb-featured.fadein-up,
.hb-directory.fadein-up,
.hb-cta.fadein-up{
  opacity:0;
  transform:translate3d(0,16px,0);
  filter:none;
  animation:none;
  transition:
    opacity 1.08s cubic-bezier(.22,.72,.22,1),
    transform 1.08s cubic-bezier(.22,.72,.22,1);
  transition-delay:0s;
}

.hb-intro.fadein-up.is-visible,
.hb-featured.fadein-up.is-visible,
.hb-directory.fadein-up.is-visible,
.hb-cta.fadein-up.is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
  filter:none;
}

/* One refined frame for the complete hotel logo collection. */
.hb-cta{
  padding:88px 0 96px;
  color:var(--ink, #2b2723);
  background:#edeae4;
}

.hb-cta::before{
  content:none;
  display:none;
}

.hb-cta-inner{
  display:block;
  text-align:center;
}

.hb-cta h2{
  width:auto;
  margin:0 0 42px;
  color:var(--ink, #2b2723);
}

.hb-logo-frame{
  --hb-logo-frame:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M6 .75H94C94 3.65 96.35 6 99.25 6V94C96.35 94 94 96.35 94 99.25H6C6 96.35 3.65 94 .75 94V6C3.65 6 6 3.65 6 .75Z' fill='none' stroke='%238b0304' stroke-opacity='.34' stroke-width='1.2'/%3E%3C/svg%3E");
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:center;
  gap:24px;
  width:100%;
  padding:30px 34px;
  box-sizing:border-box;
  border:8px solid transparent;
  border-image-source:var(--hb-logo-frame);
  border-image-slice:8;
  border-image-width:8px;
  border-image-repeat:stretch;
}

.hb-logo-frame a{
  --hb-logo-scale:1;
  display:grid;
  place-items:center;
  min-width:0;
  min-height:118px;
  padding:10px;
  transition:opacity .3s ease, transform .45s cubic-bezier(.22,.72,.22,1);
}

.hb-logo-frame img{
  display:block;
  width:min(148px,100%);
  height:96px;
  object-fit:contain;
  transform:scale(var(--hb-logo-scale));
  transform-origin:center;
}

.hb-logo-frame .hb-logo--little-hoian,
.hb-logo-frame .hb-logo--oasis,
.hb-logo-frame .hb-logo--faifo{
  --hb-logo-scale:.88;
}

.hb-logo-frame .hb-logo--residence{
  --hb-logo-scale:1.13;
}

.hb-logo-frame .hb-logo--allegro{
  --hb-logo-scale:1.04;
}

.hb-logo-frame .hb-logo--riverside{
  --hb-logo-scale:1.1;
}

.hb-logo-frame a:hover{
  opacity:.78;
  transform:translateY(-3px);
}

@media(max-width:980px){
  .hb-logo-frame{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:560px){
  .hb-cta{
    padding:68px 0 74px;
  }

  .hb-cta h2{
    margin-bottom:30px;
  }

  .hb-logo-frame{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding:22px 18px;
  }

  .hb-logo-frame a{
    min-height:104px;
    padding:8px;
  }

  .hb-logo-frame img{
    width:min(124px,100%);
    height:82px;
  }

}
