/* ============================================================
   NAYARA RIBEIRO · CAPA (nayararibeiro.adv.br)
   Identidade cobre & sépia + detalhes em dourado
   FG7 Agência
   ============================================================ */
:root {
  --ink: #140B06;
  --ink-2: #1C1007;
  --burgundy: #6B2D1F;
  --burgundy-dark: #521F13;
  --brown-mid: #8B4B34;
  --cream: #F5F0EB;
  --cream-soft: #FAF7F4;
  --line: rgba(28,16,7,.1);
  --gold: #C9A55C;
  --gold-light: #E9D3A1;
  --gold-deep: #9C7A3C;
  --gold-grad: linear-gradient(120deg, #9C7A3C 0%, #E9D3A1 45%, #C9A55C 70%, #9C7A3C 100%);
  --whatsapp: #25D366;
  --serif: 'Cormorant Garamond', Garamond, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--ink-2); background: var(--cream-soft); line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 80px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 900px) { .wrap { padding: 0 2.5rem; } }

.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.eyebrow--dark { color: var(--burgundy); }
.eyebrow--dark::before { background: var(--gold-deep); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; margin: .9rem 0 1rem; }
.h2 em { font-style: italic; color: var(--burgundy); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.7rem; border-radius: 100px; font-size: .92rem; font-weight: 600; transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--gold { background: var(--gold-grad); background-size: 200% 100%; color: var(--ink); box-shadow: 0 10px 30px rgba(201,165,92,.25); }
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201,165,92,.35); }
.btn--line { border: 1px solid rgba(233,211,161,.4); color: var(--cream); }
.btn--line:hover { border-color: var(--gold-light); background: rgba(233,211,161,.06); }
.btn--line svg { color: var(--whatsapp); }
.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: #1EBA57; transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Topo ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; color: var(--cream); transition: background .35s ease, padding .35s ease, box-shadow .35s ease; }
@media (min-width: 900px) { .top { padding: 1.4rem 2.5rem; } }
.top.is-scrolled { background: rgba(20,11,6,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: .8rem; padding-bottom: .8rem; box-shadow: 0 1px 0 rgba(201,165,92,.25); }
.top__brand { display: flex; align-items: center; gap: .75rem; }
.top__mark { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--gold-light); border: 1px solid rgba(201,165,92,.6); border-radius: 50%; }
.top__name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.1; display: flex; flex-direction: column; }
.top__name small { font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }
@media (max-width: 420px) { .top__name small { display: none; } }
.top__nav { display: none; gap: 2rem; font-size: .88rem; font-weight: 500; }
.top__nav a { position: relative; color: rgba(245,240,235,.85); transition: color .2s ease; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.top__nav a:hover { color: var(--gold-light); }
.top__nav a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .top__nav { display: flex; } }
.top__wa { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 100px; border: 1px solid rgba(201,165,92,.55); font-size: .84rem; font-weight: 600; color: var(--gold-light); transition: background .25s ease; }
.top__wa:hover { background: rgba(201,165,92,.12); }
.top__wa svg { width: 16px; height: 16px; color: var(--whatsapp); }
@media (max-width: 420px) { .top__wa span { display: none; } .top__wa { padding: .6rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--cream);
  background: radial-gradient(70% 60% at 80% 20%, rgba(107,45,31,.55) 0%, rgba(20,11,6,0) 70%), radial-gradient(60% 70% at 0% 100%, rgba(139,75,52,.35) 0%, rgba(20,11,6,0) 70%), var(--ink); }
.hero::before { content: 'NR'; position: absolute; right: -2rem; bottom: -6rem; font-family: var(--serif); font-size: clamp(16rem, 34vw, 30rem); font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,165,92,.1); pointer-events: none; }
.hero__grid { position: relative; max-width: 1240px; margin: 0 auto; padding: 6.5rem 1.5rem 4rem; display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; padding: 8rem 2.5rem 5.5rem; min-height: min(100vh, 900px); } }

