/* ============================================
   Festival de Prêmios 2026 — PNSA
   Paróquia Nossa Senhora da Assunção
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  width: 100%;
}

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Focus-visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.whatsapp-float:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header & Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #A22C2C;
}

.nav-logo-img { height: 36px; width: auto; }
.nav-logo-text { font-family: 'Dancing Script', cursive; font-size: 1.5rem; }

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible { background: #F5E6C8; color: #A22C2C; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #333;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1C3A5E 0%, #3A7DBA 50%, #2E6B4F 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.hero-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.hero-year { color: #D4AF37; }

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-date svg { opacity: 0.7; }

/* --- Countdown --- */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  min-width: 80px;
}

.countdown-num {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-top: -1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: #A22C2C;
  color: #fff;
  border-color: #A22C2C;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #862222;
  border-color: #862222;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(162,44,44,0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #A22C2C;
  border-color: #A22C2C;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #A22C2C;
  color: #fff;
}

.btn-small { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.125rem; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* --- Sections --- */
.section { padding: 5rem 0; }

.section-light { background: #FFFFFF; }
.section-dark { background: #F5E6C8; }
.section-green {
  background: linear-gradient(135deg, #3A7DBA, #2E6B4F);
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #1C3A5E;
  margin-bottom: 0.75rem;
  text-align: center;
  text-wrap: balance;
}

.section-dark .section-title { color: #1C3A5E; }
.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-subtitle { color: #555; }

/* --- Sobre --- */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sobre-text p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.sobre-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* --- Prêmios --- */
.premios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.premio-categoria {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C3A5E;
  padding: 0.5rem 0 0;
  margin: 0.5rem 0 -0.5rem;
  border-bottom: 2px solid #D4AF37;
}

.premio-categoria:first-of-type {
  margin-top: 0;
}

.premio-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.premio-card:hover,
.premio-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.premio-card.destaque {
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.25);
}

.premio-card.destaque .premio-title { color: #A22C2C; }

.premio-img {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #F5E6C8, #E3A7A7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.premio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premio-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(162,44,44,0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.premio-body { padding: 1.25rem; }

.premio-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C3A5E;
  margin-bottom: 0.25rem;
}

.premio-desc { font-size: 0.9rem; color: #666; }

/* --- Passos --- */
.passos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.passo {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: all 0.3s;
}

.passo:hover,
.passo:focus-within { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.passo-num {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: #A22C2C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.passo-title { font-size: 1.15rem; font-weight: 600; color: #1C3A5E; margin-bottom: 0.5rem; }
.passo p { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }

/* --- Chamada --- */
.chamada-content { max-width: 700px; margin: 0 auto; }

.chamada-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.chamada-text {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* --- Regulamento (resumo) --- */
.regras-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.regra {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

.regra-icon {
  flex-shrink: 0;
  color: #D4AF37;
  margin-top: 0.1rem;
}

.regra-text { font-size: 0.95rem; color: #444; }
.regra-text strong { color: #1C3A5E; }

.regulamento-full { text-align: center; margin-top: 2rem; }

/* --- Regulamento (página completa) --- */
.regulamento-content {
  max-width: 800px;
  margin: 0 auto;
}

.regulamento-artigo {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #eee;
}

.regulamento-artigo:last-child { border-bottom: none; }

.regulamento-artigo h2 {
  font-size: 1.3rem;
  color: #1C3A5E;
  margin-bottom: 0.75rem;
}

.regulamento-artigo p {
  color: #555;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.regulamento-artigo ul,
.regulamento-artigo ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.regulamento-artigo li {
  color: #555;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* --- Contato --- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contato-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contato-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #F5E6C8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A22C2C;
}

.contato-item strong { display: block; font-size: 0.9rem; color: #1C3A5E; margin-bottom: 0.15rem; }
.contato-item p { color: #666; font-size: 0.95rem; }
.contato-item a { color: #A22C2C; }
.contato-item a:hover { text-decoration: underline; }

.contato-cta {
  background: linear-gradient(135deg, #F5E6C8, #E3A7A7);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  min-width: 0;
}

.contato-cta h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.contato-cta h3 { color: #1C3A5E; }
.contato-cta p { color: #555; margin-bottom: 1.5rem; }

/* --- Footer --- */
.footer {
  background: #1C3A5E;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-logo { height: 40px; width: auto; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; }
.footer-brand strong { color: #fff; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #D4AF37; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.2s;
  color: #25D366;
}

.footer-social a:hover { background: #D4AF37; color: #1C3A5E; }

.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.85rem; margin-bottom: 0.25rem; }
.footer-blessing {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #D4AF37;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all 0.3s;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
  .premios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header { background: rgba(255,255,255,0.98); }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }

  .nav-links.active { display: flex; }

  .nav-toggle { display: block; }

  .countdown-item { min-width: 60px; padding: 0.5rem 0.75rem; }
  .countdown-sep { font-size: 1.5rem; }

  .sobre-grid,
  .contato-grid { grid-template-columns: 1fr; }

  .passos-grid { grid-template-columns: 1fr; }

  .premios-grid { grid-template-columns: 1fr 1fr; }
  .premio-img { height: 140px; }

  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .premios-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  
  .hero-cta .btn, 
  .chamada-content .btn, 
  .contato-cta .btn, 
  .regulamento-full .btn { 
    width: 100%; 
    max-width: 100%;
  }
  
  .btn { 
    display: block;
    white-space: normal; 
    word-wrap: break-word;
    text-align: center; 
    font-size: 0.95rem;
  }
  
  .btn svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
    margin-bottom: 2px;
  }
  
  .btn-large { 
    padding: 0.75rem 0.5rem; 
  }
  
  .section { padding: 3rem 0; }
  
  .contato-cta { 
    padding: 1.5rem 1rem;
    min-width: 0;
  }
  .contato-cta h3 { font-size: 1.3rem; }
  
  .contato-info, .contato-item, .contato-item > div {
    min-width: 0;
    word-wrap: break-word;
  }
  
  .countdown { gap: 0.25rem; }
  .countdown-item { min-width: 45px; padding: 0.5rem 0.25rem; }
  .countdown-sep { font-size: 1.25rem; }
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex !important; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
  .whatsapp-float { animation: none; }
  .premio-card:hover,
  .premio-card:focus-within,
  .passo:hover,
  .passo:focus-within,
  .btn:hover,
  .btn:focus-visible { transform: none; }
}
