/* ═══════════════════════════════════════════════════
   HOME JM STYLE - CSS Dedicado
   Fiel ao design jmdasorte1
   Escopo: .jm-homepage
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ── */
.jm-homepage {
  --jm-primary: hsl(145, 70%, 28%);
  --jm-primary-fg: #fff;
  --jm-secondary: hsl(45, 100%, 50%);
  --jm-secondary-fg: hsl(150, 40%, 8%);
  --jm-bg: hsl(120, 15%, 96%);
  --jm-card: #fff;
  --jm-card-fg: hsl(150, 40%, 8%);
  --jm-border: hsl(120, 15%, 88%);
  --jm-muted: hsl(120, 15%, 92%);
  --jm-muted-fg: hsl(150, 15%, 40%);
  --jm-success: hsl(145, 63%, 38%);
  --jm-accent: hsl(42, 100%, 55%);
  --jm-destructive: hsl(0, 84%, 60%);
  --jm-gold: hsl(42, 100%, 50%);
  --jm-gold-dark: hsl(38, 85%, 38%);
  --jm-green-dark: hsl(150, 55%, 15%);
  --jm-green-light: hsl(145, 55%, 40%);
  --jm-radius: 0.75rem;
  --jm-shadow-card: 0 4px 20px -2px hsla(145, 63%, 32%, 0.15);
  --jm-shadow-button: 0 4px 14px -2px hsla(145, 63%, 32%, 0.3);
  --jm-shadow-gold: 0 4px 20px -2px hsla(45, 100%, 50%, 0.4);
  --jm-gradient-primary: linear-gradient(135deg, hsl(145, 63%, 32%) 0%, hsl(145, 70%, 25%) 100%);
  --jm-gradient-gold: linear-gradient(135deg, hsl(48, 96%, 53%) 0%, hsl(40, 90%, 45%) 100%);
  --jm-gradient-hero: linear-gradient(180deg, hsl(145, 63%, 32%) 0%, hsl(150, 50%, 20%) 100%);

  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--jm-bg);
  color: var(--jm-card-fg);
  line-height: 1.6;
}

/* ── Animations ── */
@keyframes jm-pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsla(45, 100%, 50%, 0.3); }
  50% { box-shadow: 0 0 40px hsla(45, 100%, 50%, 0.6); }
}
@keyframes jm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Admin Bar ── */
.jm-admin-bar {
  background: var(--jm-green-dark);
  text-align: center;
  padding: 10px;
  font-size: 0.75em;
  color: #fff;
  position: relative;
  z-index: 60;
}
.jm-admin-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.jm-admin-bar svg { vertical-align: middle; }

/* ═══ HEADER ═══ */
.jm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.jm-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
@media (min-width: 768px) {
  .jm-header-container { height: 96px; }
}
.jm-header-logo img {
  width: 112px;
  height: 80px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .jm-header-logo img { width: 160px; height: 112px; }
}
.jm-header-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.jm-nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s;
}
.jm-nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.jm-nav-link.active { background: var(--jm-secondary); color: var(--jm-secondary-fg); }
.jm-header-cta {
  display: none;
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--jm-secondary);
  color: var(--jm-secondary-fg);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--jm-shadow-gold);
  animation: jm-pulse-glow 2s ease-in-out infinite;
  transition: opacity 0.2s;
}
.jm-header-cta:hover { opacity: 0.9; color: var(--jm-secondary-fg); }

@media (min-width: 1024px) {
  .jm-header-nav { display: flex; }
  .jm-header-cta { display: inline-block; }
  .jm-hamburger { display: none !important; }
}

/* ── Hamburger ── */
.jm-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.jm-hamburger span {
  width: 24px; height: 2px; background: #fff;
  border-radius: 2px; transition: all 0.3s;
}
.jm-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.jm-hamburger.open span:nth-child(2) { opacity: 0; }
.jm-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Nav ── */
.jm-mobile-nav {
  position: fixed; inset: 0; z-index: 49;
  background: var(--jm-primary);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.jm-mobile-nav.open { opacity: 1; pointer-events: auto; }
.jm-mobile-nav nav {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; width: 90%; max-width: 320px;
}
.jm-mobile-link {
  display: block; width: 100%; padding: 12px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--jm-primary-fg);
  text-decoration: none; text-align: center; transition: background 0.2s;
}
.jm-mobile-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.jm-mobile-cta {
  display: block; width: 100%; padding: 12px 16px; border-radius: 8px;
  background: var(--jm-secondary); color: var(--jm-secondary-fg);
  font-weight: 600; font-size: 14px; text-decoration: none;
  text-align: center; margin-top: 8px;
}

