/* Página inicial (hub) da Clube VFit — paleta fixa, igual ao protótipo aprovado pela cliente.
   Não usa as variáveis de --bg/--primary de styles.css de propósito: essa página não deve
   mudar de cor sozinha no modo escuro do sistema, pra sempre bater com o que foi aprovado. */

* { box-sizing: border-box; }

body.hub {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #faf6ee;
  color: #1d2b26;
}

a { text-decoration: none; }
img { max-width: 100%; }

.hub-wrap { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }

/* Cabeçalho */
.hub-header { width: 100%; background: #0d4d40; }
.hub-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hub-logo { display: flex; align-items: center; gap: 10px; }
.hub-logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 10px; display: block; }
.hub-logo span { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: #fbf6ea; }
.hub-nav { display: flex; align-items: center; gap: 20px; }
.hub-nav a { color: #fbf6ea; font-size: 14px; font-weight: 600; }
.hub-social { display: flex; align-items: center; gap: 14px; }
.hub-social a { display: flex; align-items: center; }

/* Hero com fundo dinâmico */
.hub-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 24s infinite; }
.hero-bg:nth-of-type(1) { animation-delay: 0s; }
.hero-bg:nth-of-type(2) { animation-delay: 6s; }
.hero-bg:nth-of-type(3) { animation-delay: 12s; }
.hero-bg:nth-of-type(4) { animation-delay: 18s; }
@keyframes heroFade {
  0% { opacity: 0; } 4% { opacity: 1; } 21% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 36, 30, 0.6) 0%, rgba(10, 36, 30, 0.82) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 64px 24px; text-align: center; width: 100%; }
.hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #e8c98a; }
.hero-content h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 40px; line-height: 1.2; margin: 14px 0 16px; color: #fbf6ea; }
.hero-content p.lead { font-size: 17px; line-height: 1.55; color: #e4e9e6; margin: 0; }
.hero-divider { width: 56px; height: 1px; background: rgba(251, 246, 234, 0.35); margin: 24px auto; }
.hero-content p.ecossistema { font-size: 15px; line-height: 1.6; color: #cfd9d4; margin: 0; }
.hero-cta-line { font-size: 16px; font-weight: 700; color: #e8c98a; margin: 18px 0 0; }

/* Seções */
.hub-section { max-width: 1100px; margin: 0 auto; padding: 0 24px 56px; width: 100%; }
.hub-section.narrow { max-width: 800px; }
.hub-section-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.hub-section-head h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 30px; margin: 0 0 10px; color: #1d2b26; }
.hub-section-head p { color: #5c6b64; margin: 0; font-size: 15px; }

.badge { display: inline-block; background: #b8862b; color: #1a1410; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 13px; border-radius: 999px; }

.btn { display: inline-block; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 10px; text-align: center; border: none; cursor: pointer; }
.btn:hover { opacity: 0.92; }
.btn-primary { background: #0d4d40; color: #fbf6ea; }
.btn-gold { background: #b8862b; color: #1a1410; }
.btn-cream { background: #fbf6ea; color: #0d4d40; }

/* Treinão presencial */
.treino-card { background: #ffffff; border: 1px solid #e4dccb; border-radius: 20px; overflow: hidden; display: flex; flex-wrap: wrap; }
.treino-media { flex: 1 1 380px; min-width: 280px; background: #0f1a17; display: flex; align-items: center; justify-content: center; }
.treino-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.treino-info { flex: 1 1 380px; min-width: 280px; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.treino-info h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; margin: 0; color: #1d2b26; }
.treino-info p { color: #5c6b64; margin: 0; font-size: 15px; }
.treino-info .btn { margin-top: 10px; align-self: flex-start; }

/* Planos / produtos */
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .plans-grid, .products-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-nav { display: none !important; }
}

.plan-card { background: #ffffff; border: 1px solid #e4dccb; border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.featured { border: 2px solid #b8862b; position: relative; }
.plan-kicker { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #0d4d40; }
.plan-price { font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; color: #1d2b26; }
.plan-price span { font-size: 13px; font-weight: 600; color: #5c6b64; }
.plan-total { font-size: 13px; color: #5c6b64; margin-top: -6px; }
.plan-card p { color: #5c6b64; font-size: 14px; margin: 0; flex: 1; }
.plans-note { text-align: center; color: #9a8f74; font-size: 12px; margin: 16px 0 0; }

/* Dicas VFit */
.dicas-card { background: #0d4d40; border-radius: 20px; padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between; }
.dicas-badge-img { flex: 0 0 auto; width: 130px; height: 130px; border-radius: 999px; object-fit: cover; border: 3px solid #b8862b; display: block; }
.dicas-text { flex: 1 1 320px; min-width: 260px; }
.dicas-text h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; margin: 0 0 10px; color: #fbf6ea; }
.dicas-text p { color: #cfe3da; margin: 0; font-size: 15px; }

/* Protocolo Sekey */
.product-card { background: #ffffff; border: 1px solid #e4dccb; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.icon-circle { width: 40px; height: 40px; border-radius: 999px; background: #0d4d40; display: flex; align-items: center; justify-content: center; }
.product-card .name { font-weight: 700; font-size: 16px; color: #1d2b26; }
.product-card .benefit { font-size: 13px; font-weight: 600; color: #0d4d40; }
.product-card ul { margin: 0; padding-left: 18px; color: #5c6b64; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

.price-block { margin-top: 28px; background: #f3ecd9; border: 1px solid #e4dccb; border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.price-old { color: #5c6b64; font-size: 14px; text-decoration: line-through; }
.price-new { font-family: 'Fraunces', serif; font-weight: 600; font-size: 32px; color: #0d4d40; }
.price-detail { color: #5c6b64; font-size: 13px; }
.coupon-box { background: #0d4d40; color: #fbf6ea; border-radius: 12px; padding: 14px 22px; text-align: center; }
.coupon-box .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.coupon-box .code { font-size: 22px; font-weight: 800; letter-spacing: 0.05em; }
.coupon-box .sub { font-size: 12px; opacity: 0.85; }

/* Galeria */
.gallery-featured { border-radius: 18px; overflow: hidden; margin-bottom: 12px; }
.gallery-featured img, .gallery-thumbs img { width: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.gallery-featured img { aspect-ratio: 16 / 7; }
.gallery-thumbs img { aspect-ratio: 1 / 1; border-radius: 10px; }

.lightbox { position: fixed; inset: 0; background: rgba(13, 30, 25, 0.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); cursor: default; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: #fbf6ea; color: #0d4d40; border: none; border-radius: 999px; width: 40px; height: 40px; font-size: 20px; font-weight: 700; cursor: pointer; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #ffffff; border: 1px solid #e4dccb; border-radius: 14px; padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; color: #1d2b26; }
.faq-item p { margin: 12px 0 0; color: #5c6b64; font-size: 14px; line-height: 1.5; }

/* Rodapé */
.hub-footer { width: 100%; background: #0d4d40; margin-top: auto; }
.hub-footer-inner { max-width: 1100px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.hub-footer-brand { color: #fbf6ea; font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; }
.hub-footer-social { display: flex; align-items: center; gap: 18px; }
.hub-footer-copy { color: #9db4ab; font-size: 12px; }
