/* ==========================================================================
   PROJETO GUI SAMUEL — PÁGINA OFICIAL DE LINKS & AGENDAMENTO
   Identidade Visual: Dark Luxury / Visagismo de Alta Precisão
   Cores e Tipografia sincronizadas com o Projeto Gui Samuel Original
   Layout 100% alinhado à referência (segundo print)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & VARIÁVEIS
   -------------------------------------------------------------------------- */
:root {
  /* Cores Base */
  --color-black: #000000;
  --color-bg-dark: #000000;
  --color-bg-alt: #0D0D0D;
  --color-bg-card: rgba(18, 18, 18, 0.82);
  --color-bg-card-hover: rgba(26, 26, 26, 0.92);
  
  /* Cores Douradas (Padrão Original Projeto Gui Samuel) */
  --color-gold: #C9A84C;
  --color-gold-light: #E8C97A;
  --color-gold-dark: #96762C;
  --color-gold-subtle: rgba(201, 168, 76, 0.18);
  --color-gold-glow: rgba(201, 168, 76, 0.35);

  /* Tipografia & Contrastes */
  --color-text-white: #FFFFFF;
  --color-text-light: #F2EFEB;
  --color-text-gray: #B6B6B6;
  --color-text-muted: #7E7E7E;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(201, 168, 76, 0.45);

  /* Famílias Tipográficas */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Gradientes de Assinatura */
  --gradient-gold: linear-gradient(135deg, #C9A84C 0%, #E8C97A 50%, #C9A84C 100%);
  --gradient-gold-hover: linear-gradient(135deg, #E8C97A 0%, #C9A84C 50%, #E8C97A 100%);
  
  /* Sombras */
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-gold-cta: 0 4px 15px rgba(201, 168, 76, 0.25);

  /* Transições Suaves */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & SETUP GLOBAL
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background-color: var(--color-black);
  color: var(--color-text-white);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
}

body {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-black);
  color: var(--color-text-white);
  line-height: 1.5;
  font-weight: 400;
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. ESTRUTURA PRINCIPAL (DESKTOP FULL HEIGHT & CENTRALIZADA)
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centralizado verticalmente na altura */
  overflow: hidden;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. VISUAL HERO (FUNDO ORIGINAL SEM OVERLAY)
   -------------------------------------------------------------------------- */
.visual-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Sem overlay escuro pesado: fundo original preservado! */
.hero-overlay-desktop {
  display: none;
}

.hero-overlay-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   5. SELO CIRCULAR DE AUTORIDADE (SOBRE O OMBRO DO TERNO COMO NA REFERÊNCIA)
   -------------------------------------------------------------------------- */
.seal-badge {
  position: absolute;
  top: 38%;
  left: 8%;
  width: 130px;
  height: 130px;
  pointer-events: auto;
  cursor: default;
  z-index: 2;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.9));
}

.seal-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto circular que gira suavemente */
.seal-rotating-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: rotateSealText 35s linear infinite;
  transform-origin: center center;
}

.seal-text-path {
  font-family: var(--font-body);
  font-size: 8.4px;
  font-weight: 700;
  fill: #E8C97A;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* Monograma central FIXO (não gira, sempre na orientação vertical legível) */
.seal-center-monogram {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

.seal-monogram-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes rotateSealText {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   6. CONTAINER DE CONTEÚDO (CENTRALIZADO VERTICALMENTE)
   -------------------------------------------------------------------------- */
.content-container {
  position: relative;
  z-index: 3;
  margin-left: auto;
  width: 50%; /* Seção da esquerda fica com 50% livre para o Gui Samuel */
  max-width: none;
  padding: 0 0 2rem 0; /* Cards chegam até a borda direita da tela */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centralização perfeita na altura */
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   7. BRAND HEADER (LOGO & TIPOGRAFIA DA MARCA)
   -------------------------------------------------------------------------- */
.brand-header {
  margin-bottom: 1.35rem;
}

.brand-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.brand-monogram {
  width: 48px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 10px rgba(201, 168, 76, 0.35));
}

.brand-monogram-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--color-text-white);
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   8. LINKS SECTION & CARDS (DESIGN EXATO DA REFERÊNCIA)
   -------------------------------------------------------------------------- */
.links-section {
  width: 100%;
}

.cards-carousel-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cards-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0 14px 2px;
  width: 100%;
  box-sizing: border-box;
}

.cards-track::-webkit-scrollbar {
  display: none;
}

/* Card Individual (Expande até a borda direita se houver espaço livre) */
.link-card {
  position: relative;
  flex: 1 0 250px;
  min-width: 250px;
  max-width: none;
  min-height: 250px;
  scroll-snap-align: start;
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.link-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: none;
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Agrupamento superior do card para manter proporção e botão sempre ancorado na base */
.card-content-top {
  display: flex;
  flex-direction: column;
}

/* Header Horizontal do Card: Ícone Branco à esquerda + Título/Tag à direita */
.card-header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.95rem;
}

/* Caixa Quadrada Branca do Ícone (igual à referência do print 2) */
.card-white-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

.link-card:hover .card-white-icon-box {
  transform: scale(1.05);
}

/* Coluna de Título e Tag (evita qualquer sobreposição) */
.card-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 44px;
}

