/* =====================================================================
   Páginas de nicho (/bares/, /barberias/, ...) e página Modelos.
   Cada nicho injeta suas cores e a fonte do título pelas variáveis --n-*
   (ver page-nicho.php). Base clara: o nicho aparece no herói, nos blocos
   escuros, nos ícones e nos botões.
   ===================================================================== */

.nn { --hf: var(--n-hf); font-family: "Inter", system-ui, sans-serif; color: #1b1d22; background: #fff; overflow-x: clip; }
.nn h1, .nn h2, .nn h3 { font-family: var(--n-hf); letter-spacing: -.015em; }
.nn-wrap { max-width: 70rem; margin: 0 auto; }
.nn-center { text-align: center; }

/* ---- botões ---- */
.nn-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--n-a); color: var(--n-ona); border: 2px solid var(--n-a); border-radius: 99px; padding: .95rem 1.8rem; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .2s, box-shadow .2s, background-color .2s; }
.nn-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px var(--n-a); }
.nn-btn-o { background: transparent; color: var(--n-onp); border-color: rgba(255,255,255,.55); }
.nn-btn-o:hover { background: rgba(255,255,255,.14); box-shadow: none; }
.nn-btn-sm { padding: .6rem 1.2rem; font-size: .9rem; }
.nn-btn-full { width: 100%; }

