/* ═══════════════════════════════════════════
   hub.css — Own Time Home Club · Hub Central
   Design: Clear Full — scroll-snap por slide
   ═══════════════════════════════════════════ */

body {
  padding-bottom: 0;
  overflow: hidden;
  height: 100dvh;
  background: var(--color-bg);
}

#tipologia-grid {
  width: 100%;
  height: 100dvh;
}

/* ══════════════════════════════════════════
   INDEX — TELA ÚNICA (scroll interno)
   ══════════════════════════════════════════ */

.hub__cl-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80)),
    url('../images/profundidade.webp');
  background-size: cover;
  background-position: center;
  background-attachment: local;
  padding: 0 clamp(1.75rem, 6vw, 3rem) max(3dvh, env(safe-area-inset-bottom, 2rem));
}

.hub__cl-index::-webkit-scrollbar {
  display: none;
}

/* ─── Bloco superior: header + lista (max 50dvh) */
.hub__cl-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

/* ─── Header: logo + tagline + botões ────── */
.hub__cl-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  flex-shrink: 0;
  padding-top: max(20.7dvh, env(safe-area-inset-top, 2.7rem));
  padding-bottom: 0;
}

.hub__cl-logo {
  display: block;
  width: clamp(120px, 38vw, 210px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.hub__cl-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.72rem, 1.92vw, 0.84rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

.hub__cl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

/* ─── Lista de modelos ───────────────────── */
.hub__cl-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 0.5px solid rgba(255,255,255,0.04);
  margin-top: 10dvh;
}

.hub__cl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: clamp(0.55rem, 1.5dvh, 0.85rem) 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.hub__cl-item:active {
  opacity: 0.45;
}

.hub__cl-item-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.hub__cl-item-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 4.46vw, 1.42rem);
  line-height: 1;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.hub__cl-item-tag {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.62rem, 1.7vw, 0.72rem);
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hub__cl-item-tag::before {
  content: '— ';
}

.hub__cl-item-arrow {
  flex-shrink: 0;
  color: rgba(255,255,255,0.15);
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
}

/* ─── Badge abaixo da lista ──────────────── */
.hub__cl-badge-row {
  display: flex;
  justify-content: center;
  padding-top: clamp(1.5rem, 4dvh, 2.5rem);
  width: 100%;
}

/* ─── Hint de scroll ─────────────────────── */
.hub__cl-scroll-hint {
  flex-shrink: 0;
  color: rgba(255,255,255,0.15);
  animation: hintBounce 2.4s ease-in-out infinite;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0.5rem));
}

.hub__cl-scroll-hint [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 1.2;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ══════════════════════════════════════════
   SLIDES N — HERO DE CADA MODELO
   ══════════════════════════════════════════ */

.hub__cl-slide--hero {
  background: #000;
}

/* Foto de fundo */
.hub__cl-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  transition: opacity 0.4s ease;
}

/* Gradiente: escuro embaixo, transparente em cima */
.hub__cl-slide--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,4,4,0.92) 0%,
    rgba(4,4,4,0.38) 45%,
    rgba(4,4,4,0.08) 100%
  );
  z-index: 1;
}

/* Link que cobre o slide inteiro */
.hub__cl-hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem clamp(1.5rem, 5vw, 2.5rem);
  padding-bottom: max(2.75rem, env(safe-area-inset-bottom, 2.75rem));
  text-decoration: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.hub__cl-hero-link:hover .hub__cl-hero-bg,
.hub__cl-hero-link:focus-visible .hub__cl-hero-bg {
  opacity: 0.85;
}

.hub__cl-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}

.hub__cl-hero-sub {
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.hub__cl-hero-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 13vw, 5.5rem);
  line-height: 1;
  color: #fff;
}

.hub__cl-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
}

.hub__cl-hero-cta [data-lucide] {
  width: 13px;
  height: 13px;
  stroke-width: 1.5;
  transition: transform 0.2s ease;
}

.hub__cl-hero-link:hover .hub__cl-hero-cta,
.hub__cl-hero-link:focus-visible .hub__cl-hero-cta {
  color: rgba(255,255,255,0.9);
}

.hub__cl-hero-link:hover .hub__cl-hero-cta [data-lucide],
.hub__cl-hero-link:focus-visible .hub__cl-hero-cta [data-lucide] {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════
   COMPONENTES PARTILHADOS
   ══════════════════════════════════════════ */

/* ─── CTA base (pill icon) ──────────────── */
.hub__intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hub__intro-cta [data-lucide] {
  width: 13px;
  height: 13px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.hub__intro-cta--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--color-text);
}

.hub__intro-cta--outline:hover,
.hub__intro-cta--outline:focus-visible {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.5);
  outline: none;
}

.hub__intro-cta--hours {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--color-text);
}

.hub__intro-cta--hours:hover,
.hub__intro-cta--hours:focus-visible {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.5);
  outline: none;
}

/* ─── Soft Opening badge ─────────────────── */
.hub__soft-opening-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 200% auto;
  cursor: pointer;
  animation: hubGoldShimmer 3.5s linear infinite;
}

.hub__soft-opening-badge:hover,
.hub__soft-opening-badge:focus-visible {
  border-color: rgba(255,255,255,0.65);
  outline: none;
}

.hub__soft-opening-badge [data-lucide] {
  width: 11px;
  height: 11px;
  color: rgba(255,255,255,0.82);
  flex-shrink: 0;
}

/* ─── Sheet: horários ───────────────────── */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hours-group__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-lt);
  margin-bottom: 0.85rem;
}

.hours-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-row__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
}

.hours-row__time {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  white-space: nowrap;
  text-align: right;
}

/* ─── Animações ─────────────────────────── */
@keyframes hubGoldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ─── Reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hub__soft-opening-badge { animation: none; }
  .hub__cl-scroll-hint     { animation: none; }
}

/* ─── Desktop ───────────────────────────── */
@media (min-width: 768px) {
  .hub__cl-item-name {
    font-size: clamp(1.3rem, 2.43vw, 1.78rem);
  }

  .hub__cl-hero-name {
    font-size: clamp(4rem, 8vw, 7rem);
  }
}