/* ═══ HERO ═══ */
.jm-hero { position: relative; }
.jm-hero-slideshow { position: relative; width: 100%; overflow: hidden; }
.jm-hero-slideshow img { width: 100%; height: auto; display: block; }
.jm-hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out;
}
.jm-hero-slide.active { opacity: 1; }
.jm-hero-slide.base { position: relative; visibility: hidden; }

.jm-hero-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.jm-hero-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.jm-hero-dot:hover { background: rgba(255,255,255,0.8); }
.jm-hero-dot.active {
  background: var(--jm-secondary); width: 32px; border-radius: 6px;
}

/* CTA Bar */
.jm-hero-cta-bar {
  background: var(--jm-primary);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .jm-hero-cta-bar { padding: 16px; } }
.jm-hero-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--jm-secondary); color: var(--jm-secondary-fg);
  font-weight: 800; font-size: 16px; letter-spacing: 0.5px;
  padding: 14px 40px; border-radius: 9999px;
  text-decoration: none; width: 100%; max-width: 400px; text-align: center;
  box-shadow: var(--jm-shadow-gold);
  animation: jm-pulse-glow 2s ease-in-out infinite;
}
@media (min-width: 768px) {
  .jm-hero-cta-btn { font-size: 18px; padding: 20px 48px; }
}
.jm-hero-cta-btn:hover { opacity: 0.9; color: var(--jm-secondary-fg); }

/* Video */
.jm-hero-video {
  padding: 32px 16px;
  display: flex; justify-content: center;
  background: rgba(23, 87, 56, 0.05);
}
.jm-hero-video-wrap {
  width: 100%; max-width: 400px;
  border-radius: 1rem; overflow: hidden;
  background: var(--jm-gradient-primary); padding: 3px;
  box-shadow: var(--jm-shadow-card);
}
.jm-hero-video-inner {
  border-radius: calc(1rem - 3px); overflow: hidden;
  background: var(--jm-card); aspect-ratio: 9/16;
}
.jm-hero-video-inner iframe { width: 100%; height: 100%; border: 0; }

/* ═══ SECTIONS ═══ */
.jm-section { padding: 64px 16px; }
.jm-section-container { max-width: 1400px; margin: 0 auto; }
.jm-section-title {
  text-align: center; font-size: 24px; font-weight: 700;
  color: var(--jm-card-fg); margin-bottom: 8px;
}
.jm-section-title span { color: var(--jm-secondary); }
.jm-section-subtitle {
  text-align: center; font-size: 16px;
  color: var(--jm-muted-fg); margin-bottom: 32px;
}
@media (min-width: 768px) {
  .jm-section { padding: 96px 32px; }
  .jm-section-title { font-size: 36px; }
  .jm-section-subtitle { font-size: 18px; }
}
@media (min-width: 1024px) {
  .jm-section-title { font-size: 42px; }
}

/* ═══ RAFFLE CARDS ═══ */
.jm-raffles-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .jm-raffles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jm-raffles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .jm-raffles-grid { grid-template-columns: repeat(4, 1fr); } }

.jm-raffle-card {
  background: var(--jm-card);
  border: 1px solid var(--jm-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--jm-shadow-card);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
.jm-raffle-card:hover {
  box-shadow: 0 10px 40px -4px hsla(145, 63%, 32%, 0.2);
  transform: translateY(-4px);
  color: inherit;
}
.jm-raffle-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--jm-muted);
}
.jm-raffle-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.jm-raffle-card:hover .jm-raffle-img-wrap img { transform: scale(1.05); }