.hero__portrait { position: relative; width: min(100%, 440px); margin: 0 auto; }
.hero__portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 40% 30%; border-radius: 999px 999px 18px 18px; filter: contrast(1.05); }
/* "Desde 2012" solto, na mesma tipografia de "acolhimento humano" (serifada, itálico, dourado claro) */
.hero__seal { position: absolute; z-index: 2; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; align-items: baseline; gap: .25em; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; color: var(--gold-light); text-shadow: 0 2px 14px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.4); }
.hero__seal span, .hero__seal strong { font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
@media (max-width: 899px) { .hero__portrait { width: min(78%, 360px); } }

.hero__text { text-align: left; }
@media (max-width: 899px) { .hero__text { text-align: center; } .hero__text .eyebrow::before { display: none; } }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 9vw, 6.6rem); line-height: .95; margin: 1.1rem 0 .4rem; letter-spacing: -.01em; }
.hero__title span { display: block; font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero__role { font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(245,240,235,.7); }
.gold-rule { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0; color: var(--gold); font-size: .7rem; max-width: 240px; }
.gold-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
@media (max-width: 899px) { .gold-rule { margin-left: auto; margin-right: auto; } }
.hero__lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; margin-bottom: 1rem; }
.hero__lead em { color: var(--gold-light); }
.hero__sub { color: rgba(245,240,235,.78); max-width: 52ch; margin-bottom: 2rem; }
.hero__sub strong { color: var(--cream); font-weight: 600; }
@media (max-width: 899px) { .hero__sub { margin-left: auto; margin-right: auto; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
@media (max-width: 899px) { .hero__ctas { justify-content: center; } }
@media (max-width: 480px) { .hero__ctas .btn { flex: 1 1 100%; } }
.hero__facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .84rem; color: rgba(245,240,235,.72); padding-top: 1.4rem; border-top: 1px solid rgba(201,165,92,.2); }
.hero__facts strong { color: var(--gold-light); font-weight: 600; margin-right: .25rem; }
@media (max-width: 899px) { .hero__facts { justify-content: center; } }

/* ---------- Áreas ---------- */
.areas { padding: 6rem 0; background: var(--cream-soft); position: relative; }
.areas::before { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); }
.areas__head { text-align: center; max-width: 640px; margin: 0 auto 3.4rem; }
.areas__head .eyebrow::before { display: none; }
.areas__head p:last-child { color: var(--brown-mid); }
.areas__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .areas__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; } }

