/* Conscendo Sodalitas — folha de estilos compartilhada */

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

:root {
  --bg-deep:    #080d1a;
  --bg-mid:     #0a0f1e;
  --bg-card:    rgba(10, 15, 30, 0.55);
  --text:       #f0ead6;
  --text-muted: rgba(240, 234, 214, 0.5);
  --gold:       #c9a84c;
  --gold-lt:    #e2c47a;
  --gold-dim:   rgba(201, 168, 76, 0.18);
  --indigo:     #7b6fa0;
  --border:     rgba(201, 168, 76, 0.14);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Raleway', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg-deep); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.75; overflow-x: hidden; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ── HEADER ── */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 1.1rem 3rem; display: flex; align-items: center; justify-content: space-between; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
#site-header.scrolled { background: rgba(8,13,26,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-color: var(--border); }

.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo-v { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.4rem; line-height: 1; background: linear-gradient(160deg, var(--gold) 0%, var(--gold-lt) 50%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-text { font-family: var(--sans); font-weight: 300; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); line-height: 1.45; }

nav { display: flex; align-items: center; gap: 2.2rem; }
nav a { font-family: var(--sans); font-size: .7rem; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color .3s; }
nav a:hover, nav a.active { color: var(--gold); }
.nav-langs { display: flex; gap: .6rem; padding-left: 1.2rem; margin-left: .8rem; border-left: 1px solid var(--border); }
.nav-langs a { padding: .18rem .5rem; border-radius: 2px; transition: color .3s, background .3s; }
.nav-langs a.active, .nav-langs a:hover { color: var(--gold); background: var(--gold-dim); }

/* ── HERO PRINCIPAL (index.html — canvas de partículas) ── */
#hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 9rem 2rem 7rem; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-aurora { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(123,111,160,.13) 0%, transparent 60%), radial-gradient(ellipse 55% 40% at 15% 85%, rgba(201,168,76,.06) 0%, transparent 50%), radial-gradient(ellipse 65% 55% at 85% 15%, rgba(123,111,160,.09) 0%, transparent 55%); animation: aurora 22s ease-in-out infinite alternate; }
@keyframes aurora { from { opacity: .55; } 50% { opacity: 1; } to { opacity: .65; } }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow { display: block; font-family: var(--sans); font-weight: 300; font-size: .66rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.8rem; opacity: 0; animation: fadeUp 1s ease forwards .3s; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem,7vw,5.6rem); line-height: 1.08; color: var(--text); margin-bottom: 1.6rem; opacity: 0; animation: fadeUp 1s ease forwards .6s; }
.hero-motto { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem,2.8vw,2.1rem); color: var(--gold); letter-spacing: .07em; margin-bottom: 3.5rem; opacity: 0; animation: fadeUp 1s ease forwards .9s; }
.hero-rule { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto 3.2rem; opacity: 0; animation: fadeUp 1s ease forwards 1.1s; }
.hero-quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(.98rem,1.9vw,1.18rem); color: var(--text-muted); line-height: 2; max-width: 580px; margin: 0 auto 1.2rem; opacity: 0; animation: fadeUp 1s ease forwards 1.3s; }
.hero-source { font-family: var(--sans); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--indigo); opacity: 0; animation: fadeUp 1s ease forwards 1.5s; }
.hero-cta { position: absolute; bottom: 2.8rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; opacity: 0; animation: fadeUp 1s ease forwards 1.9s; }
.hero-cta span { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--text-muted); }
.cta-line { width: 1px; height: 42px; background: linear-gradient(to bottom, var(--gold), transparent); animation: linePulse 2.2s ease-in-out infinite; }
@keyframes linePulse { 0%,100% { opacity: .25; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ── WELCOME (index.html) ── */
#welcome { background: var(--bg-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.welcome-img { position: relative; overflow: hidden; }
.welcome-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(201,168,76,.07) 0%, transparent 60%); }
.welcome-img img { width: 100%; height: 480px; object-fit: cover; display: block; filter: brightness(.72) saturate(.8); transition: transform .9s ease, filter .5s; }
.welcome-img:hover img { transform: scale(1.04); filter: brightness(.88) saturate(.95); }
.welcome-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem,3vw,2.7rem); color: var(--text); line-height: 1.2; margin-bottom: 1.4rem; }
.welcome-copy p { font-size: .97rem; color: var(--text-muted); line-height: 1.95; margin-bottom: 1.3rem; }
.welcome-copy em { font-style: normal; color: var(--text); }
.btn-ghost { display: inline-block; padding: .7rem 1.9rem; border: 1px solid var(--border); color: var(--gold); font-family: var(--sans); font-size: .7rem; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; margin-top: .5rem; transition: background .3s, color .3s, border-color .3s; }
.btn-ghost:hover { background: var(--gold-dim); color: var(--gold-lt); border-color: rgba(201,168,76,.35); }

/* ── POEM (index.html) ── */
#poem { background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%); border-top: 1px solid var(--border); text-align: center; }
.poem-wrap { max-width: 620px; margin: 0 auto; }
.poem-symbol { display: block; font-size: 1.9rem; color: var(--gold); opacity: .55; margin-bottom: 3rem; }
.poem-h { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem,4vw,2.9rem); color: var(--text); margin-bottom: 3.8rem; }
.stanza { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1rem,1.9vw,1.13rem); color: rgba(240,234,214,.78); line-height: 2.25; margin-bottom: 3.5rem; }
.sacred-sep { font-size: 1.1rem; letter-spacing: 1.4rem; color: var(--gold); opacity: .3; margin: .5rem 0 3.5rem; }
.poem-sig { font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: .65; }