/* Tag indicadora de Curso Online (agora no fluxo normal, sem sobreposição) */
/* Tag indicadora de Curso Online (no fluxo normal, sem sobreposição) */
.card-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 2.5px 8px;
  border-radius: 4px;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.42);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gold-light);
  text-transform: uppercase;
  margin-bottom: 5px;
  line-height: 1.2;
  transition: var(--transition-smooth);
}

.link-card:hover .card-badge-pill {
  background: rgba(201, 168, 76, 0.22);
  border-color: rgba(201, 168, 76, 0.7);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold-light);
  display: inline-block;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.8);
  flex-shrink: 0;
}

/* Título de 2 Linhas com Ênfase Itálica */
.card-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--color-text-white);
  line-height: 1.18;
  margin: 0;
}

.card-title span {
  display: block;
}

.card-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--color-gold-light);
  letter-spacing: -0.01em;
}

/* Descrição Concisa */
.card-desc {
  font-size: 0.81rem;
  color: var(--color-text-gray);
  line-height: 1.45;
  font-weight: 300;
  margin: 0 0 1.25rem 0;
}

/* --------------------------------------------------------------------------
   9. BOTÃO DE AÇÃO DOURADO (FORMATO RETANGULAR DA REFERÊNCIA)
   -------------------------------------------------------------------------- */
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px 10px 16px;
  border-radius: 8px; /* Cantos levemente arredondados, formato do print 2 */
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #111111;
  box-shadow: var(--shadow-gold-cta);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-gold:hover {
  background: var(--gradient-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.42);
}

/* Círculo do Ícone no Botão */
.btn-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.2px solid #111111;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-gold:hover .btn-icon-circle {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   10. NAVEGAÇÃO DOS CARDS (DOTS + SETAS DESKTOP)
   -------------------------------------------------------------------------- */
.carousel-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.1rem;
  padding-left: 2px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-btn {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot-btn:hover {
  background: var(--color-gold-light);
  transform: scale(1.2);
}

.dot-btn.active {
  width: 20px;
  border-radius: 4px;
  background: var(--gradient-gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.45);
}

/* Setas de navegação dos cards no Desktop */
.carousel-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.carousel-arrow-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.carousel-arrow-btn.prev-arrow:hover svg {
  transform: translateX(-2px);
}

.carousel-arrow-btn.next-arrow:hover svg {
  transform: translateX(2px);
}

.carousel-arrow-btn:hover {
  background: var(--gradient-gold);
  border-color: var(--color-gold-light);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 168, 76, 0.45);
}

.carousel-arrow-btn:active {
  transform: translateY(0) scale(0.95);
}

.carousel-arrow-btn:disabled,
.carousel-arrow-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   11. RODAPÉ DE PONTA A PONTA (DESIGN IDÊNTICO À REFERÊNCIA)
   -------------------------------------------------------------------------- */
.page-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  border-top: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 13px 2rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--color-text-gray);
  font-weight: 300;
  text-align: center;
}

.footer-copy strong {
  color: #FFFFFF;
  font-weight: 500;
}

.footer-social-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Botões sociais quadrados arredondados com borda fina */
.social-pill-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-pill-btn:hover {
  background: var(--gradient-gold);
  border-color: transparent;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
}

/* --------------------------------------------------------------------------
   12. ANIMAÇÕES DE ENTRADA SUAVE
   -------------------------------------------------------------------------- */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up[data-card-index="1"] { animation-delay: 0.10s; }
