/* ============================================
   EDITORA PANDEMONIUM — Global Stylesheet
   Estética: Luz Expressionista no Caos
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600;700&display=swap');

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

:root {
  --bg:        #07070e;
  --bg-2:      #0f0f1a;
  --bg-3:      #161624;
  --bg-card:   #111120;
  --gold:      #c9a848;
  --gold-lt:   #e8c96e;
  --gold-dim:  #7a6428;
  --ivory:     #f0e9d6;
  --ivory-dim: #a89f8a;
  --crimson:   #8c2216;
  --crimson-lt:#c43a28;
  --white:     #ffffff;
  --border:    rgba(201,168,72,0.15);
  --border-lt: rgba(201,168,72,0.35);
  --glow:      rgba(201,168,72,0.08);

  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Crimson Pro', Georgia, serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ivory);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-style: italic; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }

.display {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-style: normal;
}
.overline {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

p { color: var(--ivory-dim); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-lt); }

strong { color: var(--ivory); font-weight: 600; }
em { font-style: italic; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ─── Selection ─── */
::selection { background: var(--gold-dim); color: var(--ivory); }

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,7,14,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
nav.scrolled {
  height: 60px;
  background: rgba(7,7,14,0.96);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-seal {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(201,168,72,0.12) 0%, transparent 70%);
  flex-shrink: 0;
}
.nav-logo-seal svg { width: 20px; height: 20px; fill: var(--gold); }
.nav-logo-text { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.18em; color: var(--ivory); }
.nav-logo-text span { display: block; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--gold); margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.4rem 1.2rem;
  border-radius: var(--r-sm);
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ivory);
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(7,7,14,0.97);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile a:last-child { border-bottom: none; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-lt);
  color: var(--bg);
  border-color: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201,168,72,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(201,168,72,0.1);
  color: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory-dim);
  border: 1px solid rgba(240,233,214,0.2);
}
.btn-ghost:hover {
  color: var(--ivory);
  border-color: rgba(240,233,214,0.5);
}

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-cross {
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ─── Section Layout ─── */
section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}
.section-header.centered { text-align: center; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-lt);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(201,168,72,0.05);
}
.card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold-dim);
}
.card-img-placeholder svg { width: 40px; height: 40px; opacity: 0.6; }
.card-body { padding: 1.5rem; }
.card-category {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.card-title { font-size: 1.3rem; color: var(--ivory); margin-bottom: 0.5rem; }
.card-desc { font-size: 0.95rem; margin-bottom: 1.25rem; }
.card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.card-price-old {
  font-size: 0.85rem;
  color: var(--ivory-dim);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

/* ─── Grid ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ─── Gold Line Decoration ─── */
.gold-line {
  display: block;
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.gold-line.centered { margin-left: auto; margin-right: auto; }

/* ─── Verse Block ─── */
.verse-block {
  border-left: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--glow);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.verse-block p { color: var(--ivory-dim); font-style: italic; font-size: 1.05rem; }
.verse-ref {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 0.5rem;
  display: block;
}

/* ─── Badge ─── */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid;
}
.badge-gold { border-color: var(--gold); color: var(--gold); background: rgba(201,168,72,0.1); }
.badge-new  { border-color: var(--crimson-lt); color: var(--crimson-lt); background: rgba(196,58,40,0.1); }

/* ─── Form ─── */
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 0.5rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--ivory-dim); opacity: 0.5; }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,72,0.1);
}
textarea { resize: vertical; min-height: 140px; }

/* ─── Seal SVG ornament ─── */
.seal-ornament {
  width: 120px; height: 120px;
  border: 2px solid var(--border-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(201,168,72,0.08) 0%, transparent 70%);
  margin: 0 auto 2rem;
}
.seal-ornament svg { width: 60px; height: 60px; fill: var(--gold); opacity: 0.85; }

/* ─── Footer ─── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 0.95rem; margin-top: 0.75rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.95rem;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--ivory-dim);
  opacity: 0.6;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { opacity: 0.5; }
  50%  { opacity: 1; }
  100% { opacity: 0.5; }
}
@keyframes rayPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.65; }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-fade-up.delay-1 { animation-delay: 0.15s; }
.animate-fade-up.delay-2 { animation-delay: 0.3s; }
.animate-fade-up.delay-3 { animation-delay: 0.45s; }
.animate-fade-up.delay-4 { animation-delay: 0.6s; }

/* Intersection observer reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
