/* ============================================
   RA MARKETING PARA CLÍNICAS — HUB PAGE
   Paleta: #F5F1EC | #1A1A1A | #7A1E1E | #C75C3A | #FFFFFF
   Tipografia: Playfair Display + Poppins
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #1A1A1A;
  background-color: #F5F1EC;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* --- TEXTURA DE LINHO + OVERLAY NICHO (aplicados no body) --- */
body {
  background-color: #F5F1EC;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(122, 30, 30, .04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(199, 92, 58, .03) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(26, 26, 26, .018) 2px,
      rgba(26, 26, 26, .018) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(26, 26, 26, .012) 2px,
      rgba(26, 26, 26, .012) 3px
    );
  background-size: 100% 100%, 100% 100%, 8px 8px, 8px 8px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================
   HEADER
   ============================================ */
.hub-header {
  padding: 40px 24px 0;
  text-align: center;
}

.hub-header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hub-header__logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #7A1E1E;
  letter-spacing: 2px;
  line-height: 1;
}

.hub-header__name {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7A1E1E;
  opacity: .7;
}

/* ============================================
   HERO
   ============================================ */
.hub-hero {
  padding: 56px 28px 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.hub-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: #1A1A1A;
  margin-bottom: 20px;
  letter-spacing: -.2px;
}

.hub-hero__subtitle {
  font-size: .95rem;
  font-weight: 400;
  color: #555;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

.hub-hero__divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #7A1E1E, #C75C3A);
  margin: 36px auto 0;
  border-radius: 2px;
}

/* ============================================
   NAVIGATION / CARDS SECTION
   ============================================ */
.hub-nav {
  padding: 0 24px 60px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.hub-nav__label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  text-align: center;
  margin-bottom: 28px;
}

/* --- CARD BASE --- */
.hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(26, 26, 26, .06);
  transition: all .35s cubic-bezier(.25, .46, .45, .94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

/* --- CARD PRIMARY (produto ativo) --- */
.hub-card--primary {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, .04),
    0 8px 32px rgba(122, 30, 30, .06);
  border: 1px solid rgba(122, 30, 30, .08);
}

.hub-card--primary::before {
  background: linear-gradient(135deg, rgba(122, 30, 30, .02), rgba(199, 92, 58, .02));
}

.hub-card--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .06),
    0 16px 48px rgba(122, 30, 30, .1);
  border-color: rgba(122, 30, 30, .15);
}

.hub-card--primary:hover::before {
  opacity: 1;
}

.hub-card--primary:hover .hub-card__arrow {
  color: #C75C3A;
  transform: translateX(3px);
}

.hub-card--primary:active {
  transform: translateY(-1px);
}

/* --- CARD SOON (em breve) --- */
.hub-card--soon {
  opacity: .55;
  cursor: default;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .03);
}

.hub-card--soon:hover {
  transform: none;
}

/* --- CARD WHATSAPP (clicável, abre WhatsApp) --- */
.hub-card--whatsapp {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  border: 1px solid rgba(26, 26, 26, .06);
}

.hub-card--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .06),
    0 12px 40px rgba(122, 30, 30, .08);
  border-color: rgba(122, 30, 30, .12);
}

.hub-card--whatsapp:hover .hub-card__arrow {
  color: #C75C3A;
  opacity: 1;
  transform: translateX(3px);
}

.hub-card--whatsapp:active {
  transform: translateY(-1px);
}

.hub-card__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: .72rem;
  font-weight: 600;
  color: #C75C3A;
  letter-spacing: .3px;
}

/* --- CARD CONTENT --- */
.hub-card__content {
  flex: 1;
  min-width: 0;
}

.hub-card__tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C75C3A;
  margin-bottom: 8px;
}

.hub-card--soon .hub-card__tag {
  color: #999;
}

.hub-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
  margin-bottom: 6px;
}

.hub-card--primary .hub-card__title {
  color: #7A1E1E;
}

.hub-card__desc {
  font-size: .82rem;
  font-weight: 400;
  color: #777;
  line-height: 1.55;
}

/* --- ARROW --- */
.hub-card__arrow {
  flex-shrink: 0;
  color: #7A1E1E;
  opacity: .5;
  transition: all .35s ease;
}

.hub-card--primary:hover .hub-card__arrow {
  opacity: 1;
}

/* --- BADGE EM BREVE --- */
.hub-card__badge-soon {
  flex-shrink: 0;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #bbb;
  border: 1px solid #e0dcd8;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.hub-footer {
  margin-top: auto;
  padding: 40px 24px;
  text-align: center;
}

.hub-footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: .9rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 2px;
}

.hub-footer__author {
  font-size: .75rem;
  font-weight: 400;
  color: #C75C3A;
  opacity: .7;
  margin-bottom: 12px;
}

.hub-footer__copy {
  font-size: .68rem;
  color: #aaa;
}

/* ============================================
   RESPONSIVO
   ============================================ */

/* Tablet e desktop — manter contido e centralizado */
@media (min-width: 641px) {
  .hub-header {
    padding-top: 56px;
  }

  .hub-hero {
    padding: 64px 32px 48px;
  }

  .hub-card {
    padding: 32px 28px;
  }

  .hub-card__title {
    font-size: 1.3rem;
  }

  .hub-footer {
    padding: 56px 24px;
  }
}

/* Desktop grande — max elegance */
@media (min-width: 1024px) {
  .hub-header {
    padding-top: 64px;
  }

  .hub-hero {
    padding: 72px 32px 52px;
  }

  .hub-hero__title {
    font-size: 2.4rem;
  }

  .hub-card {
    padding: 36px 32px;
    margin-bottom: 20px;
  }
}

/* ============================================
   WHATSAPP FLUTUANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, .4),
    0 8px 32px rgba(0, 0, 0, .12);
  transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 20px rgba(37, 211, 102, .5),
    0 12px 40px rgba(0, 0, 0, .15);
}

.whatsapp-float:active {
  transform: scale(1.02);
}

.whatsapp-float__icon {
  width: 32px;
  height: 32px;
}

/* Pulse animation */
.whatsapp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: whatsapp-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  50%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}

/* Mobile pequeno */
@media (max-width: 380px) {
  .hub-hero__title {
    font-size: 1.45rem;
  }

  .hub-card {
    padding: 24px 20px;
  }

  .hub-card__title {
    font-size: 1.05rem;
  }

  .hub-card__desc {
    font-size: .78rem;
  }
}
