/* ==========================================================================
   Timeless Beach Hotel — Sections (home + shared) + Footer
   ========================================================================== */

/* ---- Full-bleed canvas: neutralise Palatio wrappers on bespoke templates ---- */
body.tbh.home .page_content_wrap,
body.tbh.home .content_wrap,
body.tbh.home .content,
body.tbh.page-template .page_content_wrap,
body.tbh.page-template .content_wrap,
body.tbh.page-template .content {
  max-width: none !important; width: 100% !important;
  margin: 0 !important; padding: 0 !important; float: none !important;
}
body.tbh.home .page_content_wrap { margin-top: 0 !important; }
body.tbh.home .sidebar_hide .content { width: 100% !important; }

/* ---- Section rhythm ---- */
.tbh-section { padding: var(--tbh-section) 0; position: relative; }
.tbh-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.4rem, 5vw, 4.5rem); flex-wrap: wrap; }
.tbh-section__head.is-centered { flex-direction: column; align-items: center; text-align: center; }
.tbh-section__title { font-size: var(--tbh-fs-h2); max-width: 18ch; }
.tbh-section__head.is-centered .tbh-section__title { max-width: 24ch; }

.tbh-textlink {
  font-family: var(--tbh-font-display); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  font-size: .76rem; color: var(--tbh-ink); text-decoration: none; display: inline-flex; gap: .6em; align-items: center;
  white-space: nowrap;
}
.tbh-textlink span { transition: transform .4s var(--tbh-ease-luxe); }
.tbh-textlink:hover { color: var(--tbh-accent-deep); }
.tbh-textlink:hover span { transform: translateX(5px); }

/* =========================== HERO =========================== */
.tbh-hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
  color: var(--tbh-on-dark);
}
.tbh-hero__media { position: absolute; inset: 0; z-index: 0; }
.tbh-hero__img {
  width: 100%; height: 100%; object-fit: cover;
  animation: tbh-kenburns 18s ease-out forwards;
  transform-origin: 60% 40%;
}
@keyframes tbh-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.tbh-hero__sun {
  position: absolute; left: 50%; bottom: -22%; width: 60vmin; height: 60vmin; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(var(--tbh-glow-rgb),.55), rgba(var(--tbh-accent-rgb),.18) 42%, transparent 66%);
  mix-blend-mode: screen; pointer-events: none;
}
.tbh-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--tbh-scrim-rgb),.34) 0%, transparent 26%, transparent 52%, rgba(var(--tbh-scrim-rgb),.66) 100%),
    linear-gradient(90deg, rgba(var(--tbh-scrim-rgb),.32), transparent 55%);
}
.tbh-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(5.5rem, 12vh, 9rem); width: min(100% - (var(--tbh-gutter)*2), var(--tbh-maxw)); }
.tbh-hero__eyebrow { color: var(--tbh-accent-glow); margin-bottom: 1.4rem; }
.tbh-hero__title {
  color: #fff; font-size: var(--tbh-fs-mega); font-weight: 200; line-height: .98;
  max-width: 16ch; margin: 0 0 1.6rem; text-shadow: 0 2px 40px rgba(var(--tbh-scrim-rgb),.35);
}
.tbh-hero__sub { max-width: 46ch; font-size: var(--tbh-fs-lead); color: rgba(var(--tbh-on-dark-rgb),.9); line-height: 1.7; }
.tbh-hero__cta { display: flex; align-items: center; gap: clamp(1.5rem,3vw,2.6rem); margin-top: 2.4rem; flex-wrap: wrap; }
.tbh-hero__scroll { display: inline-flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none;
  font-family: var(--tbh-font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; }
.tbh-hero__scrollline { width: 0; height: 1px; background: var(--tbh-accent); transition: width .5s var(--tbh-ease-luxe); }
.tbh-hero__scroll:hover .tbh-hero__scrollline { width: 46px; }

.tbh-hero__foot {
  position: absolute; left: 0; right: 0; bottom: clamp(1.4rem,3vh,2rem); z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--tbh-font-display); letter-spacing: .2em; text-transform: uppercase; font-size: .66rem;
  color: rgba(var(--tbh-on-dark-rgb),.6);
}
.tbh-hero__scrollcue { width: 1px; height: 54px; background: rgba(var(--tbh-on-dark-rgb),.3); position: relative; overflow: hidden; }
.tbh-hero__scrollcue i { position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--tbh-accent); animation: tbh-cue 2.4s var(--tbh-ease-inout) infinite; }
@keyframes tbh-cue { 0% { top: -50%; } 60%,100% { top: 100%; } }
@media (max-width: 600px){ .tbh-hero__foot span:first-child, .tbh-hero__foot span:last-child { display:none; } .tbh-hero__foot { justify-content:center; } }

