/* ==============================================================
   SEÇÕES COMPARTILHADAS
   Componentes usados na home e nas páginas de tratamento
   (conteúdo migrado do site antigo, na identidade visual nova).
   Depende das variáveis --font-sans / --font-serif da página.
============================================================== */

.nx-section { background: #fff; color: #2e2e33; padding: 110px 0; }
.nx-section--sand { background: #f3efe9; }
.nx-section--dark { background: #111; color: rgba(255,255,255,0.86); }

.nx-inner { max-width: 1320px; margin: 0 auto; padding: 0 60px; }
.nx-inner--narrow { max-width: 920px; }

/* ---------- Cabeçalho de seção ---------- */
.nx-head { max-width: 760px; margin-bottom: 64px; }
.nx-head--center { text-align: center; margin-left: auto; margin-right: auto; }

.nx-tag {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.0175rem;
    text-transform: uppercase;
    color: #8c7a66;
    margin-bottom: 20px;
}

.nx-title {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 400;
    line-height: 1.22;
    color: inherit;
    margin-bottom: 24px;
}
.nx-section--dark .nx-title { color: #fff; }

.nx-lead, .nx-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: inherit;
}
.nx-lead + .nx-lead, .nx-text + .nx-text { margin-top: 16px; }
.nx-text strong { font-weight: 600; }

/* ---------- Lista com marcador fino ---------- */
.nx-list { list-style: none; margin: 20px 0 0; padding: 0; }
.nx-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-top: 1px solid rgba(140,122,102,0.22);
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.55;
}
.nx-list li:last-child { border-bottom: 1px solid rgba(140,122,102,0.22); }
.nx-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 23px;
    width: 14px; height: 1px;
    background: #8c7a66;
}
.nx-list--neg li::before { content: '×'; width: auto; height: auto; background: none; top: 11px; color: #8c7a66; font-family: var(--font-sans); }

/* ---------- Passo a passo ---------- */
.nx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.nx-steps--4 { grid-template-columns: repeat(4, 1fr); }
.nx-step { border-top: 1px solid rgba(140,122,102,0.45); padding-top: 28px; }
.nx-step__num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.75rem;
    line-height: 1;
    color: #8c7a66;
    margin-bottom: 20px;
}
.nx-step__title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.nx-step__desc { font-family: var(--font-serif); font-size: 1rem; line-height: 1.6; }

/* ---------- Cards (tecnologia, diferenciais) ---------- */
.nx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(140,122,102,0.25); border: 1px solid rgba(140,122,102,0.25); }
.nx-cards--3 { grid-template-columns: repeat(3, 1fr); }
.nx-card { background: #fff; padding: 48px 44px; }
.nx-section--sand .nx-card { background: #f3efe9; }
.nx-section--dark .nx-cards { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.12); }
.nx-section--dark .nx-card { background: #111; }
.nx-card__num { display: block; font-family: var(--font-serif); font-size: 1.25rem; color: #8c7a66; margin-bottom: 18px; }
.nx-card__title { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 500; line-height: 1.35; margin-bottom: 8px; }
.nx-card__kicker { display: block; font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; color: #8c7a66; margin-bottom: 16px; }
.nx-card .nx-text { font-size: 1rem; }
.nx-card .nx-list li { font-size: 1rem; padding-top: 9px; padding-bottom: 9px; }
.nx-card .nx-list li::before { top: 20px; }

/* ---------- Texto + imagem ---------- */
.nx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.nx-split--reverse > .nx-split__media { order: 2; }
.nx-split__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e8e2d9; }
.nx-split__media--wide { aspect-ratio: 16 / 10; }
.nx-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Galeria ---------- */
.nx-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nx-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.nx-gallery figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #e8e2d9; }
.nx-gallery--2 figure { aspect-ratio: 3 / 2; }
.nx-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.nx-gallery figure:hover img { transform: scale(1.03); }

/* ---------- Cards de tratamento (home) ---------- */
.nx-treat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.nx-treat__item { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.nx-treat__photo { aspect-ratio: 4 / 5; overflow: hidden; background: #e8e2d9; margin-bottom: 28px; }
.nx-treat__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.nx-treat__item:hover .nx-treat__photo img { transform: scale(1.04); }
.nx-treat__name { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 500; margin-bottom: 10px; }
.nx-treat__desc { font-family: var(--font-serif); font-size: 1rem; line-height: 1.6; margin-bottom: 18px; }
.nx-treat__more { font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #8c7a66; }

/* ---------- Citação ---------- */
.nx-quote {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.45;
}
.nx-quote::before { content: ''; display: block; width: 32px; height: 1px; background: #8c7a66; margin: 0 auto 32px; }

/* ---------- Nota / aviso ---------- */
.nx-note {
    margin-top: 32px;
    padding: 22px 26px;
    border-left: 2px solid #8c7a66;
    background: rgba(140,122,102,0.08);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.6;
}
.nx-note strong { display: block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; color: #8c7a66; }

/* ---------- Fluxo em 3 etapas (orçamento) ---------- */
.nx-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nx-flow span { padding: 10px 16px; border: 1px solid rgba(140,122,102,0.45); }
.nx-flow i { font-style: normal; color: #8c7a66; }

/* ---------- FAQ ---------- */
.nx-faq { border-top: 1px solid rgba(140,122,102,0.3); }
.nx-faq details { border-bottom: 1px solid rgba(140,122,102,0.3); }
.nx-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 400;
}
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: #8c7a66; transition: transform 0.25s ease; }
.nx-faq details[open] summary::after { transform: rotate(45deg); }
.nx-faq details p { padding: 0 0 26px; font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.65; max-width: 760px; }

/* ---------- Botões ---------- */
.nx-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.nx-ctas--center { justify-content: center; }
.nx-btn {
    display: inline-block;
    padding: 13px 28px;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    background: transparent;
    color: #1a1a1a;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nx-btn:hover { background: #1a1a1a; color: #fff; }
.nx-btn--filled { background: #1a1a1a; color: #fff; }
.nx-btn--filled:hover { background: transparent; color: #1a1a1a; }
.nx-section--dark .nx-btn { border-color: #fff; color: #fff; }
.nx-section--dark .nx-btn:hover { background: #fff; color: #111; }
.nx-section--dark .nx-btn--filled { background: #fff; border-color: #fff; color: #111; }
.nx-section--dark .nx-btn--filled:hover { background: transparent; color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .nx-steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
    .nx-steps--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nx-section { padding: 72px 0; }
    .nx-inner { padding: 0 24px; }
    .nx-head { margin-bottom: 44px; }
    .nx-steps, .nx-steps--4 { grid-template-columns: 1fr; gap: 0; }
    .nx-step { padding: 24px 0; }
    .nx-step__num { font-size: 2.25rem; margin-bottom: 12px; }
    .nx-cards, .nx-cards--3 { grid-template-columns: 1fr; }
    .nx-card { padding: 36px 24px; }
    .nx-split { grid-template-columns: 1fr; gap: 40px; }
    .nx-split--reverse > .nx-split__media { order: 0; }
    .nx-gallery, .nx-gallery--2 { grid-template-columns: 1fr; }
    .nx-gallery figure { aspect-ratio: 4 / 3; }
    .nx-treat { grid-template-columns: 1fr; gap: 56px; }
}

/* ==============================================================
   TOPO DAS PÁGINAS INTERNAS
   Só texto, sem foto nem vídeo (o vídeo fica só na home).
============================================================== */
.pg-hero { background: #111; color: #fff; }
.pg-hero__text {
    max-width: 1320px; margin: 0 auto;
    padding: calc(var(--header-height, 80px) + 64px) 60px 80px;
}
.pg-hero__crumbs {
    font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 40px;
}
.pg-hero__crumbs a { color: inherit; text-decoration: none; transition: color 0.2s; }
.pg-hero__crumbs a:hover { color: #fff; }
.pg-hero__crumbs span { margin: 0 8px; opacity: 0.5; }
.pg-hero__title {
    font-family: var(--font-sans); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.6rem);
    line-height: 1.12; color: #fff; margin-bottom: 24px; max-width: 820px;
}
.pg-hero__desc { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 620px; }

@media (max-width: 768px) {
    .pg-hero__text { padding: calc(var(--header-height, 80px) + 32px) 24px 56px; }
    .pg-hero__crumbs { margin-bottom: 28px; }
}

/* ---------- Texto longo (páginas legais) ---------- */
.nx-legal { max-width: 760px; }
.nx-legal .nx-updated { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8c7a66; margin-bottom: 8px; }
.nx-legal h2 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 500; color: #2e2e33; margin: 48px 0 12px; }
.nx-legal p, .nx-legal li { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.7; color: #2e2e33; }
.nx-legal p + p { margin-top: 12px; }
.nx-legal ul { margin: 12px 0 0 20px; }
.nx-legal li + li { margin-top: 8px; }
.nx-legal a { color: #8c7a66; }
