/*
Theme Name: Neosoluti
Description: Tema institucional da Neosoluti. Sem page builder.
Version: 1.2.0
Author: Neosoluti
Text Domain: neosoluti
*/

:root {
	--ink: #170f2e;          /* fundo escuro dos slides */
	--ink-2: #221944;        /* cartões sobre fundo escuro */
	--ink-3: #2c2156;
	--paper: #f3f2f8;        /* fundo claro dos slides */
	--white: #ffffff;
	--brand: #800cfb;
	--brand-deep: #6a09d6;
	--lilac: #b48cff;        /* eyebrows sobre escuro */
	--lilac-soft: #ece4ff;   /* pílulas e ícones sobre claro */
	--text-dark: #170f2e;
	--muted-dark: #5d5873;
	--text-light: #f4f1fb;
	--muted-light: #c3bcdc;
	--line-light: #e4e1ee;
	--line-dark: rgba(255, 255, 255, .09);
	--radius: 18px;
	--max: 1160px;
	--display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
	--body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--text-light);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .45em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }

.eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--lilac);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.light .eyebrow { color: var(--brand); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted-light); max-width: 620px; }

/* Botões */
.btn {
	display: inline-block;
	padding: 15px 28px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .22); }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }

/* Hero: texto centralizado sobre o fundo animado (parts/hero-bg.php) */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	align-items: center;
	min-height: min(88vh, 860px);
	padding: clamp(96px, 12vw, 150px) 0;
	text-align: center;
	background: radial-gradient(1200px 700px at 50% 50%, #241550 0%, var(--ink) 70%);
}
.hero::after {
	/* acalma o centro para o texto ficar legível */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(23, 15, 46, .62), rgba(23, 15, 46, 0) 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg svg { width: 100%; height: 100%; display: block; }
.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.hero .lead { margin: 26px auto 38px; text-wrap: pretty; }
.hero .actions { justify-content: center; }

/* animações do fundo */
.hb-spin { transform-box: view-box; transform-origin: 800px 450px; animation: hb-spin linear infinite; }
.hb-spin--a { animation-duration: 14s; }
.hb-spin--b { animation-duration: 26s; animation-direction: reverse; }
.hb-spin--c { animation-duration: 40s; }
.hb-spin--d { animation-duration: 70s; }
.hb-spin--e { animation-duration: 90s; }
.hb-upright { transform-box: fill-box; transform-origin: center; animation: hb-spin 90s linear infinite reverse; }
.hb-flow { animation: hb-flow 1.6s linear infinite; }
.hb-ping { transform-box: fill-box; transform-origin: center; animation: hb-ping 2.8s ease-out infinite; }
.hb-breathe { transform-box: fill-box; transform-origin: center; animation: hb-breathe 9s ease-in-out infinite; }
@keyframes hb-spin { to { transform: rotate(360deg); } }
@keyframes hb-flow { to { stroke-dashoffset: -18; } }
@keyframes hb-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
@keyframes hb-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@media (max-width: 760px) {
	.hero { min-height: auto; padding: 88px 0 96px; }
	.hero__bg svg { transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
	.hb-spin, .hb-upright, .hb-flow, .hb-ping, .hb-breathe { animation: none; }
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Seções */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.light { background: var(--paper); color: var(--text-dark); }
.light .lead, .light p { color: var(--muted-dark); }
.light--tight { padding-top: 0; }
.dark { background: var(--ink); }
.section > .wrap > h2 { margin-bottom: 40px; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

/* Cartões claros */
.card {
	display: flex; flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	padding: 24px;
}
.card h3 { font-size: 1.75rem; margin-top: 4px; }
.card p { margin: 0 0 18px; }
.card .tag { margin-top: auto; color: var(--brand); font-weight: 700; }
.card--icon { padding: 32px; min-height: 380px; }
.card--icon h3 { font-size: 1.6rem; }
.icon {
	display: grid; place-items: center;
	width: 56px; height: 56px; margin-bottom: 24px;
	border-radius: 12px; background: var(--lilac-soft);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--text-light); }
.light .card--dark p { color: var(--muted-light); }
.card--dark .icon { background: var(--ink-3); }
.card--dark .icon svg { stroke: var(--lilac); }
.card--dark .tag { color: var(--lilac); }
/* link para a página do serviço; o ::before estende o clique ao cartão inteiro */
.card { position: relative; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--text-dark); font-size: .95rem; font-weight: 700; text-decoration: none; }
.card__more::after { content: "→"; color: var(--brand); transition: transform .25s ease; }
.card__more::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover .card__more::after { transform: translateX(4px); }
.card--dark .card__more, .card__more--light { color: #fff; }
.card--dark .card__more::after, .card__more--light::after { color: var(--lilac); }
.card__more--light::before { display: none; }
.card__more:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Diferencial */
.purple { background: var(--brand); color: #fff; }
.purple .eyebrow { color: rgba(255, 255, 255, .78); }
.statement { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 22ch; margin-bottom: clamp(48px, 9vw, 120px); }
.tile { background: var(--brand-deep); border-radius: var(--radius); padding: 24px; }
.tile h3 { font-size: 1.3rem; }
.tile p { margin: 0; color: rgba(255, 255, 255, .86); font-size: .97rem; }

/* Listas e pílulas (usadas nos cases) */
.ticks { list-style: none; margin: 8px 0 26px; }
.ticks li { position: relative; padding-left: 22px; margin: 6px 0; }
.light .ticks li { color: var(--text-dark); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill {
	display: inline-block;
	padding: 9px 26px;
	border-radius: 999px;
	background: var(--ink-3);
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
}
.light .pill { background: var(--lilac-soft); color: var(--text-dark); }
.pill--link { text-decoration: none; transition: background .2s ease, transform .2s ease; }
.pill--link:hover { background: var(--brand); transform: translateY(-1px); }

/* Quem faz */
.about { display: grid; grid-template-columns: 5fr 8fr; min-height: 640px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__text { padding: clamp(48px, 7vw, 96px) clamp(20px, 6vw, 80px); align-self: center; }
.about__text h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.timeline div { background: var(--ink-2); border-radius: 12px; padding: 14px 16px; }
.timeline small { display: block; color: var(--lilac); font-size: .9rem; }
.timeline strong { display: block; font-size: 1.08rem; }
.timeline span { color: var(--muted-light); font-size: .92rem; }
@media (max-width: 860px) {
	.about { grid-template-columns: 1fr; }
	.about__photo img { aspect-ratio: 1; height: auto; object-position: center 20%; }
}
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* Contato */
.contact {
	padding: clamp(110px, 16vw, 220px) 0 clamp(80px, 10vw, 120px);
	background:
		radial-gradient(800px 520px at 18% 100%, rgba(110, 40, 230, .45), transparent 70%),
		var(--ink);
}
.contact h2 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); margin-bottom: 36px; }
.contact__card {
	display: block;
	background: rgba(34, 25, 68, .85);
	border: 1px solid var(--line-dark);
	border-radius: 14px;
	padding: 22px 24px;
	text-decoration: none;
	transition: border-color .15s;
}
a.contact__card:hover { border-color: var(--lilac); }
.contact__card small { display: block; color: var(--lilac); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.contact__card strong { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; word-break: break-word; }

/* Páginas internas */
.ns-page { padding: 72px 0 96px; }
.ns-page .entry { max-width: 760px; }
.ns-page .entry a { color: var(--lilac); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .contact__card { transition: none; } }