.jm-raffle-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.jm-raffle-badge-active { background: var(--jm-success); color: #fff; }
.jm-raffle-badge-soon { background: var(--jm-muted); color: var(--jm-muted-fg); }
.jm-raffle-badge-done { background: var(--jm-muted); color: var(--jm-muted-fg); }

.jm-raffle-body {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column; gap: 16px;
}
.jm-raffle-name {
  font-size: 18px; font-weight: 700; color: var(--jm-card-fg);
  line-height: 1.3; min-height: 3.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.jm-raffle-subtitle {
  font-size: 13px; color: var(--jm-muted-fg); margin-top: -8px;
}

/* Price */
.jm-raffle-price { display: flex; align-items: baseline; gap: 6px; }
.jm-raffle-price-label { font-size: 14px; color: var(--jm-muted-fg); }
.jm-raffle-price-value { font-size: 24px; font-weight: 700; color: var(--jm-primary); }

/* Progress */
.jm-progress-wrap { display: flex; flex-direction: column; gap: 8px; }
.jm-progress-stats {
  display: flex; justify-content: space-between; font-size: 14px;
}
.jm-progress-stats-label { color: var(--jm-muted-fg); }
.jm-progress-stats-value { font-weight: 600; color: var(--jm-card-fg); }
.jm-progress-bar {
  width: 100%; height: 12px;
  background: var(--jm-secondary); border-radius: 6px; overflow: hidden;
}
.jm-progress-fill {
  height: 100%; border-radius: 6px;
  background: var(--jm-gradient-primary);
  transition: width 0.6s ease;
}

/* CTA Button */
.jm-raffle-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px;
  border-radius: var(--jm-radius);
  background: var(--jm-secondary); color: var(--jm-secondary-fg);
  font-weight: 700; font-size: 14px;
  text-align: center; text-decoration: none;
  transition: opacity 0.2s; margin-top: auto;
}
.jm-raffle-btn:hover { opacity: 0.9; color: var(--jm-secondary-fg); }

/* ═══ PREVIOUS EDITIONS ═══ */
.jm-prev-section { background: var(--jm-card); }

/* Winner info inside card */
.jm-winner-info {
  margin-top: 8px; padding: 12px; font-size: 13px;
  background: hsla(145, 63%, 38%, 0.08); border-radius: 8px;
}
.jm-winner-info strong { color: var(--jm-primary); }

/* ═══ TESTIMONIALS ═══ */
.jm-testimonials-bg {
  background: var(--jm-bg);
}
.jm-stars {
  color: var(--jm-gold); font-size: 28px;
  text-align: center; margin-bottom: 24px;
}
.jm-testimonials-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: 900px; margin: 0 auto;
}
@media (min-width: 768px) {
  .jm-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
.jm-testimonial-video {
  max-width: 400px; margin: 0 auto;
  border-radius: 1rem; overflow: hidden;
  background: var(--jm-gradient-primary); padding: 3px;
  box-shadow: var(--jm-shadow-card);
}
.jm-testimonial-video-inner {
  border-radius: calc(1rem - 3px); overflow: hidden;
  background: var(--jm-card); aspect-ratio: 9/16;
}
.jm-testimonial-video-inner iframe { width: 100%; height: 100%; border: 0; }
.jm-dep-title {
  margin-top: 12px; font-size: 15px; font-weight: 600;
  color: var(--jm-card-fg);
}
.jm-dep-desc { font-size: 13px; color: var(--jm-muted-fg); margin-top: 4px; }

/* ═══ COMUNICADO ═══ */
.jm-comunicado { background: var(--jm-gradient-hero); }
.jm-comunicado .jm-section-title { color: var(--jm-primary-fg); }
.jm-comunicado .jm-section-subtitle {
  color: var(--jm-secondary); font-weight: 700;
}
.jm-comunicado-img {
  max-width: 600px; margin: 0 auto;
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.jm-comunicado-img img { width: 100%; height: auto; display: block; }

/* ═══ HOW IT WORKS ═══ */
.jm-steps-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; text-align: center;
}
@media (min-width: 768px) {
  .jm-steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.jm-step-img {
  width: 176px; height: 176px; object-fit: contain; margin: 0 auto 8px;
  filter: hue-rotate(85deg) saturate(1.3);
}
@media (min-width: 768px) { .jm-step-img { width: 208px; height: 208px; } }
@media (min-width: 1024px) { .jm-step-img { width: 224px; height: 224px; } }
.jm-step-desc {
  font-size: 14px; font-weight: 500; color: var(--jm-card-fg);
  line-height: 1.5; max-width: 240px; margin: 0 auto;
}

/* ═══ FAQ ═══ */
.jm-faq-bg { background: var(--jm-gradient-hero); }
.jm-faq-bg .jm-section-title { color: var(--jm-primary-fg); }
.jm-faq-bg .jm-section-title span { color: var(--jm-secondary); }
.jm-faq-bg .jm-section-subtitle { color: rgba(255,255,255,0.8); }

.jm-faq-list {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.jm-faq-item {
  background: var(--jm-card);
  border-radius: var(--jm-radius);
  overflow: hidden;
  box-shadow: var(--jm-shadow-card);
}
.jm-faq-question {
  width: 100%; padding: 16px 20px;
  background: none; border: none;
  color: var(--jm-card-fg);
  font-size: 15px; font-weight: 700;
  text-align: left; cursor: pointer;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  transition: background 0.15s; font-family: inherit;
}
.jm-faq-question:hover { background: var(--jm-muted); }
.jm-faq-arrow {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform 0.3s; color: var(--jm-muted-fg);
}
.jm-faq-item.open .jm-faq-arrow { transform: rotate(180deg); }
.jm-faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.jm-faq-item.open .jm-faq-answer { max-height: 400px; }
.jm-faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 14px; color: var(--jm-primary); line-height: 1.6;
}

/* ═══ FOOTER ═══ */
.jm-footer {
  background: var(--jm-gradient-hero);
  color: var(--jm-primary-fg);
}
.jm-footer-main {
  max-width: 1400px; margin: 0 auto;
  padding: 48px 16px;
}
@media (min-width: 768px) { .jm-footer-main { padding: 64px 16px; } }
.jm-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 768px) { .jm-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jm-footer-grid { grid-template-columns: repeat(4, 1fr); gap: 48px; } }

.jm-footer-logo { height: 128px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .jm-footer-logo { height: 160px; } }
.jm-footer-brand p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }

.jm-footer-section h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #fff;
}
.jm-footer-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--jm-success); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: opacity 0.2s;
}
.jm-footer-wa-btn:hover { opacity: 0.9; color: #fff; }
.jm-footer-muted { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 8px; }
.jm-footer-links { display: flex; flex-direction: column; gap: 8px; }
.jm-footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.8);
  text-decoration: none; transition: color 0.2s;
}
.jm-footer-links a:hover { color: #fff; }
.jm-footer-social { display: flex; gap: 12px; }
.jm-social-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: opacity 0.2s; text-decoration: none;
}
.jm-social-btn:hover { opacity: 0.85; color: #fff; }
.jm-social-yt { background: #dc2626; }
.jm-social-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.jm-social-fb { background: #1877f2; }

/* Age Warning */
.jm-footer-age {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 16px;
}
.jm-footer-age-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px;
}
.jm-age-badge {
  width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid var(--jm-primary-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.jm-footer-age-inner p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }
.jm-footer-age-inner a { color: #fff; text-decoration: underline; }

/* Copyright */
.jm-footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  padding: 16px; text-align: center;
}
.jm-footer-copy p { font-size: 12px; color: rgba(255,255,255,0.6); margin: 0; }

/* ═══ WHATSAPP FLOAT ═══ */
.jm-whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  animation: jm-pulse-glow 2s ease-in-out infinite;
  text-decoration: none;
}
.jm-whatsapp-float:hover { color: #fff; }

/* ═══ EMPTY STATE ═══ */
.jm-empty {
  text-align: center; padding: 40px 16px;
  color: var(--jm-muted-fg); font-size: 15px;
}

/* ═══ SCROLLBAR ═══ */
.jm-homepage::-webkit-scrollbar { width: 8px; }
.jm-homepage::-webkit-scrollbar-track { background: var(--jm-muted); }
.jm-homepage::-webkit-scrollbar-thumb { background: var(--jm-primary); border-radius: 4px; }
.jm-homepage::-webkit-scrollbar-thumb:hover { opacity: 0.8; }