/* ========================= WELCOME ========================= */
.tbh-welcome__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.tbh-welcome__h { font-size: var(--tbh-fs-h2); max-width: 18ch; margin: 1.4rem 0 1.6rem; color: var(--tbh-ink); }
.tbh-welcome__p { color: var(--tbh-ink-soft); max-width: 52ch; margin-bottom: 1.8rem; }
.tbh-welcome__media { position: relative; border-radius: var(--tbh-radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--tbh-shadow-lift); }
.tbh-welcome__media .tbh-media__img { width: 100%; height: 100%; object-fit: cover; }
.tbh-welcome__cap { position: absolute; left: 1.3rem; bottom: 1.1rem; color: #fff; font-family: var(--tbh-font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; text-shadow: 0 1px 14px rgba(0,0,0,.4); }

.tbh-stats { list-style: none; margin: clamp(2rem,4vw,3rem) 0 0; padding: 1.8rem 0 0; display: flex; gap: clamp(1.5rem,4vw,3.5rem); border-top: 1px solid var(--tbh-line); flex-wrap: wrap; }
.tbh-stats__n { display: block; font-family: var(--tbh-font-display); font-weight: 300; font-size: clamp(2.2rem,1.5rem + 2vw,3.2rem); color: var(--tbh-accent-deep); line-height: 1; }
.tbh-stats__l { display: block; margin-top: .5rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tbh-ink-soft); }

/* ========================== SUITES ========================== */
.tbh-suites { background: var(--tbh-cream); }
.tbh-suites__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.2vw, 2.2rem); }
.tbh-card__link { text-decoration: none; color: inherit; display: block; }
.tbh-card__media { position: relative; overflow: hidden; border-radius: var(--tbh-radius); aspect-ratio: 3/4; }
.tbh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--tbh-ease-luxe); }
.tbh-card:hover .tbh-card__media img { transform: scale(1.06); }
.tbh-card__body { padding: 1.3rem .2rem 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 1rem; }
.tbh-card__name { font-size: var(--tbh-fs-h3); grid-column: 1 / -1; }
.tbh-card__desc { color: var(--tbh-ink-soft); font-size: .9rem; margin-top: .3rem; }
.tbh-card__price { font-family: var(--tbh-font-display); letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; color: var(--tbh-accent-deep); margin-top: .3rem; text-align: right; }

/* ======================== EXPERIENCES ======================== */
.tbh-exp__list { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 7rem); margin-top: clamp(2.5rem,5vw,4rem); }
.tbh-exp__row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,5vw,5.5rem); width: min(100% - (var(--tbh-gutter)*2), var(--tbh-maxw)); margin-inline: auto; }
.tbh-exp__row.is-rev .tbh-exp__media { order: 2; }
.tbh-exp__media { position: relative; overflow: hidden; border-radius: var(--tbh-radius-lg); aspect-ratio: 16/11; box-shadow: var(--tbh-shadow-soft); }
.tbh-exp__media .tbh-media__img { width: 100%; height: 100%; object-fit: cover; }
.tbh-exp__no { font-family: var(--tbh-font-display); font-size: 1rem; letter-spacing: .2em; color: var(--tbh-accent-deep); display: block; margin-bottom: 1rem; }
.tbh-exp__name { font-size: var(--tbh-fs-h2); margin-bottom: 1.1rem; }
.tbh-exp__text p { color: var(--tbh-ink-soft); max-width: 42ch; margin-bottom: 1.6rem; }

