/* ==========================================================================
   JUJU PRIYAH YOGA — ESTILOS COMPLEMENTARES
   Paleta Nobre: Terracota (#B1684D), Linho Areia (#EFEAE0), Linho Claro (#FAF7F0), Café Profundo (#46291D)
   ========================================================================== */

:root {
  --color-terracotta: #B1684D;
  --color-terracotta-deep: #8E4C35;
  --color-terracotta-light: #D28267;
  --color-terracotta-card: #9C573E;
  --color-terracotta-dark: #783E2A;
  --color-linen: #EFEAE0;
  --color-linen-light: #FAF7F0;
  --color-linen-dark: #E4DDD1;
  --color-coffee: #46291D;
  --color-coffee-deep: #381F15;
  --color-coffee-dark: #2A160E;
  --color-coffee-soft: #633C2C;
  --color-ochre: #C9944D;
  --color-ochre-light: #E8B975;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-linen-light);
  color: var(--color-coffee);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Tipografia Fluida */
.title-hero {
  font-size: clamp(2.75rem, 6.2vw + 1rem, 6.2rem);
  line-height: 1.05;
}

.title-section {
  font-size: clamp(2rem, 3.8vw + 0.5rem, 4rem);
  line-height: 1.12;
}

.title-sub {
  font-size: clamp(1.15rem, 1.8vw + 0.25rem, 1.85rem);
  line-height: 1.4;
}

/* Glifo Sagrado ✴︎ */
.star-glyph {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.4s ease;
}

.star-glyph:hover {
  transform: rotate(45deg) scale(1.15);
}

/* Rotação lenta da geometria sagrada */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 160s linear infinite;
}

/* Transições de Abas (Etapa 1 e Etapa 2) */
.tab-btn {
  background: transparent !important;
  color: rgba(239, 234, 224, 0.75) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  outline: none;
}

.tab-btn:hover {
  color: #EFEAE0 !important;
}

.tab-btn.active {
  background-color: #EFEAE0 !important; /* Linho Areia (#EFEAE0) - harmônico e quente, NUNCA branco puro */
  color: #46291D !important; /* Café Profundo */
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(70, 41, 29, 0.2) !important;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Botões com Micro-interações Orgânicas */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(70, 41, 29, 0.10);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(70, 41, 29, 0.22);
}

/* Header Flutuante Límpido */
.header-glass {
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(70, 41, 29, 0.08);
  transition: all 0.35s ease;
}

.header-glass .header-title {
  color: #46291D;
}

.header-glass .header-sub {
  color: #B1684D;
}

.header-glass .header-nav-link {
  color: rgba(70, 41, 29, 0.85);
}
.header-glass .header-nav-link:hover {
  color: #B1684D;
}

.header-glass .header-icon {
  color: #B1684D;
}

.header-glass .header-mobile-btn {
  color: #46291D;
}

/* Header ao rolar pela página */
.header-glass.scrolled {
  background: rgba(250, 247, 240, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(70, 41, 29, 0.12);
  box-shadow: 0 6px 25px rgba(70, 41, 29, 0.08);
}

.header-glass.scrolled .header-title {
  color: #46291D;
}

.header-glass.scrolled .header-sub {
  color: #B1684D;
}

.header-glass.scrolled .header-nav-link {
  color: rgba(70, 41, 29, 0.85);
}
.header-glass.scrolled .header-nav-link:hover {
  color: #B1684D;
}

.header-glass.scrolled .header-icon {
  color: #B1684D;
}

.header-glass.scrolled .header-mobile-btn {
  color: #46291D;
}

/* Molduras e Imagens */
.img-editorial {
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.img-editorial:hover {
  transform: scale(1.012);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

/* Acordeão do Programa de Estudos */
.accordion-header {
  cursor: pointer;
  user-select: none;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}

.accordion-body.open {
  max-height: 900px;
  opacity: 1;
}

.accordion-icon {
  transition: transform 0.35s ease;
}

.accordion-icon.rotated {
  transform: rotate(180deg);
}

/* Barra de rolagem */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #EFEAE0;
}
::-webkit-scrollbar-thumb {
  background: #B1684D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8E4C35;
}

/* ==========================================================================
   ÍCONE SACRO EM MOTION (HERO SECTION)
   ========================================================================== */
.motion-sacred-spin-slow {
  animation: sacredSpin 140s linear infinite;
  transform-origin: center center;
}

.motion-sacred-spin-reverse {
  animation: sacredSpinReverse 75s linear infinite;
  transform-origin: center center;
}

.motion-sacred-breathe {
  animation: sacredBreathe 7s ease-in-out infinite;
  transform-origin: center center;
}

.motion-sacred-pulse {
  animation: sacredPulse 4.5s ease-in-out infinite;
  transform-origin: center center;
}

.motion-sacred-float {
  animation: sacredFloat 6s ease-in-out infinite;
}

@keyframes sacredSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sacredSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes sacredBreathe {
  0%, 100% {
    transform: scale(0.97);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(177, 104, 77, 0.35));
  }
}

@keyframes sacredPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes sacredFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
