/* ============================================
   Editora Omnia — Custom Styles
   Design System: Navy / Grafite / Gold / Ivory
   ============================================ */

/* Smooth scroll base */
html {
  scroll-behavior: smooth;
}

/* Base body */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f0e8;
  color: #2d3436;
}

/* Scrollbar refinada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f0e8; }
::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b8943e; }

/* Header transition */
.header-scrolled {
  background: rgba(10,22,40,0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Mobile menu open */
.mobile-open {
  max-height: 500px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hero mask overlay */
.hero-mask {
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.92) 0%,
    rgba(10,22,40,0.70) 50%,
    rgba(10,22,40,0.85) 100%
  );
}

/* Gold underline for headings */
.gold-underline {
  display: inline-block;
  position: relative;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #c9a84c;
  border-radius: 2px;
}
.gold-underline-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Article card hover */
.article-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10,22,40,0.12);
}

/* Divider gold */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form input focus */
.form-input:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  outline: none;
}

/* CTA pulse */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}
.cta-gold {
  animation: pulse-gold 2s infinite;
}

@media (max-width: 768px) {
  .cta-gold {
    animation: none;
  }
}
