/* ==========================================================================
   Asimov Jr — páginas internas (Serviços, Sobre nós, Fale conosco, Blog)
   Mesma linguagem da home; cores vêm das variáveis do tema (claro/escuro).
   ========================================================================== */

.aj-pg { padding-bottom: 96px; }
.aj-sec { position: relative; isolation: isolate; padding-inline: var(--aj-gutter); }
[id] { scroll-margin-top: 24px; }
.aj-anchor { display: block; height: 0; }

.aj-main .aj-sec__title { font-size: 44px; line-height: 1.15; font-weight: 700; }
.aj-main .aj-sec__lead { margin-top: 16px; max-width: 720px; font-size: 20px; line-height: 1.5; color: var(--aj-body); }

/* ---------- topo da página ---------- */
.aj-pghero { padding-top: 220px; padding-bottom: 56px; }
.aj-pghero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: url("../img/squares.svg") center -160px / 1440px auto no-repeat;
	opacity: .5;
	pointer-events: none;
}
.aj-main .aj-pghero__title { max-width: 900px; font-size: 56px; line-height: 1.1; font-weight: 700; }
.aj-main .aj-pghero__lead { margin-top: 24px; max-width: 720px; font-size: 24px; line-height: 1.4; font-weight: 500; color: var(--aj-body); }

/* ---------- serviços ---------- */
.aj-svc {
	--c1: #2563eb;
	--c2: #00ffd4;
	padding-block: 72px;
	border-top: 1px dashed color-mix(in srgb, var(--aj-text) 25%, transparent);
}
.aj-svc--sites { --c1: #0057ff; --c2: #ffb000; }
.aj-svc--mobile { --c2: #ff00a6; }
.aj-svc--software { --c2: #05e213; }
.aj-svc--dados { --c2: #8606ff; }
.aj-svc--design { --c2: #ff1493; }
.aj-svc__head { display: flex; align-items: center; gap: 24px; }
.aj-svc__badge {
	display: grid;
	flex: none;
	place-items: center;
	width: 112px;
	height: 112px;
	overflow: hidden;
	border-radius: var(--aj-radius);
	background: linear-gradient(63deg, var(--c1) 16%, var(--c2) 100%);
}
.aj-svc__badge img { width: 80px; height: auto; }
.aj-main .aj-svc__title { font-size: 44px; line-height: 1.15; font-weight: 700; }
.aj-main .aj-svc__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 40px; }
.aj-svc__text p { font-size: 18px; line-height: 1.7; color: var(--aj-body); }
.aj-main .aj-svc__text p + p { margin-top: 20px; }
.aj-svc__media { position: sticky; top: 40px; overflow: hidden; border-radius: var(--aj-radius); background: linear-gradient(63deg, var(--c1), var(--c2)); }
.aj-svc__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aj-main .aj-svc__cta { margin-top: 32px; }
.aj-main .aj-svc__subtitle { margin-top: 64px; font-size: 28px; line-height: 1.2; font-weight: 700; }
.aj-main .aj-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin-top: 28px; }
.aj-proj {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--aj-primary) 40%, transparent);
	border-radius: var(--aj-radius);
	background: color-mix(in srgb, var(--aj-primary) 10%, transparent);
}
.aj-proj__media {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(63deg, var(--c1), var(--c2));
	color: #fff;
}
.aj-proj__media span { font-size: 56px; font-weight: 700; line-height: 1; }
.aj-proj__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; font-size: 14px; }
.aj-proj__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.aj-proj__tag {
	align-self: flex-start;
	padding: 4px 14px;
	border-radius: var(--aj-radius);
	background: var(--aj-primary);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
}
.aj-proj .aj-proj__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; color: inherit; }
.aj-proj__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--aj-body); }
.aj-proj__link { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--aj-primary); }
.aj-proj__link::after { content: " →"; }

/* ---------- sobre nós ---------- */
.aj-hist, .aj-jornada, .aj-premios, .aj-equipe, .aj-dep { padding-block: 64px; }
.aj-hist__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.aj-hist__text p { font-size: 20px; line-height: 1.7; color: var(--aj-body); }
.aj-main .aj-hist__text .aj-sec__title { margin-bottom: 28px; }
.aj-main .aj-hist__text p + p { margin-top: 20px; }
.aj-hist__photos { display: grid; gap: 0; overflow: hidden; border-radius: var(--aj-radius); background: var(--aj-primary); }
.aj-hist__photo img { width: 100%; height: 280px; object-fit: cover; }