.fade-in-up[data-card-index="2"] { animation-delay: 0.18s; }
.fade-in-up[data-card-index="3"] { animation-delay: 0.26s; }
.fade-in-up[data-card-index="4"] { animation-delay: 0.34s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVIDADE
   -------------------------------------------------------------------------- */

/* Telas Ultra-Wide (1600px+) */
@media (min-width: 1600px) {
  .content-container {
    width: 50%;
    max-width: none;
    padding: 0 0 2rem 0;
  }
  
  .link-card {
    flex: 1 0 260px;
    min-width: 260px;
    max-width: none;
  }

  .seal-badge {
    left: 10%;
    top: 38%;
    width: 140px;
    height: 140px;
  }
}

/* Telas Médias Desktop (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
  .content-container {
    width: 50%;
    max-width: none;
    padding: 0 0 2rem 0;
  }

  .link-card {
    flex: 1 0 240px;
    min-width: 240px;
    max-width: none;
  }

  /* Selo reposicionado no peito do Gui Samuel, livre do rosto */
  .seal-badge {
    left: 8.5%;
    top: 60%;
    width: 115px;
    height: 115px;
  }

  /* Botão sem quebra de texto nas resoluções médias (1024px e 1280px) */
  .card-btn {
    padding: 10px 8px 10px 12px;
    font-size: 0.67rem;
    letter-spacing: 0.025em;
    white-space: nowrap;
  }

  .card-btn .btn-text {
    white-space: nowrap;
  }

  .btn-icon-circle {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .btn-icon-circle svg {
    width: 12px;
    height: 12px;
  }

  .footer-inner-container {
    padding: 12px 2.5rem;
  }
}

/* Tablets (769px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
  .page-wrapper {
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
  }

  .content-container {
    width: 55%;
    max-width: none;
    padding: 3rem 0 5rem 0;
  }

  .seal-badge {
    top: 25%;
    left: 6%;
    width: 95px;
    height: 95px;
  }

  .footer-inner-container {
    padding: 12px 2rem;
  }
}

/* Mobile & SmartPhones (≤ 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100%;
  }

  .page-wrapper {
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
  }

  .visual-hero {
    position: relative;
    width: 100%;
    height: 46vh;
    min-height: 350px;
  }

  .hero-bg-img {
    object-position: center top;
    -webkit-mask-image: linear-gradient(
      180deg,
      #000000 0%,
      #000000 45%,
      rgba(0, 0, 0, 0.9) 62%,
      rgba(0, 0, 0, 0.5) 80%,
      rgba(0, 0, 0, 0.15) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000000 0%,
      #000000 45%,
      rgba(0, 0, 0, 0.9) 62%,
      rgba(0, 0, 0, 0.5) 80%,
      rgba(0, 0, 0, 0.15) 92%,
      transparent 100%
    );
  }

  /* Transição esfumaçada suave da foto com o fundo preto no mobile */
  .visual-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0.08) 48%,
      rgba(0, 0, 0, 0.35) 65%,
      rgba(0, 0, 0, 0.72) 80%,
      rgba(0, 0, 0, 0.94) 92%,
      #000000 100%
    );
    z-index: 1;
  }

  .seal-badge {
    top: 14px;
    left: 14px;
    width: 66px;
    height: 66px;
  }

  .seal-center-monogram {
    width: 25px;
    height: 22px;
  }

  .seal-text-path {
    font-size: 7.2px;
  }

  .content-container {
    width: 100%;
    max-width: 100%;
    margin-top: -3.8rem;
    padding: 0 1.25rem 6rem;
  }

  .brand-header {
    text-align: center;
    margin-bottom: 1.85rem;
  }

  .brand-logo-wrapper {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .brand-text {
    align-items: center;
  }

  .brand-title {
    font-size: 1.85rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  .cards-carousel-container {
    overflow: visible;
  }

  .cards-track {
    flex-direction: column;
    overflow: visible;
    width: 100%;
    gap: 1.15rem;
    padding: 0;
  }

  .link-card {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: auto;
    padding: 1.45rem 1.25rem 1.35rem;
  }

  /* Oculta completamente bullets points e setas de navegação no mobile */
  .carousel-navigation,
  .carousel-dots,
  .carousel-arrows,
  .dot-btn {
    display: none !important;
  }

  .page-footer {
    position: relative;
    margin-top: auto;
  }

  .footer-inner-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 16px 1.25rem;
  }
}
