/* ═══════════════════════════════════════════════════════════
   ALFA PRODUÇÕES — Design System
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #080808;
  --surface: #121212;
  --card: #1C1C1C;
  --border: #2A2A2A;
  --border-hover: #C1121F;
  --text: #E5E5E5;
  --text-muted: #BDBDBD;
  --text-dim: #3A3A3A;
  --red: #C1121F;
  --gold: #C8A45D;
  --white: #FFFFFF;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--red) var(--bg); overflow-x: hidden; }
body { background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── Typography ─── */
.text-gradient-red {
  background: linear-gradient(135deg, var(--red), #ff4d5a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-line { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.red-line { height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }

/* ─── Sections ─── */
.alfa-section { padding: 100px 24px; overflow-x: hidden; }
.alfa-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.alfa-card:hover { border-color: var(--border-hover); box-shadow: 0 0 20px rgba(193,18,31,0.15); }

/* ─── Buttons ─── */
.alfa-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white); border: none; border-radius: 12px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  font-family: inherit;
}
.alfa-btn-primary:hover { background: #a00e1a; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(193,18,31,0.3); }
.alfa-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--gold); border: 1px solid rgba(200,164,93,0.3); border-radius: 12px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  font-family: inherit;
}
.alfa-btn-secondary:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.alfa-btn-secondary svg, .alfa-btn-primary svg {
  width: 20px; height: 20px; flex-shrink: 0;
}

/* ─── Inline SVG icon helper ─── */
.icon-inline {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: inherit;
}
.icon-inline svg { width: 100%; height: 100%; }

/* ─── Scroll Reveal ─── */
.reveal { opacity: 0; transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.revealed { opacity: 1; transform: none !important; }
.reveal[data-dir="up"] { transform: translateY(50px); }
.reveal[data-dir="left"] { transform: translateX(-60px); }
.reveal[data-dir="right"] { transform: translateX(60px); }
.reveal[data-dir="scale"] { transform: scale(0.85); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }
.reveal[data-delay="9"] { transition-delay: 0.9s; }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 32px; display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled { background: rgba(8,8,8,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-links { display: none; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--white); }
.nav-logo { height: 50px; width: auto; }
.hamburger {
  background: none; border: none; color: var(--white); cursor: pointer; display: flex; flex-direction: column;
  gap: 5px; z-index: 60; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(8,8,8,0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px; z-index: 40;
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a { color: var(--text-muted); font-size: 24px; letter-spacing: 4px; text-transform: uppercase; transition: color 0.3s; }
.mobile-menu a:hover { color: var(--white); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ─── Capa (Hero) ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  text-align: center; padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,0.6) 0%, rgba(8,8,8,0.4) 40%, rgba(8,8,8,0.9) 100%); }
.hero-glow { position: absolute; top: calc(100% / 3); right: 25%; width: 500px; height: 500px; background: var(--red); border-radius: 50%; opacity: 0.06; filter: blur(120px); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-logo { height: 140px; width: auto; margin: 0 auto 40px; filter: drop-shadow(0 0 40px rgba(193,18,31,0.5)); }
@media (min-width: 768px) { .hero-logo { height: 180px; } }
.hero h1 { font-size: clamp(28px, 5vw, 56px); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 16px; }
.hero-subtitle { font-size: clamp(14px, 2vw, 18px); color: var(--text-muted); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 48px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-scroll { margin-top: 60px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ─── Timeline ─── */
.timeline-container { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-line-wrap { position: relative; padding: 0 16px; }
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--red) 10%, var(--red) 90%, transparent);
  transform: translateX(-50%);
}
@media (max-width: 767px) {
  .timeline-line { left: 12px; }
}
.timeline-item { display: flex; flex-direction: column; align-items: stretch; gap: 24px; margin-bottom: 40px; position: relative; }
@media (min-width: 768px) {
  .timeline-item { flex-direction: row; align-items: center; margin-bottom: 56px; }
  .timeline-item.right { flex-direction: row-reverse; }
  .timeline-item .spacer { display: block; flex: 1; }
}
.timeline-item .spacer { display: none; }
.timeline-card {
  flex: 1; padding: 24px 28px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); transition: all 0.5s; height: 100%;
}
.timeline-card:hover { border-color: rgba(193,18,31,0.4); box-shadow: 0 0 20px rgba(193,18,31,0.15); }
.timeline-card.highlight {
  background: linear-gradient(135deg, rgba(193,18,31,0.15), var(--card)); border-color: var(--red); box-shadow: 0 0 30px rgba(193,18,31,0.25);
}
.timeline-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 4px solid var(--bg); flex-shrink: 0;
  display: none; box-shadow: 0 0 20px rgba(193,18,31,0.5); align-self: center; z-index: 2;
}
@media (max-width: 767px) {
  .timeline-dot { display: block; position: absolute; left: 4px; top: 24px; }
}
.timeline-dot.gold { background: var(--gold); box-shadow: 0 0 25px rgba(200,164,93,0.6); }
@media (min-width: 768px) { .timeline-dot { display: flex; } }

/* ─── Service / Feature Cards ─── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }

/* Stats grid - centered 3x2 layout */
.grid-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 720px; margin: 0 auto;
}
@media (min-width: 640px) { .grid-stats { grid-template-columns: repeat(3, 1fr); } }

