html {
  scroll-behavior: smooth;
}

.bg-grid {
  background-size: 44px 44px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

html.dark .bg-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.glass-panel {
  background: rgba(15, 16, 32, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #00f0ff 35%, #8b5cf6 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 24, 0.05);
  box-shadow: 0 14px 32px -26px rgba(26, 26, 24, 0.45);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 26, 24, 0.08);
  box-shadow: 0 16px 36px -30px rgba(26, 26, 24, 0.4);
}

.card-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-tag {
  background: rgba(0, 58, 131, 0.1);
  border: 1px solid rgba(0, 58, 131, 0.3);
  color: #003a83;
}

.price-pill {
  background: rgba(26,26,24,0.03);
  border: 1px solid rgba(26,26,24,0.08);
}

.bg-card-individual {
  background-image: url("img/livro_individual.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f0e8;
  background-blend-mode: multiply;
}

.bg-card-box {
  background-image: url("img/box_trilogia.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f0e8;
  background-blend-mode: multiply;
}

.bg-card-premium {
  background-image: url("img/box_premium.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f0e8;
  background-blend-mode: multiply;
}

.bg-schools {
  background-image: url("img/escolas.jpg");
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background-color: #f59e0b;
  color: #1a1a18;
  border: 2px solid #f59e0b; /* Thicker orange border */
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  box-shadow: none;
}

.btn-primary:hover {
  background-color: #d97706;
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.faq-grid {
  min-height: auto;
}

.faq-body {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: height 280ms ease, opacity 240ms ease, transform 240ms ease;
}

details[open] .faq-body {
  opacity: 1;
  transform: translateY(0);
}

.bg-paper-texture {
  /* textura bem sutil (sem “cara de site tech”) */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0,0,0,0.06), transparent 35%),
    radial-gradient(circle at 85% 35%, rgba(0,0,0,0.045), transparent 40%),
    radial-gradient(circle at 40% 90%, rgba(0,0,0,0.035), transparent 45%);
}

.hero-bg {
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center calc(50% + 30px);
  background-repeat: no-repeat;
}

.hero-highlight {
  animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
  0%,
  100% {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 0 rgba(245, 158, 11, 0);
  }
  50% {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
  }
}

.porta-fundo-bg {
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.bg-porta-fundo-1 {
  background-image: url('img/mobile/porta_fundo.jpg');
}

.bg-porta-fundo-2 {
}

.porta-fundo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/mobile/porta_fundo_2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.porta-fundo-bg.bg-porta-fundo-2::after {
  opacity: 1;
}

.subtitle-part {
  transition: color 1s ease-in-out;
}

#colecao.subtitle-visible .subtitle-part {
  color: #fafaf8;
}

.title-main {
  font-size: 1.2em;
  line-height: 1.1;
}

.title-sub {
  font-size: 0.9em;
  font-weight: 500;
  opacity: 0.9;
}

.escolas-bg {
  background-image: url('img/Mobile/escolas_bg.jpg');
  background-size: cover;
  background-position: center 90%;
  background-repeat: no-repeat;
}

.escolas-overlay {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.escolas-overlay.is-visible {
  opacity: 1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.revealed {
  opacity: 1;
  transform: translateX(0);
}

.final-cta-bg {
  background-image: url('img/mobile/as_conversas.jpg');
  background-repeat: no-repeat;
  background-position: 30% center;
  background-size: contain;
}

.final-cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/mobile/as_conversas_2.jpg');
  background-repeat: no-repeat;
  background-position: 30% center;
  background-size: contain;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  pointer-events: none;
}

.final-cta-bg.final-cta-bg-2::before {
  opacity: 1;
}

.final-cta-bg.is-leaving {
  transition-duration: 0.9s;
}

.final-cta-bg.is-leaving::before {
  transition-duration: 0.9s;
}

/* Mobile view sizing tweaks */
.hero-bg {
  background-position: center 20%;
  min-height: 100svh;
}

.hero-bg h2 {
  font-size: clamp(2.1rem, 8vw, 2.7rem);
}

.hero-bg p {
  font-size: 1rem;
}

.hero-bg .btn-primary {
  height: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.95rem;
}

#colecao,
#escolas,
#organizacoes,
#projetos,
#depoimentos,
#faq,
.final-cta-bg {
  min-height: auto;
}

#colecao {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#colecao {
  padding-top: 15rem;
  padding-bottom: 15rem;
}

#colecao > .mx-auto {
  position: relative;
  z-index: 2;
}

#loja {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

#escolas,
#organizacoes,
#projetos,
#depoimentos,
#faq,
.final-cta-bg {
  padding-top: 7.5rem;
  padding-bottom: 8.5rem;
}

.final-cta-bg,
.final-cta-bg::before {
  background-position: center 20%;
}

.title-main {
  font-size: 1.05em;
  line-height: 1.15;
}

.title-sub {
  font-size: 0.85em;
}

.bg-card-individual,
.bg-card-box,
.bg-card-premium {
  min-height: 320px;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #ffffff;
}

.bg-card-individual {
  min-height: 320px;
  aspect-ratio: 1 / 1;
  background-size: 120% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.product-card .p-6 {
  padding: 1.25rem;
}

#projetos .whitespace-nowrap {
  white-space: normal;
}

#projetos .-mt-24 {
  margin-top: 0;
}

#projetos .ml-10 {
  margin-left: 1.5rem;
}

