/* ============================================================
   COMBO LP — Custom Styles
   Complementa o Tailwind CSS com @font-face e classes específicas.

   FONTE: Arquivos Azo Sans em /fonts/ (formato OTF):
     - AzoSans-Regular.otf
     - AzoSans-Bold.otf
     - AzoSans-BoldItalic.otf
     - AzoSans-Black.otf
     - AzoSans-Light.otf
     - AzoSans-Medium.otf
   ============================================================ */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Azo Sans';
  src: url('../fonts/AzoSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azo Sans';
  src: url('../fonts/AzoSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azo Sans';
  src: url('../fonts/AzoSans-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azo Sans';
  src: url('../fonts/AzoSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azo Sans';
  src: url('../fonts/AzoSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azo Sans';
  src: url('../fonts/AzoSans-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===== RESET / BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #ce512f;
  color: #fff;
}

/* ===== STICKY NAV ===== */
#main-nav {
  background: transparent;
}

#main-nav.scrolled {
  background: rgba(29, 16, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(206, 81, 47, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ===== HERO ===== */
.hero-headline-img {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  width: 100%;
  max-width: 560px;
}

.hero-chef-img {
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7));
  animation: float 6s ease-in-out infinite;
}

/* Placeholder when photo fails to load */
.hero-photo-wrap.img-error::before {
  content: '';
  display: block;
  width: 340px;
  height: 480px;
  background: linear-gradient(160deg, #4d362c 0%, #2d2019 100%);
  border-radius: 16px;
  border: 2px dashed rgba(206, 81, 47, 0.3);
}

/* Autoridade section photo placeholder */
.img-placeholder {
  background: linear-gradient(160deg, #4d362c 0%, #2d2019 100%);
}

/* ===== SCROLL CUE ANIMATION ===== */
@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.scroll-cue {
  animation: scrollDown 2s ease-in-out infinite;
}

/* ===== FLOAT (hero photo) ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ===== DOR CARDS ===== */
.dor-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: rgba(45, 32, 25, 0.6);
  border: 1px solid rgba(206, 81, 47, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.dor-card:hover {
  border-color: rgba(206, 81, 47, 0.35);
  transform: translateY(-2px);
}

.dor-card p {
  color: rgba(220, 208, 188, 0.85);
  font-size: 0.875rem;
  line-height: 1.55;
}

.dor-q {
  color: #ce512f;
  font-size: 1.125rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== PILLAR / CARD HOVER ===== */
.pillar-card,
.curso-card,
.learn-card,
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover,
.learn-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(206, 81, 47, 0.2);
}

/* ===== COURSE IMAGE GALLERY ===== */
.course-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 72px;
}

.course-gallery a {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(220, 208, 188, 0.14);
  background-color: #2d2019;
}

.course-gallery a:focus-visible {
  outline: 2px solid #ce512f;
  outline-offset: 4px;
}

.course-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease;
}

.course-gallery a:hover img,
.course-gallery a:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
}

@media (min-width: 768px) {
  .course-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 84px;
  }
}

@media (min-width: 1024px) {
  .course-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== GALLERY LIGHTBOX ===== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 72px 18px 28px;
  background: rgba(21, 12, 8, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1180px);
  height: min(78vh, 760px);
}

.gallery-lightbox__frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.gallery-lightbox button {
  border: 1px solid rgba(220, 208, 188, 0.18);
  background: rgba(45, 32, 25, 0.76);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox button:hover,
.gallery-lightbox button:focus-visible {
  background: #ce512f;
  border-color: #ce512f;
}

.gallery-lightbox button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.gallery-lightbox svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.gallery-lightbox__close {
  top: 18px;
  right: 18px;
}

.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox__nav--prev {
  left: 18px;
}

.gallery-lightbox__nav--next {
  right: 18px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .gallery-lightbox {
    padding: 72px 12px 92px;
  }

  .gallery-lightbox__frame {
    height: min(70vh, 560px);
  }

  .gallery-lightbox__nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .gallery-lightbox__nav:hover,
  .gallery-lightbox__nav:focus-visible {
    transform: scale(1.04);
  }
}

/* ===== PRICE BADGE ===== */
.price-badge {
  animation: float 5s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* ===== FAQ ACCORDION ===== */
.faq-btn {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: background-color 0.2s;
}

.faq-btn:hover {
  background-color: rgba(45, 32, 25, 0.4);
}

.faq-btn:focus-visible {
  outline: 2px solid #ce512f;
  outline-offset: -2px;
}

.faq-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* ===== CTA PRIMARY PULSE ===== */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(206, 81, 47, 0.45); }
  50%       { box-shadow: 0 8px 48px rgba(206, 81, 47, 0.75); }
}

/* ===== MOBILE STICKY CTA ===== */
#mobile-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GSAP initial states ===== */
/* These are set by JS but kept here as safe fallback */
.js-fade-up,
.js-stagger > * {
  will-change: transform, opacity;
}