/* ---- herói ---- */
.nn-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--n-p), var(--n-dk)); color: var(--n-onp); }
.nn-hero::before, .nn-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.nn-hero::before { width: 26rem; height: 26rem; background: var(--n-a); opacity: .28; top: -9rem; right: -6rem; }
.nn-hero::after { width: 20rem; height: 20rem; background: #fff; opacity: .08; bottom: -8rem; left: -5rem; }
.nn-hero-in { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem 5.5rem; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .nn-hero-in { grid-template-columns: 1.05fr .95fr; } }
.nn-eyebrow { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--n-a); background: rgba(255,255,255,.92); padding: .35rem .85rem; border-radius: 99px; margin-bottom: 1.25rem; }
.nn-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.05; margin: 0 0 1.1rem; color: var(--n-onp); }
.nn-sub { font-size: 1.15rem; line-height: 1.6; opacity: .92; margin: 0 0 1.9rem; max-width: 34rem; }
.nn-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.nn-hero-art { position: relative; }
.nn-art { border-radius: 30px; overflow: hidden; aspect-ratio: 640 / 520; box-shadow: 0 34px 60px -26px rgba(0,0,0,.55); transform: rotate(1.5deg); }
.nn-art svg { width: 100%; height: 100%; display: block; }
.nn-chip { position: absolute; background: #fff; color: #1b1d22; border-radius: 16px; padding: .6rem 1rem; font-size: .8125rem; box-shadow: 0 14px 28px -12px rgba(0,0,0,.4); display: flex; gap: .4rem; align-items: baseline; }
.nn-chip b { font: 800 1.25rem var(--n-hf); color: var(--n-p); }
.nn-chip-1 { left: -1rem; bottom: 2rem; }
.nn-chip-2 { right: -.5rem; top: 1.5rem; }
@media (max-width: 40rem) { .nn-chip-1 { left: .5rem; } .nn-chip-2 { right: .5rem; } }

/* ---- faixa de garantias ---- */
.nn-gar { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .nn-gar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .nn-gar { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.nn-gar > div { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; }
.nn-gar .ok { grid-row: span 2; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--n-p); color: var(--n-onp); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.nn-gar h3 { font-size: 1rem; line-height: 1.25; margin: 0; }
.nn-gar p { margin: .25rem 0 0; font-size: .875rem; color: #5a6270; }

/* ---- seções ---- */
.nn-sec { padding: 5rem 1.5rem; }
.nn-tint { background: var(--n-tint); }
.nn-sec h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 1rem; }
.nn-center h2, .nn-center .nn-lead { text-align: center; }
.nn-lead { color: #5a6270; font-size: 1.0625rem; max-width: 40rem; margin: 0 0 2.5rem; }
.nn-center .nn-lead { margin-left: auto; margin-right: auto; }
.nn-sec > .nn-wrap > h2:not(:only-child) + .nn-grid { margin-top: 2.25rem; }
.nn-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .nn-g3 { grid-template-columns: repeat(2, 1fr); } .nn-g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .nn-g3 { grid-template-columns: repeat(3, 1fr); } .nn-g4 { grid-template-columns: repeat(4, 1fr); } }
.nn-card { background: #fff; border: 1px solid #e7e9ee; border-radius: 22px; padding: 1.75rem; transition: transform .25s, box-shadow .25s; }
.nn-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px var(--n-p); }
.nn-card h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.nn-card p { margin: 0; color: #5a6270; font-size: .975rem; }
.nn-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--n-p); color: var(--n-onp); margin-bottom: 1rem; }
.nn-ic svg { width: 1.5rem; height: 1.5rem; }
.nn-ic-a { background: var(--n-a); color: var(--n-ona); }
.nn-tint .nn-card { background: #fff; }

/* ---- modelo (demos) ---- */
.nn-dark { background: var(--n-dk); color: #fff; }
.nn-dark h2 { color: #fff; }
.nn-dark .nn-lead { color: rgba(255,255,255,.75); }
.nn-demos { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .nn-d2 { grid-template-columns: 1fr 1fr; } }
.nn-demo { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-decoration: none; color: #fff; text-align: center; }
.nn-mock { position: relative; display: block; width: 100%; max-width: 44rem; padding-bottom: 1.5rem; }
.nn-d2 .nn-mock { max-width: 30rem; }
.nn-browser { display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); transition: transform .35s; }
.nn-demo:hover .nn-browser { transform: translateY(-6px) rotate(-.4deg); }
.nn-bar { display: flex; gap: .35rem; align-items: center; padding: .55rem .8rem; background: #eceef2; }
.nn-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #c4c9d2; display: block; }
.nn-browser img { display: block; width: 100%; height: auto; }
.nn-phone { position: absolute; right: -.5rem; bottom: 0; width: 24%; border-radius: 18px; overflow: hidden; border: 4px solid #14161b; background: #14161b; box-shadow: 0 24px 44px -16px rgba(0,0,0,.7); transition: transform .35s; }
.nn-demo:hover .nn-phone { transform: translateY(-10px); }
.nn-phone img { display: block; width: 100%; height: auto; }
@media (max-width: 40rem) { .nn-phone { right: 0; width: 28%; } }
.nn-demo-t b { display: block; font: 700 1.2rem var(--n-hf); }
.nn-demo-t em { font-style: normal; font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---- passos ---- */
.nn-steps { counter-reset: s; margin-top: 1rem; }
.nn-step { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.5rem; border-radius: 22px; background: var(--n-tint); }
.nn-dia { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--n-p); color: var(--n-onp); padding: .3rem .75rem; border-radius: 99px; margin-bottom: .9rem; }
.nn-step h3 { font-size: 1.25rem; margin: 0 0 .35rem; }
.nn-step p { margin: 0; color: #5a6270; font-size: .95rem; }

/* ---- preço ---- */
.nn-price { display: grid; max-width: 54rem; margin: 0 auto; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 70px -40px var(--n-p); border: 1px solid #e7e9ee; text-align: left; }
@media (min-width: 46rem) { .nn-price { grid-template-columns: .85fr 1.15fr; } }
.nn-price-l { background: linear-gradient(160deg, var(--n-p), var(--n-dk)); color: var(--n-onp); padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.nn-price-nome { font-weight: 700; opacity: .85; }
.nn-valor { font: 800 4.2rem/1 var(--n-hf); }
.nn-unico { opacity: .8; margin-bottom: 1.25rem; }
.nn-ren { font-size: .8125rem; opacity: .8; margin: .75rem 0 0; }
.nn-price-r { padding: 2.5rem 2rem; }
.nn-price-r h3 { font-size: 1.3rem; margin: 0 0 1rem; }
.nn-price-r ul { list-style: none; margin: 0; padding: 0; }
.nn-price-r li { position: relative; padding: .45rem 0 .45rem 1.9rem; border-bottom: 1px solid #eef0f3; font-size: .975rem; }
.nn-price-r li:last-child { border-bottom: 0; }
.nn-price-r li::before { content: "✓"; position: absolute; left: 0; top: .45rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--n-a); color: var(--n-ona); display: grid; place-items: center; font-size: .72rem; font-weight: 800; }

/* ---- faq / final / outros ---- */
.nn-faq .nn-wrap { max-width: 46rem; }
.nn-faq h2 { text-align: center; margin-bottom: 1.75rem; }
.nn-faq details { border-bottom: 1px solid #e3e6eb; padding: 1.1rem 0; }
.nn-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.nn-faq summary::after { content: "+"; color: var(--n-a); font-size: 1.5rem; line-height: 1; }
.nn-faq details[open] summary::after { content: "–"; }
.nn-faq details p { margin: .7rem 0 0; color: #5a6270; }
.nn-final { background: linear-gradient(135deg, var(--n-p), var(--n-dk)); color: var(--n-onp); text-align: center; padding: 4.5rem 1.5rem; }
.nn-final h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 36rem; margin: 0 auto 1.75rem; color: var(--n-onp); }
.nn-outros h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.5rem; }
.nn-pills { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.nn-pills a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .55rem; border-radius: 99px; background: #fff; border: 1.5px solid #e1e4ea; color: #1b1d22; text-decoration: none; font-weight: 600; font-size: .9rem; transition: transform .2s, border-color .2s, box-shadow .2s; }
.nn-pills a span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--c); color: #fff; }
.nn-pills a svg { width: 1rem; height: 1rem; }
.nn-pills a:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 20px -14px var(--c); }

/* hover mantido depois da animação de entrada (.nv-visto zera o transform) */
.nv-anim .nn-card.nv-visto:hover, .nv-anim .nn-mcard.nv-visto:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .nn-art, .nn-hero::before { transform: none; } }

/* =====================================================================
   Página Modelos: grade de nichos com captura do site de exemplo
   ===================================================================== */
.nn-mod { font-family: "Inter", system-ui, sans-serif; }
.nn-mod-hero { text-align: center; padding: 4rem 1.5rem 2rem; max-width: 48rem; margin: 0 auto; }
.nn-mod-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .75rem; }
.nn-mod-hero p { color: #5a6270; font-size: 1.1rem; margin: 0; }
.nn-mgrid { display: grid; gap: 1.75rem; max-width: 74rem; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
@media (min-width: 40rem) { .nn-mgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .nn-mgrid { grid-template-columns: repeat(3, 1fr); } }
.nn-mcard { background: #fff; border: 1px solid #e7e9ee; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.nn-mcard:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -28px var(--n-p); }
.nn-mshot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--n-tint); border-bottom: 4px solid var(--n-a); }
.nn-mshot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.nn-mcard:hover .nn-mshot img { transform: scale(1.04); }
.nn-mbody { position: relative; padding: 2.1rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.nn-mic { position: absolute; top: -1.4rem; left: 1.5rem; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--n-p); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 18px -8px var(--n-p); }
.nn-mic svg { width: 1.4rem; height: 1.4rem; }
.nn-mbody h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.nn-mbody p { color: #5a6270; font-size: .9rem; margin: 0 0 1.25rem; }
.nn-mlinks { display: flex; gap: .6rem; margin-top: auto; flex-wrap: wrap; }
.nn-mb { display: inline-block; padding: .55rem 1.1rem; border-radius: 99px; background: var(--n-p); color: #fff; text-decoration: none; font-weight: 700; font-size: .875rem; border: 2px solid var(--n-p); }
.nn-mb-o { background: transparent; color: var(--n-p); }
.nn-mb:hover { background: var(--n-a); border-color: var(--n-a); color: var(--n-ona); }