#projetos .relative.mt-12 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#projetos .absolute.left-5 {
  left: 1rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.7), rgba(245, 158, 11, 0.1));
}

#projetos .relative.mb-2 {
  margin-left: 2.5rem;
}

#projetos .absolute.-left-5 {
  left: -1.75rem;
  width: 14px;
  height: 14px;
  border-width: 3px;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.08);
}


/* Mobile: remove background images and use white tonal sections */
.bg-schools,
.bg-porta-fundo-2 {
  background-image: none !important;
  background-color: #ffffff !important;
}

.bg-paper-texture,
.bg-grid {
  background-image: none;
  background-color: #ffffff !important;
}

.hero-bg .bg-gradient-to-r,
.final-cta-bg .bg-gradient-to-l {
  background: none !important;
}

.hero-bg {
  background-color: #01051c !important;
  background-image: linear-gradient(180deg, #01051c 0%, #020b42 100%) !important;
  color: #ffffff !important;
}

.hero-bg [class*="text-white"] {
  color: #ffffff !important;
}

.hero-highlight {
  color: #ffffff;
}

html {
  font-size: 14px;
}

.px-4 {
  padding-left: 2.3rem !important;
  padding-right: 2.3rem !important;
}

.grid .btn-primary,
.grid button.btn-primary,
.grid a.btn-primary {
  align-self: center;
  justify-self: center;
}

#escolas .flex.flex-wrap {
  justify-content: center;
  width: 100%;
}

#escolas .btn-primary {
  margin-left: auto;
  margin-right: auto;
}


#loja {
  background-color: #f9f9f7 !important;
}

#loja + section {
  background-color: #f6f6f3 !important;
}

#colecao {
  background-color: #fbfbfa !important;
}

#colecao .bg-gradient-to-r {
  background: none !important;
}

#colecao .bg-paper-texture {
  background-color: transparent !important;
}

#escolas {
  background-color: #f8f8f6 !important;
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: 100svh;
}

#escolas .bg-gradient-to-r {
  background: none !important;
}

#organizacoes {
  background-color: #020617 !important;
  color: #ffffff;
}

#organizacoes [class*="text-white"] {
  color: #ffffff !important;
}

#projetos {
  background-color: #eee8dd !important;
}

#projetos > .absolute {
  display: none;
}

#depoimentos {
  background-color: #f9f9f7 !important;
}

#depoimentos h3 {
  color: #f59e0b;
}

#depoimentos {
  padding-top: 7.5rem;
  padding-bottom: 8.5rem;
}

#faq {
  background-color: #e7e7e4 !important;
}

.final-cta-bg {
  background-color: #fbfbfa !important;
  padding-top: 9rem !important;
  padding-bottom: 27.5rem !important;
}


.final-cta-bg .grid {
  justify-items: center;
}

.final-cta-bg .flex.flex-col {
  align-items: center;
  text-align: center;
}

footer .material-symbols-outlined {
  color: #f59e0b;
}