.aj-main .aj-timeline { position: relative; margin: 56px 0 0; padding: 0; list-style: none; }
.aj-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	border-radius: 2px;
	transform: translateX(-50%);
	background: linear-gradient(var(--aj-primary) 60%, transparent);
}
.aj-tl { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 88px; margin: 0 0 40px; }
.aj-tl__card {
	grid-column: 1;
	padding: 24px 28px;
	border: 1px solid color-mix(in srgb, var(--aj-primary) 40%, transparent);
	border-radius: var(--aj-radius);
	background: color-mix(in srgb, var(--aj-primary) 10%, transparent);
}
.aj-tl:nth-child(even) .aj-tl__card { grid-column: 2; }
.aj-tl__year {
	position: absolute;
	top: 20px;
	left: 50%;
	z-index: 1;
	padding: 6px 20px;
	border-radius: var(--aj-radius);
	background: var(--aj-primary);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	transform: translateX(-50%);
}
.aj-tl__icon { font-size: 32px; line-height: 1; }
.aj-main .aj-tl__title { margin: 12px 0 8px; font-size: 24px; line-height: 1.2; font-weight: 700; color: inherit; }
.aj-main .aj-tl__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--aj-body); }

.aj-main .aj-awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.aj-award {
	padding: 32px 28px;
	border-radius: var(--aj-radius);
	background: linear-gradient(63deg, var(--aj-primary) 16%, #8606ff 100%);
	color: #fff;
}
.aj-award__icon { display: block; font-size: 40px; line-height: 1; }
.aj-main .aj-award__title { margin: 16px 0 8px; font-size: 22px; line-height: 1.25; font-weight: 700; color: #fff; }
.aj-main .aj-award__text { margin: 0; font-size: 16px; line-height: 1.6; color: #fff; }

.aj-main .aj-teamgroup { margin-top: 48px; }
.aj-main .aj-teamgroup__title { font-size: 28px; line-height: 1.2; font-weight: 700; }
.aj-main .aj-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; margin-top: 24px; }
.aj-member { text-align: left; }
.aj-member__photo { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border-radius: var(--aj-radius); background: var(--aj-primary); }
.aj-main .aj-member__name { margin: 16px 0 4px; font-size: 20px; line-height: 1.25; font-weight: 700; color: inherit; }
.aj-main .aj-member__role { margin: 0; font-size: 16px; font-weight: 600; color: var(--aj-primary); }
.aj-main .aj-member__course { margin: 4px 0 0; font-size: 14px; color: var(--aj-body); }

.aj-main .aj-quote {
	margin: 40px 0 0;
	padding: 48px;
	border-radius: var(--aj-radius);
	background: var(--aj-primary);
	color: #fff;
}
.aj-quote__text { margin: 0; }
.aj-quote__text p { margin: 0; font-size: 22px; line-height: 1.6; font-weight: 500; color: #fff; }
.aj-quote__by { display: flex; align-items: center; gap: 16px; margin-top: 28px; font-size: 16px; line-height: 1.4; }
.aj-quote__by img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; background: #fff; }

/* chamada final das páginas */
.aj-pgcta { padding-block: 32px 0; }
.aj-pgcta__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 56px 24px;
	border-radius: var(--aj-radius);
	background: var(--aj-cta-bg);
	text-align: center;
}
.aj-main .aj-pgcta__title { font-size: 40px; line-height: 1.15; font-weight: 700; color: var(--aj-cta-ink); }
.aj-main .aj-pgcta__text { margin-top: 16px; max-width: 640px; font-size: 20px; font-weight: 600; color: var(--aj-cta-ink); }
.aj-main .aj-pgcta__actions { margin-top: 28px; justify-content: center; }

/* ---------- fale conosco ---------- */
.aj-contact { padding-block: 96px 40px; }
.aj-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.aj-main .aj-contact__wa { margin-top: 28px; }
.aj-main .aj-contactlist { display: grid; gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.aj-contactlist li { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.aj-main .aj-contactlist a { color: var(--aj-text); }
.aj-main .aj-contactlist a:hover { color: var(--aj-primary); }
.aj-contactlist .aj-ico { width: 22px; height: 22px; color: var(--aj-primary); }
.aj-contact__formwrap {
	padding: 36px;
	border: 1px solid color-mix(in srgb, var(--aj-primary) 40%, transparent);
	border-radius: var(--aj-radius);
	background: color-mix(in srgb, var(--aj-primary) 10%, transparent);
}
.aj-form { display: grid; gap: 20px; }
.aj-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.aj-form__field { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.aj-form__field input,
.aj-form__field select,
.aj-form__field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid color-mix(in srgb, var(--aj-text) 25%, transparent);
	border-radius: 16px;
	background: color-mix(in srgb, var(--aj-text) 6%, transparent);
	font: 400 16px/1.4 Poppins, sans-serif;
	color: var(--aj-text);
}
.aj-form__field select option { color: #040818; }
.aj-form__field textarea { resize: vertical; min-height: 140px; }
.aj-form__field input::placeholder,
.aj-form__field textarea::placeholder { color: color-mix(in srgb, var(--aj-text) 55%, transparent); }
.aj-form__field input:focus,
.aj-form__field select:focus,
.aj-form__field textarea:focus { outline: 2px solid var(--aj-primary); outline-offset: 1px; border-color: var(--aj-primary); }
.aj-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aj-form__legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--aj-body); }
.aj-form__submit {
	justify-self: start;
	min-height: 64px;
	padding: 0 32px;
	cursor: pointer;
	border: 1px solid var(--aj-primary);
	border-radius: var(--aj-radius);
	background: var(--aj-primary);
	box-shadow: var(--aj-shadow);
	font: 700 20px/1.2 Poppins, sans-serif;
	color: #040818;
	transition: transform .2s ease;
}
.aj-form__submit:hover { transform: translateY(-2px); }
.aj-form__submit:focus-visible { outline: 2px solid var(--aj-text); outline-offset: 3px; }
.aj-form__notice { padding: 14px 18px; border-radius: 16px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.aj-form__notice[hidden] { display: none; }
.aj-form__notice.is-ok { background: #0f9d58; color: #fff; }
.aj-form__notice.is-erro { background: #d93025; color: #fff; }
.aj-where { padding-block: 24px 0; }
.aj-main .aj-map { margin-top: 28px; overflow: hidden; border-radius: var(--aj-radius); }
.aj-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- blog ---------- */
.aj-blog { padding-block: 0 16px; }
.aj-main .aj-archive { margin-top: 8px; }
.aj-main .aj-archive__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 56px 32px; }
.aj-archive__list > li { width: auto; margin: 0; }
.aj-archive .aj-card { width: 100%; }
.aj-main .aj-archive .wp-block-query-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; font-weight: 600; }
.aj-archive .wp-block-query-pagination a,
.aj-archive .wp-block-query-pagination .page-numbers {
	padding: 8px 18px;
	border: 1px solid color-mix(in srgb, var(--aj-text) 25%, transparent);
	border-radius: var(--aj-radius);
	color: var(--aj-text);
}
.aj-archive .wp-block-query-pagination .current { background: var(--aj-primary); border-color: var(--aj-primary); color: #fff; }
.aj-main .aj-inner__title { font-size: 48px; }
.aj-inner--post { max-width: none; }
.aj-inner--post > * { max-width: 820px; }
.aj-inner--post .aj-inner__cover { max-width: 1000px; }
.aj-inner--post .aj-card__meta { justify-content: flex-start; gap: 16px; margin-bottom: 20px; }

/* ---------- responsivo ---------- */
@media (max-width: 1023px) {
	.aj-pghero { padding-top: 150px; padding-bottom: 32px; }
	.aj-main .aj-pghero__title { font-size: 40px; }
	.aj-main .aj-pghero__lead { font-size: 20px; }
	.aj-main .aj-sec__title, .aj-main .aj-svc__title { font-size: 34px; }
	.aj-svc { padding-block: 48px; }
	.aj-svc__badge { width: 80px; height: 80px; }
	.aj-svc__badge img { width: 56px; }
	.aj-svc__body, .aj-hist__grid, .aj-contact__grid { grid-template-columns: 1fr; gap: 32px; }
	.aj-svc__media { position: static; }
	.aj-awards { grid-template-columns: 1fr; }
	.aj-timeline::before { left: 22px; }
	.aj-tl { display: block; padding-left: 64px; }
	.aj-tl__year { left: 0; top: 0; transform: none; padding: 4px 12px; font-size: 14px; }
	.aj-tl__card, .aj-tl:nth-child(even) .aj-tl__card { grid-column: auto; margin-top: 36px; }
	.aj-quote { padding: 28px; }
	.aj-quote__text p { font-size: 18px; }
	.aj-main .aj-pgcta__title { font-size: 30px; }
	.aj-form__row { grid-template-columns: 1fr; }
	.aj-contact__formwrap { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.aj-form__submit { transition: none; }
}