/* ========================== GALLERY ========================== */
.tbh-gallery { background: var(--tbh-dark); color: var(--tbh-on-dark); }
.tbh-gallery .tbh-eyebrow { color: var(--tbh-accent-glow); }
.tbh-gallery .tbh-section__title { color: var(--tbh-on-dark); }
.tbh-gallery .tbh-textlink { color: var(--tbh-on-dark-soft); }
.tbh-gallery .tbh-textlink:hover { color: var(--tbh-accent); }
.tbh-gallery__strip { display: flex; gap: clamp(.8rem,1.4vw,1.2rem); padding: 0 var(--tbh-gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.tbh-gallery__strip::-webkit-scrollbar { display: none; }
.tbh-gallery__item { flex: 0 0 clamp(240px, 28vw, 420px); aspect-ratio: 4/5; border-radius: var(--tbh-radius); overflow: hidden; scroll-snap-align: center; }
.tbh-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--tbh-ease-luxe); }
.tbh-gallery__item:hover img { transform: scale(1.05); }

/* ============================ CTA ============================ */
.tbh-cta { position: relative; overflow: hidden; padding: clamp(6rem,14vw,12rem) 0; text-align: center; color: var(--tbh-on-dark); display: grid; place-items: center; }
.tbh-cta__media { position: absolute; inset: -12% 0; z-index: 0; }
.tbh-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.tbh-cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tbh-scrim-rgb),.62), rgba(var(--tbh-scrim-rgb),.42)); }
.tbh-cta__inner { position: relative; z-index: 2; }
.tbh-cta__title { color: #fff; font-size: var(--tbh-fs-h1); margin: 1.2rem 0; line-height: 1; }
.tbh-cta__sub { color: rgba(var(--tbh-on-dark-rgb),.86); margin-bottom: 2.2rem; }

/* =========================== FOOTER =========================== */
.tbh-footer { background: var(--tbh-dark); color: var(--tbh-on-dark-soft); padding: clamp(3.5rem,7vw,6rem) 0 2rem; position: relative; }
.tbh-footer a { color: inherit; text-decoration: none; transition: color .3s; }
.tbh-footer a:hover { color: var(--tbh-accent); }
/* three columns: brand · Explore · Connect (newsletter removed) */
.tbh-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.35fr; gap: clamp(2rem,4vw,4rem); padding-bottom: clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--tbh-line-dark); }
.tbh-footer__brand img { height: 64px; width: auto; margin-bottom: 1.4rem; }
.tbh-footer__brand p { max-width: 34ch; font-size: .9rem; }
.tbh-footer__col h4 { font-family: var(--tbh-font-display); color: var(--tbh-on-dark); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; margin-bottom: 1.2rem; }
.tbh-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; font-size: .92rem; }
/* Connect: icon + label on one baseline. The icon inherits currentColor so it
   picks up the link hover for free. */
.tbh-footer__connect li,
.tbh-footer__connect li > a { display: flex; align-items: flex-start; gap: .7rem; }
.tbh-footer__connect .tbh-ico { flex: none; margin-top: .18em; opacity: .75; transition: opacity .3s, color .3s; }
.tbh-footer__connect li > a:hover .tbh-ico { opacity: 1; }
.tbh-footer__addr { color: var(--tbh-on-dark-soft); line-height: 1.5; }
.tbh-footer__cta { margin-top: 1.6rem; }
.tbh-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.8rem; font-size: .76rem; letter-spacing: .04em; flex-wrap: wrap; }
.tbh-footer__bottom .tbh-mark { width: 26px; height: 26px; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 900px) {
  .tbh-welcome__grid { grid-template-columns: 1fr; }
  .tbh-welcome__media { order: -1; aspect-ratio: 16/11; }
  .tbh-suites__grid { grid-template-columns: 1fr 1fr; }
  .tbh-exp__row, .tbh-exp__row.is-rev .tbh-exp__media { grid-template-columns: 1fr; order: 0; }
  .tbh-exp__media { order: -1 !important; }
  .tbh-footer__top { grid-template-columns: 1fr 1fr; }
  .tbh-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tbh-suites__grid { grid-template-columns: 1fr; }
  .tbh-section__head { align-items: flex-start; }
  .tbh-footer__top { grid-template-columns: 1fr; }
  .tbh-hero__title { font-size: clamp(2.8rem, 12vw, 4rem); }
}