.feature-card { padding: 32px; height: 100%; }
.feature-card h3 { color: var(--white); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ─── Stats / Numeros ─── */
.stat-number { font-size: clamp(36px, 6vw, 56px); font-weight: 900; color: var(--white); line-height: 1; }
.stat-suffix { color: var(--red); font-size: clamp(28px, 5vw, 48px); font-weight: 900; }
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ─── Carousel (Galeria & Eventos) ─── */
.alfa-carousel {
  position: relative; overflow: hidden; border-radius: 16px;
  margin: 0 auto; max-width: 720px;
}
/* Eventos carousel - smaller flyers */
.alfa-carousel.flyers-small {
  max-width: 420px;
}
.alfa-carousel-viewport {
  overflow: hidden; border-radius: 16px;
}
.alfa-carousel-track {
  display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.alfa-carousel-track .carousel-slide {
  flex: 0 0 100%; min-width: 0;
  position: relative; overflow: hidden;
}
.alfa-carousel-track .carousel-slide img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform 0.6s ease;
}
.alfa-carousel-track .carousel-slide:hover img {
  transform: scale(1.03);
}
.alfa-carousel-track .carousel-slide .slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.alfa-carousel-track .carousel-slide:hover .slide-caption {
  opacity: 1;
}
.slide-caption p {
  color: #fff; font-weight: 600; font-size: 14px;
}

/* Photo carousel - wider ratio */
.alfa-carousel.photos .alfa-carousel-track .carousel-slide img {
  aspect-ratio: 16/10;
}

/* Arrows */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(8,8,8,0.7); border: 1px solid var(--border);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: all 0.3s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.carousel-arrow:hover { background: var(--red); border-color: var(--red); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-arrow svg { width: 20px; height: 20px; pointer-events: none; }
@media (max-width: 480px) {
  .carousel-arrow { width: 32px; height: 32px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}

/* Dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 16px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.carousel-dot.active {
  background: var(--red); width: 24px; border-radius: 4px;
}

/* ─── Contact ─── */
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); transition: all 0.3s;
}
.contact-card:hover { border-color: var(--border-hover) !important; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(193,18,31,0.15); }
.contact-card svg { flex-shrink: 0; }
.contact-card.gold:hover { border-color: var(--gold) !important; box-shadow: 0 8px 25px rgba(200,164,93,0.15); }

/* ─── ContraCapa ─── */
.backcover { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; text-align: center; padding: 80px 24px; }
.backcover-logo { height: 160px; width: auto; margin: 0 auto 48px; filter: drop-shadow(0 0 40px rgba(193,18,31,0.4)); }
@media (min-width: 768px) { .backcover-logo { height: 200px; } }
.backcover-quote { font-size: clamp(18px, 2.5vw, 30px); font-weight: 300; line-height: 1.6; color: var(--text); max-width: 600px; margin: 0 auto; }
.social-links { display: flex; gap: 24px; justify-content: center; margin-top: 48px; }
.social-links a { color: var(--text-dim); transition: color 0.3s; display: flex; }
.social-links a:hover { color: var(--red); }

/* ─── Utility ─── */
.max-w-4xl { max-width: 896px; margin: 0 auto; }
.max-w-5xl { max-width: 1024px; margin: 0 auto; }
.max-w-6xl { max-width: 1152px; margin: 0 auto; }
.max-w-7xl { max-width: 1280px; margin: 0 auto; }
.text-center { text-align: center; }
.chapter-label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: var(--white); margin-bottom: 16px; }
.gold-label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px; text-align: center; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: 16px; }
.empty-state svg, .empty-state i { color: var(--border); margin-bottom: 16px; }

/* ─── Animations ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeIn { animation: fadeIn 1s ease forwards; }
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }
.delay-700 { animation-delay: 0.7s; opacity: 0; }