.portal { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(28,16,7,.07); transition: transform .45s ease, box-shadow .45s ease; }
.portal::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--gold-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.portal:hover { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(28,16,7,.13); }
.portal:hover::after { opacity: 1; }
.portal__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.portal__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 1s ease; }
#previdenciario .portal__media img { object-position: center 20%; }
.portal:hover .portal__media img { transform: scale(1.05); }
.portal__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,11,6,0) 55%, rgba(20,11,6,.55) 100%); }
.portal__num { position: absolute; z-index: 1; left: 1.4rem; bottom: 1rem; font-family: var(--serif); font-size: 2.8rem; font-weight: 500; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portal__body { padding: 2rem 1.7rem 2.2rem; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 900px) { .portal__body { padding: 2.4rem 2.4rem 2.6rem; } }
.portal__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem; }
.portal__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; margin-bottom: .9rem; }
.portal__title em { font-style: italic; color: var(--burgundy); }
.portal__text { color: var(--brown-mid); font-size: .95rem; margin-bottom: 1.4rem; }
.portal__list { display: grid; gap: .55rem; margin-bottom: 2rem; }
.portal__list li { position: relative; padding-left: 1.4rem; font-size: .92rem; line-height: 1.45; }
.portal__list li::before { content: '✦'; position: absolute; left: 0; top: .05em; font-size: .7rem; color: var(--gold); }
.portal__cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.5rem; border-radius: 100px; background: var(--ink); color: var(--gold-light); font-size: .9rem; font-weight: 600; transition: background .3s ease, color .3s ease; }
.portal__cta svg { width: 18px; height: 18px; transition: transform .3s ease; }
.portal__cta:hover { background: var(--burgundy); color: #fff; }
.portal:hover .portal__cta svg { transform: translateX(4px); }
@media (max-width: 480px) { .portal__cta { align-self: stretch; justify-content: center; } }

/* ---------- Credenciais ---------- */
.creds { padding: 6rem 0; color: var(--cream); background: radial-gradient(80% 90% at 100% 0%, rgba(139,75,52,.45), rgba(82,31,19,0) 60%), var(--burgundy-dark); position: relative; overflow: hidden; }
.creds::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.creds__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .creds__grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }
.creds__photo { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.creds__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; }
.creds__photo::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(201,165,92,.55); border-radius: 18px; z-index: 0; }
.creds__photo img { position: relative; z-index: 1; }
.creds__photo figcaption { position: relative; z-index: 1; margin-top: 1.4rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.creds__quote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; margin: 1.2rem 0 .8rem; }
.creds__quote em { color: var(--gold-light); }
.creds__sign { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,240,235,.6); margin-bottom: 2.4rem; }
.creds__list { display: grid; gap: 0; border-top: 1px solid rgba(201,165,92,.25); }
@media (min-width: 640px) { .creds__list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.creds__list div { padding: 1.2rem 0; border-bottom: 1px solid rgba(201,165,92,.25); }
.creds__list dt { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .25rem; }
.creds__list dd { font-size: .88rem; color: rgba(245,240,235,.78); line-height: 1.5; }

/* ---------- Contato ---------- */
.contact { padding: 6rem 0; }
.contact__box { display: grid; gap: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 2.4rem 1.6rem; position: relative; overflow: hidden; box-shadow: 0 24px 60px rgba(28,16,7,.06); }
.contact__box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); }
@media (min-width: 900px) { .contact__box { grid-template-columns: 1fr 1fr; padding: 3.5rem; gap: 4rem; align-items: center; } }
.contact__intro p { color: var(--brown-mid); margin-bottom: 1.6rem; }
@media (max-width: 480px) { .contact__intro .btn { width: 100%; } }
.contact__list { display: grid; gap: 1.6rem; }
.contact__list li { display: flex; flex-direction: column; gap: .35rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.contact__list a { display: inline-flex; align-items: center; gap: .5rem; font-size: .98rem; transition: color .2s ease; flex-wrap: wrap; }
.contact__list a:hover { color: var(--burgundy); }
.contact__list a svg { width: 17px; height: 17px; color: var(--burgundy); flex-shrink: 0; }
.contact__list small { font-size: .72rem; color: var(--brown-mid); background: var(--cream); padding: .1rem .5rem; border-radius: 100px; }

/* ---------- Rodapé ---------- */
.foot { background: var(--ink); color: rgba(245,240,235,.62); font-size: .78rem; padding: 1.8rem 0; border-top: 1px solid rgba(201,165,92,.25); }
.foot__row { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; align-items: center; }
.foot a { color: var(--gold-light); }
.foot a:hover { text-decoration: underline; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1rem; }

.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37,211,102,.4); transition: transform .3s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 580px) { .ck-banner { bottom: 92px !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Correções v2 ---------- */
/* Moldura dourada só em volta da foto (antes envolvia também a legenda) */
.creds__photo::before { content: none; }
.creds__photo .creds__frame { position: relative; display: block; }
.creds__photo .creds__frame::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(201,165,92,.55); border-radius: 18px; z-index: 0; pointer-events: none; }
.creds__photo figcaption { margin-top: 2rem; }

/* Páginas legais: topo sempre escuro sobre fundo claro */
.is-legal .top { background: var(--ink); box-shadow: 0 1px 0 rgba(201,165,92,.25); }
.legal-content { padding: 8.5rem 0 5rem; }
.legal-container { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.legal-container h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 1rem; }
.update-date { display: block; font-size: .8rem; color: var(--brown-mid); margin-bottom: .8rem; }
.lgpd-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid rgba(201,165,92,.6); border-radius: 100px; padding: .35rem .8rem; margin-bottom: 1.6rem; }
.legal-container h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 2.4rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal-container h3 { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 .5rem; }
.legal-container p { margin-bottom: 1rem; color: var(--ink-2); }
.legal-container ul { display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.legal-container li { position: relative; padding-left: 1.3rem; }
.legal-container li::before { content: '✦'; position: absolute; left: 0; top: .1em; font-size: .65rem; color: var(--gold); }
#imobiliario .portal__media img { object-position: center 28%; }