/* ── HERO DE PÁGINA (índices EN/ES e páginas de vídeos) ── */
#page-hero { padding: 13rem 2rem 7rem; text-align: center; background: var(--bg-mid); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
#page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(123,111,160,.12) 0%, transparent 65%), radial-gradient(ellipse 40% 35% at 80% 10%, rgba(201,168,76,.06) 0%, transparent 55%); }
.page-eyebrow { display: block; font-family: var(--sans); font-weight: 300; font-size: .64rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.5rem; position: relative; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1.08; color: var(--text); max-width: 820px; margin: 0 auto 1.4rem; position: relative; }
.page-sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1rem, 2vw, 1.35rem); color: var(--gold); letter-spacing: .04em; margin-bottom: 3rem; position: relative; }
.page-rule { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto; position: relative; }

/* ── SEÇÕES E GRID DE CARDS ── */
.section { padding: 8rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow { display: block; font-family: var(--sans); font-weight: 300; font-size: .64rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem,4vw,3.1rem); color: var(--text); line-height: 1.2; }
.gold-rule { width: 55px; height: 1px; background: var(--gold); opacity: .45; margin: 2.2rem 0; }
.gold-rule.c { margin: 2.2rem auto; }
#articles { background: var(--bg-deep); }
.articles-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { display: block; text-decoration: none; background: var(--bg-card); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; position: relative; transition: transform .4s ease, border-color .4s, box-shadow .4s; }
.card::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg, rgba(201,168,76,.04) 0%, transparent 55%); opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-5px); border-color: rgba(201,168,76,.32); box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(201,168,76,.07); }
.card:hover::before { opacity: 1; }
.card-img { position: relative; overflow: hidden; height: 195px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.65) saturate(.65); transition: transform .7s ease, filter .4s; }
.card:hover .card-img img { transform: scale(1.07); filter: brightness(.82) saturate(.85); }
.card-img-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,13,26,.82) 0%, rgba(8,13,26,.15) 60%, transparent 100%); }
.card-body { padding: 1.4rem 1.5rem 1.7rem; position: relative; z-index: 2; }
.card-title { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; color: var(--text); line-height: 1.35; margin-bottom: .5rem; transition: color .3s; }
.card:hover .card-title { color: var(--gold-lt); }
.card-sub { font-family: var(--serif); font-style: italic; font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.card-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .3s; }
.card-cta::after { content: '→'; font-size: .75rem; }
.card:hover .card-cta { opacity: 1; transform: translateY(0); }
.card-badge { position: absolute; top: .8rem; right: .8rem; z-index: 3; font-family: var(--sans); font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(201,168,76,.25); padding: .2rem .55rem; border-radius: 2px; }

/* ── HERO DE ARTIGO ── */
#article-hero { padding: 13rem 2rem 7rem; text-align: center; background: var(--bg-mid); border-bottom: 1px solid var(--border); }
.article-eyebrow { display: block; font-family: var(--sans); font-weight: 300; font-size: .64rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.5rem; }
.article-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.1; color: var(--text); max-width: 820px; margin: 0 auto 1.6rem; }
.article-sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--gold); letter-spacing: .04em; margin-bottom: 3rem; }
.article-rule { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto; }

/* ── CORPO DO ARTIGO ── */
#article-body { padding: 6rem 2rem 7rem; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1rem; color: var(--text-muted); line-height: 2; margin-bottom: 1.5rem; }
.prose p:first-of-type { font-size: 1.06rem; color: var(--text); }
.prose p br { display: block; margin-bottom: .3rem; }
.prose a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); transition: border-color .3s, color .3s; }
.prose a:hover { color: var(--gold-lt); border-color: var(--gold); }
.prose strong, .prose b { font-weight: 500; color: var(--text); }
.prose em { font-style: italic; color: rgba(240,234,214,.7); }
.video-responsivo-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 3rem 0; border: 1px solid var(--border); }
.video-responsivo-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.prose-footer { max-width: 760px; margin: 3rem auto 0; padding-top: 3rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .68rem; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-decoration: none; transition: color .3s; }
.back-link::before { content: '\2190'; font-size: .8rem; }
.back-link:hover { color: var(--gold-lt); }

/* ── FOOTER ── */
#footer { background: rgba(5,9,18,.98); border-top: 1px solid var(--border); padding: 4.5rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 3rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(201,168,76,.07); }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .84rem; color: var(--text-muted); max-width: 270px; line-height: 1.85; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.5rem; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; font-family: var(--serif); font-size: .95rem; transition: color .3s, border-color .3s, background .3s; }
.footer-social a:hover { color: var(--gold); border-color: rgba(201,168,76,.4); background: var(--gold-dim); }
.footer-col h4 { font-family: var(--sans); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { font-size: .84rem; color: var(--text-muted); text-decoration: none; transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: .73rem; color: rgba(240,234,214,.25); }
.footer-langs { display: flex; gap: 1.5rem; }
.footer-langs a { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(240,234,214,.28); text-decoration: none; transition: color .3s; }
.footer-langs a:hover { color: var(--gold); }

/* ── RESPONSIVO ── */
@media (max-width:1024px) {
  .grid { grid-template-columns: repeat(2,1fr); }
  .welcome-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width:768px) {
  #site-header { padding: 1rem 1.5rem; }
  nav > a { display: none; }
  nav { gap: 1rem; }
  #article-hero { padding: 10rem 1.5rem 5rem; }
  #article-body { padding: 4rem 1.5rem 5rem; }
  #page-hero { padding: 10rem 1.5rem 5rem; }
  .grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width:480px) {
  .section { padding: 5rem 1.5rem; }
}
